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

Lua Wand that attacks mutiple enemies in one shot

mayel

New Member
Joined
Sep 11, 2009
Messages
174
Reaction score
2
Location
Stockholm, Sweden
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_ICEATTACK)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SMALLICE)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -10, -10, -1, -20, 22, 34, 1.4, 5.1)

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

The wand works but wouldn't it be awesome if it hit 4 targets each shot?

I am not a professional lua scripter, so this task I'll ask the pro's here at Otland for.

Rep++

Regards,

Mayel
 
Doesnt this have to do something with the client?, cuz u can only atk one target at the same time ;o, im maybe thinking wrong :p
 
Back
Top