Tibia
Do spells.xml dodajemy:
<instant name="Ethereal Spear" words="exori con" needtarget="1" needWeapon="1" soul="0" exhaustion="1" prem="1" enabled="1" script="ethereal.lua">
W skryptach tworzymy plik ethereal.lua edytujemy i wklejamy :
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_DRAWBLOOD)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, 27)
setCombatFormula(combat, COMBAT_FORMULA_SKILL, 0, 0, -1.2, 0)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
I to na tyle:)
Offline