Sentinel3
New Member
- Joined
- Oct 16, 2014
- Messages
- 180
- Reaction score
- 0
Hi everyone,
I've got a problem when players want to start the tasks of Grizzly Adams NPC.
Using: Lastest version of TFS 1.0
The problem is when players try to start the task and monsters killed doesn't count in task.
/data/creaturescripts/scripts/killing in the name of quest/killingInTheNameOfQuestKills.lua
/data/lib/killingInTheNameOfQuestKills.lua
http://pastebin.com/BuNf1AJ3
I've got a problem when players want to start the tasks of Grizzly Adams NPC.
Using: Lastest version of TFS 1.0
The problem is when players try to start the task and monsters killed doesn't count in task.
/data/creaturescripts/scripts/killing in the name of quest/killingInTheNameOfQuestKills.lua
HTML:
dofile('data/lib/killingInTheNameOfQuest.lua')
function onKill(cid, target, lastHit)
local started = getPlayerStartedTasks(cid)
if isPlayer(target) or isSummon(target) then return true end
if started and #started > 0 then
for _, id in ipairs(started) do
if isInArray(tasks[id].creatures, getCreatureName(target):lower()) then
if getPlayerStorageValue(cid, KILLSSTORAGE_BASE + id) < tasks[id].killsRequired then
setPlayerStorageValue(cid, KILLSSTORAGE_BASE + id, getPlayerStorageValue(cid, KILLSSTORAGE_BASE + id) + 1)
end
end
end
end
return true
end
http://pastebin.com/BuNf1AJ3
Last edited: