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

[0.3.6pl1] Problem with reload

markitu

New Member
Joined
Jun 30, 2009
Messages
74
Reaction score
0
Location
Barra da Tijuca
When i always go reload Spells, i get this message:

Code:
[04/03/2010 11:49:17] [Error - Npc interface] 
[04/03/2010 11:49:17] data/npc/scripts/SELL/furniture.lua:onThink
[04/03/2010 11:49:17] Description: 
[04/03/2010 11:49:17] (luaCreateCombatObject) This function can only be used while loading the script.

[04/03/2010 11:49:17] [Error - Npc interface] 
[04/03/2010 11:49:17] data/npc/scripts/SELL/furniture.lua:onThink
[04/03/2010 11:49:17] Description: 
[04/03/2010 11:49:17] (luaSetCombatParam) This function can only be used while loading the script.

[04/03/2010 11:49:17] [Error - Npc interface] 
[04/03/2010 11:49:17] data/npc/scripts/SELL/furniture.lua:onThink
[04/03/2010 11:49:18] Description: 
[04/03/2010 11:49:18] (luaSetCombatParam) This function can only be used while loading the script.

[04/03/2010 11:49:18] [Error - Npc interface] 
[04/03/2010 11:49:18] data/npc/scripts/SELL/furniture.lua:onThink
[04/03/2010 11:49:18] Description: 
[04/03/2010 11:49:18] (luaCreateConditionObject) This function can only be used while loading the script.

[04/03/2010 11:49:18] [Error - Npc interface] 
[04/03/2010 11:49:18] data/npc/scripts/SELL/furniture.lua:onThink
[04/03/2010 11:49:18] Description: 
[04/03/2010 11:49:18] (luaSetConditionParam) This function can only be used while loading the script.

[04/03/2010 11:49:18] [Error - Npc interface] 
[04/03/2010 11:49:18] data/npc/scripts/SELL/furniture.lua:onThink
[04/03/2010 11:49:18] Description: 
[04/03/2010 11:49:18] (luaSetCombatCondition) This function can only be used while loading the script.

[04/03/2010 11:49:18] [Error - Npc interface] 
[04/03/2010 11:49:18] data/npc/scripts/default.lua:onThink
[04/03/2010 11:49:18] Description: 
[04/03/2010 11:49:18] (luaSetCombatParam) This function can only be used while loading the script.
[04/03/2010 11:49:19] Reloaded spells.

[04/03/2010 11:49:57] [Error - Npc interface] 
[04/03/2010 11:49:57] data/npc/scripts/Sell/distance.lua:onThink
[04/03/2010 11:49:57] Description: 
[04/03/2010 11:49:57] (luaCreateCombatObject) This function can only be used while loading the script.

[04/03/2010 11:49:57] [Error - Spell Interface] 
[04/03/2010 11:49:57] data/spells/scripts/healing/ultimate healing rune.lua
[04/03/2010 11:49:57] Description: 
[04/03/2010 11:49:57] (luaSetCombatParam) Combat not found

[04/03/2010 11:49:57] [Error - Spell Interface] 
[04/03/2010 11:49:57] data/spells/scripts/healing/ultimate healing rune.lua
[04/03/2010 11:49:57] Description: 
[04/03/2010 11:49:57] (luaSetCombatParam) Combat not found

[04/03/2010 11:49:57] [Error - Spell Interface] 
[04/03/2010 11:49:57] data/spells/scripts/healing/ultimate healing rune.lua
[04/03/2010 11:49:58] Description: 
[04/03/2010 11:49:58] (luaSetCombatParam) Combat not found

[04/03/2010 11:49:58] [Error - Spell Interface] 
[04/03/2010 11:49:58] data/spells/scripts/healing/ultimate healing rune.lua
[04/03/2010 11:49:58] Description: 
[04/03/2010 11:49:58] (luaSetCombatParam) Combat not found

[04/03/2010 11:49:58] [Error - Spell Interface] 
[04/03/2010 11:49:58] data/spells/scripts/healing/ultimate healing rune.lua
[04/03/2010 11:49:58] Description: 
[04/03/2010 11:49:58] (luaSetCombatParam) Combat not found

[04/03/2010 11:49:58] [Error - Spell Interface] 
[04/03/2010 11:49:58] data/spells/scripts/healing/ultimate healing rune.lua
[04/03/2010 11:49:58] Description: 
[04/03/2010 11:49:58] (luaSetCombatCallBack) Combat not found

[04/03/2010 11:49:58] [Error - Spell Interface] 
[04/03/2010 11:49:58] data/spells/scripts/healing/light healing.lua
[04/03/2010 11:49:58] Description: 
[04/03/2010 11:49:58] (luaSetCombatParam) This function can only be used while loading the script.
[04/03/2010 11:49:59] Reloaded spells.

And more, all this scripts above are in their folders... so, if anyone can help me? rep+++

Cheers, markitu
 
Try this

UH:
Lua:
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_TARGETCASTERORTOPMOST, TRUE)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)

function onGetFormulaValues(cid, level, maglevel)
	local min = ((level/0.25)+(maglevel*3))
	local max = ((level/0.25)+(maglevel*3))
	return min, max
end

setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")


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

IH:
Lua:
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/0.25)+(maglevel*3) * 0.7)
	local max = ((level/0.25)+(maglevel*3) * 0.92)
	return min, max
end

setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

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