Postado Setembro 16, 2014 10 anos Gostaria que alguem Arrumasse 2 scripts para mim Primeiro, e o amuleto de red eu uso distro otx e não funciona continua dropando os items com red e black skull function onDeath(cid, corpse, deathList) if (getPlayerSlotItem(cid, 2).itemid == 7890) and getPlayerSkullType(cid) >= 4 then doPlayerRemoveItem(cid, 7890, 1) doCreatureSetDropLoot(cid, false) end return true end Segundo, e o Creaturescripts dodge, Ele não sobe a mensagem Dodge e não esta funcionando eu acho. function onCombat(cid, target) local storage = 8754954 if isPlayer(target) == true then local percent = math.random(1,800) if percent <= getPlayerStorageValue(target,storage) then doSendAnimatedText(getPlayerPosition(target),"DODGE", 100) doSendMagicEffect(getPlayerPosition(target), 3) return false end end return true end obs: eu usava distro tfs 0.4 e funcionava perfeitamente, foi eu troca para distro otx parou de funciona alguem poderia me ajudar. Muito obrigado!
Postado Setembro 16, 2014 10 anos Solução Olá, Boa tarde. Quanto ao amuleto de red use esse script: <event type="death" name="redSkullAmulet" event="script" value="redamulet.lua"/> redamulet.lua local ID_ITEM = 2131 Mude 2131 para o id do seu item! function onDeath(cid, corpse, deathList) local ID_ITEM = 2131 if (getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == ID_ITEM) and (getCreatureSkullType(cid) == SKULL_RED or getCreatureSkullType(cid) == SKULL_BLACK) then doCreatureSetDropLoot(cid, false) end return true end Em login.lua adicione isso: registerCreatureEvent(cid, "redSkullAmulet") Quanto ao DODGE fiz umas alterações no seu script veja se funciona: function onCombat(cid, target) local storage = 8754954 if isPlayer(target) == true then local percent = math.random(1,800) if percent <= getPlayerStorageValue(target,storage) then doSendAnimatedText(getCreaturePos(cid),"DODGE", 6) doSendMagicEffect(getCreaturePos(cid), 3) return false end end return true end Editado Setembro 16, 2014 10 anos por HServers (veja o histórico de edições)
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.