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

Spell Need a spell msg here i make in code if you wanna!

hi
need help with this spell

Lua:
local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat1, COMBAT_PARAM_EFFECT, CONST_ME_GROUNDSHAKER)
etCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -2.0, -1.5, 2.0, 2)

local combat2 = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat2, COMBAT_PARAM_EFFECT, CONST_ME_GROUNDSHAKER)
etCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -2.0, -1.5, 2.0, 2)

local combat3 = createCombatObject()
setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat3, COMBAT_PARAM_EFFECT, CONST_ME_GROUNDSHAKER)
etCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -2.0, -1.5, 2.0, 2)

local combat4 = createCombatObject()
setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat4, COMBAT_PARAM_EFFECT, CONST_ME_GROUNDSHAKER)
etCombatFormula(combat4, COMBAT_FORMULA_LEVELMAGIC, -2.0, -1.5, 2.0, 2)

local combat5 = createCombatObject()
setCombatParam(combat5, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat5, COMBAT_PARAM_EFFECT, CONST_ME_GROUNDSHAKER)
etCombatFormula(combat5, COMBAT_FORMULA_LEVELMAGIC, -2.0, -1.5, 2.0, 2)

local combat6 = createCombatObject()
setCombatParam(combat6, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat6, COMBAT_PARAM_EFFECT, CONST_ME_BUBBLES)
etCombatFormula(combat6, COMBAT_FORMULA_LEVELMAGIC, -2.0, -1.5, 2.0, 2)

local combat7 = createCombatObject()
setCombatParam(combat7, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat7, COMBAT_PARAM_EFFECT, CONST_ME_HOLYDAMAGE)
etCombatFormula(combat7, COMBAT_FORMULA_LEVELMAGIC, -2.0, -1.5, 2.0, 2)

local combat8 = createCombatObject()
setCombatParam(combat8, COMBAT_PARAM_TYPE, COMBAT_)
setCombatParam(combat8, COMBAT_PARAM_EFFECT, CONST_ME_)
etCombatFormula(combat8, COMBAT_FORMULA_LEVELMAGIC, -2.0, -Min, 2.0, Max)

local combat9 = createCombatObject()
setCombatParam(combat9, COMBAT_PARAM_TYPE, COMBAT_)
setCombatParam(combat9, COMBAT_PARAM_EFFECT, CONST_ME_)
etCombatFormula(combat9, COMBAT_FORMULA_LEVELMAGIC, -2.0, -Min, 2.0, Max)

local combat10 = createCombatObject()
setCombatParam(combat10, COMBAT_PARAM_TYPE, COMBAT_)
setCombatParam(combat10, COMBAT_PARAM_EFFECT, CONST_ME_)
etCombatFormula(combat10, COMBAT_FORMULA_LEVELMAGIC, -2.0, -Min, 2.0, Max)

arr1 = {
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},
{0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0},
{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
}

arr2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 0, 0},
{0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0},
{0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0},
{0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0},
{0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0},
{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
}

arr8 = {
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
}


local area1 = createCombatArea(arr1)
local area2 = createCombatArea(arr2)
local area3 = createCombatArea(arr3)
local area4 = createCombatArea(arr4)
local area5 = createCombatArea(arr5)
local area6 = createCombatArea(arr6)
local area7 = createCombatArea(arr7)
local area8 = createCombatArea(arr8)
local area9 = createCombatArea(arr9)
local area10 = createCombatArea(arr10)
setCombatArea(combat1, area1)
setCombatArea(combat2, area2)
setCombatArea(combat3, area3)
setCombatArea(combat4, area4)
setCombatArea(combat5, area5)
setCombatArea(combat6, area6)
setCombatArea(combat7, area7)
setCombatArea(combat8, area8)
setCombatArea(combat9, area9)
setCombatArea(combat10, area10)

local function onCastSpell1(parameters)
doCombat(parameters.cid, combat1, parameters.var)
end

local function onCastSpell2(parameters)
doCombat(parameters.cid, combat2, parameters.var)
end

local function onCastSpell3(parameters)
doCombat(parameters.cid, combat3, parameters.var)
end

local function onCastSpell4(parameters)
doCombat(parameters.cid, combat4, parameters.var)
end

local function onCastSpell5(parameters)
doCombat(parameters.cid, combat5, parameters.var)
end

local function onCastSpell6(parameters)
doCombat(parameters.cid, combat6, parameters.var)
end

local function onCastSpell7(parameters)
doCombat(parameters.cid, combat7, parameters.var)
end

local function onCastSpell8(parameters)
doCombat(parameters.cid, combat8, parameters.var)
end

