Stop Exploiting

Mu online season 21 - grand opening

littletommy

Banned
Banned
Veteran
Dec 10, 2006
370
2
44
Right iv made an npc with 10 quests on it, due to the fact my computer cant handly SQL i cannot test the npc lol so, here a question.

How can i spawn mobs in a room, teleport someone in there, and they have to kill every mob in 5 minz then when they tele out, click on the npc, the NPC will ask you

<HAVE YOU KILLED THEM?/@ENDQUESTFOUR>
<NO SORRY/@START QUEST FOUR>

i want the npc to be able to say yes you have killed them and end the quest automaticly so they can only do that quest once. insted of cheating and clicking on <NO SORRY/@STARTQUESTFOUR>


Sorry if you cant understand that, im very tired
 

Blizzard

LOMCN Veteran
Veteran
Loyal Member
Nov 3, 2005
269
0
42
He wants someone who knows 100% what they doing to write the script for him i would have a guess so mistakes are not made or npc aint exploited.
 
Upvote 0

littletommy

Banned
Banned
Veteran
Dec 10, 2006
370
2
44
i know how to write a script, its jsut this one quest no tghe script which is more complicated then others.
 
Upvote 0

demonx

Golden Oldie
Golden Oldie
Aug 4, 2004
712
0
103
England
you could always make it set a flag when they complete the quest and make it check the flag when they try to do it again...
 
Upvote 0

DiabloVodkaShot

LOMCN VIP
VIP
Feb 20, 2009
2,294
237
245
[@OnKillMob(QuestMob)]
#IF
CHECK [50] 1 <<--- Set flag from Quest 3
#ACT
SET [51] 1 <<--- So npc knows u have killed the 4th quest mob
Mapmove <<--- where u want them to be teled to
#SAY
Well done you done quest 4, you can now try quest 5
#ELSEACT
BREAK

hope this helps
 
Upvote 0

akacary2

LOMCN Veteran
Veteran
Loyal Member
Dec 11, 2008
274
1
44
Hartlepool
#SAY
Hello There <$USERNAME> Are You Here For The Quests?\\

<Yes/@Check>
<No/@Exit>

[@Check]
#IF
Check [50] 1
#ACT
GOTO @Check1
#ELSEACT
GOTO @Q1

[@Q1]
#SAY
This Part Of The Quest Consists Of Killing A Group\
Of Oma Warriors. Do You Accept This Challenge?\ \
<Yes I Do/@Q11>
<I've Changed My Mind/@Exit>

[@Q11]
#IF
#ACT
checkhum map number 1
#SAY
Sorry But Someone Is In There\ \ \
<Try Again/@Q11>
<I'll Come Back Later/@exit>
#ELSEACT
#SAY
Hold On.....
mapmove mapname X Y
give townteleport 1
mongenex mapname X Y mob spawnrange amount

[@Check1]
#IF
Check [51] 1
#ACT
GOTO @Check2
#ELSEACT
GOTO @Q2

[@Q2]
#SAY
This Part Of The Quest Consists Of Killing A Group\
Of Ghouls. Do You Accept This Challenge?\ \
<Yes I Do/@Q21>
<I've Changed My Mind/@Exit>

[@Q21]
#IF
#ACT
checkhum map number 1
#SAY
Sorry But Someone Is In There\ \ \
<Try Again/@Q21>
<I'll Come Back Later/@exit>
#ELSEACT
#SAY
Hold On.....
mapmove mapname X Y
give townteleport 1
mongenex mapname X Y mob spawnrange amount

Hope this works ok m8 and just copy and paste and change lil bits for more quests
Also, you will need to put an npc on whichever map u are teleporting player 2 (if you are teleporting them) so that it can check if mobs are dead and set whichever flag to 1 so that they can move on to next part of quest and also maybe give a prize?

#SAY
Have You Killed All The Monsters?\ \
<Yes/@check>
<No/@gokill>

[@check]
#IF
CHECKMONMAP 0
#SAY
Well Done <$USERNAME> Now You Can Try The Next\
Quest\ \
#ACT
SET [50] 1
GIVE prize 1
mapmove mapname X Y
#ELSEACT
#SAY
Get Them Monsters Killed And Stop Being\
A Pussy!!!
BREAK

[@gokill]
#SAY
Get Them Monsters Killed And Stop Being\
A Pussy!!!
BREAK

As you can tell im still learning scripts myself so hope they work ok m8 :D

Edit... I know I didnt have to write 1 but I wanted to try :D
 
Upvote 0

littletommy

Banned
Banned
Veteran
Dec 10, 2006
370
2
44
mate i think that helped me an awfull lot thanks so much, i would of been here for hours trying to figur that out
 
Upvote 0