Script problem.....

Skully26

Dedicated Member
Dedicated Member
Feb 13, 2009
14
0
27
This script is loading but the only problem is it doesn't give you any of the items can any 1 see where i have gone wrong please

;;;;;;;;;;;;;;;;;;;;;;;
[@MirGuideBook]
{
#SAY
Welcome to the portable shop. \
Here you can buy items while on the move \
save you going back to town for items. \
<List of items to buy./@list> \
<exit./@exit> \

[@list]
#SAY
Please choose which type of items you want. \
<Potions/@pots> \
<Talismans/@tails> \
<Drugs/@drugs> \
<Misc/@misc> \
<Special Repair all/@sra> \
<back/@main> \
<exit/@exit> \

[@pots]
#SAY
Make sure you have enough room in bag other wise \
you might not get all u payed for and you wont be \
refunded so make sure. \
now What potions would you like ? \
<HPpotion(M) - 220 Gold /@main2(HPpotion(M),220)> \
<MPpotion(M) - 220 Gold /@main2(MPpotion(M),220)> \
<HPpotion(L) - 550 Gold /@main2(HPpotion(L),550)> \
<MPpotion(L) - 550 Gold /@main2(MPpotion(L),550)> \
<HPpotion(XL) - 1,375 Gold /@main2(HPpotion(XL),1375)> \
<MPpotion(XL) - 1,375 Gold /@main2(MPpotion(XL),1375)> \
<Sunpotion(M) - 1,100 Gold /@main2(Sunpotion(M),1100)> \
<Ginseng - 2,200 Gold /@main2(Ginseng,2200)> \
<Back/@list> \
<exit/@exit> \

[@drugs]
#SAY
Make sure you have enough room in bag other wise \
you might not get all u payed for and you wont be \
refunded so make sure. \
now What Drugs would you like ? \
<ImpactLiquor(M) - 22,000 Gold/@main2(ImpactLiquor(M),22000)> \
<ImpactLiquor(L) - 44,000 Gold/@main2(ImpactLiquor(L),44000)> \
<ImpactLiquor(XL) - 88,000 Gold/@main2(ImpactLiquor(XL),88000)> \
<StormLiquor(M) - 22,000 Gold/@main2(StormLiquor(M),22000)> \
<StormLiquor(L) - 33,000 Gold/@main2(StormLiquor(L),33000)> \
<StormLiquor(XL) - 77,000 Gold/@main2(StormLiquor(XL),77000)> \
<SpiritLiquor(M) - 16,500 Gold/@main2(SpiritLiquor(M),16500)> \
<SpiritLiquor(L) - 33,000 Gold/@main2(SpiritLiquor(L),33000)> \
<SpiritLiquor(XL) - 55,000 Gold/@main2(SpiritLiquor(XL),55000)> \
<MagicLiquor(M) - 22,000 Gold/@main2(MagicLiquor(M),7700)> \
<MagicLiquor(L) - 44,000 Gold/@main2(MagicLiquor(L),11000)> \
<MagicLiquor(XL) - 88,000 Gold/@main2(MagicLiquor(XL),33000)> \
<NatureLiquor(M) - 22,000 Gold/@main2(NatureLiquor(M),22000)> \
<NatureLiquor(L) - 55,000 Gold/@main2(NatureLiquor(L),55000)> \
<NatureLiquor(XL) - 110,000 Gold/@main2(NatureLiquor(XL),110000)> \
<HealthLiquor(M) - 22,000 Gold/@main2(HealthLiquor(M),22000)> \
<HealthLiquor(L) - 33,000 Gold/@main2(HealthLiquor(L),33000)> \
<HealthLiquor(XL) - 88,000 Gold/@main2(HealthLiquor(XL),88000)> \
<Back/@list> \
<exit/@exit> \

[@misc]
#SAY
Make sure you have enough room in bag other wise \
you might not get all u payed for and you wont be \
refunded so make sure. \
now What items would you like ? \
<Candle - 11 Gold/@main2(Candle,11)> \
<LargeCandle - 33 Gold/@main2(LargeCandle,33)> \
<Torch - 550 Gold/@main2(Torch,550)> \
<LargeTorch - 1,650 Gold/@main2(LargeTorch,1650)> \
<RandomTeleport - 110 Gold/@main2(RandomTeleport,110)> \
<TownTeleport - 550 Gold/@main2(TownTeleport,550)> \
<GreenPoison(S) - 1,100 Gold/@main2(GreenPoison(S),1100)> \
<GreenPoison(M) - 2,200 Gold/@main2(GreenPoison(M),2200)> \
<RedPoison(S) - 1,100 Gold/@main2(RedPoison(S),1100)> \
<Redpoison(M) - 2,200 Gold/@main2(RedPoison(M),2200)> \
<Back/@list> \
<Exit/@exit> \

[@tails]
#SAY
Make sure you have enough room in bag other wise \
you might not get all u payed for and you wont be \
refunded so make sure. \
now What Talismans would you like ? \
<Talisman(S) - 550 Gold/@main2(Talisman(S),550)> \
<Talisman(M) - 3,300 Gold/@main2(Talisman(M),3300)> \
<Talisman(IG-M) - 660 Gold/@main2(Talisman(IG-M),660)> \
<Talisman(IG-S) - 3,960 Gold/@main2(Talisman(IG-S),3960)> \
<Talisman(GE-M) - 660 Gold/@main2(Talisman(GE-M),660)> \
<Talisman(GE-S) - 3,960 Gold/@main2(Talisman(GE-S),3960)> \
<Talisman(FU-M) - 660 Gold/@main2(Talisman(FU-M),660)> \
<Talisman(FU-S) - 3,960 Gold/@main2(Talisman(FU-S),3960)> \
<Talisman(VE-M) - 660 Gold/@main2(Talisman(VE-M),660)> \
<Talisman(VE-S) - 3,960 Gold/@main2(Talisman(VE-S),3960)> \
<HolyTalisman(S) - 550 Gold/@main2(HolyTalisman(S),550)> \
<HolyTalisman(M) - 3,300 Gold/@main2(HolyTalisman(M),3300)> \
<DarkTalisman(S) - 550 Gold/@main2(DarkTalisman(S),550)> \
<DarkTalisman(M) - 3,300 Gold/@main2(DarkTalisman(M),3300)> \
<Back/@list> \
<Exit/@exit> \

[@SRA]
#SAY
To Special Repair all it will cost you 50,000 Gold \
and you may need to remove items and put them back on \
if your stats dont show up. \
\
<Special Rapair me/@Special_Repair(1),@SRepairFunc(0),@SRepairFunc(3) ,@SRepairFunc(4),@SRepairFunc(10),@SRepairFunc(5), @SRepairFunc(6),@SRepairFunc(7),@SRepairFunc(8),@S fin> \
<Back/@list> \
<Exit/@Exit> \

[@sfin]
#ACT
take gold 50000
goto @main

[@main2]
#ACT
MOV A1 %ARG(1)
MOV D1 %ARG(2)
#SAY
How many <$OUTPUT(A1)> do you want to buy ? \
<Enter Amount/@@main3> \

[@@main3]
#ACT
MOV D2 %INPUTSTR
MOV P1 %D2
MOV P2 %D1
MUL P1 P2
MOV D3 %P9
#SAY
So You want <$OUTPUT(P1)> <$OUTPUT(A1) for ($OUTPUT(D3) ? \
<No let me restart/@list> \
<Yes/@main4> \

[@main4]
#ACT
MOV D2 %P1
MOV D1 %P2
GOTO @main5


[@main5]
#IF
check gold %D3
#ACT
Give %A1 %D2
take gold %D3
goto @list
#ELSESAY
You dont have enough gold! \
<ok/@exit> \
}
;;;;;;;;;;;;;;;;;;;;


i believe and think this sentence below is the problem..

<$OUTPUT(P1)> <$OUTPUT(A1) for ($OUTPUT(D3) ? \


also once its fixed ill be more then happy if any 1 wanted to use it..
 

Zordon

Golden Oldie
Golden Oldie
Apr 26, 2008
1,176
20
145
Manchester, UK
i THINK its probably because your using variables with potions. the (M) etc is causing the script to fail as I think variables wont work with items with brackets in the name.
 
Upvote 0

chimera

LOMCN VIP
VIP
Jul 30, 2003
1,054
23
235
UK
[@@main3] :) two @@ ????

also, don't go to @main, go to @mirguidebook

and try....

So You want <$OUTPUT(P1)> <$OUTPUT(A1)> for <($OUTPUT(D3)> though not sure where its going to get p1 from as after a P.. is used it vanishes and you multiplied it with P2 to produce D3.
 
Upvote 0