NPC Help

Mu online season 21 - grand opening

Tom27

Golden Oldie
Golden Oldie
Sep 15, 2005
1,877
78
185
Norwich
attempting to do a quest sorta like this

main
say
hello, here is a selection of mobs u can kill to gain achievements

rme wt zt etc

checknamelist wt.txt
elsesay
...
ipnamelist

im trying to avoid doing flags, any ideas on doing this, I need a message box to appear on the player once the boss has been killed, and stop them repeating the quest over again. need any help possible atm pls.
My minds gone completely blank lols.
 

lordatrox

Dedicated Member
Dedicated Member
Aug 28, 2008
164
0
42
use something like this,

(add this into Q-Function)

[@onkillmob(zumataurus)]
#IF
checknamelist ../achivements/zt.txt
#ACT
removenamelist ../achivements/startzt.txt
addnamelist ../achivements/killzt.txt
linemsg 6 "You have killed ZT. return to "NPC" to collect your reward"
#ELSEACT
BREAK


then for ya npc

#if
checknamelist ../achivements/ztcomp.txt
#SAY
i have nothing further for you to do.
#elseact
goto @main-1

[@main-1]
#if
checknamelist ../achivements/killzt.txt
#act
goto @ztcomp
#elseact
goto @main-2

[@ztcomp]
#say
here is your reward
#ACT
removenamelist ../achivements/killzt.txt
addnamelist ../achivements/ztcomp.txt
Give "reward"
break

[@main-2]
Hunt and kill zt for me and i shall reward you\
<ok/@startzt>\
<no thanks/@exit>\

[@startzt]
#say
he is located in the kings room of zuma temple, be sure you have the final blow!\
#act
addnamelist ../achivements/startzt.txt
break


think thats it lol :p

have some fun with it :)
 
Upvote 0

transporter

LOMCN Veteran
Veteran
Jul 12, 2008
608
8
105
Darlington
NPC

Code:
[@main]
Please select your Quest.\ \
<WoomaTaurus/@Wooma>\

[@Wooma]
#IF
CHECK [6] 1
#ACT 
goto @Complete
#ELSEACT
goto @wooma1
[@Wooma1]
I have had many bad times trying to slay the\
WoomaTaurus, no matter what i tried, i failed to\
Defeat this beast, if you think you are upto my\
Challenge of slaying this beast for me, i shall\
Reward you for your time and effort.\
Do you except my challenge?\
<Yes/@Wooma2>\
<No Thanks/@Main>\

[@Complete]
#IF
CHECKIPLIST Wooma.txt
#ACT
GOTO @IPFail
#ELSEACT
GOTO @Comp-1

[@IPFAIL]
Your IP has been recorded, you have already done\
This Quest.\ \
<Close/@exit>

[@Comp-1]
#IF
CHECK [7] 1
#ACT
GOTO @Comp
#ELSEACT
GOTO @Prize

[@comp]
You have already completed this quest.\ 
even on another character, your IP was recorded\
As you can only do this quest once to stop exploits\
<Close/@exit>\

[@Prize]
#IF
CHECKBAGSIZE > 2
#ACT 
GIVE QuestPotion 1
SET [7] 1		
ADDIPLIST Wooma.txt
#SAY
As this wasn`t the hardest quest on the world, i shall\
Reward on the difficulty of the quest.\
Here is your reward.\
#ELSESAY
You need atleast 3 bag spaces.\ \ 
<Close/@exit>\


[@wooma2]
#ACT
SET [5] 1
#SAY
Ok return to me for your prize when you get a popup\
Saying to do so......\
<Exit/@exit>\

In Q-Function.


[@ONKILLMOB(Woomataurus)]
#IF
CHECK [5] 1
#ACT
MESSAGEBOX "Thanks for killing the Woomataurus, come see me for your prize."
SET [6] 1
SET [5] 0
break
#ELSEACT
break
 
Upvote 0