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

Lua Weapons formula

Madara_

Banned User
Joined
Sep 4, 2019
Messages
20
Reaction score
1
Location
brazol
Hi, i have some problem but i don't know what exactly is wrong i want to make my wand hits between those ranges -1000 ~2000
here's my script file for ya using tfs 0.3.7
LUA:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_DEATH)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 17)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 0, -1000, 0, -2000)
function onUseWeapon(cid, var)
    return doCombat(cid, combat, var)
end
XML:
<wand id="2184" level="1" mana="15" min="100" max="200" type="holy" event="script" value="crystal.lua"> <!-- New Wand -->
    <vocation id="1"/>
    <vocation id="2"/>
    <vocation id="5"/>
    <vocation id="6"/>
    </wand>
the problem is when i'm using it it hit between this ranges -30 ~ -40 and i want to make it -1000 ~ -2000
thanks
 
Back
Top