NPC Exchange aint working right....

Play Now

myname

Dedicated Member
Dedicated Member
Aug 11, 2003
157
0
92
hi. i have made an npc script which allows me to make a 60mill scroll and a 100m scroll when they give them a certain amount of gold. but my problem is when i come to exchange a scroll. it gives me 6 gold chests wen i click on the 60m scroll icon without even having a scroll in my bag. ne1 know how i can fix this plz?? thnx in advance.
 

Blaminator

VIP
Golden Oldie
Loyal Member
Jul 11, 2003
2,731
0
173
London
[@main]
Got a 60 mill gold scroll?\
Need 6 chests?\ \

<Yeah/@trade>\
<No/@exit>\

[@trade]
#IF
checkitem 60Million
#ACT
take 60million
give GoldChest 6
#ELSESAY
Go home f00l
 

myname

Dedicated Member
Dedicated Member
Aug 11, 2003
157
0
92
hi. tht dont really make ne sense to me. here is what my exchange man actually says. can u try and see if theres ne mistakes plz.
[@exchangescroll]
#SAY
Will you be exchanging a 60MillScroll or a 100MillScroll?\\

<60 Mill./@60exchange>\
<100 Mill./@100exchange>\
<Back./@main>\
<Exit./@exit>

[@60exchange]
#SAY
Do you want 6 GoldChests or 12 GoldBarBundles?\\

<6 GoldChests./@60exchangechest>\
<12 GoldBarBundles./@60exchangebundle>\
<Exit./@exit>

[@60exchangechest]
#IF
checkitem 60MillScroll
#ACT
take 60MillScroll
give GoldChest 6
#SAY
Thank you!\\

<Exit./@exit>

[@60exchangebundle]
#IF
checkitem 60MillScroll
#ACT
take 60MillScroll
give GoldBarBundle 12
#SAY
Thank you!\\

<Exit./@exit>

[@100exchange]
#SAY
I can only exchange it for 10 GoldChests!\\

<Exchange./@100goldchest>\
<Exit./@exit>

[@100goldchest]
#IF
checkitem 100MillScroll
#ACT
take 100MillScroll
give GoldChest 10
#SAY
Thank you!\\

<Exit./@exit>
 

UniTY

O.G.
VIP
Apr 29, 2003
272
13
135
Florida, USA
myname said:
hi. tht dont really make ne sense to me. here is what my exchange man actually says. can u try and see if theres ne mistakes plz.
[@exchangescroll]
#SAY
Will you be exchanging a 60MillScroll or a 100MillScroll?\\

<60 Mill./@60exchange>\
<100 Mill./@100exchange>\
<Back./@main>\
<Exit./@exit>

[@60exchange]
#SAY
Do you want 6 GoldChests or 12 GoldBarBundles?\\

<6 GoldChests./@60exchangechest>\
<12 GoldBarBundles./@60exchangebundle>\
<Exit./@exit>

[@60exchangechest]
#IF
checkitem 60MillScroll
#ACT
take 60MillScroll
give GoldChest 6
#SAY
Thank you!\\

<Exit./@exit>

[@60exchangebundle]
#IF
checkitem 60MillScroll
#ACT
take 60MillScroll
give GoldBarBundle 12
#SAY
Thank you!\\

<Exit./@exit>

[@100exchange]
#SAY
I can only exchange it for 10 GoldChests!\\

<Exchange./@100goldchest>\
<Exit./@exit>

[@100goldchest]
#IF
checkitem 100MillScroll
#ACT
take 100MillScroll
give GoldChest 10
#SAY
Thank you!\\

<Exit./@exit>

I dont see any exits for if there is no scroll.. I see you checking if they have it, but nothing about if they dont..
 

myname

Dedicated Member
Dedicated Member
Aug 11, 2003
157
0
92
dont spose u can edit where i need to put em m8?
 

Xypher

LOMCN Senior Member
Veteran
May 4, 2003
419
0
93
Dunno Posts:4000000
[@exchangescroll]
#SAY
Will you be exchanging a 60MillScroll or a 100MillScroll?\\

<60 Mill./@60exchange>\
<100 Mill./@100exchange>\
<Back./@main>\
<Exit./@exit>

[@60exchange]
#SAY
Do you want 6 GoldChests or 12 GoldBarBundles?\\

<6 GoldChests./@60exchangechest>\
<12 GoldBarBundles./@60exchangebundle>\
<Exit./@exit>

[@60exchangechest]
#IF
checkitem 60MillScroll
#ACT
take 60MillScroll
give GoldChest 6
#SAY
Thank you!\\

<Exit./@exit>
#ELSESAY
You don't have the 60millScroll to turn in for 6gold chest shoo!

[@60exchangebundle]
#IF
checkitem 60MillScroll
#ACT
take 60MillScroll
give GoldBarBundle 12
#SAY
Thank you!\\

<Exit./@exit>
#ELSESAY
You don't have the 60millScroll to turn in for 12gold chest shoo!

[@100exchange]
#SAY
I can only exchange it for 10 GoldChests!\\

<Exchange./@100goldchest>\
<Exit./@exit>

[@100goldchest]
#IF
checkitem 100MillScroll
#ACT
take 100MillScroll
give GoldChest 10
#SAY
Thank you!\\

<Exit./@exit>
#ELSESAY
You don't have the 100millScroll to turn in for 10gold chest shoo!\ \
<Exit/@exit>



That should work m8
 

myname

Dedicated Member
Dedicated Member
Aug 11, 2003
157
0
92
no it dont. WHY!!!!!! lol. this is stressing me out so bad. ive been trying and trying to make it work. has ne1 else got ne other options as to why it wont work. thnx in advance.
 

Xypher

LOMCN Senior Member
Veteran
May 4, 2003
419
0
93
Dunno Posts:4000000
myname said:
no it dont. WHY!!!!!! lol. this is stressing me out so bad. ive been trying and trying to make it work. has ne1 else got ne other options as to why it wont work. thnx in advance.

Does it need the

%100
+*
+*

*(means the stdmode)
 

Gamedude

LOMCN Veteran
Veteran
Sep 23, 2003
257
0
42
myname said:
[@exchangescroll]


isn't that ment to be [@main] ?

+

isn't

[@60exchangechest]
#IF
checkitem 60MillScroll
#ACT
take 60MillScroll
give GoldChest 6
#SAY
Thank you!\\

<Exit./@exit>
#ELSESAY
You don't have the 60millScroll to turn in for 6gold chest shoo!




ment to be

[@60exchangechest]
#IF
checkitem 60MillScroll
#ACT
take 60MillScroll
give GoldChest 6
#ELSESAY
You don't have the 60millScroll to turn in for 6gold chest shoo!

#SAY
Thank you!\\

<Exit./@exit>
 
Last edited:

myname

Dedicated Member
Dedicated Member
Aug 11, 2003
157
0
92
dno if this will help but wen i have say a 60mill scroll in my bag and click exchange 60m scroll it takes the scroll and gives me 6 chests. but wen i dont have a 60m scroll it still gives me the chests. this is so annoying.

just waiting to try the @main function. server comp busy atm.