Hello
First of all, thank you very much for reading!
Well my first question is:
How i can make that players that aren't premmy can wear addons? I'm using the premmy like a VIP system, but i want the normal players wear addons :/
Ok my second question is:
How to make a spell that attacks around you, killing any monster that is in your screen till you log out?
I tried to make something like that, but when i logout i have to reload the spells because it give me an error that crash the server a few seconds later...
Thank you in advance for your answer!
Greetings
First of all, thank you very much for reading!
Well my first question is:
How i can make that players that aren't premmy can wear addons? I'm using the premmy like a VIP system, but i want the normal players wear addons :/
Ok my second question is:
How to make a spell that attacks around you, killing any monster that is in your screen till you log out?
I tried to make something like that, but when i logout i have to reload the spells because it give me an error that crash the server a few seconds later...
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_LIFEDRAIN)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 255)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -0, -999999999, -0, -999999999)
arr = {
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}
}
local area = createCombatArea(arr)
setCombatArea(combat, area)
local function m(parameters)
doCombat(parameters.cid, parameters.combat, parameters.var)
end
function onCastSpell(cid, var)
local delay = 500
local seconds = 0
local parameters = { cid = cid, var = var, combat = combat }
repeat
addEvent(m, seconds, parameters)
seconds = seconds + delay
until seconds == 2200000
end
Thank you in advance for your answer!
Greetings