Some help with the challenge room npc

Play Now

Nightwolf

Developer
VIP
Jul 16, 2003
2,133
21
265
Manchester, UK
ok this is an npc i've not really done before but i trying to do the challenge room npc like on eu that spawns the mobs i know what PARAM1 PARAM2 PARAM3 which is map name and X Y of the mob spawns not sure what PARAM4 is tho and under you put mongen etc... so any help would be great below i think it goes something like this for the start bit

[@main]
#SAY
Welcome.\
From now on many monsters will appear in this chamber.\
Test what you are capable of by defeating the monsters.\
There are 20 stages altogether.\
I wonder if you can beat them all.\
Will you start the challenge?\ \
<I'm ready./@start>

[@start]
#IF
CHECKMONMAP 0
#ACT
Param1 EM001
Param2 10
Param3 10
MONGEN Oma 2
MONGEN OmaFighter 1
MONEGN RakingCat 2
MONEGN OmaWarrior 1

#ELSESAY
You haven't beat them yet.\
Before defeating the monsters,\
You cannot proceed to the next stage.\ \
<Okay/@exit>

but i need to know how you get it to go to the next stage etc...after you killed them all
 

Dano

Golden Oldie
Golden Oldie
Apr 18, 2006
696
6
105
Wales
wouldnt you have to set a flag in there somewhere- then when you have done that 1 it moves onto the next one and checks the ma again, a little like a quest npc with items?
 
Upvote 0

Dano

Golden Oldie
Golden Oldie
Apr 18, 2006
696
6
105
Wales
well i am pritty cr*p @ npc scripting so i wouldnt be able to help you with that soz - but i dont think there is any way.. is there - or what did you have in mind?

/dano
 
Upvote 0

Fire

Golden Oldie
Golden Oldie
Apr 15, 2003
1,302
1
175
Code:
[@main]
#SAY
Welcome.\
From now on many monsters will appear in this chamber.\
Test what you are capable of by defeating the monsters.\
There are 20 stages altogether.\
I wonder if you can beat them all.\
Will you start the challenge?\ \
<I'm ready./@start>

[@start]
#IF
CHECKMONMAP [COLOR="Red"]<Insert map number>[/COLOR] 1
#SAY
You haven't beat them yet.\
Before defeating the monsters,\
You cannot proceed to the next stage.\ \
<Okay/@exit>
#ElSEACT
goto @flagcheck

[@flagcheck]
#IF
CHECK [001] 1
#ACT
goto @done
#ELSEACT
SET [001] 1
Param1 EM001
Param2 10
Param3 10
MONGEN Oma 2 
MONGEN OmaFighter 1 
MONEGN RakingCat 2 
MONEGN OmaWarrior 1 

#ELSESAY
You haven't beat them yet.\
Before defeating the monsters,\
You cannot proceed to the next stage.\ \
<Okay/@exit>

there you go
 
Upvote 0

Playboy

LOMCN Veteran
Veteran
Loyal Member
Jun 20, 2006
1,054
0
123
Grantham / Lincolnshire
Fire said:
Code:
[@main]
#SAY
Welcome.\
From now on many monsters will appear in this chamber.\
Test what you are capable of by defeating the monsters.\
There are 20 stages altogether.\
I wonder if you can beat them all.\
Will you start the challenge?\ \
<I'm ready./@start>
 
[@start]
#IF
CHECKMONMAP [COLOR=red]<Insert map number>[/COLOR] 1
#SAY
You haven't beat them yet.\
Before defeating the monsters,\
You cannot proceed to the next stage.\ \
<Okay/@exit>
#ElSEACT
goto @flagcheck
 
[@flagcheck]
#IF
CHECK [001] 1
#ACT
goto @done
#ELSEACT
SET [001] 1
Param1 EM001
Param2 10
Param3 10
MONGEN Oma 2 
MONGEN OmaFighter 1 
MONEGN RakingCat 2 
MONEGN OmaWarrior 1 
 
#ELSESAY
You haven't beat them yet.\
Before defeating the monsters,\
You cannot proceed to the next stage.\ \
<Okay/@exit>

there you go

You see where u have put the Check [001] 1
im sure it is just the Check [001].

And at the Start im sure it should be

Code:
[@Main]
Welcom from now on many monsters will appear in this chamber.\
Test what you are capable of by defeating the monsters.\
There are 20 stages altogether I wonder if you can beat them all.\
Will you start the challenge?\ \
<I'm [EMAIL="ready./@ start>\"]ready./@ start>\[/EMAIL]
 
[@start]
#IF
CHECKMONMAP [COLOR=red]<Insert map number>[/COLOR] 1
#SAY
You haven't beat them yet.\
Before defeating the monsters,\
You cannot proceed to the next stage.\ \
<Okay/@exit>
#ElSEACT
goto @flagcheck
 
[@flagcheck]
#IF
CHECK [001]
#ACT
goto @done
#ELSEACT
SET [001] 1
Param1 EM001
Param2 10
Param3 10
MONGEN Oma 2 
MONGEN OmaFighter 1 
MONEGN RakingCat 2 
MONEGN OmaWarrior 1 
 
#ELSESAY
You haven't beat them yet.\
Before defeating the monsters,\
You cannot proceed to the next stage.\ \
<Okay/@exit>
 
Upvote 0

Judges

LOMCN Member
Aug 5, 2004
139
2
44
I haven't tested this but it looks ok to me, providing the commands are still the same as they were 2 years ago (looking at above attempts, they look the same). Adjust this to your server but this is a template for you to carry on, you should continue with this as you progress.

However, with this you will have to disable TownTeleporting, WeddingRings, HomeTeleporting etc - It's live or die.

[@main]
#SAY
Welcome.\
From now on many monsters will appear in this chamber.\
Test what you are capable of by defeating the monsters.\
There are 20 stages altogether.\
I wonder if you can beat them all.\
Will you start the challenge?\ \
<I have done so many, I will come back another time/@move_out>\
<I'm ready./@pre_check>\

[@move_out]
#ACT
mapmove 0 <CordsX> <CordsY>
BREAK

[@pre_check]
#IF
CHECKMONMAP EM001 1
#SAY
There are still outstanding mobs within\
this room, clear them to progress.\
<Exit/@exit>\
#ELSEACT
goto @post_check

[@post_check]
#IF
Check [001] 1
#ACT
goto @spawn_2
#ELSEACT
goto @spawn_1

[@spawn_1]
#ACT
Param1 EM001
Param2 10
Param3 10
Mongen Oma 2
Mongen OmaFighter 2
Mongen RakingCat 2
Mongen OmaWarrior 1
SET [001] 1
BREAK

[@spawn_2]
#IF
Check [002] 1
#ACT
goto @spawn_3
#ELSEACT
Param1 EM001
Param2 10
Param3 10
Mongen <NextStageMob> <Number>
Mongen <NSM> <N>
Mongen <NSM> <N>
Mongen <NSM> <N>
SET [002] 1
BREAK

[@spawn_3]
#IF
Check [002] 1
#ACT
goto @spawn_4
#ELSEACT
Param1 EM001
Param2 10
Param3 10
Mongen <NextStageMob> <Number>
Mongen <NSM> <N>
Mongen <NSM> <N>
Mongen <NSM> <N>
SET [003] 1

[@spawn_4]
#IF
Check [003] 1
#ACT
goto @spawn_5
#ELSEACT
Param1 EM001
Param2 10
Param3 10
Mongen <NextStageMob> <Number>
Mongen <NSM> <N>
Mongen <NSM> <N>
Mongen <NSM> <N>
SET [004] 1

[@spawn_5]
#IF
Check [004] 1
#ACT
goto @spawn_6
#ELSEACT
Param1 EM001
Param2 10
Param3 10
Mongen <NextStageMob> <Number>
Mongen <NSM> <N>
Mongen <NSM> <N>
Mongen <NSM> <N>
SET [005] 1

[@spawn_6]
#IF
.....
 
Last edited:
Upvote 0

Nightwolf

Developer
VIP
Jul 16, 2003
2,133
21
265
Manchester, UK
ty but as on eu mir this first time you click on the npc you get this

[@main]
#SAY
Welcome.\
From now on many monsters will appear in this chamber.\
Test what you are capable of by defeating the monsters.\
There are 20 stages altogether.\
I wonder if you can beat them all.\
Will you start the challenge?\ \
<I'm ready./@start>


which once you clicked on I'm ready it will spawn the first set of mobs after that for all the other spawns when clicking on the npc you get this

You defeated them all already.\
But thee are still more to go.\
Will you continue the challenge?\ \
<Proceed/@stage2>\
<I've had enough. Let me go./@leave>


and when there still mobs on the map it will say this

You haven't beat them yet.\
Before defeating the monsters,\
You cannot proceed to the next stage.\ \
<Okay/@exit>


ok once you killed them all at the end it will say this

Wow, you defeated them all!!\
Oh...how can someone be so mighty...\
I'm so honored to meet you.\
You are the true hero who can save the continent\
when the crisis arrives.\
I'll send you back to the village with a prize.\ \
<Thank you./@leave>
 
Upvote 0

Fire

Golden Oldie
Golden Oldie
Apr 15, 2003
1,302
1
175
Nightwolf said:
ty but dont you need flags for all 20 stages
yes that is very true, however if you wanted to save the flags for something else then you could use namelists, and add and delete them for each stage

and in the nicest possible way i would ignore playboy because he is not giving out accurate information
 
Upvote 0

Judges

LOMCN Member
Aug 5, 2004
139
2
44
Nightwolf said:
ty but as on eu mir this first time you click on the npc you get this

[@main]
#SAY
Welcome.\
From now on many monsters will appear in this chamber.\
Test what you are capable of by defeating the monsters.\
There are 20 stages altogether.\
I wonder if you can beat them all.\
Will you start the challenge?\ \
<I'm ready./@start>

which once you clicked on I'm ready it will spawn the first set of mobs after that for all the other spawns when clicking on the npc you get this

You defeated them all already.\
But thee are still more to go.\
Will you continue the challenge?\ \
<Proceed/@stage2>\
<I've had enough. Let me go./@leave>

and when there still mobs on the map it will say this

You haven't beat them yet.\
Before defeating the monsters,\
You cannot proceed to the next stage.\ \
<Okay/@exit>

ok once you killed them all at the end it will say this

Wow, you defeated them all!!\
Oh...how can someone be so mighty...\
I'm so honored to meet you.\
You are the true hero who can save the continent\
when the crisis arrives.\
I'll send you back to the village with a prize.\ \
<Thank you./@leave>
Surley you can implement this yourself with the base of the script being there...?

In future, make it clear what you wish to have when requesting help because I wouldn't have got this from your original post.
 
Last edited:
Upvote 0