kill quest

Play Now

oO~Unknown~Oo

Banned
Banned
Veteran
Dec 4, 2007
1,823
18
125
UK
does anyone know how i can make it so you gotta kill random amount of sheeps and then an item will drop in your bag? is there a way it can be done via mapquest like a normal kill count quest or ???

thanks
 

~HeavenSent~

Golden Oldie
Golden Oldie
Nov 9, 2005
2,157
17
180
Chorley
You have to use Variables & its a pain in the ass to set up lol

i use them on my server for the teleport system you have to kill X amount of mobs befor the teleport become's open to you.
 
Upvote 0

oO~Unknown~Oo

Banned
Banned
Veteran
Dec 4, 2007
1,823
18
125
UK
I already have this script working just like the one you posted Haz but mine is a bit different. I thought there might be a different way than using RANDOM. I think there is a way where you put the item in the mobs drop file and thats the chance of it working. So its same as drop file but instead goes in your bag for the quest. I'm not sure if i explained that well.
 
Upvote 0

Hazuki

VIP
VIP
Apr 14, 2004
3,459
38
265
United Kingdom
MapQuest.txt

Code:
0 	[300] 	 1 	Hen 		 *	 	 Hen

Mapquest_def\Hen.txt

Code:
[@main]
#IF
RANDOM 10
#ACT
GIVE Candle
BREAK

When you start the quest set [300] to 1. If you want it the same as drop just replace the random number with the drop?
 
Upvote 0

oO~Unknown~Oo

Banned
Banned
Veteran
Dec 4, 2007
1,823
18
125
UK
I don't think i explained it well but the way you posted it still works though, its a random chance anyway. Thanks for the replies.
 
Upvote 0

Gezza

Golden Oldie
Golden Oldie
Sep 23, 2008
2,202
65
135
uk
Yeh do it sort of like how haz has posted just add some more checks too it.

[@main]
#IF
checkitem candle 5
#act
set [300] 0
addnamelist ../QuestDiary/Quests/hencomplete.txt
sendmsg 6 "Quest complete come to blah blah for your reward"
#ELSEACT
GOTO @NEXT

[@NEXT]
#IF
RANDOM 10
#ACT
GIVE Candle 1
 
Upvote 0

oO~Unknown~Oo

Banned
Banned
Veteran
Dec 4, 2007
1,823
18
125
UK
This is how mine looks.

[@main]
#IF
check [404] 1
#ACT
goto @main1

[@main1]
#IF
RANDOM 30
#ACT
give Sheep'sWool 1
CalcVar Human Ann + 1
SaveVar Human Ann ../QuestDiary/Variables/Quests.txt
LineMSG 6 "Hunt for Ann: You found Sheep'sWool."
SET [404] 0
 
Upvote 0