wizinx
Active Member
Hello, could someone help me to run the task count in party ?, I use tfs 1.2 base nostalrius.
Lua:
function onKill(player, target)
local monster = config[target:getName():lower()]
if not monster or target:getMaster() then
return true
end
local storageValue = player:getStorageValue(monster.storage)
if storageValue >= monster.start then
if storageValue >= monster.count then
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "You have already killed " .. monster.count .. " " .. monster.plural .. ". Report back to Tusker.")
else
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "You have killed [" .. storageValue .. "/" .. monster.count .. "] " .. monster.plural .. ".")
end
player:setStorageValue(monster.storage, storageValue + 1)
end
return true
end