Npc Making?

DeathScarlet

Guest
Is anyone willing to help me out by giving me tutorial's on how to make Npc's people say they learned them self but with me it'll take year's lol , People say it's easy it might well be to them but not to me , So is anyone willing to help me out and give me some tutorials on how to make Npc's please?
/.: DeathScarlet :.\
 

YoYoYo

Milo's Sex Slave
Golden Oldie
May 11, 2003
1,090
1
174
My house
Read through the NPC's in NPC_DEF and MARKET_DEF and you should pick it up quickly.

All npc' also start with [@main]

[@....] are the menu's. Links are done like <word/@link>

So if i wanted to goto a menu called Menu and i wanted the link to be Next i would put:

<Next/@menu>

<word/@exit> - quits the current npc box.
 

DeathScarlet

Guest
Very nice m8 thnx for that :) , Is it better to pick it up yourself or off someone else ?
/.: DeathScarlet :.\
 

UltimateWar

Dedicated Member
Dedicated Member
May 6, 2003
114
0
93
uk
Basic Commands :

[@...] For a menu

<Something/@something>
this is used for options, when you want to choose a kit perhaps....

[@main]
#SAY
Would you like a kit? \
<Ye/@ye>
<No/@no>

[@ye]
#ACT
give moo 1
give cow 1
give cheese 1
break

also
#IF
is used to check if the person using the npc is the right lvl or has the right item.

eg.

#IF
checkitem mirkingticket 1
#SAY
You have a ticket?
#ELSESAY<------This is used when the person doesn't have the requirements on #IF
Hmmm you dont have the ticket? Get it!
break

Also
#ELSEACT<----this is used when the person doesn't have the right requirments on #IF and gives or takes or does something other than talk.


give <--- When you want to give something when you want to give something in the players bag
take <----When you want the npc to take something away from the players bag
change <---ChangJob ChangeLevel etc...
check<----check they have an item.
mapmove <----to teleport them to a different map


Not all the basics, but should do for simple npcs.
 

DeathScarlet

Guest
Very helpful what do u make the Npc's on NotePad? im gonna try make one now , Wish me luck ;) .
/.: Death Scarlet :.\
Edit.: Do i have to put #give ?
/.: Death Scarlet :.\
 
Last edited:

UltimateWar

Dedicated Member
Dedicated Member
May 6, 2003
114
0
93
uk
no heres an example :)
Oh and I use notepad :P

[@main]
#IF
checklevel 40
#SAY
Well, now that your 40 I can give you your kit! \
<Ok/@ok>
<Nevermind/@exit>
#ELSESAY
Gosh, your not a high enough lvl! \
<What?/@what>
<Exit/@exit>

[@what]
#SAY
Well to use my experties you have to be a high lvl! \
<How High?/@high>
<Exit/@exit>

[@high]
Lvl 40 to be exact, so go lvling! \
<Exit/@exit>


[@ok]
#SAY
Heres the normal kit! \
#ACT
give strengthblade 1
give strengthring 1
give strengthring 1
give strengthbrace 1
give strengthbrace 1
give strengthneck 1
give strengthhelm 1
break


spelling is bad i know, im not pure english ^^
that wont have any bugs in i think

hope it helps
 

DeathScarlet

Guest
Umm still dont get it m8 , lol. Right well there u have gave me the basic command's of how to do a kitman which is good because that's what i wanted to start on , So Thank You for that ;) , Im gonna try make one
Now ;).
/.: DeathScarlet :.\
Edit: I wanna check Gender and Class , How do it do that ?
/.: DeathScarlet :.\
 
Last edited:

Far

tinmymouthpl0x
Staff member
Administrator
May 19, 2003
20,683
34
3,288
520
look at ready made npcs. they are the easiest things to learn off, people explain things much harder than they actually are.. but jus a v small example

[@main]
#SAY
Hi, would you like some pie?\
<Yes/@yes>\
<No/@exit>\

[@yes]
#SAY
Heres pie\
#ACT
give Pie 1

Now if you dont understand how that works then i wldnt bother learning how to script an npc :P
 

DeathScarlet

Guest
Farill explain it easily there , I understand now , Thank You ;) .
/.: DeathScarlet :.\
Edit.: UltimateW could u send me that Pm again please if u have it , I deleted it by accident sorry ><
/.: DeathScarlet :.\
 
Last edited: