• 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!

Distance Weapons

imback1

Unknown member
Joined
Jul 11, 2013
Messages
785
Solutions
1
Reaction score
46
Hello

May I know how to make arrows attack depends on distance for example Shiver arrow/energy arrow they are attacking with 500-1500 with bot hit+80% and + 150 attack i need these arrows attack with distance and make hit of it looks like exori con effect :)
Thx <3
 
Do you mean that the attack is based on distance to the target? So for example if you stand 1 square away you hit 1000 and 2 square away 1200, 3 1400, 4 1600, something like that?
 
Data/XML/Vocation.xml

Distance Damage
distDamage="XX"
If you want increase Attack Speed.
Attackspeed="XXXX"

PHP:
<vocation id="3" clientid="2" name="Paladin" description="a paladin" gaincap="20" gainhp="10" gainmana="15" gainhpticks="4" gainhpamount="5" gainmanaticks="4" gainmanaamount="5" manamultiplier="1.4" attackspeed="2000" basespeed="220" soulmax="100" gainsoulticks="120" fromvoc="3">
<formula meleeDamage="1.0" distDamage="1.0" defense="1.0" armor="1.0"/>
<skill id="0" multiplier="1.2"/>
<skill id="1" multiplier="1.2"/>
<skill id="2" multiplier="1.2"/>
<skill id="3" multiplier="1.2"/>
<skill id="4" multiplier="1.1"/>
<skill id="5" multiplier="1.1"/>
<skill id="6" multiplier="1.1"/>
</vocation>

If you want add some effect then Data/Weapons/
Some EXAMPLE: Limos Weapon (healing % of weapon damage)
 
Last edited:
PHOTO >>> http://tinypic.com/r/2dqbk9/8

this is my script of con didnt change anything on it
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, true)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ETHEREALSPEAR)

function onGetFormulaValues(cid, level, skill, attack, factor)
return -(((skill + 25) / 3) + (level / 5)), -((skill + 25) + (level / 5))
end

setCombatCallback(combat, CALLBACK_PARAM_SKILLVALUE, "onGetFormulaValues")
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end

btw what is the number which i need to change to make it more dmg

and about my arrow i need it with lua to hit with con effect and attack with distance skills not with random dmg or that low dmg

this is another spell (mas frigo)

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_ICETORNADO)
setAttackFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 5, 10, 5, 10)

local area = createCombatArea(AREA_CROSS5X5)
setCombatArea(combat, area)

function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
i just wants to know which number i need to change to make it normally and hit by magic level

and about heal of spirit i need to change it to get high with magic and level i mean the healing btw about GP//HP where can i find it btw? :D i searched about it and couldnt find it
thx <3
 
Last edited:
setAttackFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 5, 10, 5, 10) change it till get damge u want its for ml and
return -(((skill + 25) / 3) + (level / 5)), -((skill + 25) + (level / 5))
change it till get damge u want its for skills
 
Back
Top