lil KC quest help plz

excluded

Golden Oldie
Golden Oldie
May 31, 2006
555
4
125
[15/11/2010 19:13:32] [QuestAction] Command:LOADVAR NPC:QManage Map:0(0:0) Param1:Human Param2:KillCount Param3:Integral.txt Param4: Param5: Param6:
[15/11/2010 19:14:29] [QuestAction] Command:SAVEVAR NPC:WoomaTemple Map:0(354:232) Param1:Human Param2:KillCount Param3:Integral.txt Param4: Param5: Param6:

creating a killcount quest my first ever attempt and getting this.
this is for WoomaFighters in wt kr.
when i kill this mob and go bck and check npc to see how many i killed it stays @ 0
any help ?

thnx in advance

Mason
 

excluded

Golden Oldie
Golden Oldie
May 31, 2006
555
4
125
[@KCWF]
#IF
CHECKNAMELIST WTComplete1.txt
#SAY
Thank you for you help <$USERNAME>. \ \
<Exit/@exit>
#ACT
BREAK
#IF
CHECKNAMELIST WTComplete.txt
#SAY
Thanks you for you help <$USERNAME>. Please take this reward. \ \
<Exit/@exit>
#ACT
GIVE Gold 50000
Give WT2ndFlTab 1
ADDNAMELIST WTComplete1.txt
BREAK
#IF
CHECKNAMELIST WTStart.txt
#SAY
You have killed <$Human(KillCount)> WoomaFighter's.\
Please come back when you have killed all Fifty. \ \
<Exit/@exit>
#ACT
BREAK
#ELSESAY
Hi would you like to take the quest?\
Note that kills must be in WoomaTemple KR!!\\ \
<Yes/@accept> || <No/@exit>

[@accept]
#ACT
Var Integer Human KillCount 0
SaveVar Human KillCount Integral.txt
ADDNAMELIST WTStart.txt
SET [101] 1
#SAY
Good Luck, Return when you have killed 50 in WoomaTemple KR. \ \
<Exit/@exit>

not far from the same as Preacher -- im goin from his guide, as this is my first
 
Upvote 0

IceMan

Hero's Act Mir 2
Legendary
Apr 17, 2003
8,544
2
370
350
Heres one of mine.
Make sure your on the rite map and your useing the rite name like in the db.

Qman
Code:
[@Login]
#IF
CHECK [446] 1
#ACT
Var Integer Human MultiKill10 0
LoadVar Human MultiKill10 ..\QuestDiary\Variables\Integral.txt
#IF
CHECK [447] 1
#ACT
Var Integer Human MultiKill11 0
LoadVar Human MultiKill11 ..\QuestDiary\Variables\Integral.txt
#IF
CHECK [448] 1
#ACT
Var Integer Human MultiKill12 0
LoadVar Human MultiKill12 ..\QuestDiary\Variables\Integral.txt
#IF
CHECK [449] 1
#ACT
Var Integer Human MultiKill13 0
LoadVar Human MultiKill13 ..\QuestDiary\Variables\Integral.txt
#IF
CHECK [450] 1
#ACT
Var Integer Human MultiKill14 0
LoadVar Human MultiKill14 ..\QuestDiary\Variables\Integral.txt

MapQuest Txt

Code:
D404      [446]    1      Zombie1              *               Zb1
D404      [446]    1      Zombie10             *               Zb10
D405      [446]    1      Zombie1              *               Zb1
D405      [446]    1      Zombie10             *               Zb10
D406      [446]    1      Zombie1              *               Zb1
D406      [446]    1      Zombie10             *               Zb10
D401      [447]    1      Zombie2              *               Zb2
D401      [447]    1      Zombie20             *               Zb20
D402      [447]    1      Zombie2              *               Zb2
D402      [447]    1      Zombie20             *               Zb20
D403      [447]    1      Zombie2              *               Zb2
D403      [447]    1      Zombie20             *               Zb20
D406      [447]    1      Zombie2              *               Zb2
D406      [447]    1      Zombie20             *               Zb20

MapQuest Def
Zb1.txt
Code:
[@main]
#IF
RANDOM 5
CHECK [446] 1
#ACT
CalcVar Human MultiKill10 + 1
SaveVar Human MultiKill10 ..\QuestDiary\Variables\Integral.txt
LineMSG 6 "Quest: <$Human(MultiKill10)>/20 items found!"
GOTO @w1

[@w1]
#IF
CheckVar Human MultiKill10 > 19
#ACT
sendmsg 6 "You have found 20 Zombie eye go see Sam."

Npc goes in market def

Code:
[@main]
#IF
checknamelist MultiKill/30.txt
#ACT
goto @done
break

#IF
checknamelist MultiKill/29.txt
#ACT
goto @5
break

#IF
checknamelist MultiKill/28.txt
#ACT
goto @main5
break

#IF
checknamelist MultiKill/27.txt
#ACT
goto @4
break

#IF
checknamelist MultiKill/26.txt
#ACT
goto @main4
break

#IF
checknamelist MultiKill/25.txt
#ACT
goto @3
break

#IF
checknamelist MultiKill/24.txt
#ACT
goto @main3
break

#IF
checknamelist MultiKill/23.txt
#ACT
goto @2
break

#IF
checknamelist MultiKill/22.txt
#ACT
goto @main2
break

#IF
checknamelist MultiKill/21.txt
#ACT
goto @1
break

#ELSEACT
goto @main1


;; Main output

[@main1]
<Hello, my name is Jim!>\ \
Welcome, you have now found me! I am new to the Venheance\
Mir and I have many many many challanges for you, if\
you wish to accept these challanges, let me know at any\
time!\ \

<Begin Quest 1/@quest1> -- <Exit/@exit>


;; Quest 1


[@quest1]
#ACT
addnamelist MultiKill/21.txt
SET [446] 1
Var Integer Human MultiKill10 0
SaveVar Human MultiKill10 ..\QuestDiary\Variables\Integral.txt
sendmsg 6 "Kill 20 CaveBats! Come back when you have!"
close

[@1]
#IF
CheckVar Human MultiKill10 > 19
#ACT
goto @1.1
#ELSEACT
goto @1.2

[@1.1]
#ACT
delnamelist MultiKill/21.txt
addnamelist MultiKill/22.txt
goto @1.3
sendmsg 6 "Congratulations, Quest 1 Complete!"
give gold 8000
CHANGEEXP + 115



[@1.2]
<Hello, my name is Jim!>\ \
You have currently killed <$HUMAN(MultiKill10)> 20 CaveBats, come back when\
you have killed 20!.\
<exit/@exit>

[@1.3]
<Hello, my name is Jim!>\ \
That was just a warm up, there is no reward for that, but least I\
now know you are worthy to continue, talk to me at any other time\
to begin more quests!\
<exit/@exit>


;; Quest 2

[@main2]
<Hello, my name is Jim!>\ \
So, you want another challange huh! Well, this one will be of\
course much harder, so, if you think you have what it takes then\
this one is made for endurance, think you have what it takes? If\
you can complete this one, I will grant you a reward!\
<Begin Quest 2/@quest2> -- <Exit/@exit>


[@quest2]
#ACT
delnamelist MultiKill/22.txt
addnamelist MultiKill/23.txt
reset [446] 1
SET [447] 1
Var Integer Human MultiKill11 0
SaveVar Human MultiKill11 ..\QuestDiary\Variables\Integral.txt
sendmsg 6 "Kill 30 CaveMaggots! Come back when you have!"
close

[@2]
#IF
CheckVar Human MultiKill11 > 29
#ACT
goto @2.1
#ELSEACT
goto @2.2

[@2.1]
#IF
checkjob wizard
#ACT
goto @2.11
break
#IF
checkjob taoist
#ACT
goto @2.22
break
#IF
checkjob warrior
#ACT
goto @2.33
break
#IF
checkjob assassin
#ACT
goto @2.33
break