local function onCastSpell9(parameters)
doCombat(parameters.cid, combat9, parameters.var)
end

local function onCastSpell10(parameters)
doCombat(parameters.cid, combat10, parameters.var)
end
function onCastSpell(cid, var)
local parameters = { cid = cid, var = var}
addEvent(onCastSpell1, 100, parameters)
addEvent(onCastSpell2, 200, parameters)
addEvent(onCastSpell3, 300, parameters)
addEvent(onCastSpell4, 400, parameters)
addEvent(onCastSpell5, 500, parameters)
addEvent(onCastSpell6, 600, parameters)
addEvent(onCastSpell7, 700, parameters)
addEvent(onCastSpell8, 800, parameters)
addEvent(onCastSpell9, 900, parameters)
addEvent(onCastSpell10, 1000, parameters)
end
 
I didnt see this thread before so i opened my own , sorry :|

Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, true)
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SUDDENDEATH)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1.3, -30, -1.8, 0)

function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
end

This is my SD at the moment and i want it to have it like in old tibia, means:

This SD is based only on magic level I think
But i wud be happy if someone can release/make a script that looks like that

(level * 2 + magic level * 3) * 1.2 - 30 = minimum
(level * 2 + magic level * 3) * 1.6 = maximum

Because in my server it should be important to have levels.


I'd be really glad if someone helpes me :)

And sorry that im such a newb in scripting ;<

Thanks man, im sure u will make it!

Im using TFS 0.3.5~~ Crying Damson for 8.5
 
hi
need help with this spell

Lua:
local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat1, COMBAT_PARAM_EFFECT, CONST_ME_GROUNDSHAKER)
etCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -2.0, -1.5, 2.0, 2)

local combat2 = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat2, COMBAT_PARAM_EFFECT, CONST_ME_GROUNDSHAKER)
etCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -2.0, -1.5, 2.0, 2)

local combat3 = createCombatObject()
setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat3, COMBAT_PARAM_EFFECT, CONST_ME_GROUNDSHAKER)
etCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -2.0, -1.5, 2.0, 2)

local combat4 = createCombatObject()
setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat4, COMBAT_PARAM_EFFECT, CONST_ME_GROUNDSHAKER)
etCombatFormula(combat4, COMBAT_FORMULA_LEVELMAGIC, -2.0, -1.5, 2.0, 2)

local combat5 = createCombatObject()
setCombatParam(combat5, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat5, COMBAT_PARAM_EFFECT, CONST_ME_GROUNDSHAKER)
etCombatFormula(combat5, COMBAT_FORMULA_LEVELMAGIC, -2.0, -1.5, 2.0, 2)

local combat6 = createCombatObject()
setCombatParam(combat6, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat6, COMBAT_PARAM_EFFECT, CONST_ME_BUBBLES)
etCombatFormula(combat6, COMBAT_FORMULA_LEVELMAGIC, -2.0, -1.5, 2.0, 2)

local combat7 = createCombatObject()
setCombatParam(combat7, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat7, COMBAT_PARAM_EFFECT, CONST_ME_HOLYDAMAGE)
etCombatFormula(combat7, COMBAT_FORMULA_LEVELMAGIC, -2.0, -1.5, 2.0, 2)

local combat8 = createCombatObject()
setCombatParam(combat8, COMBAT_PARAM_TYPE, COMBAT_)
setCombatParam(combat8, COMBAT_PARAM_EFFECT, CONST_ME_)
etCombatFormula(combat8, COMBAT_FORMULA_LEVELMAGIC, -2.0, -Min, 2.0, Max)

local combat9 = createCombatObject()
setCombatParam(combat9, COMBAT_PARAM_TYPE, COMBAT_)
setCombatParam(combat9, COMBAT_PARAM_EFFECT, CONST_ME_)
etCombatFormula(combat9, COMBAT_FORMULA_LEVELMAGIC, -2.0, -Min, 2.0, Max)

local combat10 = createCombatObject()
setCombatParam(combat10, COMBAT_PARAM_TYPE, COMBAT_)
setCombatParam(combat10, COMBAT_PARAM_EFFECT, CONST_ME_)
etCombatFormula(combat10, COMBAT_FORMULA_LEVELMAGIC, -2.0, -Min, 2.0, Max)

arr1 = {
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},
{0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0},
{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
}

arr2 = {
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0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, 0, 1, 1, 1, 1, 0},
{0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0},
{0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0},
{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
}

arr8 = {
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
}


