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

Weapons

132622

New Member
Joined
Jun 21, 2008
Messages
11
Reaction score
0
i need to know how or if you can make items that do aoe when u hit a mob like
a burst arrow say when you hit a dragon with a spiked sword it dose a poison aoe attack along with melee dmg or a fire sword dose a small fire aoe need them to be based off melee skill to any help?
 
Last edited:
"weapons.xml->explosive_arrow.lua" Copy over this file and modify it accordingly. Then in the weapons.xml do the same general idea and modify it.
-Wasted
 
Last edited:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_FIREAREA)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_BURSTARROW)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 0, 0, 0, -150)

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

very new to this it is nothing like spells how do i know what type of aoe it will do and how do i set it to be dmg based off melee skills
 
It's going to do a centered 3x3 box on the target:
Code:
local area = createCombatArea( { {1, 1, 1}, 
                                 {1, 3, 1}, 
                                 {1, 1, 1} } )
Dealing 'fire damage':
Code:
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)
With a fire effect:
Code:
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_FIREAREA)
The distance effect is burst:
Code:
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_BURSTARROW)
Damage is based of magic:
Code:
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 0, 0, 0, -150)
------------
So, for a 3x3 poison damage based on skill with effects try:
Code:
etCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_POISONDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_GREEN_RINGS)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_DRAWBLOOD)
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatFormula(combat, COMBAT_FORMULA_SKILL, 0, 0, 1.0, 0)

Just tossed some together off my head haha. Tamper with things and best wishes.
-Wasted
 
Back
Top Bottom