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

8.0 spells and exhaust, not working properly!

2sexy

New Member
Joined
Nov 25, 2007
Messages
18
Reaction score
0
Hello!

I gott this problems in my ot, with the new spells,

Problem is that they some of them seem to hit to much, like exori gran , hits , 300 , 400 then poof suddenly 900 , lets say this is a lvl 100, but it happens with lvl 50 to ;) And The exori con spell, has no exhaust u can spamm it , i have tried puting exhaust but it doesent work. I want help with fixing exhaust on exori con,
and dmg on Exori gran, and hitting about 450 with exori mas, with a 100 lvled knight is to much or? ,

Well here Is my scripts hope u can solve some questions!

Exori con.
ethereal spear.lua

PHP:
local storevalue = 2578 -- value where exhausted is saved
local exhausttime = 5 -- 5 second exhaustion
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
 setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_DRAWBLOOD)
 setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, 27)
 setCombatFormula(combat, COMBAT_FORMULA_SKILL, 0, 0, 1.0, 0)
 

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

The other Exori con
etherear.lua

PHP:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
 setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_DRAWBLOOD)
 setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, 27)
 setCombatFormula(combat, COMBAT_FORMULA_SKILL, 0, 0, 1.1, 0)
 

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

Exori gran
exori_gran.lua , dunno if this is fixed, but look if u see something that we can change to make it better.

PHP:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HITAREA)
 setCombatFormula(combat, COMBAT_FORMULA_SKILL, 2.1, 0, 2.7, 0)

local arr = {
{1, 1, 1},
{1, 2, 1},
{1, 1, 1}
}

local area = createCombatArea(arr)
setCombatArea(combat, area)

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

Exori mas
groundshaker.lua

PHP:
local storevalue = 2578 -- value where exhausted is saved
local exhausttime = 1 -- 1 second exhaustion
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 34)
setCombatFormula(combat, COMBAT_FORMULA_SKILL, 0, 0, 2.2, 0)

local arr = {
{0, 0, 1, 1, 1, 0, 0},
{0, 1, 1, 1, 1, 1, 0},
{1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 3, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1},
{0, 1, 1, 1, 1, 1, 0},
{0, 0, 1, 1, 1, 0, 0}
}

local area = createCombatArea(arr)
setCombatArea(combat, area)

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

EDIT: As i need help with 1 more thing! i bring it here
I was wondering if it was possibly to make un npc sell bps of runes in TFS
I have searched for it but couldent find any good solution.
So if its possibly for TFS , feel free to help!

ok thats all. hope i can get some help ;)

thankz in advance!
 
Last edited:
You set exhaust in spells.xml. If the spell is doing too much damages, then just edit it for your own needs by modifying the combatFormula.
 
Here is a better ethereal spear.lua

Code:
local storevalue = 2578 -- value where exhausted is saved
local exhausttime = 1 -- 1 second exhaustion
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
 setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_DRAWBLOOD)
 setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, 27)
 setCombatFormula(combat, COMBAT_FORMULA_SKILL, 0, 0, 1.1, 0)
 

function onCastSpell(cid, var)
local pAccess = getPlayerAccess(cid) -- Returns the player's access
	if (isPlayer(cid) == TRUE and pAccess < 3) then
		if (exhaust(cid, storevalue, exhausttime) == 1) then
			return doCombat(cid, combat, var)
		else
			doPlayerSendCancel(cid, "You are exhausted.")
		end
	else
		return doCombat(cid, combat, var)
	end		
end

Here is exori gran.lua

Code:
local storevalue = 2578 -- value where exhausted is saved
local exhausttime = 1 -- 1 second exhaustion

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HITAREA)
 setCombatFormula(combat, COMBAT_FORMULA_SKILL, 0, 0, 5.6, 0)

local arr = {
{1, 1, 1},
{1, 2, 1},
{1, 1, 1}
}

local area = createCombatArea(arr)
setCombatArea(combat, area)

function onCastSpell(cid, var)
local pAccess = getPlayerAccess(cid) -- Returns the player's access
	if (isPlayer(cid) == TRUE and pAccess < 3) then
		if (exhaust(cid, storevalue, exhausttime) == 1) then
			return doCombat(cid, combat, var)
		else
			doPlayerSendCancel(cid, "You are exhausted.")
		end
	else
		return doCombat(cid, combat, var)
	end		
end

Exori mas.lua

Code:
local storevalue = 2578 -- value where exhausted is saved
local exhausttime = 1 -- 1 second exhaustion

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HITAREA)
 setCombatFormula(combat, COMBAT_FORMULA_SKILL, 0, 0, 3.6, 0)

local arr = {
{1, 1, 1},
{1, 2, 1},
{1, 1, 1}
}

local area = createCombatArea(arr)
setCombatArea(combat, area)

function onCastSpell(cid, var)
local pAccess = getPlayerAccess(cid) -- Returns the player's access
	if (isPlayer(cid) == TRUE and pAccess < 3) then
		if (exhaust(cid, storevalue, exhausttime) == 1) then
			return doCombat(cid, combat, var)
		else
			doPlayerSendCancel(cid, "You are exhausted.")
		end
	else
		return doCombat(cid, combat, var)
	end		
end

Exori hur.lua

Code:
local storevalue = 2578 -- value where exhausted is saved
local exhausttime = 1 -- 1 second exhaustion

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
 setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_DRAWBLOOD)
 setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_THROWINGSWORD)
 setCombatFormula(combat, COMBAT_FORMULA_SKILL, 0, 0, 0.9, 0)
 

function onCastSpell(cid, var)
local pAccess = getPlayerAccess(cid) -- Returns the player's access
	if (isPlayer(cid) == TRUE and pAccess < 3) then
		if (exhaust(cid, storevalue, exhausttime) == 1) then
			return doCombat(cid, combat, var)
		else
			doPlayerSendCancel(cid, "You are exhausted.")
		end
	else
		return doCombat(cid, combat, var)
	end		
end


I also got the 8.1 spells, but their to many xD
So i dont want to post them :p

Maybe later!
 
Last edited:
Im 2sexy couldent logg in to that account and, Password recovery aint working

@Sizaro: Thank u very much for that im going to try them out now! hopefully they work.

@Ferru: Thank u for the information.

Thankz
 
@Falconmax: thx going to test that ;)

thankz

EDIT: Well exhaust doesent work i tried exhaust "1000". when i used sizaros, scripts i gott the exhaust error , and it dident work. They can still spamm Spells,

i use tfs 0.2.8

well thankz!
 
Last edited:
Back
Top