<?xml version="1.0" encoding="UTF-8"?>
<mod name="TransAmulet" version="1.0" author="Jhon" contact="xtibia.com" enabled="yes">
<config name="trans_func"><![CDATA[
itemTransf = { -- id do item que tem que ter, id do item que vai transformar
[11962] = 2197,
[11963] = 2173,
[11964] = 2125
}
]]></config>
<event type="login" name="TransformRegister" event="script"><![CDATA[
function onLogin(cid)
registerCreatureEvent(cid, "TransDeath")
return true
end]]></event>
<event type="death" name="TransDeath" event="script"><![CDATA[
domodlib('trans_func')
function onDeath(cid, corpse, deathList)
if isPlayer(cid) then
if isInArray(drop_id, getPlayerSlotItem(cid, 2)) then
doCreatureSetDropLoot(cid, false)
end
if itemTransf[getPlayerSlotItem(cid, 2).itemid] then
doTransformItem(getPlayerSlotItem(cid, 2).uid, itemTransf[getPlayerSlotItem(cid, 2).itemid])
end
end
return true
end
]]></event>
</mod>
Pergunta
godjean 0
Ola pessoal do xtibia
Então estou com um problema no meu servidor.
Tipo ele tem um script que ao morre o colar vira outro tipo porem se vc usa uma runa ele some tambem.
Item.xml
Script /MOD
Link para o comentário
Compartilhar em outros sites
2 respostass a esta questão
Posts Recomendados