Making A Challenge NPC

Mu online season 21 - grand opening

redwolf187

Dedicated Member
Dedicated Member
Aug 3, 2008
33
0
32
yeh as above im trying to make a challenge npc for a special room were mobs can spawn how could i start it off???
 

transporter

LOMCN Veteran
Veteran
Jul 12, 2008
608
8
105
Darlington
Town NPC
Code:
[@Main]
Hello, do you fancy taking my challenge?\ 
This will help show your ability to defend our Village.\ 
<Yes/@Yes>\
<Exit/@Exit>\

[@Yes]
Ok, i will teleport you to a place there you\
Can talk to the challenge NPC, he will explain\
Things a little more to you.\
Do you want to go?\ \
<Yes/@Yes-1>\
<No/@Exit>\

[@Yes-1]
#IF
CHECKHUM f009 1
#ACT
Goto @Reject
#ELSEACT
Goto @Yes-2

[@reject]
Somebody else is currently taking the challenge.\ \ \
<Ok/@exit>\\

[@Yes-2]
#IF
CHECKSLAVECOUNT < 1
#ACT
Mapmove f009 100 90
Give TownTeleport
#SAY
Here we go.\ \ \
#ELSESAY
You must currently have a pet and they are forbidden\
For use in the challenge.\ \
<Exit/@Exit>

NPC

Code:
[@main]
#IF
CHECKREALMONMAP f009 1
#SAY
Please kill all monsters before we continue!\ \
<Close/@exit>\
#ELSEACT
goto @start

[@start]
#IF
CHECK [900] 1
#ACT
goto @check
#ELSEACT
goto @start-1

[@start-1]
#SAY
Welcome <$USERNAME>, I am Rocky the Challenge NPC!\
I will give you a series of Monsters for you to battle!\
The last challenge will be a Monster of Your Choice!\ 
You will get a cash reward every challenge you complete!\ \
<Continue/@start-2>
#ACT
SET [900] 1

[@start-2]
#SAY
Are you ready to start?\ \
<Start Challenge/@mob0>\

[@start-3]
#IF
CHECK [917] 1
#ACT
goto @check17
#ELSEACT
goto @start-4

[@start-4]
#ACT
goto @mob0
close

[@check]
#IF
CHECK [901] 1
#ACT
goto @check2
#ELSEACT
goto @start-3

[@check2]
#IF
CHECK [902] 1
#ACT
goto @check3
#ELSEACT
goto @battle1

[@check3]
#IF
CHECK [903] 1
#ACT
goto @check4
#ELSEACT
goto @battle2

[@check4]
#IF
CHECK [904] 1
#ACT
goto @check5
#ELSEACT
goto @battle3

[@check5]
#IF
CHECK [905] 1
#ACT
goto @check6
#ELSEACT
goto @battle4

[@check6]
#IF
CHECK [906] 1
#ACT
goto @check7
#ELSEACT
goto @battle5

[@check7]
#IF
CHECK [907] 1
#ACT
goto @check8
#ELSEACT
goto @battle6

[@check8]
#IF
CHECK [908] 1
#ACT
goto @check9
#ELSEACT
goto @battle7

[@check9]
#IF
CHECK [909] 1
#ACT
goto @check10
#ELSEACT
goto @battle8

[@check10]
#IF
CHECK [910] 1
#ACT
goto @check11
#ELSEACT
goto @battle9

[@check11]
#IF
CHECK [911] 1
#ACT
goto @check12
#ELSEACT
goto @battle10

[@check12]
#IF
CHECK [912] 1
#ACT
goto @check13
#ELSEACT
goto @battle11

[@check13]
#IF
CHECK [913] 1
#ACT
goto @check14
#ELSEACT
goto @battle12

[@check14]
#IF
CHECK [914] 1
#ACT
goto @check15
#ELSEACT
goto @battle13

[@check15]
#IF
CHECK [915] 1
#ACT
goto @check17
#ELSEACT
goto @battle14

[@Check17]
#SAY
Congratulations!!!\
You have sucessfully complete the Challenge!\
Please Take Your Reward!\ \
<Cash/@cash>\ 



