Probelm with starterkitnpc..

Play Now

IceSlice

Golden Oldie
Golden Oldie
May 24, 2005
1,320
207
250
Habs head rent free
well it seems ok but when i click warrior/taoist/wizard it does'nt come up with anything...heres the script...



i have a feeling its because its..

[@Wiz]
#IF
checklevel 8
#SAY
ah i see your a war then here ya go.
<here you go then/@kit>\
#ELSESAY
Go away you used my services.


[@kit]
#IF
#ACT
give item amount
give item amount
give item amount
etc etc...
<bye for now/@exit>\
 

Attachments

  • StarterKit-0.txt
    1 KB · Views: 9

Far

tinmymouthpl0x
Staff member
Administrator
May 19, 2003
20,683
34
3,288
520
appart from the fact that script is really poorly done, and doesnt even check how many times you've clicked the npc (so u can keep getting the items), and doesnt check you class (so you can get any items). that npc shld run fine, but it wont say anything if your above lvl 8, since you havnt told it to.
 
Upvote 0

Mystickiller

Bored AF
Untrusted Member
Golden Oldie
Dec 24, 2003
1,007
4
174
Minnesota, USA
script said:
[@main]
#IF
checknamelist ..\questname.txt
#ACT
goto @part1
#elsesay
you have already used my services\\

<Exit/@exit>

[@part1]
#IF
checklevel < 9
#SAY
You are level 8 or under so i will give you a gift.\\
<here you go then/@kit> <Exit/@exit>

#ELSESAY
Go away you used my services.\\

<Exit/@exit>


[@kit]
#IF
#ACT
give itemname amount
set [111] 1 (this is a basic flag i recommend you use checknamelist's though which wud b)
addnamelist ..\nameofquest.txt
#SAY
Enjoy your items, you will only get them once.\\
<bye for now/@exit>\

Here is the code reworded a bit and changed around to make it a little bit more useful.
edit - you can see at the top i put in a checknamelist, if you want to use checknamelists then take out the flag that i set at the bottom the "set [111] 1" or if you dont want to use checknamelist's and want to use flags

take out the addnamelist. and change the checknamelist to

IF
[111] 1
#ACT

or something like that check it up i aint got no npc scripts on me.
 
Last edited:
Upvote 0

IceSlice

Golden Oldie
Golden Oldie
May 24, 2005
1,320
207
250
Habs head rent free
appart from the fact that script is really poorly done, and doesnt even check how many times you've clicked the npc (so u can keep getting the items), and doesnt check you class (so you can get any items). that npc shld run fine, but it wont say anything if your above lvl 8, since you havnt told it to.

lol, and your gonna take the piss outta my 2nd try at an NPC? please stfu u gimp.
 
Upvote 0

Revolation

Dedicated Member
Dedicated Member
Dec 7, 2006
22
0
27
here use mine as i dont use it know more

[@main]
#IF
check [107] 1
#SAY
Each new player gets one start kit and\
i'm afraid you already took yours.\
<Close Window/@exit>\ \
#ELSESAY
SERVERNAME - Start Kit\
What? I can't let you go off without\
some start items! Here, take some!\
<Thanks/@Items1> alot. - <Close Window/@exit>

[@Items1]
#IF
#SAY
Please select your class.\
<Warrior/@Warrior> - "Fearless!" \
<Taoist/@Taoist> - "Full of Strength!" \
<Wizard/@Wizard> - "Anomynous!" \
<Close Window/@exit>\\

[@Warrior]
#ACT
GIVE StarterRing 2
GIVE StarterGlove 2
GIVE StarterNeckl
GIVE StarterHelmet
GIVE Fencing 1
GIVE Slaying 1
SET [107] 1
<Close Window/@exit>

[@Taoist]
#ACT
GIVE StarterRing 2
GIVE StarterGlove 2
GIVE StarterNeckl
GIVE StarterHelmet
GIVE Amulet 2
GIVE SpiritSword
GIVE Poisoning
GIVE GreenPoison
GIVE RedPoison
GIVE Healing
SET [107] 1
<Close Window/@exit>

[@Wizard]
#ACT
GIVE StarterRing 2
GIVE StarterGlove 2
GIVE StarterNeckl
GIVE StarterHelmet
GIVE Fireball
GIVE Repulsion
SET [107] 1
<Close Window/@exit>

and for other npcs search smeagols npc scripts
 
Upvote 0