Postado Outubro 7, 2017 7 anos Autor 46 minutos atrás, Dwarfer disse: @bismarkzika Em creaturescripts/scripts crie um arquivo.lua: Mostrar conteúdo oculto local t = { [0] = 1111, -- edite aqui o corpo para a vocação de id [0] [1] = 2222, [2] = 3333, [3] = 4444, [4] = 5555 } function onDeath(cid, corpse, deathList) local voc = t[getPlayerVocation(cid)] if (not voc) or (not isPlayer(cid)) then return true end local p = getCreaturePosition(cid) addEvent(function () local check = false for i = 0, 255 do p.stackpos = i tile = getTileThingByPos(p) if tile.uid > 0 and isCorpse(tile.uid) then check = true break end end if check == true then doTransformItem(tile.uid, voc) end end, 1) return true end No login.lua, registre o evento: registerCreatureEvent(cid, "CorpseVocation") Em creaturescripts.xml, adicione a tag: <event type="death" name="CorpseVocation" event="script" value="NOMEDOSEUARQUIVO.lua"/> @Dwarfer Funcionou corretamente vlw ai, +REP
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.