Rachaw
Experienced Member
LUA:
[04/11/2009 23:28:47] Lua Script Error: [Action Interface]
[04/11/2009 23:28:47] data/actions/scripts/test.lua:onUse
[04/11/2009 23:28:47] attempt to index a nil value
[04/11/2009 23:28:47] stack traceback:
[04/11/2009 23:28:47] [C]: in function 'doSendMagicEffect'
[04/11/2009 23:28:47] data/actions/scripts/test.lua:5: in function <data/actions/scripts/test.lua:1>
[04/11/2009 23:28:47] CM Rachaw has logged out.
LUA:
function onUse(cid, item, fromPosition, itemEx, toPosition)
doCreatureSay(cid, "You've been awarded Donators experience by the scroll!", TALKTYPE_BLUE_1)
doPlayerAddExp(cid, 40000000)
doRemoveItem(item.uid, 1)
doSendMagicEffect(pos, 12)
if getPlayerLevel(cid) >= 600 then
doCreatureSay(cid, "Sorry, you are over level 600, you can't use me more. Make a new character :).", TALKTYPE_BLUE_1)
end
return 1
end
tested on 0.3.5 help
/rachaw