• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Solved Custom SD rune Distance

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
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"/>
 
Back
Top