boni
New Member
- Joined
- Jan 3, 2010
- Messages
- 25
- Reaction score
- 0
Also I have made a skript for a runesword
When you use the rune you shoot 2 times knifes and they hit you traget and that work fine... but the "runes" dont remove... in config stay remove rune and all other runes remove by use but THEY NOT
scripts:
i think in this script is the mistake
sais.lua
in spells xml:
and in items xml:
hope for help
eace:
When you use the rune you shoot 2 times knifes and they hit you traget and that work fine... but the "runes" dont remove... in config stay remove rune and all other runes remove by use but THEY NOT
scripts:
i think in this script is the mistake
sais.lua
PHP:
local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat1, COMBAT_PARAM_EFFECT, CONST_ME_HITAREA)
setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_THROWINGKNIFE)
setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -66.6, -40, -81.0, 0)
local combat2 = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat2, COMBAT_PARAM_EFFECT, CONST_ME_HITAREA)
setCombatParam(combat2, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_THROWINGKNIFE)
setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -66.6, -40, -81.0, 0)
local function onCastSpell1(parameters)
doCombat(parameters.cid, parameters.combat1, parameters.var)
end
local function onCastSpell2(parameters)
doCombat(parameters.cid, parameters.combat2, parameters.var)
end
function onCastSpell(cid, var)
local parameters = { cid = cid, var = var, combat1 = combat1, combat2 = combat2 }
addEvent(onCastSpell1, 0, parameters)
addEvent(onCastSpell2, 300, parameters)
end
in spells xml:
PHP:
<rune name="Shootable Sais" id="11300" allowfaruse="1" charges="1" lvl="700" maglv="27" exhaustion="1000" blocktype="solid" event="script" value="aaeigene/sais.lua">
<vocation id="7"/>
</rune>
and in items xml:
PHP:
<item id="11300" article="a" name="shootable sais" plural="shootable sais">
<attribute key="weight" value="90" />
<attribute key="charges" value="1"/>
</item>
hope for help
eace: