• 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 Paladin Wave

Northnorial

Member
Joined
May 30, 2009
Messages
742
Reaction score
5
Location
Germany
Hello, i added a Paladin Wave on my 8.40, TFS 0.3.1 Server!


Normally the spells is working... But if i am running the spell sometimes shoots to north whem im running south or shoots west when im running east..

Script:

PHP:
local combat1 = createCombatObject() 
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE) 
setCombatParam(combat1, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA) 
setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -1.8, -200, -2.0, 200) 
arr1 = { 
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, 
{0, 0, 0, 1, 1, 1, 1, 1, 0, 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, 3, 0, 0, 0, 0, 0}, 
{0, 0, 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, 0, 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}, 
} 

local area1 = createCombatArea(arr1) 
setCombatArea(combat1, area1) 
local function onCastSpell1(parameters) 
    doCombat(parameters.cid, parameters.combat1, parameters.var) 
end 
function onCastSpell(cid, var) 
local parameters = { cid = cid, var = var, combat1 = combat1} 
addEvent(onCastSpell1, 1, parameters) 
end

Can someone help me? And the spell has to look like this pls
 
If you are using only one, non delayed wave use normal spell,
sth like that
Lua:
local combat = createCombatObject() 
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE) 
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA) 
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1.8, -200, -2.0, 200) 
area = { 
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, 
{0, 0, 0, 1, 1, 1, 1, 1, 0, 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, 3, 0, 0, 0, 0, 0}, 
{0, 0, 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, 0, 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}, 
}  
setCombatArea(combat, area)

function onCastSpell(cid, var)

	return doCombat(cid, combat, var)
end

it should work, but is not tested
 
Last edited:
Hello, i added a Paladin Wave on my 8.40, TFS 0.3.1 Server!


Normally the spells is working... But if i am running the spell sometimes shoots to north whem im running south or shoots west when im running east..

Script:

PHP:
local combat1 = createCombatObject() 
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE) 
setCombatParam(combat1, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA) 
setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -1.8, -200, -2.0, 200) 
arr1 = { 
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, 
{0, 0, 0, 1, 1, 1, 1, 1, 0, 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, 3, 0, 0, 0, 0, 0}, 
{0, 0, 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, 0, 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}, 
} 

local area1 = createCombatArea(arr1) 
setCombatArea(combat1, area1) 
local function onCastSpell1(parameters) 
    doCombat(parameters.cid, parameters.combat1, parameters.var) 
end 
function onCastSpell(cid, var) 
local parameters = { cid = cid, var = var, combat1 = combat1} 
addEvent(onCastSpell1, 1, parameters) 
end

Can someone help me? And the spell has to look like this pls

Use code mutch easier and also why u use CONST_ME_MORT use HOLYAREA

If you are using only one, non delayed wave use normal spell,
sth like that
Code:
local combat = createCombatObject() 
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE) 
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA) 
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1.8, -200, -2.0, 200) 
area = { 
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, 
{0, 0, 0, 1, 1, 1, 1, 1, 0, 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, 3, 0, 0, 0, 0, 0}, 
{0, 0, 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, 0, 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}, 
}  
setCombatArea(combat, area)

function onCastSpell(cid, var)

	return doCombat(cid, combat, var)
end

it should work, but is not tested

k use [p hp] MSG [/php]

like

PHP:
MSG ;)


¨~~~~~~~

and for 2 of u try learn codes like... 25 insted of CONST_ME_BUBBLE
 
Hello, i added a Paladin Wave on my 8.40, TFS 0.3.1 Server!


Normally the spells is working... But if i am running the spell sometimes shoots to north whem im running south or shoots west when im running east..

Script:

PHP:
local combat1 = createCombatObject() 
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE) 
setCombatParam(combat1, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA) 
setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -1.8, -200, -2.0, 200) 
arr1 = { 
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, 
{0, 0, 0, 1, 1, 1, 1, 1, 0, 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, 3, 0, 0, 0, 0, 0}, 
{0, 0, 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, 0, 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}, 
} 

local area1 = createCombatArea(arr1) 
setCombatArea(combat1, area1) 
local function onCastSpell1(parameters) 
    doCombat(parameters.cid, parameters.combat1, parameters.var) 
end 
function onCastSpell(cid, var) 
local parameters = { cid = cid, var = var, combat1 = combat1} 
addEvent(onCastSpell1, 1, parameters) 
end

Can someone help me? And the spell has to look like this pls

Learn how to script "with codes"

PHP:
local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat1, COMBAT_PARAM_EFFECT, 17)
setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -1.8, -200, -2.0, 200
 

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

  
 
local area1 = createCombatArea(arr1)


setCombatArea(acombat1, area1)
 


function onTargetTile1(cid, pos)
	doCombat(cid,combat1,positionToVariant(pos))
end




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

 
 
function onCastSpell(cid, var)
local parameters = { cid = cid, var = var}
addEvent(onCastSpell1, 0, parameters)
end

REPPPPPPPPPPPPPPPP+
 
Last edited:
Back
Top