TENHO UM OT 8.6
COM POÇÕES CONSUMIVEIS + AS HUNAS SAO INFINITAS OU QUASE
ÉLAS GASTAO SÓ 1 UNIDADE DEPOIS FICA INFINITA
O PROBLEMA É, COMO FASSO PARA ÉLAS ACABAREM IGUAL AS POCOES E TBM COMO ALMENTO AS CARGAS DELA
JA ALMENTEI NO ITEMS.XML MAS NAO ALMENTO NO NPC
NO MEU OT ELAS TAO ASSIM
--------config.lua-------
removeWeaponAmmunition = true
removeWeaponCharges = true
removeRuneCharges = true
--------items.xml---------
</item>
<item id="2268" article="a" name="sudden death rune">
<attribute key="runeSpellName" value="adori gran mort"/>
<attribute key="weight" value="120"/>
<attribute key="charges" value="20"/>
<attribute key="showcharges" value="1"/>
--------sudden death.lua--------
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, true)
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SUDDENDEATH)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1, -170, -1, -230, 5, 5, 4, 7)
function onCastSpell(cid, var) return doCombat(cid, combat, var) end
---------spells.xml---------
<rune name="Sudden Death" id="2268" allowfaruse="1" charges="20" lvl="45"
maglv=" 15" exhaustion="1400" needtarget="1"
blocktype="solid" script="attack/sudden death.lua"/>