• 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

mocoba

New Member
Joined
Aug 23, 2008
Messages
332
Reaction score
0
Hello guy i found this error
PHP:
[09/02/2011 07:14:44] [Error - Action Interface] 
[09/02/2011 07:14:44] data/actions/scripts/other/manarune.lua:onUse
[09/02/2011 07:14:44] Description: 
[09/02/2011 07:14:44] (luaDoCreatureSay) Creature not found
and my manarune.lua
PHP:
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)
	local mana_maximum = (level * 1.2) + (mlevel * 9)
	local mana_add = math.random(mana_minimum, mana_maximum)
	
	doPlayerAddMana(cid, mana_add)
	doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_BLUE)
	doCreatureSay(itemEx.uid, "Manaa ... ++ ... !", TALKTYPE_ORANGE_1)
	return TRUE
end
please anyone help me
Thanks
 
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if toPosition.x ~= 0 and toPosition.x ~= 65535 and isPlayer(itemEx.uid) then
		local lv, ml = getPlayerLevel(cid), getPlayerMagLevel(cid)
		local min = lv * 1 + ml * 7
		local max = lv * 1.2 + ml * 9

		doPlayerAddMana(itemEx.uid, math.random(min, max))
		doSendMagicEffect(toPosition, CONST_ME_MAGIC_BLUE)
		doCreatureSay(itemEx.uid, 'Manaa ... ++ ... !', TALKTYPE_ORANGE_1)
		return true
	end
end
 

Similar threads

Back
Top