mocoba
New Member
- Joined
- Aug 23, 2008
- Messages
- 332
- Reaction score
- 0
Hello guy i found this error
and my manarune.lua
please anyone help me
Thanks
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
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
Thanks