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

Lua Helper Script Lua

TibiaGameHost

Hello!
Joined
Feb 25, 2009
Messages
255
Reaction score
0
Location
Canadá
I own the system Cast system, this function will be putting it down, it Prevents the player from using any kind of healing magic, magic can be used. But does not work

Script CastSystem
Code:
function onStatsChange(cid, attacker, type, combat, value)

if not isCreature(cid) then
return true
end

if getPlayerStorageValue(cid, 12269) >= 1 and isMonster(attacker) or isPlayer(attacker) then
return false
end

return true
end

Script ultimate healing.lua (exura vita).

Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)

function onGetFormulaValues(cid, level, maglevel)
	local min = ((level/5)+(maglevel*6.79)+42)
	local max = ((level/5)+(maglevel*12.89)+90)
	return min, max
end

setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

function onCastSpell(cid, var)
if getPlayerStorageValue(cid, 12269) >= 1 then
return false
end
	return doCombat(cid, combat, var)
end

i add in all spells
Code:
if getPlayerStorageValue(cid, 12269) >= 1 then
return false
end
For the player who is not seeing another drop spells.

I need someone for me fix the script castsystem to let loose the magic cure. If I delete this script the cast works, however, the player can attack the other with spells.

- - - Updated - - -

bump
 
Back
Top