Sorry to post but it's annoying me now. Can't seem to sort it.
I've got this script as a Starter Npc and when I click which class i am. I get the kit which is fine, But if I don't close the window, I can click it again and it will give me another kit.
If I close the window, it all works fine but I want it to work properly.
Here is what i'm having trouble with.
<Can I Have a Starter Kit?/@startkit>\
<Send me to the leveling caves/@levelingcaves>\
[@levelingcaves]
#ACT
mapmove Start 18 29
break
[@startkit]
#IF
check [107] 1
#SAY
Each new player gets one start kit and\
i'm afraid you've already had yours.\
<Close Window/@exit>\ \
#ELSESAY
SERVERNAME - Start Kit\
What? Of course you can, First choose your class though.\
<Choose Class/@Items1> alot. - <Close Window/@exit>
[@Items1]
#IF
#SAY
Please select your class.\
<Warrior/@Warrior>\
<Taoist/@Taoist>\
<Wizard/@Wizard>\
<Close Window/@exit>\\
[@Warrior]
#IF
checkjob warrior
#ACT
GIVE StarterRing 2
GIVE StarterBrace 2
GIVE StarterNecklace
GIVE StarterHelmet
GIVE StarterWeapon
GIVE StarterArm(M)
GIVE StarterArm(F)
GIVE (HP)MDrugBundl 9
GIVE (MP)MDrugBundl 2
SET [107] 1
break
#ELSESAY
You are not a warrior
<Close Window/@exit>
[@Taoist]
#IF
checkjob taoist
#ACT
GIVE StarterRing 2
GIVE StarterBrace 2
GIVE StarterNecklace
GIVE StarterHelmet
GIVE StarterWeapon2
GIVE StarterArm(M)
GIVE StarterArm(F)
GIVE Amulet 2
GIVE GreenPoison
GIVE RedPoison
GIVE (HP)MDrugBundl 4
GIVE (MP)MDrugBundl 7
SET [107] 1
break
#ELSESAY
You are not a taoist\
<Close Window/@exit>
[@Wizard]
#IF
checkjob wizard
#ACT
GIVE StarterRing1 2
GIVE StarterBrace 2
GIVE StarterNecklace
GIVE StarterHelmet
GIVE StarterWeapon1
GIVE StarterArm(M)
GIVE StarterArm(F)
GIVE (HP)MDrugBundl 6
GIVE (MP)MDrugBundl 5
SET [107] 1
break
#ELSESAY
You are not a wizard\
<Close Window/@exit>
It's simple i'm sure, but I can't see it :P
I've got this script as a Starter Npc and when I click which class i am. I get the kit which is fine, But if I don't close the window, I can click it again and it will give me another kit.
If I close the window, it all works fine but I want it to work properly.
Here is what i'm having trouble with.
<Can I Have a Starter Kit?/@startkit>\
<Send me to the leveling caves/@levelingcaves>\
[@levelingcaves]
#ACT
mapmove Start 18 29
break
[@startkit]
#IF
check [107] 1
#SAY
Each new player gets one start kit and\
i'm afraid you've already had yours.\
<Close Window/@exit>\ \
#ELSESAY
SERVERNAME - Start Kit\
What? Of course you can, First choose your class though.\
<Choose Class/@Items1> alot. - <Close Window/@exit>
[@Items1]
#IF
#SAY
Please select your class.\
<Warrior/@Warrior>\
<Taoist/@Taoist>\
<Wizard/@Wizard>\
<Close Window/@exit>\\
[@Warrior]
#IF
checkjob warrior
#ACT
GIVE StarterRing 2
GIVE StarterBrace 2
GIVE StarterNecklace
GIVE StarterHelmet
GIVE StarterWeapon
GIVE StarterArm(M)
GIVE StarterArm(F)
GIVE (HP)MDrugBundl 9
GIVE (MP)MDrugBundl 2
SET [107] 1
break
#ELSESAY
You are not a warrior
<Close Window/@exit>
[@Taoist]
#IF
checkjob taoist
#ACT
GIVE StarterRing 2
GIVE StarterBrace 2
GIVE StarterNecklace
GIVE StarterHelmet
GIVE StarterWeapon2
GIVE StarterArm(M)
GIVE StarterArm(F)
GIVE Amulet 2
GIVE GreenPoison
GIVE RedPoison
GIVE (HP)MDrugBundl 4
GIVE (MP)MDrugBundl 7
SET [107] 1
break
#ELSESAY
You are not a taoist\
<Close Window/@exit>
[@Wizard]
#IF
checkjob wizard
#ACT
GIVE StarterRing1 2
GIVE StarterBrace 2
GIVE StarterNecklace
GIVE StarterHelmet
GIVE StarterWeapon1
GIVE StarterArm(M)
GIVE StarterArm(F)
GIVE (HP)MDrugBundl 6
GIVE (MP)MDrugBundl 5
SET [107] 1
break
#ELSESAY
You are not a wizard\
<Close Window/@exit>
It's simple i'm sure, but I can't see it :P
