• 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 Weapon effect help

MadMOOK

Hoo
Joined
Apr 20, 2011
Messages
802
Reaction score
43
If i have a melee weapon and i want it to have explosion effect on target when it hits, what do i add to weapons.xml?
 
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, 1)
setCombatParam(combat, COMBAT_PARAM_BLOCKSHIELD, 1)
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_FIREAREA)
setCombatFormula(combat, COMBAT_FORMULA_SKILL, 1, 0, 1, 0)
local area = createCombatArea( { {1, 1, 1}, {1, 3, 1}, {1, 1, 1} } )
setCombatArea(combat, area)
function onUseWeapon(cid, var)
 return doCombat(cid, combat, var)
end

not mine
this I think make fire area like

XXX
XPX
XXX

X == Area of Dmg
P == Player Place
 
loltyevil_zpscfaa3aa1.png
Thank you evil :)
 
no, just custom items.otb :) i can copy any item and give it new item id, those are my hulk hands lmao! and i still got the dragon claw item in game :p
 
Yeah, this would be my third ot. This going to be by far the best ive done.. its been maybe 4 years since ive hosted :p started hosting when 7.6 just came out lol.
Lost my old scripter Superman, we hosted SuperMOOK OT together.. that guy could script anything i asked easy :p
 
Back
Top