Postado Fevereiro 17, 2018 7 anos PLEASE need code or script to player kill monster and get storage ( or players kill same monster all player get the same storage) Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui.
Postado Fevereiro 17, 2018 7 anos -- XML's of tfs 0.4 (the XML's not tested in tfs 1.3) -- <event type="kill" name="Death" event="script" value="death.lua"/> -- <event type="login" name="Deathh" event="script" value="death.lua"/> local t = { -- Example : ["Monster name"] = storage ["Goblin"] = {35567}, ["Spider"] = {45678}, } function onKill(cid, target) if not monster:isMonster(target) then return false end local monster = t[creature:getName(target)] if monster then player:setStorageValue(cid, monster[1], player:getStorageValue(cid, monster[1])+1) player:sendTextMessage(cid, 27, "".. monster ..": ".. player:getStorageValue(cid, monster[1])..".") end return true end function onLogin(cid) creature:registerEvent(cid, "Death") return true end
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.