npc script guide

jasonk

Dedicated Member
Dedicated Member
Jun 26, 2004
34
0
52
can any1 give me a guide on making npc script (im a complete noob so it needs 2 be easy 2 understand lol) thx
 

Leglath

Dedicated Member
Dedicated Member
Jul 15, 2004
230
0
63
Sheffield
http://www.lomcn.co.uk/forum/showthread.php?t=17753p
Blaminators guide to NPC commands.

They are simple enough to set up a NPC for example it you wanted to make an npc to say hello and then a players username then give a option to go to another page or exit the script would be

[@main] <--The first section of script a npc runs when clicked
#SAY <--This makes the npc say something obviously
Hello\ <--The \ creates a new line a speech
<$USERNAME>\ <--The command to show a username
<Next Page/@p2>\ <--This is how you create a link to another page with the @p2 signifying where the next page is
<Exit/@exit> <-- This ends the script

[@p2] <-- Directing the link from the previous page to here
#IF <--A check to find if a value is true
checkgold 1000000 <--Check to see if the player has over 1mil in there pack
#SAY
You Have Over 1Million Gold!
#ELSEACT <--If the if statement is negative (in this case the player
doesnt have 1million gold) this signifies the script to perform an action

give gold 1000000
#ELSESAY <--If the statement is negative this tells the NPC to say something (can be used alongside ELSEACT)
There You Are Now You Have Over\
1 Million Gold


Hope it helps although this is said about making 1.4 scripts above to 1.9:
Originally Posted By Xander
Yes it will but you will need to go through the NPC scripts as some commands may have changed and you need to add the (@buy @sell @storage @getback @repair @s_repair) for the certain NPCs


/Leg
 
Upvote 0