Postado Julho 19, 2019 5 anos Autor Em 17/07/2019 em 10:44, Vodkart disse: vá até data\creaturescripts\scripts e crie um arquivo.lua e renomeie para preparedeathred.lua dentro coloque: function onDeath(cid, corpse, deathList) if (getPlayerSlotItem(cid, 2).itemid == 13755) then -- id do colar doCreatureSetDropLoot(cid, getPlayerSkullType(cid) >= 4 and true or false) if getPlayerSkullType(cid) >= 4 then doPlayerRemoveItem(cid, 13755, 1) end end return true end em data\creaturescripts\scripts\login.lua adiciona a linha: registerCreatureEvent(cid, "RedSkullAmulet") creaturescripts.xml adicione: <event type="death" name="RedSkullAmulet" event="script" value="preparedeathred.lua"/> em items.xml deixa assim: <item id="13755" article="a" name="Amulet Vip"> <attribute key="description" value="Protect All 6%, Dropa os items apenas RedSkull" /> <attribute key="weight" value="500" /> <attribute key="absorbPercentAll" value="6" /> <attribute key="slotType" value="necklace" /> @Vodkart muito obrigado era exatamente isso que eu procurava funcionou perfeitamente, desculpe a demora trabalhar em um projeto em 2 pessoas é exaustivo kk
Postado Janeiro 10, 2020 5 anos Em 17/07/2019 em 10:44, Vodkart disse: vá até data\creaturescripts\scripts e crie um arquivo.lua e renomeie para preparedeathred.lua dentro coloque: function onDeath(cid, corpse, deathList) if (getPlayerSlotItem(cid, 2).itemid == 13755) then -- id do colar doCreatureSetDropLoot(cid, getPlayerSkullType(cid) >= 4 and true or false) if getPlayerSkullType(cid) >= 4 then doPlayerRemoveItem(cid, 13755, 1) end end return true end em data\creaturescripts\scripts\login.lua adiciona a linha: registerCreatureEvent(cid, "RedSkullAmulet") creaturescripts.xml adicione: <event type="death" name="RedSkullAmulet" event="script" value="preparedeathred.lua"/> em items.xml deixa assim: <item id="13755" article="a" name="Amulet Vip"> <attribute key="description" value="Protect All 6%, Dropa os items apenas RedSkull" /> <attribute key="weight" value="500" /> <attribute key="absorbPercentAll" value="6" /> <attribute key="slotType" value="necklace" /> Top! Te ajudeii? Da um REP+ que me ajuda bastante!
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.