local area1 = createCombatArea(arr1)
local area2 = createCombatArea(arr2)
local area3 = createCombatArea(arr3)
local area4 = createCombatArea(arr4)
local area5 = createCombatArea(arr5)
local area6 = createCombatArea(arr6)
local area7 = createCombatArea(arr7)
local area8 = createCombatArea(arr8)
local area9 = createCombatArea(arr9)
local area10 = createCombatArea(arr10)
setCombatArea(combat1, area1)
setCombatArea(combat2, area2)
setCombatArea(combat3, area3)
setCombatArea(combat4, area4)
setCombatArea(combat5, area5)
setCombatArea(combat6, area6)
setCombatArea(combat7, area7)
setCombatArea(combat8, area8)
setCombatArea(combat9, area9)
setCombatArea(combat10, area10)

local function onCastSpell1(parameters)
doCombat(parameters.cid, combat1, parameters.var)
end

local function onCastSpell2(parameters)
doCombat(parameters.cid, combat2, parameters.var)
end

local function onCastSpell3(parameters)
doCombat(parameters.cid, combat3, parameters.var)
end

local function onCastSpell4(parameters)
doCombat(parameters.cid, combat4, parameters.var)
end

local function onCastSpell5(parameters)
doCombat(parameters.cid, combat5, parameters.var)
end

local function onCastSpell6(parameters)
doCombat(parameters.cid, combat6, parameters.var)
end

local function onCastSpell7(parameters)
doCombat(parameters.cid, combat7, parameters.var)
end

local function onCastSpell8(parameters)
doCombat(parameters.cid, combat8, parameters.var)
end

local function onCastSpell9(parameters)
doCombat(parameters.cid, combat9, parameters.var)
end

local function onCastSpell10(parameters)
doCombat(parameters.cid, combat10, parameters.var)
end
function onCastSpell(cid, var)
local parameters = { cid = cid, var = var}
addEvent(onCastSpell1, 100, parameters)
addEvent(onCastSpell2, 200, parameters)
addEvent(onCastSpell3, 300, parameters)
addEvent(onCastSpell4, 400, parameters)
addEvent(onCastSpell5, 500, parameters)
addEvent(onCastSpell6, 600, parameters)
addEvent(onCastSpell7, 700, parameters)
addEvent(onCastSpell8, 800, parameters)
addEvent(onCastSpell9, 900, parameters)
addEvent(onCastSpell10, 1000, parameters)
end


If you wanna me to help, Please say bug in exe, or what i need to edit for you.

I didnt see this thread before so i opened my own , sorry :|

Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, true)
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SUDDENDEATH)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1.3, -30, -1.8, 0)

function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
end

This is my SD at the moment and i want it to have it like in old tibia, means:

This SD is based only on magic level I think
But i wud be happy if someone can release/make a script that looks like that

(level * 2 + magic level * 3) * 1.2 - 30 = minimum
(level * 2 + magic level * 3) * 1.6 = maximum

Because in my server it should be important to have levels.


I'd be really glad if someone helpes me :)

And sorry that im such a newb in scripting ;<

Thanks man, im sure u will make it!

Im using TFS 0.3.5~~ Crying Damson for 8.5


im sure i can, i gonna try abit later will edit or make a new post or something with youre code. But just so im sure

player lvl = 3 ==
player mls = 3 ==hit 30 ~

?


Lua:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, true)
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SUDDENDEATH)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1.2, -30, -1.6, -27)

function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
	  end
	    end
	      return LUA_NO_ERROR
                end

tested on 3.5
 
for example there is a level 300 sorc with magic level 100

will be

level * 2 + magic level * 3 * 1.2 - 30 = minimum of SD damage
and the maximum will be
level * 2 + magic level * 3 * 1.6

Means like

300 * 2 + 100 * 3 = 900 * 1.2 = 1080 - 30 = 1050 damage in PvM minimum and in PvP 525

and maximum should look like that

300 * 2 + 100 * 3 = 900 * 1.6 = 1440 PvM damage and in PvP 720


I guess now you know what I mean :DD
Thanks for trying to help me

Your script is for magic level only i think
because I tested with my script and a level 300~ druid with ml 100 doing 500-600 ~ pvp and a a 100 druid with mlvl 100 doing like 400~ and that shudnt happen the 300~ druid shud make MUCH more damage than the level 100 since its a huge difference
 
Lua:
	<rune name="Sudden Death" id="2268" allowfaruse="1" charges="100" lvl="45" maglv="18" exhaustion="1300" needtarget="1" blocktype="solid" script="attack/sudden death.lua"/>
 
Why do you copy the line of spells.xml?

