what am i doing wrong ? (NPC Script)

Mike_BE

Dedicated Member
Dedicated Member
Aug 1, 2008
34
0
52
Code:
[@main]
#SAY
Hello <$USERNAME>,\
Click <[EMAIL="here/@kit-main"]here/@kit-main[/EMAIL]> to get kit.\
[@kit-main]
#IF
CHECKJOB Warrior
#ACT
goto @warrior
#IF
CHECKJOB wizard
#ACT
goto @wizard
#IF
CHECKJOB taoist
#ACT
goto @taoist
[@warrior]
#Say
Wow, a mighty warrior has come...\
But what good are you without...\
Click <[EMAIL="here/@warkit"]here/@warkit[/EMAIL]> to receive kit & spells.\
[@wizard]
#Say
Wow, a mighty wizard has come...\
But what good are you without...\
Click <[EMAIL="here/@wizkit"]here/@wizkit[/EMAIL]> to receive kit & spells.\
[@taoist]
#Say
Wow, a mighty taoist has come...\
But what good are you without...\
Click <[EMAIL="here/@taokit"]here/@taokit[/EMAIL]> to receive kit & spells.\
[@warkit]
GIVE FreshmanSword 1
GIVE FreshmanGlove 2
GIVE FreshmanShirt(M) 1
GIVE FreshmanShirt(F) 1
GIVE FreshmanRing 2
GIVE FreshmanNecklace 1
GIVE FreshmanBelt 1
GIVE FreshmanBoots 1
GIVE FreshmanHelm 1
GIVE Fencing
GIVE Slaying
[@wizkit]
GIVE FreshmanSword 1
GIVE FreshmanGlove 2
GIVE FreshmanShirt(M) 1
GIVE FreshmanShirt(F) 1
GIVE FreshmanRing 2
GIVE FreshmanNecklace 1
GIVE FreshmanBelt 1
GIVE FreshmanBoots 1
GIVE FreshmanHelm 1
GIVE Fireball

[@taokit]
GIVE FreshmanSword 1
GIVE FreshmanGlove 2
GIVE FreshmanShirt(M) 1
GIVE FreshmanShirt(F) 1
GIVE FreshmanRing 2
GIVE FreshmanNecklace 1
GIVE FreshmanBelt 1
GIVE FreshmanBoots 1
GIVE FreshmanHelm 1
GIVE Healing
GIVE Poisoning
 

idaBigA

Holley Mir 3!!
VIP
Oct 28, 2003
1,966
110
310
Stoke, UK
You have no #ACT on the Kit Give sections..

i.e.

Code:
[@warkit]
[COLOR="Red"]#ACT[/COLOR]
GIVE FreshmanSword 1
GIVE FreshmanGlove 2
GIVE FreshmanShirt(M) 1
GIVE FreshmanShirt(F) 1
GIVE FreshmanRing 2
GIVE FreshmanNecklace 1
GIVE FreshmanBelt 1
GIVE FreshmanBoots 1
GIVE FreshmanHelm 1
GIVE Fencing 1
GIVE Slaying 1
 
Upvote 0

Mike_BE

Dedicated Member
Dedicated Member
Aug 1, 2008
34
0
52
You have no #ACT on the Kit Give sections..

i.e.

Code:
[@warkit]
[COLOR=red]#ACT[/COLOR]
GIVE FreshmanSword 1
GIVE FreshmanGlove 2
GIVE FreshmanShirt(M) 1
GIVE FreshmanShirt(F) 1
GIVE FreshmanRing 2
GIVE FreshmanNecklace 1
GIVE FreshmanBelt 1
GIVE FreshmanBoots 1
GIVE FreshmanHelm 1
GIVE Fencing 1
GIVE Slaying 1


check the first section, i want the npc when some1 clicks Here to get starterkit to check if the player is war tao or wiz and then go to the story
Code:
Wow, a mighty warrior has come...\
But what good are you without...\
Click <[EMAIL="here/@warkit"]here/@warkit[/EMAIL]> to receive kit & spells.\

thats not working. its always going to the warrior part, never checks if the player is either tao or warrior
 
Upvote 0

idaBigA

Holley Mir 3!!
VIP
Oct 28, 2003
1,966
110
310
Stoke, UK
Congrats on telling us the info we need to fix it...

I can't see anything wrong with that section of the script..

#IF
CheckJob Warrior
#ACT
Goto @Warrior

Seems good to me.. although I do Mir 3 mainly, the CheckJob commands are the same.
 
Upvote 0

JealY

LOMCN VIP
VIP
Nov 28, 2004
5,354
52
305
England
This should work, it will also make it so that people can only get kits once.
Code:
[@main]
#IF
CHECKNAMELIST gotkit.txt
#SAY
I'm sorry you have already had your kit!\
<Exit/@exit>\
#ELSESAY
Hello <$USERNAME>,\
Click <here/@kit-main> to get kit.\

[@kit-main]
#IF
CHECKJOB Warrior
#SAY
Wow, a mighty warrior has come...\
But what good are you without...\
Click <here/@warkit> to receive kit & spells.\
#IF
CHECKJOB wizard
#SAY
Wow, a mighty wizard has come...\
But what good are you without...\
Click <here/@wizkit> to receive kit & spells.\
#IF
CHECKJOB taoist
#SAY
Wow, a mighty taoist has come...\
But what good are you without...\
Click <here/@taokit> to receive kit & spells.\


[@warkit]
#ACT
ADDNAMELIST gotkit.txt
GIVE FreshmanSword 1
GIVE FreshmanGlove 2
GIVE FreshmanShirt(M) 1
GIVE FreshmanShirt(F) 1
GIVE FreshmanRing 2
GIVE FreshmanNecklace 1
GIVE FreshmanBelt 1
GIVE FreshmanBoots 1
GIVE FreshmanHelm 1
GIVE Fencing
GIVE Slaying
#SAY
Here is your kit!\
\
<Thanks!/@exit>\

[@wizkit]
#ACT
ADDNAMELIST gotkit.txt
GIVE FreshmanSword 1
GIVE FreshmanGlove 2
GIVE FreshmanShirt(M) 1
GIVE FreshmanShirt(F) 1
GIVE FreshmanRing 2
GIVE FreshmanNecklace 1
GIVE FreshmanBelt 1
GIVE FreshmanBoots 1
GIVE FreshmanHelm 1
GIVE Fireball
#SAY
Here is your kit!\
\
<Thanks!/@exit>\

[@taokit]
#ACT
ADDNAMELIST gotkit.txt
GIVE FreshmanSword 1
GIVE FreshmanGlove 2
GIVE FreshmanShirt(M) 1
GIVE FreshmanShirt(F) 1
GIVE FreshmanRing 2
GIVE FreshmanNecklace 1
GIVE FreshmanBelt 1
GIVE FreshmanBoots 1
GIVE FreshmanHelm 1
GIVE Healing
GIVE Poisoning
#SAY
Here is your kit!\
\
<Thanks!/@exit>\

Good luck.
 
Upvote 0