Kill Count Quests

noisound

Golden Oldie
Golden Oldie
Jul 23, 2004
1,335
10
175
Can anyone copy me a code of a kill count quest that they know 100% works no problems at all please

/OwNaGe
 

ρяєα¢нєя

Unstookie Titled
VIP
Aug 19, 2008
444
23
85
Quest Starter NPC:
Code:
[@main]
#IF
CHECKNAMELIST DeerComplete1.txt
#SAY
Thanks you for you help <$USERNAME>. \ \
<Exit/@exit>
#ACT
BREAK
#IF
CHECKNAMELIST DeerComplete.txt
#SAY
Thanks you for you help <$USERNAME>. Please take this reward. \ \
<Exit/@exit>
#ACT
GIVE Prize 1
ADDNAMELIST DeerComplete1.txt
BREAK
#IF
CHECKNAMELIST DeerStart.txt
#SAY
You have killed <$Human(KillCount)>/5 Deer. Please come back \
when you have killed all five. \ \
<Exit/@exit>
#ACT
BREAK
#ELSESAY
Hi would you like to take the quest? \ \
<Yes/@accept> || <No/@exit>

[@accept]
#ACT
Var Integer Human KillCount 0
SaveVar Human KillCount Integral.txt
ADDNAMELIST DeerStart.txt
SET [101] 1
#SAY
Sweet. Come back when you've killed 5 deer. \ \
<Exit/@exit>

Then add the map quest in: Envir->MapQuest.txt
Code:
0	[101]	1	Deer	*	DeerQuest

Then create a new txt document: Envir->MapQuest->DeerQuest.txt
Code:
[@main]
#IF
CheckVar Human KillCount = 5
#ACT
BREAK
#IF
CheckVar Human KillCount = 4
#ACT
GOTO @finish
BREAK
#IF
CheckVar Human KillCount < 4
#ACT
CalcVar Human KillCount + 1
SaveVar Human KillCount Integral.txt
BREAK
#ELSEACT
BREAK

[@finish]
#ACT
SET [101] 0
CalcVar Human KillCount + 1
SaveVar Human KillCount Integral.txt
ADDNAMELIST DeerComplete.txt
#SAY
You have killed enough Deer to finish the quest. Return to the NPC for you \
prize. \ \
<Exit/@exit>

Then you need to add the below lines to: Envir->MapQuests->QManage
Code:
[@login]
#IF
#ACT
Var Integer Human KillCount 0
LoadVar Human KillCount Integral.txt

Again you will need to go to Envir->QuestDiary->Variables and make sure there is a text (.txt) document in there called Integral.txt.

That should work, took me 2 mins to put that together though so might be a few errors. Plus i have been using a different files set for a while so some of the commands might be a little out. But it's enough to get on with :P

p

That is a post i made in reply to a thread made by your account a few days ago. Hope you have better luck this time around.

p
 
Last edited:
Upvote 0

2dope