I want a script that its based LEVEL * 2 and MAGIC LEVEL * 3 and the result you will take *1.2/1.6 depends on minimum and maximum

Do you understand what I mean?:blink:


Thanks anyway ;)
 
Lol havent you been playing old tibia clients like 7.4/7.6/8.0 ?
If so, then you know what i mean
I'd like to have the old damage scripted new so i can use in in the newest client
 
here is the error
Lua:
[14/10/2009 16:49:37] Lua Script Error: [Spell Interface] 
[14/10/2009 16:49:37] data/spells/scripts/custom/exhaustion.lua

[14/10/2009 16:49:37] data/spells/scripts/custom/exhaustion.lua:4: attempt to call global 'etCombatFormula' (a nil value)
[14/10/2009 16:49:37] [Warning - Event::loadScript] Cannot load script (data/spells/scripts/custom/exhaustion.lua)
 
here is the error
Lua:
[14/10/2009 16:49:37] Lua Script Error: [Spell Interface] 
[14/10/2009 16:49:37] data/spells/scripts/custom/exhaustion.lua

[14/10/2009 16:49:37] data/spells/scripts/custom/exhaustion.lua:4: attempt to call global 'etCombatFormula' (a nil value)
[14/10/2009 16:49:37] [Warning - Event::loadScript] Cannot load script (data/spells/scripts/custom/exhaustion.lua)

look in script before and dont copy and past the codes if you have a bug it will be mutch to fix.

bug:
in .exe bug, Bug at Line 4,
etCombatFormula ;SetCombatFormula;thats the bugs;


well in all bug fixx

Lua:
local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat1, COMBAT_PARAM_EFFECT, CONST_ME_GROUNDSHAKER)
setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -2.0, -1.5, 2.0, 2)

local combat2 = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat2, COMBAT_PARAM_EFFECT, CONST_ME_GROUNDSHAKER)
setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -2.0, -1.5, 2.0, 2)

local combat3 = createCombatObject()
setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat3, COMBAT_PARAM_EFFECT, CONST_ME_GROUNDSHAKER)
setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -2.0, -1.5, 2.0, 2)

local combat4 = createCombatObject()
setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat4, COMBAT_PARAM_EFFECT, CONST_ME_GROUNDSHAKER)
setCombatFormula(combat4, COMBAT_FORMULA_LEVELMAGIC, -2.0, -1.5, 2.0, 2)

local combat5 = createCombatObject()
setCombatParam(combat5, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat5, COMBAT_PARAM_EFFECT, CONST_ME_GROUNDSHAKER)
setCombatFormula(combat5, COMBAT_FORMULA_LEVELMAGIC, -2.0, -1.5, 2.0, 2)

local combat6 = createCombatObject()
setCombatParam(combat6, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat6, COMBAT_PARAM_EFFECT, CONST_ME_BUBBLES)
setCombatFormula(combat6, COMBAT_FORMULA_LEVELMAGIC, -2.0, -1.5, 2.0, 2)

local combat7 = createCombatObject()
setCombatParam(combat7, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat7, COMBAT_PARAM_EFFECT, CONST_ME_HOLYDAMAGE)
setCombatFormula(combat7, COMBAT_FORMULA_LEVELMAGIC, -2.0, -1.5, 2.0, 2)

local combat8 = createCombatObject()
setCombatParam(combat8, COMBAT_PARAM_TYPE, COMBAT_)
setCombatParam(combat8, COMBAT_PARAM_EFFECT, CONST_ME_)
setCombatFormula(combat8, COMBAT_FORMULA_LEVELMAGIC, -2.0, -Min, 2.0, Max)

local combat9 = createCombatObject()
setCombatParam(combat9, COMBAT_PARAM_TYPE, COMBAT_)
setCombatParam(combat9, COMBAT_PARAM_EFFECT, CONST_ME_)
setCombatFormula(combat9, COMBAT_FORMULA_LEVELMAGIC, -2.0, -Min, 2.0, Max)

local combat10 = createCombatObject()
setCombatParam(combat10, COMBAT_PARAM_TYPE, COMBAT_)
setCombatParam(combat10, COMBAT_PARAM_EFFECT, CONST_ME_)
setCombatFormula(combat10, COMBAT_FORMULA_LEVELMAGIC, -2.0, -Min, 2.0, Max)

arr1 = {
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 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1, 1, 0, 0, 0},
{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},
{0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0},
{0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0},
{0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
}


arr7 = {
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},
{0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0},
{0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0},
{0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0},
{0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0},
{0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0},
{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
}

arr8 = {
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
}


