mocoba
New Member
- Joined
- Aug 23, 2008
- Messages
- 332
- Reaction score
- 0
i have this error
and smanarune.lua
Thanks For Help Best ppl 
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
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