- Nov 20, 2006
- 421
- 0
- 62
not really done an NPC b4, and wanted to give it a try
this is what i came up with
[@main]
#say
Hello <$USERNAME>.\\
Are you looking to buy a pet?\\
<yes/@yes> <no/@exit>
[@yes]
#say
What level are you?\\
<0-20/@goto1> <20-30/@goto2> <30-40/@goto3> <40+/@goto4>
[@goto1]
#say
You can have a Tongs for 5k
<buy/@buy> <No Thanks/@exit>
[@buy]
#IF
checkgold 5000
CHECKSLAVECOUNT 0
#elsesay
Don't Lie to me!\
<Sorry/@exit>\\
#act
takegold 5000
RECALLMOB Tongs 1 60 0 1
[@goto2]
#say
You can have a Flamingwooma for 20k
<buy/@buy2> <No Thanks/@exit>
[@buy2]
#IF
checkgold 20000
CHECKSLAVECOUNT 0
checklevel 20
#elsesay
Don't Lie to me!\
<sorry/@exit>\\
#act
takegold 20000
RECALLMOB Flamingwooma 1 60 0 1
[@goto3]
#say
You can have a Eviltongs for 40k
<buy/@buy3> <No Thanks/@exit>
[@buy3]
#IF
checkgold 40000
CHECKSLAVECOUNT 0
checklevel 30
#elsesay
Don't Lie to me!\
<Sorry/@exit>\\
#act
takegold 40000
RECALLMOB Eviltongs 1 60 0 1
[@goto4]
@say
You can have a Swordoma for 60k
<buy/@buy4> <No Thanks/@exit>
[@buy4]
#IF
checkgold 60000
CHECKSLAVECOUNT 0
checklevel 40
#elsesay
Don't Lie to me!\
<Sorry/@exit>\\
#act takegold 60000
RECALLMOB Swordoma 1 60 0 1
this is what i came up with
[@main]
#say
Hello <$USERNAME>.\\
Are you looking to buy a pet?\\
<yes/@yes> <no/@exit>
[@yes]
#say
What level are you?\\
<0-20/@goto1> <20-30/@goto2> <30-40/@goto3> <40+/@goto4>
[@goto1]
#say
You can have a Tongs for 5k
<buy/@buy> <No Thanks/@exit>
[@buy]
#IF
checkgold 5000
CHECKSLAVECOUNT 0
#elsesay
Don't Lie to me!\
<Sorry/@exit>\\
#act
takegold 5000
RECALLMOB Tongs 1 60 0 1
[@goto2]
#say
You can have a Flamingwooma for 20k
<buy/@buy2> <No Thanks/@exit>
[@buy2]
#IF
checkgold 20000
CHECKSLAVECOUNT 0
checklevel 20
#elsesay
Don't Lie to me!\
<sorry/@exit>\\
#act
takegold 20000
RECALLMOB Flamingwooma 1 60 0 1
[@goto3]
#say
You can have a Eviltongs for 40k
<buy/@buy3> <No Thanks/@exit>
[@buy3]
#IF
checkgold 40000
CHECKSLAVECOUNT 0
checklevel 30
#elsesay
Don't Lie to me!\
<Sorry/@exit>\\
#act
takegold 40000
RECALLMOB Eviltongs 1 60 0 1
[@goto4]
@say
You can have a Swordoma for 60k
<buy/@buy4> <No Thanks/@exit>
[@buy4]
#IF
checkgold 60000
CHECKSLAVECOUNT 0
checklevel 40
#elsesay
Don't Lie to me!\
<Sorry/@exit>\\
#act takegold 60000
RECALLMOB Swordoma 1 60 0 1
Last edited: