looking for an answer plz

kelvin09

LOMCN Veteran
Veteran
Jul 13, 2008
438
6
64
i have a challenge script i have just reworded for my server but when u go into the challenge room , if ur quick u can double click the npc and u get ur gift b4 u have even done the challenge then it just spawns the mobs after , can sumone plz look over this and see where its gonig wrong plz
cheers for any help in advance :

[@Main]
#IF
CHECK [500] 0
#ACT
GOTO @check0
#IF
CHECK [501] 0
#ACT
GOTO @check1
#IF
CHECK [502] 0
#ACT
GOTO @check2
#IF
CHECK [503] 0
#ACT
GOTO @check3
#IF
CHECK [504] 0
#ACT
GOTO @check4
#IF
CHECK [505] 0
#ACT
GOTO @check5
#IF
CHECK [506] 0
#ACT
GOTO @check6
#IF
CHECK [507] 0
#ACT
GOTO @check7
#IF
CHECK [508] 0
#ACT
GOTO @check8
#IF
CHECK [509] 0
#ACT
GOTO @check9
#IF
CHECK [510] 0
#ACT
GOTO @check10
#IF
CHECK [511] 0
#ACT
GOTO @check11
#IF
CHECK [512] 0
#ACT
GOTO @check12
#IF
CHECK [513] 0
#ACT
GOTO @check13
#IF
CHECK [514] 0
#ACT
GOTO @check14
#IF
CHECK [515] 0
#ACT
GOTO @check15
#IF
CHECK [516] 0
#ACT
GOTO @check16
#IF
CHECK [517] 0
#ACT
GOTO @check17
#IF
CHECK [518] 0
#ACT
GOTO @check18
#IF
CHECK [519] 0
#ACT
GOTO @check19
#IF
CHECK [520] 0
#ACT
GOTO @check20

[@check0]
#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./@start1>\

[@start1]
#ACT
SET [500] 1
SET [501] 0
Param1 f008
Param2 101
Param3 82
MonGen zumaguardian 5
MonGen forestyeti 4
MonGen khazard 3
BREAK
CLOSE

[@check1]
#IF
CHECKMONMAP f008 1
#SAY
You haven't beat them yet.\
Before deafeating the monsters,\
You cannot proceed to the next stage.\ \
<Okay./@exit>\
#ELSESAY
You defeated them all already.\
But there are still more to go.\
Will you continue the challenge?\ \
<Proceed./@start2>\
<I've had enough. Let me go./@finish>\

[@start2]
#ACT
SET [501] 1
SET [502] 0
Param1 f008
Param2 101
Param3 82
MonGen redfrogspider 5
MonGen brownfrogspider 5
MonGen hedgekektal 6
MonGen blackfoxman 5
BREAK
CLOSE

[@check2]
#IF
CHECKMONMAP f008 1
#SAY
You haven't beat them yet.\
Before deafeating the monsters,\
You cannot proceed to the next stage.\ \
<Okay./@exit>\
#ELSESAY
You defeated them all already.\
But there are still more to go.\
Will you continue the challenge?\ \
<Proceed./@start3>\
<I've had enough. Let me go./@finish>\

[@start3]
#ACT
SET [502] 1
SET [503] 0
Param1 f008
Param2 101
Param3 82
MonGen woomataurus 2
MonGen crystalspider 3
MonGen rightguard 6
MonGen bonearcher 5
BREAK
CLOSE

[@check3]
#IF
CHECKMONMAP f008 1
#SAY
You haven't beat them yet.\
Before deafeating the monsters,\
You cannot proceed to the next stage.\ \
<Okay./@exit>\
#ELSESAY
You defeated them all already.\
But there are still more to go.\
Will you continue the challenge?\ \
<Proceed./@start4>\
<I've had enough. Let me go./@finish>\

[@start4]
#ACT
SET [503] 1
SET [504] 0
Param1 f008
Param2 101
Param3 82
MonGen whitefoxman 3
MonGen redfoxman 5
MonGen cloudelement 5
BREAK
CLOSE

[@check4]
#IF
CHECKMONMAP f008 1
#SAY
You haven't beat them yet.\
Before deafeating the monsters,\
You cannot proceed to the next stage.\ \
<Okay./@exit>\
#ELSESAY
You defeated them all already.\
But there are still more to go.\
Will you continue the challenge?\ \
<Proceed./@start5>\
<I've had enough. Let me go./@finish>\

[@start5]
#ACT
SET [504] 1
SET [505] 0
Param1 f008
Param2 101
Param3 82
MonGen blueviper 7
MonGen yellowviper 7
MonGen slasher 5
MonGen fraggle 4
BREAK
CLOSE

[@check5]
#IF
CHECKMONMAP f008 1
#SAY
You haven't beat them yet.\
Before deafeating the monsters,\
You cannot proceed to the next stage.\ \
<Okay./@exit>\
#ELSESAY
You defeated them all already.\
But there are still more to go.\
Will you continue the challenge?\ \
<Proceed./@start6>\
<I've had enough. Let me go./@finish>\

[@start6]
#ACT
SET [505] 1
SET [506] 0
Param1 f008
Param2 101
Param3 82
MonGen freewilly 7
MonGen deathbat 4
MonGen wolfhound 4
BREAK
CLOSE

[@check6]
#IF
CHECKMONMAP f008 1
#SAY
You haven't beat them yet.\
Before deafeating the monsters,\
You cannot proceed to the next stage.\ \
<Okay./@exit>\
#ELSESAY
You defeated them all already.\
But there are still more to go.\
Will you continue the challenge?\ \
<Proceed./@start7>\
<I've had enough. Let me go./@finish>\

[@start7]
#ACT
SET [506] 1
SET [507] 0
Param1 f008
Param2 101
Param3 82
MonGen iceguardian 4
MonGen iceboar 5
MonGen darkdevil 3
BREAK
CLOSE

[@check7]
#IF
CHECKMONMAP f008 1
#SAY
You haven't beat them yet.\
Before deafeating the monsters,\
You cannot proceed to the next stage.\ \
<Okay./@exit>\
#ELSESAY
You defeated them all already.\
But there are still more to go.\
Will you continue the challenge?\ \
<Proceed./@start8>\
<I've had enough. Let me go./@finish>\

[@start8]
#ACT
SET [507] 1
SET [508] 0
Param1 f008
Param2 101
Param3 82
MonGen SpiderBat 8
MonGen centigit 4
MonGen electriczombie 5
MonGen fatpig 4
BREAK
CLOSE

[@check8]
#IF
CHECKMONMAP f008 1
#SAY
You haven't beat them yet.\
Before deafeating the monsters,\
You cannot proceed to the next stage.\ \
<Okay./@exit>\
#ELSESAY
You defeated them all already.\
But there are still more to go.\
Will you continue the challenge?\ \
<Proceed./@start9>\
<I've had enough. Let me go./@finish>\

[@start9]
#ACT
SET [508] 1
SET [509] 0
Param1 f008
Param2 101
Param3 82
MonGen minotaurking 3
MonGen mirking 3
MonGen omakingspirit 1
BREAK
CLOSE

[@check9]
#IF
CHECKMONMAP f008 1
#SAY
You haven't beat them yet.\
Before deafeating the monsters,\
You cannot proceed to the next stage.\ \
<Okay./@exit>\
#ELSESAY
You defeated them all already.\
But there are still more to go.\
Will you continue the challenge?\ \
<Proceed./@start10>\
<I've had enough. Let me go./@finish>\

[@start10]
#ACT
SET [509] 1
SET [510] 0
Param1 f008
Param2 101
Param3 82
MonGen omakingspirit 1
MonGen omakingspirit 1
MonGen omakingspirit 1
BREAK
CLOSE

[@check10]
#IF
CHECKMONMAP f008 1
#SAY
You haven't beat them yet.\
Before deafeating the monsters,\
You cannot proceed to the next stage.\ \
<Okay./@exit>\
#ELSESAY
You defeated them all already.\
But there are still more to go.\
Will you continue the challenge?\ \
<Proceed./@start11>\
<I've had enough. Let me go./@finish>\

[@start11]
#ACT
SET [510] 1
SET [511] 0
Param1 f008
Param2 101
Param3 82
MonGen prajnarider 8
MonGen *****slap 1
MonGen lightmonkey 8
BREAK
CLOSE

[@check11]
#IF
CHECKMONMAP f008 1
#SAY
You haven't beat them yet.\
Before deafeating the monsters,\
You cannot proceed to the next stage.\ \
<Okay./@exit>\
#ELSESAY
You defeated them all already.\
But there are still more to go.\
Will you continue the challenge?\ \
<Proceed./@start12>\
<I've had enough. Let me go./@finish>\

[@start12]
#ACT
SET [511] 1
SET [512] 0
Param1 f008
Param2 101
Param3 82
MonGen slugbug 3
MonGen *****slap 3
MonGen freewilly 5
BREAK
CLOSE

[@check12]
#IF
CHECKMONMAP f008 1
#SAY
You haven't beat them yet.\
Before deafeating the monsters,\
You cannot proceed to the next stage.\ \
<Okay./@exit>\
#ELSESAY
You defeated them all already.\
But there are still more to go.\
Will you continue the challenge?\ \
<Proceed./@start13>\
<I've had enough. Let me go./@finish>\

[@start13]
#ACT
SET [512] 1
SET [513] 0
Param1 f008
Param2 101
Param3 82
MonGen yimoogi 3
BREAK
CLOSE

[@check13]
#IF
CHECKMONMAP f008 1
#SAY
You haven't beat them yet.\
Before deafeating the monsters,\
You cannot proceed to the next stage.\ \
<Okay./@exit>\
#ELSESAY
You defeated them all already.\
But there are still more to go.\
Will you continue the challenge?\ \
<Proceed./@start14>\
<I've had enough. Let me go./@finish>\

[@start14]
#ACT
SET [513] 1
SET [514] 0
Param1 f008
Param2 101
Param3 82
MonGen redmoonevil 2
MonGen spouter 3
MonGen Zumataurus 1
BREAK
CLOSE

[@check14]
#IF
CHECKMONMAP f008 1
#SAY
You haven't beat them yet.\
Before deafeating the monsters,\
You cannot proceed to the next stage.\ \
<Okay./@exit>\
#ELSESAY
You defeated them all already.\
But there are still more to go.\
Will you continue the challenge?\ \
<Proceed./@start15>\
<I've had enough. Let me go./@finish>\

[@start15]
#ACT
SET [514] 1
SET [515] 0
Param1 f008
Param2 101
Param3 82
MonGen omaking 1
BREAK
CLOSE

[@check15]
#IF
CHECKMONMAP f008 1
#SAY
You haven't beat them yet.\
Before deafeating the monsters,\
You cannot proceed to the next stage.\ \
<Okay./@exit>\
#ELSESAY
You defeated them all already.\
But there are still more to go.\
Will you continue the challenge?\ \
<Proceed./@start16>\
<I've had enough. Let me go./@finish>\

[@start16]
#ACT
SET [515] 1
SET [516] 0
Param1 f008
Param2 101
Param3 82
MonGen Omaking 2
BREAK
CLOSE

[@check16]
#IF
CHECKMONMAP f008 1
#SAY
You haven't beat them yet.\
Before deafeating the monsters,\
You cannot proceed to the next stage.\ \
<Okay./@exit>\
#ELSESAY
You defeated them all already.\
But there are still more to go.\
Will you continue the challenge?\ \
<Proceed./@start17>\
<I've had enough. Let me go./@finish>\

[@start17]
#ACT
SET [516] 1
SET [517] 0
Param1 f008
Param2 101
Param3 82
MonGen icemaster 2
BREAK
CLOSE

[@check17]
#IF
CHECKMONMAP f008 1
#SAY
You haven't beat them yet.\
Before deafeating the monsters,\
You cannot proceed to the next stage.\ \
<Okay./@exit>\
#ELSESAY
You defeated them all already.\
But there are still more to go.\
Will you continue the challenge?\ \
<Proceed./@start18>\
<I've had enough. Let me go./@finish>\

[@start18]
#ACT
SET [517] 1
SET [518] 0
Param1 f008
Param2 101
Param3 82
MonGen evilmir 1
BREAK
CLOSE

[@check18]
#IF
CHECKMONMAP f008 1
#SAY
You haven't beat them yet.\
Before deafeating the monsters,\
You cannot proceed to the next stage.\ \
<Okay./@exit>\
#ELSESAY
You defeated them all already.\
But there are still more to go.\
Will you continue the challenge?\ \
<Proceed./@start19>\
<I've had enough. Let me go./@finish>\

[@start19]
#ACT
SET [518] 1
SET [519] 0
Param1 f008
Param2 101
Param3 82
MonGen knockuout 1
BREAK
CLOSE

[@check19]
#IF
CHECKMONMAP f008 1
#SAY
You haven't beat them yet.\
Before deafeating the monsters,\
You cannot proceed to the next stage.\ \
<Okay./@exit>\
#ELSESAY
You defeated them all already.\
But there are still more to go.\
Will you continue the challenge?\ \
<Proceed./@start20>\
<I've had enough. Let me go./@finish>\

[@start20]
#ACT
SET [519] 1
SET [520] 0
Param1 f008
Param2 101
Param3 82
MonGen evilmir 2
BREAK
CLOSE

[@check20]
#IF
CHECKMONMAP f008 1
#SAY
You haven't beat them yet.\
Before deafeating the monsters,\
You cannot proceed to the next stage.\ \
<Okay./@exit>\
#ELSESAY
Wow, you defeated them all!!\
Oh... how can someone be so mighty...\
I'm so honored to meet you.\
You are the true hero can save the continent\
when the crisis arrives.\
I'll send you back to the village with a prize.\ \
<Thank you./@finish>\

[@finish]
#IF
CHECK [520] 0
#ACT
SET [500] 0
SET [501] 1
SET [502] 1
SET [503] 1
SET [504] 1
SET [505] 1
SET [506] 1
SET [507] 1
SET [508] 1
SET [509] 1
SET [510] 1
SET [511] 1
SET [512] 1
SET [513] 1
SET [514] 1
SET [515] 1
SET [516] 1
SET [517] 1
SET [518] 1
SET [519] 1
SET [520] 1
BREAKTIMERECALL
GIVE exppotion(l) 1
GIVE Gold 40000000
GIVE 25GGSCROLL 5
MAPMOVE 0 331 270
#ELSEACT
SET [500] 0
SET [501] 1
SET [502] 1
SET [503] 1
SET [504] 1
SET [505] 1
SET [506] 1
SET [507] 1
SET [508] 1
SET [509] 1
SET [510] 1
SET [511] 1
SET [512] 1
SET [513] 1
SET [514] 1
SET [515] 1
SET [516] 1
SET [517] 1
SET [518] 1
SET [519] 1
SET [520] 1
BREAKTIMERECALL
MAPMOVE 0 331 270
 

kelvin09

LOMCN Veteran
Veteran
Jul 13, 2008
438
6
64
right i tried ur version lol and it goes to the end message straight away and dont give u the prize either lol ermmm any more ideas :P lol
 

Crystal24

Dedicated Member
Dedicated Member
Nov 16, 2009
15
2
30
Newcastle Upon Tyne
before you tried it did you reset the flags back to the way they were originally, if you did then its strange cause it works for me lol, ill have another look tho

*EDIT*

I've edited the attachment slightly, might help.
 
Last edited:

Crystal24

Dedicated Member
Dedicated Member
Nov 16, 2009
15
2
30
Newcastle Upon Tyne
SET [501] 1
SET [502] 1
SET [503] 1
SET [504] 1
SET [505] 1
SET [506] 1
SET [507] 1
SET [508] 1
SET [509] 1
SET [510] 1
SET [511] 1
SET [512] 1
SET [513] 1
SET [514] 1
SET [515] 1
SET [516] 1
SET [517] 1
SET [518] 1
SET [519] 1
SET [520] 1

These parts that have been set to 1 will need to be reset to 0. Ingame type the command @setflag yourcharname flagnumber 0, so for example: @setflag kelvin09 512 0

Also make sure you try the new attachment on my original post, it may help :)