Golden Oldie
Golden Oldie
Mar 15, 2005
514
13
155
mmm I think I am being a spack today, I did what preacher said and every time I click the NPC it says if I want to do the quest. So i tried to complete the quest and the same thing happened he just asked if I wanted to do the quest... A bit confused :(
I tried adding
#If
Check [101] 1
#SAY
come back when you have killed the deers
#Act
BREAK

This displayed the message I want but still can not complete the quest

When I log in m2server says
[22/09/2008 11:51:55] [QuestAction] Command:LOADVAR NPC:QManage Map:0(0:0) Param1:Human Param2:KillCount Param3:Integral.txt Param4: Param5: Param6:
 
Upvote 0

ρяєα¢нєя

Unstookie Titled
VIP
Aug 19, 2008
444
23
85
mmm I think I am being a spack today, I did what preacher said and every time I click the NPC it says if I want to do the quest. So i tried to complete the quest and the same thing happened he just asked if I wanted to do the quest... A bit confused :(
I tried adding
#If
Check [101] 1
#SAY
come back when you have killed the deers
#Act
BREAK

This displayed the message I want but still can not complete the quest

When I log in m2server says
[22/09/2008 11:51:55] [QuestAction] Command:LOADVAR NPC:QManage Map:0(0:0) Param1:Human Param2:KillCount Param3:Integral.txt Param4: Param5: Param6:

Sorry, missed a check, added that to the main script now.

As for the error, do you have the Variables folder setup with the Integral.txt?

p
 
Upvote 0

2dope

Golden Oldie
Golden Oldie
Mar 15, 2005
514
13
155
Now getting that message about the 0/5 deer which is brilliant, but its not counting and this is what I am getting in m2server, I re did it in case I messed up -.-

[22/09/2008 14:20:31] [QuestAction] Command:LOADVAR NPC:QManage Map:0(0:0) Param1:Human Param2:KillCount Param3:Integral.txt Param4: Param5: Param6:

It should go in the market_def not npc_def the actual starter npc?
 
Upvote 0

ρяєα¢нєя

Unstookie Titled
VIP
Aug 19, 2008
444
23
85
Now getting that message about the 0/5 deer which is brilliant, but its not counting and this is what I am getting in m2server, I re did it in case I messed up -.-

[22/09/2008 14:20:31] [QuestAction] Command:LOADVAR NPC:QManage Map:0(0:0) Param1:Human Param2:KillCount Param3:Integral.txt Param4: Param5: Param6:

It should go in the market_def not npc_def the actual starter npc?

Yea should go in market_def.

Go to Envir->QuestDiary->Variables and check that you have a file called Integral.txt in there. If not make one.

p
 
Upvote 0

2dope

Golden Oldie
Golden Oldie
Mar 15, 2005
514
13
155
Mmm I must be doing something really retarded lol

my.php


if picture doesnt work

http://img385.imageshack.us/my.php?image=erroreb1.png
 
Upvote 0

Bon

Legend
Legendary
Jul 29, 2004
6,741
342
330
Kent, UK
personally variables aitn worth usin ona large scale that are gonna be recorded over and over by multiple players doin the quest.. a small quest ye fair enuff but dotn do a large 1

i did a massive 1 on OS with loads of players doin it at same time gave so many errors and m2 couldnt keep up
 
Upvote 0

ρяєα¢нєя

Unstookie Titled
VIP
Aug 19, 2008
444
23
85
Just added that script into my server and it works fine. One thing that you might be doing wrong has just come to me though, are you killing the Deer's in Bichon Province? Because if your not the kill wount register.

Envir->MapQuest.txt
Code:
[COLOR="Red"]0[/COLOR]	[101]	1	Deer	*	DeerQuest

The highlighted number is the map number that you want the mob to be killed on. So unless you killing the Deer on the right map it woun't trigger the script. If you want to make it so it uses another map just change the highlighted number to the map number you want. Or you could add another line:

Code:
0	[101]	1	Deer	*	DeerQuest
<mapname>	[101]	1	Deer	*	DeerQuest

...and then the script will be triggered when a deer is killed on either of the maps.

Also i get the same error on my M2Server when using Variables, it still works though, so just ignor errors like that in the future.

p
 
  • Like
Reactions: 2dope
Upvote 0

2dope

Golden Oldie
Golden Oldie
Mar 15, 2005
514
13
155
ρяєα¢нєя;631062 said:
Just added that script into my server and it works fine. One thing that you might be doing wrong has just come to me though, are you killing the Deer's in Bichon Province? Because if your not the kill wount register.

Envir->MapQuest.txt
Code:
[COLOR="Red"]0[/COLOR]	[101]	1	Deer	*	DeerQuest

The highlighted number is the map number that you want the mob to be killed on. So unless you killing the Deer on the right map it woun't trigger the script. If you want to make it so it uses another map just change the highlighted number to the map number you want. Or you could add another line:

Code:
0	[101]	1	Deer	*	DeerQuest
<mapname>	[101]	1	Deer	*	DeerQuest

...and then the script will be triggered when a deer is killed on either of the maps.

Also i get the same error on my M2Server when using Variables, it still works though, so just ignor errors like that in the future.

p
PMSL what a tit, I left the map name as 0, when it should be a different map name! Thanks mate.

Ben when loads of players did the quest, did it cause it to lag at all?
 
Upvote 0

Bon

Legend
Legendary
Jul 29, 2004
6,741
342
330
Kent, UK
yer it did thats why i took em out and based them on randoms instead

like i said 2 u on msn, small amount used now and then seem to be ok, just if ur gettin +1 variable every time u kill a certain mob.. and there are like 20+ ppl mass killin the same mob.. each time that mob dies the qfunc script has to run... m2 dont seem to keep up and causes script error and that, then they miss out a few variables and it dont work that well lol

i only use variable for few small things like lotto etc
 
Upvote 0

2dope

Golden Oldie
Golden Oldie
Mar 15, 2005
514
13
155
yer it did thats why i took em out and based them on randoms instead

like i said 2 u on msn, small amount used now and then seem to be ok, just if ur gettin +1 variable every time u kill a certain mob.. and there are like 20+ ppl mass killin the same mob.. each time that mob dies the qfunc script has to run... m2 dont seem to keep up and causes script error and that, then they miss out a few variables and it dont work that well lol

i only use variable for few small things like lotto etc

Yea, I think im going to go with what you suggested mate as well
 
Upvote 0

Bon

Legend
Legendary
Jul 29, 2004
6,741
342
330
Kent, UK
go for it, i found it makes the quest a lot more random and more questy rather than just kill so many and its over lol
 
Upvote 0

2dope

Golden Oldie
Golden Oldie
Mar 15, 2005
514
13
155
go for it, i found it makes the quest a lot more random and more questy rather than just kill so many and its over lol

Yea, I will give it a go with what you said mate, if not no doubt I will pester you :ppunk:
 
Upvote 0

wanabee

Golden Oldie
Golden Oldie
Jul 10, 2004
723
4
155
newbury
i'm a bit stuck at moment on this quest i have the queststarter script in my homezone. and the deerquest.txt are both in the merchant folder.


qmanage has been setup mapquest has been setup.


this is the error i get in the m2 server
[22/10/2008 15:53:47] [QuestAction] Command:SAVEVAR NPC:Deerquest Map:hz123(63:43) Param1:Human Param2:KillCount Param3:Integral.txt Param4: Param5: Param6:

also the npc in the homezone throws an error of no varibals or something like that.
 
Upvote 0

wanabee

Golden Oldie
Golden Oldie
Jul 10, 2004
723
4
155
newbury
i have sorted out the npc in homezone giveing the error, i moved it to the map the quest is for. in this case is map 0.

Now the script works but dos not calculate the deers when killed on this map. in the m2 this is the error i get.


[01/11/2008 08:57:54] [QuestAction] Command:SAVEVAR NPC:Deerquest Map:0(329:272) Param1:Human Param2:KillCount Param3:Integral.txt Param4: Param5: Param6:


Do i have to put anything in the Integral.txt
 
Upvote 0