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

[Script] Distance/Melee Weps

justin234

New Member
Joined
Jan 22, 2008
Messages
999
Reaction score
4
I am wondering if there is a script that can allow a weapon to hit 2 times at once?

Like a double hit in the time it takes to hit once.
Just wondering if its possible...It would be great for my serv.

Using TFS 0.3.1.
 
Maybe... try this?
PHP:
data\weapons\scripts\doublehit.lua

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, 1)
setCombatParam(combat, COMBAT_PARAM_BLOCKSHIELD, 1)
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatFormula(combat, COMBAT_FORMULA_SKILL, 1, 0, 1, 0)

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

and in data\weapons\weapons.xml add:

PHP:
<melee id="2400" script="doublehit.lua">
 
Back
Top