Npc

Mu online season 21 - grand opening

AriaQ

Dedicated Member
Dedicated Member
Mar 8, 2004
229
0
42
UK
OK iv just got this NPC, but it dont work
Can eny 1 have a look please, dont mined the swering it will be cut out
of the proper version.
so the NPC works up to
[@main_1]
Get me 10 pieces of meat and you can have a\
starter kit, and ill throw in some gold\
if your fast\ \
<do quest/@quest>
<Exit/@exit>
But after that nothing works. . . . . here it is


;Info [ Npc Name{Helper} X=328 Y=267 MapName={Bichon-Province} ]
[@main]
#IF
check [001] 1
#ACT
goto @away
break

#IF
check [568] 1
#ACT
goto @getmeat
break

#IF
#ACT
goto @main_1
break

[@away]
#IF
check [001] 1
#ACT
goto @othermain
#ELSESAY
<$USERNAME>, Don't Piss Around\
I have given you your items\
and i dont give a **** what you did with them\\
<fine/@exit>

[@main_1]
Get me 10 pieces of meat and you can have a\
starter kit, and ill throw in some gold\
if your fast\ \
<do quest/@quest>
<Exit/@exit>

[@quest]
#ACT
set [568] 1
close

[@getmeat]
#IF
check [568] 1
#ACT
goto @gotkit
#ELSEACT
goto @checkmeat

[@checkmeat]
#IF
checkitem meat 10
#ACT
goto @gotmeat
#ELSESAY
Quickly fetch the meat!\ \
<Exit/@exit>

[@gotmeat]
#ACT
set [568] 1
take meat 10
give lightarmour(m) 1
give lightarmour(f) 1
give bronzehelmet 1
give precisionneck 1
give shortsword 1
give steelbracelet 2
give hornring 2
give gold 20000
SET [001] 1
#SAY
Here's the kit I promised,\
have the gold any way\\
<Thanks/@exit>
 

sparx14

Guest
im having some problems with this npc aswell.... strangley its at the same bit aswell :( someone help me plz lol AriaQ can manage with out but i need help muhahahaha :P
 

AriaQ

Dedicated Member
Dedicated Member
Mar 8, 2004
229
0
42
UK
main_1 works thou

This is Exacly wots up with it

I click on the NPC

brings up about the quest and 2 options to pick

do quest , Exit

so i click on Do quest

and it exists

then i click on it again, with or with out the meat and it dose nothing
Just stands there
 

AriaQ

Dedicated Member
Dedicated Member
Mar 8, 2004
229
0
42
UK
:P m8 its all ready there lol, can any one else hlp?

Thanx any ways Lotho
 

Shard

LOMCN Veteran
Veteran
Loyal Member
Jul 12, 2003
1,267
1
174
[@main]
#IF
check [001] 1
#ACT
goto @away
break

#IF
check [568] 1
#ACT
goto @getmeat
break

#IF
#ACT
goto @main_1
break

[@away]
#SAY
<$USERNAME>, Don't Piss Around\
I have given you your items\
and i dont give a **** what you did with them\\
<fine/@exit>

[@main_1]
Get me 10 pieces of meat and you can have a\
starter kit, and ill throw in some gold\
if your fast\ \
<do quest/@quest>
<i have the meat@checkmeat>
<Exit/@exit>

[@quest]
#ACT
set [568] 1
#SAY
Now go fetch the meat.\\

<Exit./@exit>

[@checkmeat]
#IF
check [568] 1
checkitem meat 10
#ACT
goto @gotmeat
#ELSESAY
Quickly fetch the meat!\\
<Exit/@exit>

[@gotmeat]
#ACT
set [569] 1
take meat 10
give lightarmour(m) 1
give lightarmour(f) 1
give bronzehelmet 1
give precisionneck 1
give shortsword 1
give steelbracelet 2
give hornring 2
give gold 20000
SET [001] 1
#SAY
Here's the kit I promised,\
have the gold any way\\
<Thanks/@exit>

I hope that works, I had to redo some of it.
 

AriaQ

Dedicated Member
Dedicated Member
Mar 8, 2004
229
0
42
UK
aww ty eva so much ganna test it now

*edit*
still dont work m8 dont no wots up with it :( its not working at the same place
as b4

*edit2*
Just relised wot lotho ment :P [@chackmeat] need its name changed :) to
[@getmeat]. . . .should do the trick, ill keep y0u posted
 
Last edited:

sparx14

Guest
npc working lol as Aria didnt repy i might aswell (Aria is on my server team lol) thanx for the help all :)
 

AriaQ

Dedicated Member
Dedicated Member
Mar 8, 2004
229
0
42
UK
o.0 yes i fixed it, now were going in to more complex NPC's :)
 

istheremetal

LOMCN n00bie
Apr 11, 2004
3
0
12
This is what i came up with frm your basic template, i have 3 NPC's WizHelp, WarHelp and TaoHelp. Each of the NPC's check for the class and wether they havedone the quest before. I am quite happy with my 15mins work. :)
Edit: My server has a lvl 20 start limit btw. :)


[@main]
#IF
check [569] 1
#ACT
goto @Dupe
#ELSEACT
goto @checkjob

[@Dupe]
Dont try to do me!!\
<Exit/@exit>

[@checkjob]
#IF
checkjob Wizard
#ACT
goto @dialog
#ELSEACT
goto @wrong

[@wrong]
Damn you use your own helper!!!\
<Fine/@exit>

[@dialog]
Get me 10 pieces of meat and you can have a\
starter kit, and ill throw in some gold\
if your fast\ \

<Do quest/@quest>\
<I have the meat/@checkmeat>\
<Exit//@exit>

[@quest]
#ACT
set [568] 1
#SAY
Now go fetch the meat.\\

<Exit./@exit>

[@checkmeat]
#IF
check [568] 1
checkitem meat 10
#ACT
goto @gotmeat
#ELSESAY
Quickly fetch the meat!\\
<Exit/@exit>

[@gotmeat]
#ACT
take meat 10
give lightarmour(m) 1
give lightarmour(f) 1
give MagicHelmet 1
give BlueThunder 1
give HookedSpear 1
give EbonyBracelet 2
give SerpentEyeRing 2
give gold 20000
give GreatFBall 1
give Thunderbolt 1
give elecshock 1
give HellFire 1
give Repulsion
set [569] 1
#SAY
Here's the kit I promised,\
have the gold any way\\
<Thanks/@exit>
 
Last edited:

sparx14

Guest
well erm while this topic is still here erm.... lol need a lil help with this 1... it just says i dont have enuf cash and i do.... the thing is i cant see any errors as it all looks ok

[@Main]
#IF
checkpkpoint 2
#SAY
I don't want to trade with a person\
like you! \
<Exit/@exit>
#ELSEACT
goto @main-1

[@main-1]
Welcome <$USERNAME>!\
I can service you the Following\ \ \
<Change Hair/@CheckGold>\ \
<Exit/@exit>

[@CheckGold]
#IF
check gold 5000
#ACT
goto @ChangHair
#ELSESAY
I can't do this because you dont have any money\ \
<Exit/@exit>

[@ChangHair]
#IF
gender man
#ACT
goto @ChangHairMan
#ELSEACT
goto @ChangHairWoman

[@ChangHairMan]
Tell me what type you want!\ \
<Cool/@hair0> <Handsome/@hair1>\ \
<Exit/@exit>

[@ChangHairWoman]
Tell me what type you want!\ \
<ShortCut/@hair1> <LongHair/@hair0>\ \
<Exit/@exit>

[@hair0]
#ACT
marry Hair 0
#SAY
^_^ your hair changed...\ \
<Exit/@exit>

[@hair1]
#ACT
marry Hair 1
#SAY
^_^ yours hair changed...\ \
<Exit/@exit>
 

Crystal

Dedicated Member
Dedicated Member
Apr 26, 2004
63
0
32
Your error is in your [@checkgold] routine. The line:

check gold 5000

should be:

checkgold 5000
 

sparx14

Guest
thanx working now :) but erm ... it doesnt take the cash lol >.< how do i make it take cash ? sumit like.....

take gold 5000
goto @ChangeHair

is that rite ?
 

sparx14

Guest
EDIT: grrr soz i didnt fix it >.< help plz sum1 lol i need it 2 take the cash
 
Last edited:

sparx14

Guest
yea but if they havent got the gold it will still work if i just make it takegold erm neway i think i got it but it wont forward me to the check gender bit :( take a look

checkgold 5000
#ACT
goto @takemoney
#ELSESAY
I can't let you use my services\
because you havent got 5K gold\ \
<Exit/@exit>

[@takemoney]
#IF
Checkgold 5000
#ACT
take gold 5000
#SAY
ok now i have the money you may\
use my services.\\
<Use Services/@ChangHair>


[@ChangHair]
#IF
gender man
#ACT
goto @ChangHairMan
#ELSEACT
goto @ChangHairWoman

[@ChangHairMan]
Tell me what type you want!\ \
<Bald/@hair0> <Handsome/@hair1>\ \
<Exit/@exit>

[@ChangHairWoman]
Tell me what type you want!\ \
<ShortCut/@hair1> <LongHair/@hair0>\ \
<Exit/@exit>

[@hair0]
#ACT
marry Hair 0
#SAY
^_^ your hair changed...\ \
<Exit/@exit>

[@hair1]
#ACT
marry Hair 1
#SAY
^_^ yours hair changed...\ \
<Exit/@exit>
______________________________________________________
EDIT: ok all i got it FULLY working :) here is the script
--------------------------------------------------------------

Code:
;Npc Edited by SpArX™ (Please dont delete my name)
[@Main]
#IF
checkpkpoint 2
#SAY
I don't want to trade with Pker\ 
<Exit/@exit>
#ELSEACT
goto @main-1

[@main-1]
Welcome <$USERNAME>!\
Whould you like to use my service?\ \ \
<Change Hair/@CheckGold>\ \
<Exit/@exit>

[@CheckGold]
#IF
checkgold 5000
#ACT
goto @takemoney
#ELSESAY
I can't let you use my services\
because you havent got 5K gold\ \
<Exit/@exit>

[@takemoney]
#IF
Checkgold 5000
#ACT
take gold 5000
#SAY
ok now i have the money you may\
use my services.\ \
<Use Services/@ChangHair>\ \

#ELSESAY
dont try and fool me i know you havent\
got any money!\
<Leave/@exit>\ \

[@ChangHair]
#IF
gender man
#ACT
goto @ChangHairMan
#ELSEACT
goto @ChangHairWoman

[@ChangHairMan]
Tell me what type you want!\ \
<Bald/@hair0> <Handsome/@hair1>\ \
<Exit/@exit>

[@ChangHairWoman]
Tell me what type you want!\ \
<ShortCut/@hair1> <LongHair/@hair0>\ \
<Exit/@exit>

[@hair0]
#ACT
marry Hair 0
#SAY
^_^ your hair changed...\ \
<Exit/@exit>

[@hair1]
#ACT
marry Hair 1
#SAY
^_^ yours hair changed...\ \
<Exit/@exit>
 
Last edited: