[2.3] Monster Kill Quests

Play Now

Tom27

Golden Oldie
Golden Oldie
Sep 15, 2005
1,877
78
185
Norwich
Hi.

I'm trying to add a monster kill quest which isn't repeatable, and you will receive creditpoints but I'm unsure how variables work.

At the moment I have added a simpler one, what gives you the prize when you have killed a Random amount of monsters on the map.

(This is 100% functional, I'm just looking to make it give you a set amount of monsters to kill rather than it working off a random amount of monsters)

Heres the script I have at the moment:

[@centipede123]
#IF
CHECKNAMELIST \Quests\MonsterKills\Centipede.txt
#ACT
SENDMSG 6 "You have already completed this quest."
#ELSEACT
GOTO @Centipede


[@Centipede]
#SAY
Hello <$USERNAME>, you need to prove you are worthy to me.\
For this quest you must kill as many Centipedes in Industrial\
Cave as possible until you receive a message to return to me.\ \


Okay thank you!, <I want to accept your quest!/@centinext>\ \


Give me my prize!, <I have received my message!/@centipedecomplete>


[@centinext]
#IF
CHECKNAMELIST ..\Market_Def\Quests\MonsterKills\centipede.txt
#ACT
SENDMSG 6 "You have already completed this quest."
#ELSEACT
SET [120] 1
SENDMSG 6 "Go and slay the centipedes & return when you receive the message."
CLOSE


[@centipedecomplete]
#IF
Check [121] 1
#ACT
SET [121] 0
ADDNAMELIST ..\Market_Def\Quests\MonsterKills\Centipede.txt
CREDITPOINT + 5
SENDMSG 6 "You have received 5 CreditPoints."
#SAY
Congratulations! You have completed this quest.\


[@ONKILLMOB(Centipede)]
#IF
CHECK [120] 1
RANDOM 250
#ACT
SET [121] 1
SET [120] 0
MESSAGEBOX "You have killed enough Centipedes. Type @Quest to claim your prize."
BREAK
#ELSEACT
BREAK

(This is 100% functional, I'm just looking to make it give you a set amount of monsters to kill rather than it working off a random amount of monsters)
Any help is appreciated, thanks :)