I'm looking for this script:
You have a crossbow in your hands + bolts
When you control-click the crossbow, it does the ethereal spear spell (exori con). But only if you have bolts and is attacking a monster.
It should have exhaust for about 3 seconds and takes 20 mana
Get what I mean?
It may be horrible, but this is what I could try, but it didn't work.
You have a crossbow in your hands + bolts
When you control-click the crossbow, it does the ethereal spear spell (exori con). But only if you have bolts and is attacking a monster.
It should have exhaust for about 3 seconds and takes 20 mana
Get what I mean?
It may be horrible, but this is what I could try, but it didn't work.
local ID = 2455
local exhaust = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 100))
local condition = createConditionObject(CONDITION_HASTE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 22000)
setConditionFormula(condition, 1.0, -50, 1.0, -50)
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, true)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ETHEREALSPEAR)
function onGetFormulaValues(cid, level, skill, attack, factor)
return -(((skill + 25) / 3) + (level / 5)), -((skill + 25) + (level / 5))
end
setCombatCallback(combat, CALLBACK_PARAM_SKILLVALUE, "onGetFormulaValues")
function onUse(cid, item, fromPosition, itemEx, toPosition, var, combat)
if(hasCondition(cid, CONDITION_EXHAUST_HEAL)) == false and item.itemid == ID then
doAddCondition(cid, exhaust)
return doCombat(cid, combat, var)
end
end
Last edited: