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

Manarune error

mocoba

New Member
Joined
Aug 23, 2008
Messages
332
Reaction score
0
Hello Guys i have This Error Anyone can fix it to me ? i have TFS 8.60
PHP:
[08/02/2011 02:23:07] [Error - Action Interface] 
[08/02/2011 02:23:07] data/actions/scripts/other/manarune.lua:onUse
[08/02/2011 02:23:07] Description: 
[08/02/2011 02:23:07] (luaDoCreatureSay) Creature not found
Thanks
 
First of all, u should post the script :)

But i guess u could fix it deleting the part when is this function:
[08/02/2011 02:23:07] (luaDoCreatureSay)

What will change? when a player use the manarune, they dont will say nothing, like aahhh with potions x)
 
LUA:
local exhaust = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 100))

function onUse(cid, item, fromPosition, itemEx, toPosition)
	local level = getPlayerLevel(cid)
	local mlevel = getPlayerMagLevel(cid)
	local mana_minimum = (level * 1) + (mlevel * 7) - 0
	local mana_maximum = (level * 1.2) + (mlevel * 12)
	local mana_add = math.random(500, 800)
	
	doPlayerAddMana(cid, mana_add)
	doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_BLUE)
	doCreatureSay(itemEx.uid, "Mana ... ++ ... !", TALKTYPE_ORANGE_1)
	return TRUE
end

I'ts not the threat but, other thing.
Why TFS 0.4 crashes randomly without any bug?
 
LUA:
local exhaust = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 100))
 
function onUse(cid, item, frompos, item2, topos) 
	local level = getPlayerLevel(cid)
	local mlevel = getPlayerMagLevel(cid)
	local mana_minimum = (level * 1) + (mlevel * 7) - 0
	local mana_maximum = (level * 1.2) + (mlevel * 12)
	local mana_add = math.random(500, 800)
 
	doPlayerAddMana(cid, mana_add)
	doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_BLUE)
	doCreatureSay(itemEx.uid, "Mana ... ++ ... !", TALKTYPE_ORANGE_1)
	return TRUE
end
 
LUA:
local exhaust = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 100))
 
function onUse(cid, item, fromPosition, itemEx, toPosition) 
	local level = getPlayerLevel(cid)
	local mlevel = getPlayerMagLevel(cid)
	local mana_minimum = (level * 1) + (mlevel * 7) - 0
	local mana_maximum = (level * 1.2) + (mlevel * 12)
	local mana_add = math.random(500, 800)
 
	doPlayerAddMana(cid, mana_add)
	doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_BLUE)
	doCreatureSay(itemEx.uid, "Mana ... ++ ... !", TALKTYPE_ORANGE_1)
	return TRUE
end
 
Last edited:
Back
Top