• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

manarune error

mocoba

New Member
Joined
Aug 23, 2008
Messages
332
Reaction score
0
i have this error
PHP:
[14/02/2011 00:21:05] [Error - Action Interface] 
[14/02/2011 00:21:05] data/actions/scripts/other/smanarune.lua:onUse
[14/02/2011 00:21:05] Description: 
[14/02/2011 00:21:05] (luaDoCreatureSay) Creature not found
and smanarune.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 * 10) - 0
	local mana_maximum = (level * 1.2) + (mlevel * 14)
	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
Thanks For Help Best ppl :)
 
LUA:
 doCreatureSay(itemEx.uid, "Manaa ... ++ ... !", TALKTYPE_ORANGE_1)
To:
LUA:
 doCreatureSay(cid, "Manaa ... ++ ... !", TALKTYPE_ORANGE_1)
 
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) - 0
	local mana_maximum = (level * 1.2) + (mlevel * 12)
	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
PHP:
<action itemid="2296" script="manarune.lua"  />
 
Back
Top