eai galera ^^
então eu queria fazer um aol infinito, porém deste jeito não está dando:
<item id="5785" article="an" name="Master Medalha"> <attribute key="weight" value="420" /> <attribute key="slotType" value="necklace" /> <attribute key="charges" value="0" /> <attribute key="description" value="Apenas os Guerreiros Tem Esse Colar! Funciona como aol permanente!" /> <attribute key="preventDrop" value="1" /> </item>
tentei tirando charges e colocando esse script:
function onPrepareDeath(cid, lastHitKiller, mostDamageKiller) if isPlayer(cid) and getPlayerSkullType(cid) ~= SKULL_RED then if (getPlayerSlotItem(cid, 2).itemid == 5785) then doCreatureSetDropLoot(cid, false) doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HOLYAREA) return TRUE end end return TRUE end
mas não deu