Dont forget mate that to the top left of your screen there is a search box =)
https://otland.net/threads/whi-world-npc-task-master-tfs-1-0.228661/
So do you want when you kill 100 rats you gain 1 point and then talk to a NPC to buy stuff?
local storage = 123456
local amount = 100
function onKill(cid, target)
if isPlayer(target) or isSummon(target) then
return true
end
local killCount = player:getStorageValue(storage)
if killCount <= amount then
player:setStorageValue(storage, killCount + 1)
end
return true
end
Code:local storage = 123456 local amount = 100 function onKill(cid, target) if isPlayer(target) or isSummon(target) then return true end local killCount = player:getStorageValue(storage) if killCount <= amount then player:setStorageValue(storage, killCount + 1) end return true end
yes, well it was just an example, not even sure it will work, maybe someone else can help you out because all i did was edit whitevo's code and his script is for 1.0this go in creaturescripts if im correct right? & thanks for the code
<event type="login" name="creature" script="killcount.lua"/>
player:registerEvent("creature")