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

minWeaponDamage ?

Serp

/* No comment */
Joined
Mar 23, 2008
Messages
249
Reaction score
1
Using:
TFS Lateast 0.2 tags


Is there anyway to make it so weapons have a MINIMUM damage, aswell as a maxium damage?

[Im trying to make weapon damage less randomized]
 
if your putting it like a new type of weapon...


Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, 1)
setCombatParam(combat, COMBAT_PARAM_BLOCKSHIELD, 1)
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_FIREAREA)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_BURSTARROW)
setCombatFormula(combat, COMBAT_FORMULA_SKILL, Multiplier 1 -->1, Min Damage -->0, Multiplier 2 -->1, Max Damage -->0)

local area = createCombatArea( { {1, 1, 1}, {1, 3, 1}, {1, 1, 1} } )
setCombatArea(combat, area)

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

thats just my edited burst arrow to show you what does what
 
I meant, in the Sources i noticed 'melee weapons' all have a 'MaxDamage' but no 'MinDamage' i was hoping i could add a 'MinDamage' so weapons like axes/clubs/swords damage isn't as randomized. sorry if im explaining bad thanks for trying to help
 
Back
Top