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

Exevo gran frigo hur

bybbzan

mapper
Joined
Aug 4, 2012
Messages
809
Solutions
2
Reaction score
136
Location
Sweden
Hello!

I tried to add the spell "exevo gran frigo hur" as real tibia. It should look like this
zz4nk9.jpg

LUA:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_ICEATTACK)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ICE)
setAttackFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 5, 5, 4.5, 9)

local area = createCombatArea(AREA_WAVE4, AREADIAGONAL_WAVE4)
setCombatArea(combat, area)

function onCastSpell(cid, var)
    return doCombat(cid, combat, var)
end
but it look excacly like exevo frigo hur.
How to change that?

Thanks.
 
It's in spells/lib/spells.lua add:
LUA:
AREA_SQUAREWAVECUSTOM = {
	{1, 1, 1},
	{1, 1, 1},
	{0, 1, 0},
	{0, 3, 0}
}
AREADIAGONAL_SQUAREWAVECUSTOM = {
	{0, 0, 0, 0, 0},
	{0, 1, 1, 1, 0},
	{0, 1, 1, 0, 0},
	{0, 1, 0, 1, 0},
	{0, 0, 0, 0, 3}
}
and replace line 6 in your spell(with local area=) for this:
local area = createCombatArea(AREA_SQUAREWAVECUSTOM, AREADIAGONAL_SQUAREWAVECUSTOM)

not sure about diagonal, but should work
 
It's in spells/lib/spells.lua add:
LUA:
AREA_SQUAREWAVECUSTOM = {
	{1, 1, 1},
	{1, 1, 1},
	{0, 1, 0},
	{0, 3, 0}
}
AREADIAGONAL_SQUAREWAVECUSTOM = {
	{0, 0, 0, 0, 0},
	{0, 1, 1, 1, 0},
	{0, 1, 1, 0, 0},
	{0, 1, 0, 1, 0},
	{0, 0, 0, 0, 3}
}
and replace line 6 in your spell(with local area=) for this:


not sure about diagonal, but should work

Thanks alot, rep added :)
 
Back
Top