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

need help in wands

3alola1

I don't have time
Joined
Sep 2, 2010
Messages
950
Solutions
9
Reaction score
570
Location
Darashia
hi ther is something wronge in my wand i need to make them by leveling high attaks pliz help me :)
 
Solution
Try with that:

Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SUDDENDEATH)
function onGetFormulaValues(cid, level, maglevel)
	local min = math.floor(level / 5) + maglevel * 2.8 + 50
	local max = math.floor(level / 5) + maglevel * 3.8 + 50
	return -min, -max
end
setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

function onUseWeapon(cid, var)
	return doCombat(cid, combat, var)
end
Make a simple LUA code where the wand deals more damage each level.

I believe you can find such script here on the forum if you search.
 
Try with that:

Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SUDDENDEATH)
function onGetFormulaValues(cid, level, maglevel)
	local min = math.floor(level / 5) + maglevel * 2.8 + 50
	local max = math.floor(level / 5) + maglevel * 3.8 + 50
	return -min, -max
end
setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

function onUseWeapon(cid, var)
	return doCombat(cid, combat, var)
end
 
Solution
Back
Top