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

[8.1+] More shot with crossbow

Burn

New Member
Joined
Dec 23, 2009
Messages
26
Reaction score
1
Hey.
Can you help me in script?
I must do my crossbow shot in that area:
(0,0,1,0,0)
(0,1,0,1,0)
(1,0,1,0,1)
(0,1,0,1,0)
(0,0,1,0,0)

Hit more monsters in one time
Sorry for my bad english.

Plz help. xd
 
It should look like this:

LUA:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, 1)
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_GREENSTAR)
setCombatFormula(combat, COMBAT_FORMULA_SKILL, 0, 0, 1.0, 0)

local a = {
{0,0,1,0,0},
{0,1,0,1,0},
{1,0,1,0,1},
{0,1,0,1,0},
{0,0,1,0,0}
}

local area = createCombatArea(a, a)
setCombatArea(combat, area)

function onUseWeapon(cid, var)
	return doCombat(cid, combat, var)
end
 
LUA:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, 1)
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_GREENSTAR)
setCombatFormula(combat, COMBAT_FORMULA_SKILL, 1, 0, 1, 0)
 
local a = {
{0,0,1,0,0},
{0,1,0,1,0},
{1,0,1,0,1},
{0,1,0,1,0},
{0,0,1,0,0}
}
 
local area = createCombatArea(a, a)
setCombatArea(combat, area)
 
function onUseWeapon(cid, var)
	return doCombat(cid, combat, var)
end
 
Back
Top