local area1 = createCombatArea(arr1)
local area2 = createCombatArea(arr2)
local area3 = createCombatArea(arr3)
local area4 = createCombatArea(arr4)
local area5 = createCombatArea(arr5)
local area6 = createCombatArea(arr6)
local area7 = createCombatArea(arr7)
local area8 = createCombatArea(arr8)
local area9 = createCombatArea(arr9)
local area10 = createCombatArea(arr10)
setCombatArea(combat1, area1)
setCombatArea(combat2, area2)
setCombatArea(combat3, area3)
setCombatArea(combat4, area4)
setCombatArea(combat5, area5)
setCombatArea(combat6, area6)
setCombatArea(combat7, area7)
setCombatArea(combat8, area8)
setCombatArea(combat9, area9)
setCombatArea(combat10, area10)

local function onCastSpell1(parameters)
doCombat(parameters.cid, combat1, parameters.var)
end

local function onCastSpell2(parameters)
doCombat(parameters.cid, combat2, parameters.var)
end

local function onCastSpell3(parameters)
doCombat(parameters.cid, combat3, parameters.var)
end

local function onCastSpell4(parameters)
doCombat(parameters.cid, combat4, parameters.var)
end

local function onCastSpell5(parameters)
doCombat(parameters.cid, combat5, parameters.var)
end

local function onCastSpell6(parameters)
doCombat(parameters.cid, combat6, parameters.var)
end

local function onCastSpell7(parameters)
doCombat(parameters.cid, combat7, parameters.var)
end

local function onCastSpell8(parameters)
doCombat(parameters.cid, combat8, parameters.var)
end

local function onCastSpell9(parameters)
doCombat(parameters.cid, combat9, parameters.var)
end

local function onCastSpell10(parameters)
doCombat(parameters.cid, combat10, parameters.var)
end
function onCastSpell(cid, var)
local parameters = { cid = cid, var = var}
addEvent(onCastSpell1, 100, parameters)
addEvent(onCastSpell2, 200, parameters)
addEvent(onCastSpell3, 300, parameters)
addEvent(onCastSpell4, 400, parameters)
addEvent(onCastSpell5, 500, parameters)
addEvent(onCastSpell6, 600, parameters)
addEvent(onCastSpell7, 700, parameters)
addEvent(onCastSpell8, 800, parameters)
addEvent(onCastSpell9, 900, parameters)
addEvent(onCastSpell10, 1000, parameters)
          end
            end
              return LUA_NO_ERROR
                end
 
now i got this error

Lua:
[14/10/2009 18:50:26] [Warning - Event::loadScript] Cannot load script (data/spells/scripts/custom/exhaustion.lua)
[14/10/2009 18:50:26] data/spells/scripts/custom/exhaustion.lua:240: '<eof>' expected near 'end'
 
Code:
-- doTargetMagic
 -- attackType: Type of attack
 -- cid: creature id.
 -- Targetpos: Target position.
 -- animationEffect: Projectile animation.
 -- damageEffect: Effect to show when spell hits a player.
 -- animationColor: Color of the text that is shown above the player when hit.
 -- offensive: Indicates if the spell is a healing/attack spell.
 -- drawblood: Determines if the spell causes blood splash.
 -- minDmg: Minimal damage.
 -- maxDmg: Maximum damage.
 -- returns true if the spell was casted.
 
 attackType = ATTACK_PHYSICAL
 animationEffect = NM_ANI_SUDDENDEATH
 
 hitEffect = NM_ME_MORT_AREA
 damageEffect = NM_ME_DRAW_BLOOD
 animationColor = RED
 offensive = true
 drawblood = true
 
 SuddenDeathObject = MagicDamageObject(attackType, animationEffect, hitEffect, damageEffect, animationColor, offensive, drawblood, 0, 0)
 
 function onCast(cid, creaturePos, level, maglv, var)
 centerpos = {x=creaturePos.x, y=creaturePos.y, z=creaturePos.z}
 
 SuddenDeathObject.minDmg = (level * 2 + maglv *3) * 1.2 - 30
 SuddenDeathObject.maxDmg = (level * 2 + maglv *3) * 1.6
 
 return doTargetMagic(cid, centerpos, SuddenDeathObject:ordered())
 end

This is a script from 7.6 client
Can anyone "rewrite" this script to 8.5 0.3.5 crying damson please?

Really thanks!:)
 
Code:
-- doTargetMagic
 -- attackType: Type of attack
 -- cid: creature id.
 -- Targetpos: Target position.
 -- animationEffect: Projectile animation.
 -- damageEffect: Effect to show when spell hits a player.
 -- animationColor: Color of the text that is shown above the player when hit.
 -- offensive: Indicates if the spell is a healing/attack spell.
 -- drawblood: Determines if the spell causes blood splash.
 -- minDmg: Minimal damage.
 -- maxDmg: Maximum damage.
 -- returns true if the spell was casted.
 
 attackType = ATTACK_PHYSICAL
 animationEffect = NM_ANI_SUDDENDEATH
 
 hitEffect = NM_ME_MORT_AREA
 damageEffect = NM_ME_DRAW_BLOOD
 animationColor = RED
 offensive = true
 drawblood = true
 
 SuddenDeathObject = MagicDamageObject(attackType, animationEffect, hitEffect, damageEffect, animationColor, offensive, drawblood, 0, 0)
 
 function onCast(cid, creaturePos, level, maglv, var)
 centerpos = {x=creaturePos.x, y=creaturePos.y, z=creaturePos.z}
 
 SuddenDeathObject.minDmg = (level * 2 + maglv *3) * 1.2 - 30
 SuddenDeathObject.maxDmg = (level * 2 + maglv *3) * 1.6
 
 return doTargetMagic(cid, centerpos, SuddenDeathObject:ordered())
 end

This is a script from 7.6 client
Can anyone "rewrite" this script to 8.5 0.3.5 crying damson please?

Really thanks!:)

Lua:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SUDDENDEATH)
function getCombatFormulas(cid, lv, maglv)
	local formula_min = -((lv* 2 + maglv *3) * 1.2 - 30
	local formula_max = -((lv* 2 + maglv *3) * 1.6

	if(formula_max < formula_min) then
		local tmp = formula_max
		formula_max = formula_min
		formula_min = tmp
	end
	return formula_min, formula_max
end

setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "getCombatFormulas")

function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
end


second script,

Lua:
local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat1, COMBAT_PARAM_EFFECT, CONST_ME_GROUNDSHAKER)
setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -2.0, -1.5, 2.0, 2)

local combat2 = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat2, COMBAT_PARAM_EFFECT, CONST_ME_GROUNDSHAKER)
setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -2.0, -1.5, 2.0, 2)

local combat3 = createCombatObject()
setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat3, COMBAT_PARAM_EFFECT, CONST_ME_GROUNDSHAKER)
setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -2.0, -1.5, 2.0, 2)

local combat4 = createCombatObject()
setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat4, COMBAT_PARAM_EFFECT, CONST_ME_GROUNDSHAKER)
setCombatFormula(combat4, COMBAT_FORMULA_LEVELMAGIC, -2.0, -1.5, 2.0, 2)

local combat5 = createCombatObject()
setCombatParam(combat5, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat5, COMBAT_PARAM_EFFECT, CONST_ME_GROUNDSHAKER)
setCombatFormula(combat5, COMBAT_FORMULA_LEVELMAGIC, -2.0, -1.5, 2.0, 2)

local combat6 = createCombatObject()
setCombatParam(combat6, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat6, COMBAT_PARAM_EFFECT, CONST_ME_BUBBLES)
setCombatFormula(combat6, COMBAT_FORMULA_LEVELMAGIC, -2.0, -1.5, 2.0, 2)

local combat7 = createCombatObject()
setCombatParam(combat7, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat7, COMBAT_PARAM_EFFECT, CONST_ME_HOLYDAMAGE)
setCombatFormula(combat7, COMBAT_FORMULA_LEVELMAGIC, -2.0, -1.5, 2.0, 2)

local combat8 = createCombatObject()
setCombatParam(combat8, COMBAT_PARAM_TYPE, COMBAT_)
setCombatParam(combat8, COMBAT_PARAM_EFFECT, CONST_ME_)
setCombatFormula(combat8, COMBAT_FORMULA_LEVELMAGIC, -2.0, -Min, 2.0, Max)

local combat9 = createCombatObject()
setCombatParam(combat9, COMBAT_PARAM_TYPE, COMBAT_)
setCombatParam(combat9, COMBAT_PARAM_EFFECT, CONST_ME_)
setCombatFormula(combat9, COMBAT_FORMULA_LEVELMAGIC, -2.0, -Min, 2.0, Max)

local combat10 = createCombatObject()
setComb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0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
}


