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

Wand damage based on distane fighting [Charges]

Fresh

Quack!
Joined
Oct 21, 2009
Messages
1,855
Solutions
18
Reaction score
671
Hello.
Im working on my OT and i need one base function.
Im going to make bow with charges & hits [damage] based on player distance fighting skill.

Anyone can make the weapons.xml script for me (damage based on distance fighting) ?
:w00t:
 
LUA:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 1)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_REDSTAR)
setCombatFormula(combat, COMBAT_FORMULA_SKILL, -1.5, -60, -1.8, -66)

function onUseWeapon(cid, var)
return doCombat(cid, combat, var)
end

that's based on skill: COMBAT_FORMULA_SKILL.

@nottested.
 
Back
Top