Npc Help?

Play Now

Xx69xX

Golden Oldie
Golden Oldie
Dec 2, 2005
2,152
159
250
iv looked all over the forums and have no idea how to do what i want. im not great but not terrible at npcs but this 1 is really kiling me to do.

is there any chance some 1 could rite me up the script for an Npc that will sell me an item i want ExpX2 for 10million gold

i dont mind if the npc dosent buy anything not fussed if it does.. just would like it to sell these

i would appreciate it loads if some 1 could rite me this script up

thanks
 

alaeba

Dedicated Member
Dedicated Member
May 15, 2009
63
0
32
Code:
[@main]
#SAY
Hello, would you like to purchase an EXPPot(S)?\
It will cost you 10million gold and boost your exp by x2.\ \
<Yes please/@buy>\
<No/@exit> thanks

[@buy]
#IF
CHECKGOLD 10000000
#ACT
GIVE EXPPot(S) 1
TAKE GOLD 10000000
#SAY
There you go.\ \
<Close/@exit>
#ELSESAY
You do not have 10 million gold.\ \
<Close/@exit>

About as basic as they come...change 'EXPPot(S)' to whatever you like, just used it as an example, and will have to be created in your db.
 
Last edited:
Upvote 0

Xx69xX

Golden Oldie
Golden Oldie
Dec 2, 2005
2,152
159
250
Code:
[@main]
#SAY
Hello, would you like to purchase an EXPPot(S)?\
It will cost you 10million gold and boost your exp by x2.\ \
<Yes please/@buy>\
<No/@exit> thanks
 
[@buy]
#IF
CHECKGOLD 10000000
#ACT
GIVE EXPPot(S) 1
TAKE GOLD 10000000
#SAY
There you go.\ \
<Close/@exit>
#ELSESAY
You do not have 10 million gold.\ \
<Close/@exit>

About as basic as they come...change 'EXPPot(S)' to whatever you like, just used it as an example, and will have to be created in your db.
omg while reading it i slapped my head... i was thinking of the window like euro where items come up! but this is just as good and i was just being silly! 1st day bk at work ( Teacher<< been on half term and really tired today lol!)

Thankyou any ways
 
Upvote 0

alaeba

Dedicated Member
Dedicated Member
May 15, 2009
63
0
32
lol no worries...if you wanted it like a regular item merchant then simply put the sale price of the exp potion in the db as 10mil and add it to a shop npc. that could be explained better but i dont have the time right now
 
Upvote 0