[@2.11]
#ACT
delnamelist MultiKill/23.txt
addnamelist MultiKill/24.txt
CHANGEEXP + 2000000
give gold 10000
goto @2.3
sendmsg 6 "Congratulations, Quest 2 Complete!"


[@2.22]
#ACT
delnamelist MultiKill/23.txt
addnamelist MultiKill/24.txt
CHANGEEXP + 2000000
give gold 10000
goto @2.3
sendmsg 6 "Congratulations, Quest 2 Complete!"


[@2.33]
#ACT
delnamelist MultiKill/23.txt
addnamelist MultiKill/24.txt
CHANGEEXP + 200000
give gold 1000000
goto @2.3
sendmsg 6 "Congratulations, Quest 2 Complete!"


[@2.2]
<Hello, my name is Jim!>\
You have currently killed <$HUMAN(MultiKill11)> CaveMaggots, come back when\
you have killed 30!.\
<exit/@exit>

[@2.3]
<Hello, my name is Jim!>\
Congratulations, 30 CaveMaggots is a very long process, as for that I gave\
you a small reward, I am sure you will find a use for these items!!!\
<exit/@exit>

;; Quest 3

[@main3]
<Hello, my name is Jim!>\
So so so, so, you are back for more huh! Well, wise guy! This one will\
require strengh, not just on you're own, muahah!! Oh and i must stress\
that, this is not for the weak, Best of luck, muaha!\
<Begin Quest 3/@quest3> -- <Exit/@exit>


[@quest3]
#ACT
delnamelist MultiKill/24.txt
addnamelist MultiKill/25.txt
reset [447] 1
SET [448] 1
Var Integer Human MultiKill12 0
SaveVar Human MultiKill12 ..\QuestDiary\Variables\Integral.txt
sendmsg 6 "Kill 40 Skeletons around OmasCaves! Good luck!"
close

[@3]
#IF
CheckVar Human MultiKill12 > 39
#ACT
goto @3.1
#ELSEACT
goto @3.2

[@3.1]
#ACT
delnamelist MultiKill/25.txt
addnamelist MultiKill/26.txt
give gold 1200000
CHANGEEXP + 215000
goto @3.3
sendmsg 6 "Congratulations, Quest 3 Complete!"


[@3.2]
<Hello, my name is Jim!>\ \
You have currently killed <$HUMAN(MultiKill12)> Skeletons, come back when\
you have killed 40!.\
<exit/@exit>

[@3.3]
<Hello, my name is Jim!>\ \
Congratulations, 40 Skeleton's not on you're own must have been a challange\
especially when they are real, anyways!!! Hope you enjoyed your reward\
<exit/@exit>

;; Quest 4

[@main4]
Well your back for more i see,lets what i have for you!\
Lets go back to OmaCaves and kill 50 BoneWarriors!\
<Begin Quest 4/@quest4> -- <Exit/@exit>


[@quest4]
#ACT
delnamelist MultiKill/26.txt
addnamelist MultiKill/27.txt
reset [448] 1
SET [449] 1
Var Integer Human MultiKill13 0
SaveVar Human MultiKill13 ..\QuestDiary\Variables\Integral.txt
sendmsg 6 "Kill 50 BoneWarriors around OmaCaves! Good luck!"
close

[@4]
#IF
CheckVar Human MultiKill13 > 49
#ACT
goto @4.1
#ELSEACT
goto @4.2

[@4.1]
#ACT
delnamelist MultiKill/27.txt
addnamelist MultiKill/28.txt
give gold 1250000
CHANGEEXP + 230000
goto @4.3
sendmsg 6 "Congratulations, Quest 4 Complete!"


[@4.2]
<Hello, my name is Jim!>\ \
You have currently killed <$HUMAN(MultiKill13)> BoneWarriors, come back when\
you have killed 50!.\
<exit/@exit>

[@4.3]
<Hello, my name is Jim!>\ \
Congratulations, 50 BoneWarrior's not on you're own must have been a challange\
especially when they are real, anyways!!! Hope you enjoyed your reward\
<exit/@exit>