[@Cash]
<10 Million Gold/@cashrew>\ \
<Back/@Check17>\

[@Cashrew]
Thank you again for taking this challenge!\
Please come back soon!\
Are you ready to take your prize?\ \
<Yes/@Getgold>\
<Back/@Cash>\

[@getgold]
#if
CHECKNAMELIST Challenge.txt
#ACT
goto @reject
#elseact
goto @give

[@reject]
Sorry but you have already recieved \
Your reward for this challenge..\ \ \ 

<Ok/@Exit>\


[@Give]
#ACT
Addnamelist challenge.txt
Give GoldChest 1
mapmove JayZ3 161 126
Close

[@battle1]
#SAY
Well done, was a bit easy thou! That was just a warm up!\ 
Are you ready for the next challenge?\ \
<Continue/@mob1>\

[@battle2]
#SAY
Well done, still warming up at the minute!\
Are you ready for the next challenge?\ \
<Continue/@mob2>

[@battle3]
#SAY
You made that look easy!\ 
Shall we move on?\ \
<Continue/@mob3>

[@battle4]
#SAY
You made a meal out of that didnt you!\
Shall we continue?\ \
<Continue/@mob4>\

[@battle5]
#SAY
They didnt have a chance! You are good arnt you!\
Ok, lets get on to the next one!\ \
<Continue/@mob5>\

[@battle6]
#SAY
That was great to watch! You should be proud!\
Ok, lets move on!\ \
<Continue/@mob6>\

[@battle7]
#SAY
Well now were getting warmed up!!\
Lets see what else I have in store for you!\ \
<Continue/@mob7>\

[@battle8]
#SAY
You have proved yourself my child!\
Are we finished!? .... Shall we see?\ \
<Continue/@mob8>\

[@battle9]
#SAY
Now we start getting hard!\
Hope you can handle the pressure!\ \
<Continue/@mob9>\

[@battle10]
#SAY
You are one fine hero!\
You bravery hasnt gone unnoticed!\ \
<Continue/@mob10>\

[@battle11]
#SAY
I am speechless! You are still here! But how?!\
Shall we continue?\ \
<Continue/@mob11>\

[@battle12]
#SAY
Ooh! Encore! Encore!\
That was remarkable!! Have you done this before!\ \
<Continue/@mob12>\

[@battle13]
#SAY
That was very tough indeed!\
You did well Hero!  Are you ok to carry on?!\ \
<continue/@mob13>\

[@battle14]
#SAY
Well done <$USERNAME>! That was amazing!\
But now, you have one last challenge!\
You get to choose a boss, you need to beat him\
to complete this Challenge and get Rewarded!\ \
<Continue/@mob141>\

[@Mob0]
#ACT
SET [901] 1
MONGENEX f009 102 93 OmaFighter0 7 6
close

[@Mob1]
#ACT
give gold 10000
MONGENEX f009 102 93 OmaFighter0 7 6
MONGENEX f009 102 93 OmaWarrior1 7 5
SET [902] 1
close

[@Mob2]
#ACT
give gold 30000
SET [903] 1
MONGENEX f009 102 93 Tongs0 7 5
MONGENEX f009 102 93 BlackMaggot0 7 5
close

[@Mob3]
#ACT
give gold 50000
SET [904] 1
MONGENEX f009 102 93 Tongs0 7 4
MONGENEX f009 102 93 BlackMaggot0 7 4
MONGENEX f009 102 93 BigRat0 7 6
MONGENEX f009 102 93 EvilTongs 3 2
close

[@Mob4]
#ACT
give gold 100000
SET [905] 1
MONGENEX f009 102 93 Tongs 7 3
MONGENEX f009 102 93 BlackMaggot 7 4
MONGENEX f009 102 93 BigRat99 7 5
MONGENEX f009 102 93 BugBatMaggot 7 1
MONGENEX f009 102 93 EvilSnake 5 1
close

[@Mob5]
#ACT
give gold 150000
SET [906] 1
MONGENEX f009 102 93 ArmouredAnt 7 4
MONGENEX f009 102 93 SoldierAnt 4 3
MONGENEX f009 102 93 DungeonDung 4 5
close

[@Mob6]
#ACT
give gold 200000
SET [907] 1
MONGENEX f009 102 93 ArmouredAnt 7 4
MONGENEX f009 102 93 SoldierAnt 4 3
MONGENEX f009 102 93 DungeonDung 4 5
MONGENEX f009 102 93 DungeonBat 4 2
MONGENEX f009 102 93 DungeonMaggot 4 1
close

[@Mob7]
#ACT
give gold 250000
SET [908] 1
MONGENEX f009 102 93 ArmouredAnt 7 4
MONGENEX f009 102 93 VillageWolf 3 4
MONGENEX f009 102 93 VillageGhoul 4 4
MONGENEX f009 102 93 GreatStatue 7 1
MONGENEX f009 102 93 GreatGuardian 7 1
close

[@Mob8]
#ACT
give gold 300000
SET [909] 1
MONGENEX f009 102 93 GreatStatue 7 2
MONGENEX f009 102 93 GreatGuardian 7 2
MONGENEX f009 102 93 GTArcher 7 3
MONGENEX f009 102 93 GTBlademan 7 2
close

[@Mob9]
#ACT
give gold 400000
SET [910] 1
MONGENEX f009 102 93 GreatGuardian 7 4
MONGENEX f009 102 93 GreatStatue 7 2
MONGENEX f009 102 93 GreatMoth 7 3
MONGENEX f009 102 93 GTArcher 7 4
MONGENEX f009 102 93 GTCaptain 7 4
close

[@Mob10]
#ACT
give gold 500000
SET [911] 1
MONGENEX f009 102 93 GreatGuardian 7 4
MONGENEX f009 102 93 GreatStatue 7 2
MONGENEX f009 102 93 GreatMoth 7 3
MONGENEX f009 102 93 GTArcher 7 4
MONGENEX f009 102 93 GTCaptain 7 4
MONGENEX f009 102 93 GTBlademan 7 4
close

[@Mob11]
#ACT
give gold 550000
SET [912] 1
MONGENEX f009 102 93 GreatGuardian 7 4
MONGENEX f009 102 93 GreatStatue 7 3
MONGENEX f009 102 93 GreatMoth 7 4
MONGENEX f009 102 93 GTArcher 7 4
MONGENEX f009 102 93 GTCaptain 7 4
MONGENEX f009 102 93 GTBlademan 7 4	
MONGENEX f009 102 93 VillageSoldier 7 2
close

[@Mob12]
#ACT
Give Gold 600000
SET [913] 1
MONGENEX f009 102 93 GreatGuardian 7 4
MONGENEX f009 102 93 GreatStatue 7 3
MONGENEX f009 102 93 GreatMoth 7 4
MONGENEX f009 102 93 VillageFighter 7 3
MONGENEX f009 102 93 GTCaptain 7 4
MONGENEX f009 102 93 VillageWooma 7 3	
MONGENEX f009 102 93 VillageSoldier 7 2
close

[@Mob13]
#ACT
Give Gold 1000000
SET [914] 1
MONGENEX f009 102 93 GreatGuardian 7 5
MONGENEX f009 102 93 GreatStatue 7 5
MONGENEX f009 102 93 GreatMoth 7 5
MONGENEX f009 102 93 VillageFighter 7 5
MONGENEX f009 102 93 GTCaptain 7 5
MONGENEX f009 102 93 VillageWooma 7 5	
MONGENEX f009 102 93 VillageSoldier 7 5
close

[@mob141]
#SAY
Which Monster would you like to Battle?\ \
<ElderMirKing/@mir> ~ <GreatZumaKing/@King> ~ <VillageLord/@Lord>\

[@mir]
#ACT
SET [915] 1
MONGENEX f009 102 93 ElderMirKing 5 1
close

[@King]
#ACT
SET [915] 1
MONGENEX f009 102 93 GreatZumaKing 5 1
close

[@Lord]
#ACT
SET [915] 1
MONGENEX f009 102 93 VillageLord 5 1
close

Obviously needs editing to suit your server.
 
Upvote 0