• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Spells Spamming Rep ++ If you help!

nicktm

Otland Helper
Joined
Oct 9, 2009
Messages
106
Reaction score
3
Location
Griffin, GA
Ok guys ive made a spell on a Spell Maker, But the spells that i make are spamming? I've saw a few responses on other topics like this that say add return true but return true is already there? Please Help ill rep ++ ~ Nick:ninja:
 
Nor am I but in the spells.xml I think you should be able to add an exhaust in there. The code should also be in there already so you just got to edit it. If that's not the case then it's the spell.lua that you need to add the exhaust to and if it's that you'll have to wait for a scripter instead of me. D:
 
I had 100% the same problem...it doesnt make any effect if u add exhaust...u have to use scripts from other spells...the scripts from the spell makers dont work for tibia 8.54++
 
-- SpellCreator generated.

-- =============== COMBAT VARS ===============
-- Areas/Combat for 0ms
local combat0_The_Druid_Spell = createCombatObject()
setCombatParam(combat0_The_Druid_Spell, COMBAT_PARAM_EFFECT, CONST_ME_ICEAREA)
setCombatParam(combat0_The_Druid_Spell, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ICE)
setCombatParam(combat0_The_Druid_Spell, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatArea(combat0_The_Druid_Spell,createCombatArea({{1, 1, 1},
{1, 2, 1},
{1, 1, 1},
{1, 1, 1}}))
function getDmg_The_Druid_Spell(cid, level, maglevel)
return (10000)*-1,(50000)*-1
end
setCombatCallback(combat0_The_Druid_Spell, CALLBACK_PARAM_LEVELMAGICVALUE, "getDmg_The_Druid_Spell")

-- Areas/Combat for 400ms
local combat4_The_Druid_Spell = createCombatObject()
setCombatParam(combat4_The_Druid_Spell, COMBAT_PARAM_EFFECT, CONST_ME_ICEAREA)
setCombatParam(combat4_The_Druid_Spell, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ICE)
setCombatParam(combat4_The_Druid_Spell, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatArea(combat4_The_Druid_Spell,createCombatArea({{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1},
{1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1},
{1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1},
{1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1},
{1, 0, 0, 0, 0, 2, 0, 0, 0, 0, 1},
{1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1},
{1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1},
{1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1},
{1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1},
{1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1}}))
function getDmg_The_Druid_Spell(cid, level, maglevel)
return (10000)*-1,(50000)*-1
end
setCombatCallback(combat4_The_Druid_Spell, CALLBACK_PARAM_LEVELMAGICVALUE, "getDmg_The_Druid_Spell")

-- Areas/Combat for 300ms
local combat3_The_Druid_Spell = createCombatObject()
setCombatParam(combat3_The_Druid_Spell, COMBAT_PARAM_EFFECT, CONST_ME_ICEAREA)
setCombatParam(combat3_The_Druid_Spell, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ICE)
setCombatParam(combat3_The_Druid_Spell, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatArea(combat3_The_Druid_Spell,createCombatArea({{1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 0, 0, 0, 0, 0, 0, 0, 1},
{1, 0, 0, 0, 0, 0, 0, 0, 1},
{1, 0, 0, 0, 0, 0, 0, 0, 1},
{1, 0, 0, 0, 2, 0, 0, 0, 1},
{1, 0, 0, 0, 0, 0, 0, 0, 1},
{1, 0, 0, 0, 0, 0, 0, 0, 1},
{1, 0, 0, 0, 0, 0, 0, 0, 1},
{1, 0, 0, 0, 0, 0, 0, 0, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1}}))
function getDmg_The_Druid_Spell(cid, level, maglevel)
return (10000)*-1,(50000)*-1
end
setCombatCallback(combat3_The_Druid_Spell, CALLBACK_PARAM_LEVELMAGICVALUE, "getDmg_The_Druid_Spell")

-- Areas/Combat for 200ms
local combat2_The_Druid_Spell = createCombatObject()
setCombatParam(combat2_The_Druid_Spell, COMBAT_PARAM_EFFECT, CONST_ME_ICEAREA)
setCombatParam(combat2_The_Druid_Spell, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ICE)
setCombatParam(combat2_The_Druid_Spell, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatArea(combat2_The_Druid_Spell,createCombatArea({{1, 1, 1, 1, 1, 1, 1},
{1, 0, 0, 0, 0, 0, 1},
{1, 0, 0, 0, 0, 0, 1},
{1, 0, 0, 2, 0, 0, 1},
{1, 0, 0, 0, 0, 0, 1},
{1, 0, 0, 0, 0, 0, 1},
{1, 0, 0, 0, 0, 0, 1},
{1, 1, 1, 1, 1, 1, 1}}))
function getDmg_The_Druid_Spell(cid, level, maglevel)
return (10000)*-1,(50000)*-1
end
setCombatCallback(combat2_The_Druid_Spell, CALLBACK_PARAM_LEVELMAGICVALUE, "getDmg_The_Druid_Spell")

-- Areas/Combat for 100ms
local combat1_The_Druid_Spell = createCombatObject()
setCombatParam(combat1_The_Druid_Spell, COMBAT_PARAM_EFFECT, CONST_ME_ICEAREA)
setCombatParam(combat1_The_Druid_Spell, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ICE)
setCombatParam(combat1_The_Druid_Spell, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatArea(combat1_The_Druid_Spell,createCombatArea({{1, 1, 1, 1, 1},
{1, 0, 0, 0, 1},
{1, 0, 2, 0, 1},
{1, 0, 0, 0, 1},
{1, 0, 0, 0, 1},
{1, 1, 1, 1, 1}}))
function getDmg_The_Druid_Spell(cid, level, maglevel)
return (10000)*-1,(50000)*-1
end
setCombatCallback(combat1_The_Druid_Spell, CALLBACK_PARAM_LEVELMAGICVALUE, "getDmg_The_Druid_Spell")

-- =============== CORE FUNCTIONS ===============
function RunPart(c,cid,var) -- Part
if (isCreature(cid)) then
doCombat(cid, c, var)
end
end

function onCastSpell(cid, var)
RunPart(combat0_The_Druid_Spell,cid,var)
addEvent(RunPart,400,combat4_The_Druid_Spell,cid,var)
addEvent(RunPart,300,combat3_The_Druid_Spell,cid,var)
addEvent(RunPart,200,combat2_The_Druid_Spell,cid,var)
addEvent(RunPart,100,combat1_The_Druid_Spell,cid,var)
return true
end
There ya go xP
 
Not tested, probably can be shortened, long ass script haha
PHP:
local arr1 = {
{1, 1, 1},
{1, 2, 1},
{1, 1, 1},
{1, 1, 1}
}

local arr2 = {
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1},
{1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1},
{1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1},
{1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1},
{1, 0, 0, 0, 0, 2, 0, 0, 0, 0, 1},
{1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1},
{1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1},
{1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1},
{1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1},
{1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1}
}

local arr3 = {
{1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 0, 0, 0, 0, 0, 0, 0, 1},
{1, 0, 0, 0, 0, 0, 0, 0, 1},
{1, 0, 0, 0, 0, 0, 0, 0, 1},
{1, 0, 0, 0, 2, 0, 0, 0, 1},
{1, 0, 0, 0, 0, 0, 0, 0, 1},
{1, 0, 0, 0, 0, 0, 0, 0, 1},
{1, 0, 0, 0, 0, 0, 0, 0, 1},
{1, 0, 0, 0, 0, 0, 0, 0, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1}
}

local arr4 = {
{1, 1, 1, 1, 1, 1, 1},
{1, 0, 0, 0, 0, 0, 1},
{1, 0, 0, 0, 0, 0, 1},
{1, 0, 0, 2, 0, 0, 1},
{1, 0, 0, 0, 0, 0, 1},
{1, 0, 0, 0, 0, 0, 1},
{1, 0, 0, 0, 0, 0, 1},
{1, 1, 1, 1, 1, 1, 1}
}

local arr5 = {
{1, 1, 1, 1, 1},
{1, 0, 0, 0, 1},
{1, 0, 2, 0, 1},
{1, 0, 0, 0, 1},
{1, 0, 0, 0, 1},
{1, 1, 1, 1, 1}
}

local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_EFFECT, CONST_ME_ICEAREA)
setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ICE)
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)

function onGetFormulaValues(cid, level, maglevel)
return (10000)*-1,(50000)*-1 
end
setCombatCallback(combat1, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

local combat2 = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_EFFECT, CONST_ME_ICEAREA)
setCombatParam(combat2, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ICE)
setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)

function onGetFormulaValues(cid, level, maglevel)
return (10000)*-1,(50000)*-1 
end
setCombatCallback(combat2, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

local combat3 = createCombatObject()
setCombatParam(combat3, COMBAT_PARAM_EFFECT, CONST_ME_ICEAREA)
setCombatParam(combat3, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ICE)
setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)

function onGetFormulaValues(cid, level, maglevel)
return (10000)*-1,(50000)*-1 
end
setCombatCallback(combat3, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

local combat4 = createCombatObject()
setCombatParam(combat4, COMBAT_PARAM_EFFECT, CONST_ME_ICEAREA)
setCombatParam(combat4, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ICE)
setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)

function onGetFormulaValues(cid, level, maglevel)
return (10000)*-1,(50000)*-1 
end
setCombatCallback(combat4, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

local combat5 = createCombatObject()
setCombatParam(combat5, COMBAT_PARAM_EFFECT, CONST_ME_ICEAREA)
setCombatParam(combat5, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ICE)
setCombatParam(combat5, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)

function onGetFormulaValues(cid, level, maglevel)
return (10000)*-1,(50000)*-1 
end
setCombatCallback(combat5, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

local area = createCombatArea(arr1)
setCombatArea(combat1, area)

local area = createCombatArea(arr2)
setCombatArea(combat2, area)

local area = createCombatArea(arr3)
setCombatArea(combat3, area)

local area = createCombatArea(arr4)
setCombatArea(combat4, area)

local area = createCombatArea(arr5)
setCombatArea(combat5, area)

local function castSpell(cid, var, combat)
    doCombat(cid, combat, var)
end

function onCastSpell(cid, var)
	castSpell(cid, var, combat1)
	addEvent(castSpell, 100, cid, var, combat2)
	addEvent(castSpell, 200, cid, var, combat3)
	addEvent(castSpell, 300, cid, var, combat4)
	addEvent(castSpell, 400, cid, var, combat5)
	return true
end
 
Back
Top