[@main5]
Well your back for more i see,lets what i have for you!\
Lets go deep into OmaCaves and kill 3 BoneElites!\
<Begin Quest 5/@quest5> -- <Exit/@exit>


[@quest5]
#ACT
delnamelist MultiKill/28.txt
addnamelist MultiKill/29.txt
reset [449] 1
SET [450] 1
Var Integer Human MultiKill14 0
SaveVar Human MultiKill14 ..\QuestDiary\Variables\Integral.txt
sendmsg 6 "Kill 3 BoneElite deep in the OmaCaves! Good luck!"
close

[@5]
#IF
CheckVar Human MultiKill14 > 2
#ACT
goto @5.1
#ELSEACT
goto @5.2

[@5.1]
#ACT
delnamelist MultiKill/29.txt
addnamelist MultiKill/30.txt
give gold 1300000
CHANGEEXP + 2450000
goto @5.3
sendmsg 6 "Congratulations, Quest 5 Complete!"


[@5.2]
<Hello, my name is Jim!>\ \
You have currently killed <$HUMAN(MultiKill14)> BoneElites, come back when\
you have killed 20!.\
<exit/@exit>

[@5.3]
<Hello, my name is Jim!>\ \
Congratulations, 3 BoneElite's not on you're own must have been a challange\
especially when they are real, anyways!!! Hope you enjoyed your reward\
<exit/@exit>

[@done]
There will be more to come....\
<Exit/@exit>

Then make a folder called MultiKill in market def with txt 21-30 in it.
 
Upvote 0

excluded

Golden Oldie
Golden Oldie
May 31, 2006
555
4
125
Tai it happens when NPC is clicked!! >> sorry for late response m8y

IceMan nice lookin script got it working to a certain degree but get this in m2server

[16/11/2010 10:22:40] [QuestAction] Command:SAVEVAR NPC:WoomaTemple Map:0(354:232) Param1:Human Param2:MultiKill10 Param3:..\QuestDiary\Variables\Integral.txt Param4: Param5: Param6:

obvi WoomaTemple:0 = NPC

SaveVar Human MultiKill10 ..\QuestDiary\Variables\Integral.txt <<< this is where its picking up the problem

changed a few things in WTQuest.txt in MapQuest_def to what it should be now i get this
when NPC is clicked


[16/11/2010 10:38:11] [QuestAction] Command:LOADVAR NPC:QManage Map:0(0:0) Param1:Human Param2:MultiKill10 Param3:..\QuestDiary\Variables\Integral.txt Param4: Param5: Param6:
[16/11/2010 10:38:17] [QuestAction] Command:SAVEVAR NPC:WoomaTemple Map:0(354:232) Param1:Human Param2:MultiKill10

beggining to think KC quests aint for me lol
 
Last edited:
Upvote 0

Tai

HEAD CAPTAIN
Staff member
Administrator
May 11, 2003
14,330
2
2,716
515
United Kingdom
I'm no good with variables, I remember getting this myself and not knowing how to solve. As far as I remember though the quest still worked fine.
 
Upvote 0

IceMan

Hero's Act Mir 2
Legendary
Apr 17, 2003
8,544
2
370
350
i'll help u tonite mate

gotta go to work but make u have this \QuestDiary\Variables\Integral.txt
 
Upvote 0

excluded

Golden Oldie
Golden Oldie
May 31, 2006
555
4
125
i'll help u tonite mate

gotta go to work but make u have this \QuestDiary\Variables\Integral.txt


Ye i got >> ..\QuestDiary\Variables\Intergral.txt

cheers iceman mate i wait till tonight, hopefully after finishing this 1 i will be able to run off a KC quest 1 after the other


Sorry Iceman didnt mean to ignore your offer last night, wasnt feeling too good so went to bed @ like 7:30pm
 
Upvote 0

excluded

Golden Oldie
Golden Oldie
May 31, 2006
555
4
125
KC quest quit lol

Grrr its really done my head in now, gone through a few guides over and over again, tell ya i cannot master a killcount quest for a 2.3 server, so think i might leave em out.

Thnx for all the help i recieved much appriciated

Mason
 
Upvote 0