LuaScripter
Scripter -Lua-
- Joined
- Jan 16, 2012
- Messages
- 40
- Reaction score
- 1
Does this script work? I can' test because I don't have an ot downloaded to test with. and btw it's my first script since I've learned lua so please tell me if it'll work!
btw it's a premium scroll
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local premium = 100
if item.itemid = 1032 and getPlayerLevel(cid) >= 100 then -- so far 2 ends.
doPlayerAddPremiumDays(cid, premium)
elseif item.itemid = 1032 and getPlayerLevel(cid) <= 100 then
doPlayerSendTextMessage(cid, 21, "You're not high enough level to use this scroll.")
end
return true
end