local area1 = createCombatArea(arr1)
local area2 = createCombatArea(arr2)
local area3 = createCombatArea(arr3)
local area4 = createCombatArea(arr4)
local area5 = createCombatArea(arr5)
local area6 = createCombatArea(arr6)
local area7 = createCombatArea(arr7)
local area8 = createCombatArea(arr8)
local area9 = createCombatArea(arr9)
local area10 = createCombatArea(arr10)
setCombatArea(combat1, area1)
setCombatArea(combat2, area2)
setCombatArea(combat3, area3)
setCombatArea(combat4, area4)
setCombatArea(combat5, area5)
setCombatArea(combat6, area6)
setCombatArea(combat7, area7)
setCombatArea(combat8, area8)
setCombatArea(combat9, area9)
setCombatArea(combat10, area10)

local function onCastSpell1(parameters)
doCombat(parameters.cid, combat1, parameters.var)
end

local function onCastSpell2(parameters)
doCombat(parameters.cid, combat2, parameters.var)
end

local function onCastSpell3(parameters)
doCombat(parameters.cid, combat3, parameters.var)
end

local function onCastSpell4(parameters)
doCombat(parameters.cid, combat4, parameters.var)
end

local function onCastSpell5(parameters)
doCombat(parameters.cid, combat5, parameters.var)
end

local function onCastSpell6(parameters)
doCombat(parameters.cid, combat6, parameters.var)
end

local function onCastSpell7(parameters)
doCombat(parameters.cid, combat7, parameters.var)
end

local function onCastSpell8(parameters)
doCombat(parameters.cid, combat8, parameters.var)
end

local function onCastSpell9(parameters)
doCombat(parameters.cid, combat9, parameters.var)
end

local function onCastSpell10(parameters)
doCombat(parameters.cid, combat10, parameters.var)
end
function onCastSpell(cid, var)
local parameters = { cid = cid, var = var}
addEvent(onCastSpell1, 100, parameters)
addEvent(onCastSpell2, 200, parameters)
addEvent(onCastSpell3, 300, parameters)
addEvent(onCastSpell4, 400, parameters)
addEvent(onCastSpell5, 500, parameters)
addEvent(onCastSpell6, 600, parameters)
addEvent(onCastSpell7, 700, parameters)
addEvent(onCastSpell8, 800, parameters)
addEvent(onCastSpell9, 900, parameters)
addEvent(onCastSpell10, 1000, parameters)
          end
              return LUA_NO_ERROR
                end
 
next error sry
Lua:
[14/10/2009 21:30:05] [Warning - Event::loadScript] Cannot load script (data/spells/scripts/custom/exhaustion.lua)
[14/10/2009 21:30:05] data/spells/scripts/custom/exhaustion.lua:241: '<eof>' expected near 'end'
 
idk try this and for Lee im working on youre but looking at tv atm.

Lua:
local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat1, COMBAT_PARAM_EFFECT, CONST_ME_GROUNDSHAKER)
setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -2.0, -1.5, 2.0, 2)

local combat2 = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat2, COMBAT_PARAM_EFFECT, CONST_ME_GROUNDSHAKER)
setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -2.0, -1.5, 2.0, 2)

local combat3 = createCombatObject()
setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat3, COMBAT_PARAM_EFFECT, CONST_ME_GROUNDSHAKER)
setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -2.0, -1.5, 2.0, 2)

local combat4 = createCombatObject()
setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat4, COMBAT_PARAM_EFFECT, CONST_ME_GROUNDSHAKER)
setCombatFormula(combat4, COMBAT_FORMULA_LEVELMAGIC, -2.0, -1.5, 2.0, 2)

local combat5 = createCombatObject()
setCombatParam(combat5, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat5, COMBAT_PARAM_EFFECT, CONST_ME_GROUNDSHAKER)
[COLOR="Red"]etCombatFormula[/COLOR](combat5, COMBAT_FORMULA_LEVELMAGIC, -2.0, -1.5, 2.0, 2)

local combat6 = createCombatObject()
setCombatParam(combat6, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat6, COMBAT_PARAM_EFFECT, CONST_ME_BUBBLES)
setCombatFormula(combat6, COMBAT_FORMULA_LEVELMAGIC, -2.0, -1.5, 2.0, 2)

local combat7 = createCombatObject()
setCombatParam(combat7, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat7, COMBAT_PARAM_EFFECT, CONST_ME_HOLYDAMAGE)
setCombatFormula(combat7, COMBAT_FORMULA_LEVELMAGIC, -2.0, -1.5, 2.0, 2)

local combat8 = createCombatObject()
setCombatParam(combat8, COMBAT_PARAM_TYPE, COMBAT_)
setCombatParam(combat8, COMBAT_PARAM_EFFECT, CONST_ME_)
setCombatFormula(combat8, COMBAT_FORMULA_LEVELMAGIC, -2.0, -Min, 2.0, Max)

