List of NPC Commands.

Mu online season 21 - grand opening

IceSlice

Golden Oldie
Golden Oldie
May 24, 2005
1,320
207
250
Habs head rent free
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.

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>\\​

[@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>\\​

[@yes]
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.​

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>\\​

[@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.​

Obv common sense dont use the <> with the mapnums and x and y co ords.​
 
Last edited:

IceSlice

Golden Oldie
Golden Oldie
May 24, 2005
1,320
207
250
Habs head rent free
PetRenterNPC


[@main]
Hello <$USERNAME>, i am the PetRenter how may i do you..?\
<I would ike to buy som pets please\@pet>\
<Nevermind just looking\@exit>\\

[@pet]
Ok in what region are you looking for..?\
<1-12\@112>\
<13-21\@1321>\
<22-35\@2235>\
<36-45\@3645>\
<46 and more\@46>\
<Just looking\@exit>\\

[@112]
Ok i can give you..\
<Skeleton\@skel>\
<Oma\@oma>\
<BoneWarrior\@bw>\
<OmaFighter\@of>
<Never mind ill do something else.\@exit>

[@skel]
#IF
checklevel < 12
checkslavecount < 1
checkgold 10000
#ACT
take gold 10000
recallmob Skeleton 0 5
break
#ELSESAY
Sorry you are either too high or have'nt\
got the money nessacary to get the mob.\\



Gender/StatCheckerNPC

[@main]
Hello <$USERNAME>, i'm the GenderChanger and stat checker\
i can show you the highest level and dc/sc/mc on the server\
at the present time i can also change your gender if you like..?\\
<Sure ok i wanna change gender\@gen>
<Ok let's see some stats\@stat>
<Nevermind changed my mind\@exit>

[@gen]
Hello again, what can i change you into my troubled son.\
<Male please...\@male>\
<Female Please...\@fem>\
<Nevermind i cba.\@exit>\\

<male>
#IF
GENDER WOMAN
checkgold 1000000
#ACT
CHANGEGENDER 0
take gold 1000000
#ELSESAY
Sorry, you are already male or you have'nt got enough gold.\\

[@fem]
#IF
GENDER MALE
checkgold 1000000
#ACT
take gold 1000000
CHANGEGENDER 1
#ELSESAY
Sorry, you are either already female and/or you have\
not got enough gold.\\

[@stat]
Hello again, What would you like to see..?\
<HighMCPlease\@mc>\
<HighDCPlease\@dc>\
<HighSCPlease\@sc>\
<HighLevelPlease\@hl>\
<Nevermind cyas...\@exit>

[@mc]
#ACT
<$HIGHMCINFO>
break

[@sc]
#ACT
<$HIGHSCINFO>
break

[@dc]
#ACT
<$HIGHDCINFO>
break

[@hl]
#ACT
<$HIGHLEVELINFO>
break


I hope this help a lot of people as i say if i did something wrong please pm me or leave a note and i will edit/add it in.

Also if this thread is worth a sticky please do so :D Took me ages to write anyway.​
 
Last edited:
Upvote 0

Far

tinmymouthpl0x
Staff member
Administrator
May 19, 2003
20,683
34
3,288
520
wldnt say thats a list of npc commands. uve only got the most basic of commands there.

but still, nice add.
 
Upvote 0

Fire

Golden Oldie
Golden Oldie
Apr 15, 2003
1,302
1
175
for a list of npc commands use TD's list, but your list gives good examples :)
 
Upvote 0

IceSlice

Golden Oldie
Golden Oldie
May 24, 2005
1,320
207
250
Habs head rent free
Edited 1st/2nd post make it a little more eye catching as its a bit boring without pretty bold writing and pretty coulors. Anyway could a Moderator please change the thread name to "Help on NPC's 1.4/1.9/2.3 as i will add to the thread with Scripts of my own and help with command function and hwo they work.

This NPC Script is my 1st one on /settingchecking flags i haven't trialled an error'd yet but i will try as soon as possible and write a basic easy tut on setting flags.

[@main]
Hello <$USERNAME>, im the high inquisitor of the meat\
association, i give great gifts for mounds of meat..\
Do you wish to take on the Meat Quest..?\
<Sure why not..\@mq>\
<Nah thanks mate.\@exit>\\


[@mq]
#IF
#ACT
SET [500] 1
goto @quest


[@quest]
Ok, where were we..? Oh yes, to continue on this quest\
i need you to bring me some meat, now as you are only noob\
you will not need to do a lot to gain the rewards at the end..\
You need to bring me 10 pieces of deermeat, 5 pieces of\
chicken, 2 deerbloods and 5000 gold coins.\
I know it seems like a lot but it really isn't.\
<What are the rewards..?\@reward>
<Ok i'll do it\@q1>
<Where can i get all these..?\@get>
<No thanks then.\@exit>


[@reward]
The rewards for this are as follows...\
NoobArm(M)-(F)\
NoobBrace\
NoobRing\
NoobNeck\
NoobHelm\
NoobBlade/Fan/Staff\
and last but not least 50000.\\
<Cool take me back then.\@quest>
<Cool i'll come back later.\@exit>


[@q1]
#IF
check [500] 1
#SAY
Congratulations you have finished the quest.
#ELSESAY
Bring me the stuff and stop trying to con me idiot.
<Ok got em bud\@got>
<Ok\@exit>


[@got]
#IF
checkitem deerblood 2
checkitem chicken 5
checkitem deermeat 10
checkgold 5000
#ACT
take gold 5000
take chicken 5
take deermear 10
take deerblood 2
goto @items


[@items]
#IF
#ACT
give gold 50000
give NoobArm(M)
give NoobArm(F)
give NoobBlade
give NoobStaff
give NoobFan
give NoobBrace 2
give NoobRing 2
give NoobHelm
give NoobNeck
set [500] 1


[@get]
You can get all these items off the mobs around Bichon Province\
my friend, Deers, Hens, Chickens.\\
<Ok thanks mate brb.\@exit>


I can safely say that when using flags for quests etc do not use the same flag on a different quest otherwise it just fooks up.

Also a flag number can be any number you want it to be, obviously when u set the flag thats putting it on that character permenently and when u check the flag obviously thats checking it to make sure you aren't trying to con the NPC out of his items and money.
 
Last edited:
Upvote 0