Soul Baker
New Member
- Joined
- Dec 8, 2015
- Messages
- 16
- Reaction score
- 0
im new to the scripting scene but im looking to add a classic feel to my ot. im doing a low level ot but id like to have a burst arrow script that makes them fire damage. pvp for around 100~ but gains with magic levels
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, 1)
setCombatParam(combat, COMBAT_PARAM_BLOCKSHIELD, 1)
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, -1, 0, -1, -10, 5, 5, 1.2, 2, -20, -40)
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
this script is based on Magic level, and fire damage and it works. but i want it edited to do this
i want the main target to get hit with full force. and other 8sqms to hit 1/3 of the main targets damege.
so at level 150 with ml 100 i hit main target with max 80 to 100 damege
i want outlying targets to be 25 to 33 damege so 1/3 main
and at level 250 ml 125~ i want to hit max 120 to 140
and outlying targets again 1/3 main targets damage
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, 1)
setCombatParam(combat, COMBAT_PARAM_BLOCKSHIELD, 1)
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, -1, 0, -1, -10, 5, 5, 1.2, 2, -20, -40)
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
this script is based on Magic level, and fire damage and it works. but i want it edited to do this
i want the main target to get hit with full force. and other 8sqms to hit 1/3 of the main targets damege.
so at level 150 with ml 100 i hit main target with max 80 to 100 damege
i want outlying targets to be 25 to 33 damege so 1/3 main
and at level 250 ml 125~ i want to hit max 120 to 140
and outlying targets again 1/3 main targets damage
Last edited: