Silba
is stephany, the josh wife
- Joined
- Aug 22, 2013
- Messages
- 456
- Solutions
- 9
- Reaction score
- 384
Hey guys.
I've got a custom rune on my server which surrounds the target with wild growth and since it is overpowered to be able to use it every 2 seconds i need to add a custom exhaust that also wont exhaust other offensive spells/runes to it so it can't be spammed and also since my server uses infinite runes i would like this rune to also have charges so i can charge alot of money per charge to encourage even less spamming of it.
Thanks and here's the current script:
I've got a custom rune on my server which surrounds the target with wild growth and since it is overpowered to be able to use it every 2 seconds i need to add a custom exhaust that also wont exhaust other offensive spells/runes to it so it can't be spammed and also since my server uses infinite runes i would like this rune to also have charges so i can charge alot of money per charge to encourage even less spamming of it.
Thanks and here's the current script:
Lua:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_EARTH)
setCombatParam(combat, COMBAT_PARAM_CREATEITEM, 1499)
local arr = {
{1, 1, 1},
{1, 2, 1},
{1, 1, 1}
}
local area = createCombatArea(arr)
setCombatArea(combat, area)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end