Nossa legal a idéia. Porem isso tem uma duração? Seria bom se você explicasse um pouco mais sobre quanto ela dura, etc. Já que quem não entende muito de scripting vai ter problemas para procurar essa informação. E também explicar qual valores teria que editar para ajustar o script as rates e o PVP do seu server.
Duvida?
<instant name="Phoenix Fury" words="Utevo gran mas flam" lvl="5" manapercent="30" exhaustion="60000" needlearn="0"
No final não teria que colocar o ">" para fechar o script?
E o titulo do tópico poderia estar no "Center".
Até mais.
Espero ter ajudado.











info
Grupo: Herói
Registrado: 17/02/08
Posts: 2.5k
Reputação: +193
Mod Reflect by IRockstar
Isso é uma modificação que funciona da seguinte forma:
Você coloca o phoenix shield em alguma das mãos, e fala a magia, ele será encantado por algum tempo e todo o dano recebido irá voltar para quem te atacou. Porém os monstros não darão experience.
Em /mods/phoenix_shield.xml coloque:
<?xml version="1.0" encoding="UTF-8"?> <mod name="Phoenix magic shield" version="1.0" author="William Christopher" contact="" enabled="yes"> <description> Phoenix shield script .-. </description> <config name="config"><![CDATA[ local storage_value = 45605 local item_id = 6539 local hit_amount = 25 ]]></config> <event type="login" name="phoenixLogin" event="script"><![CDATA[ function onLogin(cid) registerCreatureEvent(cid,"phoenixShield") return true end ]]></event> <event type="statschange" name="phoenixShield" event="script"><![CDATA[ domodlib("config") function onStatsChange(cid, attacker, type, combat, value) if type == STATSCHANGE_HEALTHGAIN then if getPlayerSlotItem(cid, CONST_SLOT_RIGHT).itemid == item_id or getPlayerSlotItem(cid, CONST_SLOT_LEFT).itemid == item_id then if getPlayerStorageValue(cid, storage_value) >= 1 then doCreatureAddHealth(attacker, - value) doPlayerSetStorageValue(cid, storage_value, getPlayerStorageValue(cid, storage_value)-1) doSendMagicEffect(getThingPos(attacker), CONST_ME_DRAWBLOOD) doSendAnimatedText(getThingPos(attacker), value, TEXTCOLOR_RED) doSendDistanceShoot(getThingPos(cid), getThingPos(attacker), CONST_ANI_ENERGY) return false end else return true end end return true end ]]></event> <instant name="Phoenix Fury" words="Utevo gran mas flam" lvl="5" manapercent="30" exhaustion="60000" needlearn="0" event="script"> <vocation id="1"/> <vocation id="2"/> <vocation id="3"/> <vocation id="4"/><![CDATA[ function onCastSpell(cid, var) if getPlayerSlotItem(cid, CONST_SLOT_RIGHT).itemid == item_id or getPlayerSlotItem(cid, CONST_SLOT_LEFT).itemid == item_id then if getPlayerSlotItem(cid, CONST_SLOT_RIGHT).itemid == item_id then doTransformItem(getPlayerSlotItem(cid, CONST_SLOT_RIGHT).uid, getPlayerSlotItem(cid, CONST_SLOT_RIGHT).itemid, 25) else doTransformItem(getPlayerSlotItem(cid, CONST_SLOT_LEFT).uid, getPlayerSlotItem(cid, CONST_SLOT_LEFT).itemid, 25) end for i = 1, 5 do addEvent(doSendMagicEffect, i*1000, getThingPos(cid), CONST_ME_MAGIC_BLUE) end doPlayerSetStorageValue(cid, storage_value, hit_amount) addEvent(doSendMagicEffect, 5000, getThingPos(cid), 6) else doPlayerSendCancel(cid, "You can't enchant anything because you do not have the phoenix shield.") doSendMagicEffect(getThingPos(cid), CONST_ME_POFF) return false end return true end ]]></instant> </mod>Para mudar as vocações que podem utilizar a spell, modifique:
Você pode mudar tudo aqui:
Todos os créditos a IRockstar(dark billie)
Editado Abril 12 por Henrique Moura