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
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:
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?
[COLOR="Red"]0[/COLOR] [101] 1 Deer * DeerQuest
0 [101] 1 Deer * DeerQuest
<mapname> [101] 1 Deer * DeerQuest
PMSL what a tit, I left the map name as 0, when it should be a different map name! Thanks mate.ρяєα¢нєя;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
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
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
go for it im pretty busy tho just catch me when u can or leave me offline msg and i norm reply![]()
