Tenaria
New Member
- Joined
- Apr 26, 2009
- Messages
- 142
- Reaction score
- 2
Hello, its me again
Iam really bored, and there are some new member they want the "Sprite Wand" Heres the code for it. NOT TESTED
But its Should work.
Heres the code, just create an new lua file in data/weapons/scripts name it what ever u want i named it "sprite"
and put that in it
In the Weapons XML put that where ever u want:
Yours, Tenaria!
Iam really bored, and there are some new member they want the "Sprite Wand" Heres the code for it. NOT TESTED
But its Should work.
Heres the code, just create an new lua file in data/weapons/scripts name it what ever u want i named it "sprite"
and put that in it
PHP:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1.0, -60, -1.5, -70)
function onUseWeapon(cid, var)
return doCombat(cid, combat, var)
end
In the Weapons XML put that where ever u want:
PHP:
<melee id="ID OF WAND" level="50" unproperly="1" enabled="1" function="internalLoadWeapon" script="sprite.lua"/>
Yours, Tenaria!