local combat9 = createCombatObject()
setCombatParam(combat9, COMBAT_PARAM_TYPE, COMBAT_)
setCombatParam(combat9, COMBAT_PARAM_EFFECT, CONST_ME_)
setCombatFormula(combat9, COMBAT_FORMULA_LEVELMAGIC, -2.0, -Min, 2.0, Max)

local combat10 = createCombatObject()
setCombatParam(combat10, COMBAT_PARAM_TYPE, COMBAT_)
setCombatParam(combat10, COMBAT_PARAM_EFFECT, CONST_ME_)
setCombatFormula(combat10, COMBAT_FORMULA_LEVELMAGIC, -2.0, -Min, 2.0, Max)

arr1 = {
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},
{0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0},
{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},
{0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0},
{0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0},
{0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0},
{0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0},
{0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0},
{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
}

arr8 = {
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
}


local area1 = createCombatArea(arr1)
local area2 = createCombatArea(arr2)
local area3 = createCombatArea(arr3)
local area4 = createCombatArea(arr4)
local area5 = createCombatArea(arr5)
local area6 = createCombatArea(arr6)
local area7 = createCombatArea(arr7)
local area8 = createCombatArea(arr8)
local area9 = createCombatArea(arr9)
local area10 = createCombatArea(arr10)
setCombatArea(combat1, area1)
setCombatArea(combat2, area2)
setCombatArea(combat3, area3)
setCombatArea(combat4, area4)
setCombatArea(combat5, area5)
setCombatArea(combat6, area6)
setCombatArea(combat7, area7)
setCombatArea(combat8, area8)
setCombatArea(combat9, area9)
setCombatArea(combat10, area10)

local function onCastSpell1(parameters)
doCombat(parameters.cid, combat1, parameters.var)
end

local function onCastSpell2(parameters)
doCombat(parameters.cid, combat2, parameters.var)
end

local function onCastSpell3(parameters)
doCombat(parameters.cid, combat3, parameters.var)
end

local function onCastSpell4(parameters)
doCombat(parameters.cid, combat4, parameters.var)
end

local function onCastSpell5(parameters)
doCombat(parameters.cid, combat5, parameters.var)
end

local function onCastSpell6(parameters)
doCombat(parameters.cid, combat6, parameters.var)
end

local function onCastSpell7(parameters)
doCombat(parameters.cid, combat7, parameters.var)
end

local function onCastSpell8(parameters)
doCombat(parameters.cid, combat8, parameters.var)
end

local function onCastSpell9(parameters)
doCombat(parameters.cid, combat9, parameters.var)
end

local function onCastSpell10(parameters)
doCombat(parameters.cid, combat10, parameters.var)
end
function onCastSpell(cid, var)
local parameters = { cid = cid, var = var}
addEvent(onCastSpell1, 100, parameters)
addEvent(onCastSpell2, 200, parameters)
addEvent(onCastSpell3, 300, parameters)
addEvent(onCastSpell4, 400, parameters)
addEvent(onCastSpell5, 500, parameters)
addEvent(onCastSpell6, 600, parameters)
addEvent(onCastSpell7, 700, parameters)
addEvent(onCastSpell8, 800, parameters)
addEvent(onCastSpell9, 900, parameters)
addEvent(onCastSpell10, 1000, parameters)
end
 
Alright, I'm requesting a script that's 'exori hur' but it has 30% chance to make you stunned for 5 seconds :p, gl!
 
Erm. Do you even watch you scripts`? Or are you using a tool?

local combat8 = createCombatObject()
setCombatParam(combat8, COMBAT_PARAM_TYPE, COMBAT_)
setCombatParam(combat8, COMBAT_PARAM_EFFECT, CONST_ME_)
setCombatFormula(combat8, COMBAT_FORMULA_LEVELMAGIC, -2.0, -Min, 2.0, Max)

local combat9 = createCombatObject()
setCombatParam(combat9, COMBAT_PARAM_TYPE, COMBAT_)
setCombatParam(combat9, COMBAT_PARAM_EFFECT, CONST_ME_)
setCombatFormula(combat9, COMBAT_FORMULA_LEVELMAGIC, -2.0, -Min, 2.0, Max)

local combat10 = createCombatObject()
setCombatParam(combat10, COMBAT_PARAM_TYPE, COMBAT_)
setCombatParam(combat10, COMBAT_PARAM_EFFECT, CONST_ME_)
setCombatFormula(combat10, COMBAT_FORMULA_LEVELMAGIC, -2.0, -Min, 2.0, Max)


See what you missed?
 
Back
Top