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

attack of a weapon

Thorn

Spriting since 2013
Joined
Sep 24, 2012
Messages
2,203
Solutions
1
Reaction score
923
Location
Chile
Hello, i have the slingshot ID 5907 like this in items:
XML:
<item id="5907" article="a" name="Supreme Slingshot">
		<attribute key="weight" value="200"/>
		<attribute key="weaponType" value="distance"/>
		<attribute key="shootType" value="SNOWBALL"/>
		<attribute key="HitChance" value="100"/>
		<attribute key="range" value="6"/>
		<attribute key="breakChance" value="0"/>
		<attribute key="ammoAction" value="moveback"/>

and i need that this weapons attacks between 1800 and 2200 plzzz and i don't know how to do it ://
 
Using a weapons lua file. Try something like this:

LUA:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SMALLHOLY)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -0.1, -1800, -0.1, -2200)

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

LUA:
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -0.1, -1800, -0.1, -2200)

Replace it with:

LUA:
setCombatFormula(combat, COMBAT_FORMULA_SKILL, 1, 0, 1, 0)

Just edit damage
 
Back
Top