Well as i know a fair few and notice some people ask for help on them might aswell post them here and what their function is.
check - this function checks to see if they have a certain level or item.
checkgold - this checks the gold.
take - this takes the item.
take gold - this takes the persons gold.
#ACT - this is an action you are either giving or taking.
#ELSEACT - this is if the person is being giving sommet or being told to do some other function.
#SAY - this makes the npc say something
#ELSESAY - this makes the npc say something also if they have'nt go something of a certain item/gold or level.
#IF - this is a true or false statement asking the game to see if they have a certain amount of gold or item u have input into the code.
goto - this goes to something else u want it to go too.
@exit - exits the chat.
checklevel - checks the characters level. you can make it so if you want the npc to give something to a person under a certain level you would put it like this. And the space between the take gold has to be there or it will not function properly. Also remember that < stands for smaller and > stands for greater.
[@check]
#IF
checklevel < 12
checkgold 50000
#ACT
give NoobArm(M) 1
take gold 50000
#ELSESAY
Your are either too high, and/or you don't have enough gold.
Basically there i am telling the NPC to check ur under level 12 and check that you have atleast 50000. Then it takes that gold and gives u the noob armour(M). The #ELSESAY is to say that he is over a certain level or he has not got the gold needed to get the item.
\ - This means you are starting a new line as u cnt have a line longer than about 30-40 words long.
\\ - This means start a new paragraph.
<> - these little things also stand to select a certain thing for eg..It is also to write stuff in.
[@Thing]
Hello what would you like to do...?
<Talk about yourstory\@story>
<Nothing nevermind mate.\@exit>
When you click on an NPC in mir and you see the yellow things meaning u can click them when u click on an NPC. thats exactly what that is that i displayed up there. the (<Talk about your story\@story>) bold bit is where the NPC Chat is gonna end up next when it changes page when you click on the (Talk about your Story) so if we carried it on it would look like this..
[@Thing]
Hello what would you like to do...?
<Talk about yourstory\@story>
<Nothing nevermind mate.\@exit>
[@story]
blah blah blah.
and so on you would write the story there then as u cnt make it too long you would put another..
<Carry on..?\@ok> at the bottom of the page about 5 lines down fromw here u started otherwise if u dont it will look off the npc chat box and onto the mir screen where u cnt click the yellow lines. Also that goes for the \ and \\'s if u do not use these they will go off the npc chatbox horizontally and looks completely ****. So they are 1 of the most functions needed when creating an npc script.
Anyway where were we..?
checkslavecount > 1 - this basically tells the game to check that the person using the npc has not got any pets, im not 100% sure if its asking the game to see how many pets he has got for eg. if it asks
"checkslavecount > 1" the guy has 4 pets and then it would say you have too many pets please go away until you have none. Then if he comes back with 1 it still wont give him pets because he has 1 so he must get rid of all of them before he can use that service.
break - this tells the NPC to stop and then you can't do anything else but close the NPC chat off.
recallmob OmaKing 0 5 - this recallsmobs to the specific user and gives it them the first numbers stands for what level it is so it can go from 0 - 7 7 being the best of course and the second number tells the game how many pets you wanna give it them this number can go from 1 to 999999999. but obv if you have the right mind the normal is 5. the Name is what mob you will give the user.
<$USERNAME> this displays the username of the user clicking on the NPC.
<$SERVERNAME> this displays the servername of the server.
<$HIGHMCINFO> this displays who has the highest mc on at that time.
<$HIGHDCINFO> exactly same as mc except shows dc.
<$HIGHSCINFO> exactly same as dc except shows sc.
<$HIGHLEVELINFO> shows the highest level on at that time.
[@main] - this is always the start of the NPC Chat. All the others for eg [@hello] are ones carried on from different NPC chats so if ur telling a story it would be like.
[@main]
Hello im the story teller blah blah/
<I wanna read on\@more?
[@more]
blah blah blah.
And so on till you want to finish the NPC.
GENDER WOMAN/MALE - you use this for gender change npcs, do not be a dope and put.
#IF
GENDER WOMAN/MALE - dont use the slash lols, just pick one.
CHANGEGENDER 0/1 - again this is fairly obvious but what this one does is actually changes your gender, again do not use the slash choose either 0 or 1... 0 is to turn you Male 1 is to turn you Female.
They are the main ones you will ever use in NPC's if theres any more useful ones that i might and will have missed myself please post and i will edit and put it in.
Also ill just create a few basic NPC's and use most of the commands i just showed you above.
check - this function checks to see if they have a certain level or item.
checkgold - this checks the gold.
take - this takes the item.
take gold - this takes the persons gold.
#ACT - this is an action you are either giving or taking.
#ELSEACT - this is if the person is being giving sommet or being told to do some other function.
#SAY - this makes the npc say something
#ELSESAY - this makes the npc say something also if they have'nt go something of a certain item/gold or level.
#IF - this is a true or false statement asking the game to see if they have a certain amount of gold or item u have input into the code.
goto - this goes to something else u want it to go too.
@exit - exits the chat.
checklevel - checks the characters level. you can make it so if you want the npc to give something to a person under a certain level you would put it like this. And the space between the take gold has to be there or it will not function properly. Also remember that < stands for smaller and > stands for greater.
[@check]
#IF
checklevel < 12
checkgold 50000
#ACT
give NoobArm(M) 1
take gold 50000
#ELSESAY
Your are either too high, and/or you don't have enough gold.
Basically there i am telling the NPC to check ur under level 12 and check that you have atleast 50000. Then it takes that gold and gives u the noob armour(M). The #ELSESAY is to say that he is over a certain level or he has not got the gold needed to get the item.
\ - This means you are starting a new line as u cnt have a line longer than about 30-40 words long.
\\ - This means start a new paragraph.
<> - these little things also stand to select a certain thing for eg..It is also to write stuff in.
[@Thing]
Hello what would you like to do...?
<Talk about yourstory\@story>
<Nothing nevermind mate.\@exit>
When you click on an NPC in mir and you see the yellow things meaning u can click them when u click on an NPC. thats exactly what that is that i displayed up there. the (<Talk about your story\@story>) bold bit is where the NPC Chat is gonna end up next when it changes page when you click on the (Talk about your Story) so if we carried it on it would look like this..
[@Thing]
Hello what would you like to do...?
<Talk about yourstory\@story>
<Nothing nevermind mate.\@exit>
[@story]
blah blah blah.
and so on you would write the story there then as u cnt make it too long you would put another..
<Carry on..?\@ok> at the bottom of the page about 5 lines down fromw here u started otherwise if u dont it will look off the npc chat box and onto the mir screen where u cnt click the yellow lines. Also that goes for the \ and \\'s if u do not use these they will go off the npc chatbox horizontally and looks completely ****. So they are 1 of the most functions needed when creating an npc script.
Anyway where were we..?
checkslavecount > 1 - this basically tells the game to check that the person using the npc has not got any pets, im not 100% sure if its asking the game to see how many pets he has got for eg. if it asks
"checkslavecount > 1" the guy has 4 pets and then it would say you have too many pets please go away until you have none. Then if he comes back with 1 it still wont give him pets because he has 1 so he must get rid of all of them before he can use that service.
break - this tells the NPC to stop and then you can't do anything else but close the NPC chat off.
recallmob OmaKing 0 5 - this recallsmobs to the specific user and gives it them the first numbers stands for what level it is so it can go from 0 - 7 7 being the best of course and the second number tells the game how many pets you wanna give it them this number can go from 1 to 999999999. but obv if you have the right mind the normal is 5. the Name is what mob you will give the user.
<$USERNAME> this displays the username of the user clicking on the NPC.
<$SERVERNAME> this displays the servername of the server.
<$HIGHMCINFO> this displays who has the highest mc on at that time.
<$HIGHDCINFO> exactly same as mc except shows dc.
<$HIGHSCINFO> exactly same as dc except shows sc.
<$HIGHLEVELINFO> shows the highest level on at that time.
[@main] - this is always the start of the NPC Chat. All the others for eg [@hello] are ones carried on from different NPC chats so if ur telling a story it would be like.
[@main]
Hello im the story teller blah blah/
<I wanna read on\@more?
[@more]
blah blah blah.
And so on till you want to finish the NPC.
GENDER WOMAN/MALE - you use this for gender change npcs, do not be a dope and put.
#IF
GENDER WOMAN/MALE - dont use the slash lols, just pick one.
CHANGEGENDER 0/1 - again this is fairly obvious but what this one does is actually changes your gender, again do not use the slash choose either 0 or 1... 0 is to turn you Male 1 is to turn you Female.
They are the main ones you will ever use in NPC's if theres any more useful ones that i might and will have missed myself please post and i will edit and put it in.
Also ill just create a few basic NPC's and use most of the commands i just showed you above.
StoryNPC
[@main]
Hello <$USERNAME> im the Story Teller around these\
lands of <$SERVERNAME> would you like to hear my story..?\
I may even include a NooB kit for you and some gold..\
<Sure that would be great\@story-1>\
<Nah thanks mate.\@exit>\\
Hello <$USERNAME> im the Story Teller around these\
lands of <$SERVERNAME> would you like to hear my story..?\
I may even include a NooB kit for you and some gold..\
<Sure that would be great\@story-1>\
<Nah thanks mate.\@exit>\\
[@story-1]
This very spot and village you walk and live in was all\
once ruled by horrid beasts, they stole and took everything\
precious and close to us, they didn't give a damn about\
us, we were the outsiders to them people who lived in the sewers.\
Until one day a Soldier named Lancelot who came from the land of Sabuk\
came to rescue us..train us and help us use skills we would never of\
dreamed of back at Bichon. He did this to help us fight the beasts.\
<Would you like to hear more..?\@yes>\
<no gimmie kit please..\@kit>\\
This very spot and village you walk and live in was all\
once ruled by horrid beasts, they stole and took everything\
precious and close to us, they didn't give a damn about\
us, we were the outsiders to them people who lived in the sewers.\
Until one day a Soldier named Lancelot who came from the land of Sabuk\
came to rescue us..train us and help us use skills we would never of\
dreamed of back at Bichon. He did this to help us fight the beasts.\
<Would you like to hear more..?\@yes>\
<no gimmie kit please..\@kit>\\
[@yes]
The story will continue from here.
The story will continue from here.
[@kit]
#IF
checklevel > 7
#ACT
give gold 10000 <----------------Not sure on the give gold function.
give NooBArmour(M)
give NooBArmour(F)
give NooBNecklace
give NooBRing 2
give NooBBracelet 2
give NooBHelmet
give NooBStone
give NooBBelt
give NooBBoots
give NooBBlade
#ELSESAY
Please go away, you are too high to use me to get kit and gold.
#IF
checklevel > 7
#ACT
give gold 10000 <----------------Not sure on the give gold function.
give NooBArmour(M)
give NooBArmour(F)
give NooBNecklace
give NooBRing 2
give NooBBracelet 2
give NooBHelmet
give NooBStone
give NooBBelt
give NooBBoots
give NooBBlade
#ELSESAY
Please go away, you are too high to use me to get kit and gold.
MapMove NPC
[@main]
Hello <$USERNAME> i am the all in one teleporter..Where would\
you like to go?\\
<1-20 Region Please\@120>\
<21-28 Region Please\@2128>\
<29-45 Region Please\@2945>\
<45 and more Please\@45>\
<Nevermind im offskis.\@exit>\\
Hello <$USERNAME> i am the all in one teleporter..Where would\
you like to go?\\
<1-20 Region Please\@120>\
<21-28 Region Please\@2128>\
<29-45 Region Please\@2945>\
<45 and more Please\@45>\
<Nevermind im offskis.\@exit>\\
[@120]
#IF
checkgold 5000
#ACT
take gold 5000
mapmove <mapnum> <x co ord> <y co ord>
#ELSESAY
you have not got enough to use my service.
#IF
checkgold 5000
#ACT
take gold 5000
mapmove <mapnum> <x co ord> <y co ord>
#ELSESAY
you have not got enough to use my service.
Obv common sense dont use the <> with the mapnums and x and y co ords.
Last edited:
