Ghost Knight
New Member
- Joined
- Nov 12, 2012
- Messages
- 25
- Reaction score
- 0
well i have a problem my sd only shoot if you are next to the player but if you are 2 or more space, dont shoot its say me to far away
me scrip
AND SPELLS.XML
<rune name=" Rich SD" id="2309" allowfaruse="#" charges="#" lvl="1000" maglv="1" exhaustion="100" needtarget="1" blocktype="solid" script="Donators/RichSD.lua"/>
me scrip
LUA:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 17)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, 31)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -800.0, -89000, -800, -89000)
local condition = createConditionObject(CONDITION_CURSED)
setConditionParam(condition, CONDITION_PARAM_DELAYED, 1)
addDamageCondition(condition, 10, 9000, -0)
setCombatCondition(combat, condition)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
AND SPELLS.XML
<rune name=" Rich SD" id="2309" allowfaruse="#" charges="#" lvl="1000" maglv="1" exhaustion="100" needtarget="1" blocktype="solid" script="Donators/RichSD.lua"/>