problem mr mam takiego skrypt na manarune ale jest błąd jak klikne prawym na runke i s powrotem lewym na nią pojawia się błąd w silniku
czy wiecie jak się tego pozbyć?
PHP:
local exhaust = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, getConfigInfo('timeBetweenExActions') - 100)
function onUse(cid, item, fromPosition, itemEx, toPosition)
local level, mlevel = getPlayerLevel(cid), getPlayerMagLevel(cid)
local mana_minimum = level * 1 + mlevel * 1 - 50
local mana_maximum = level * 1.2 + mlevel * 1
doPlayerAddMana(cid, math.random(mana_minimum, mana_maximum))
doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_BLUE)
doCreatureSay(itemEx.uid, "Aaaah...", TALKTYPE_ORANGE_1)
if item.type > 1 then
doChangeTypeItem(item.uid, item.type - 1)
else
doRemoveItem(item.uid)
end
return TRUE
end
[Error - Action Interface]
[14/02/2010 13:18:40] data/actions/scripts/manarune.luanUse
[14/02/2010 13:18:40] Description:
[14/02/2010 13:18:40] (luaDoCreatureSay) Creature not found
czy wiecie jak się tego pozbyć?