abdala ragab
Veteran OT User
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local name = getCreatureName(cid)
local level = getPlayerLevel(cid)
if getPlayerStorageValue(cid,90733) < 3 then
if getPlayerLevel(cid) > 1 then
setPlayerStorageValue(cid,90733,3)
doPlayerSay(cid, "Felicity " .. name .. " [" ..level.. "], Cast Your New Spell.", TALKTYPE_ORANGE_1)
doRemoveItem(item.uid, 1)
else
doPlayerSendTextMessage(cid,19,"You " .. name .. " [" ..level.. "], need to be Level 100 or More To Use It.")
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
end
else
doPlayerSendTextMessage(cid,19,"Sorry " .. name .. " [" ..level.. "], You Have Done The Q Before.")
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
end
return TRUE
end
Lua Script Error: [Action Interface]
data/actions/scripts/Mana Max.luanUse
data/actions/scripts/Mana Max.lua:7: attempt to call global 'doPlayerSay' (a nil
value)