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

Solved Help weapon

Thorn

Spriting since 2013
Joined
Sep 24, 2012
Messages
2,203
Solutions
1
Reaction score
923
Location
Chile
Hello, well i have a script of a paladin weapon (slingshot) but it doesn't hit more than one, i would like to know how make it hit 2000-2300 plz, here is my script:

This in items.xml

LUA:
<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="10"/>
		<attribute key="breakChance" value="0"/>
		<attribute key="ammoAction" value="moveback"/>
	</item>

this in weapons.lua


LUA:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SMALLHOLY)
setCombatFormula(combat, COMBAT_FORMULA_SKILL, 1, 0, 1, 0) 
function onUseWeapon(cid, var)
return doCombat(cid, combat, var)
end
 
What kind of weapon should it be? You want it to be like an assassin star?
Then add
XML:
<attribute key="attack" value="65" />
You can change the value to make it hit more.
 
That the weapon should work similar as an assassin star. So not like a bow for example but just like a normal weapon that attacks from distance.
 
yeah, thanks man it worked perfectly :D i just edit the 65 and it worked just like i wanted :D thanks +rep
 
Back
Top