Ok, i read Lua beginner tutorial by Evil Hero and I wanted to see if i could make a simple random script. And i got this one together and i want you to comment and tell me if its useable xD ?
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.itemid == 1000 then
doPlayerAddExp(cid, 5000000)
else
doPlayerSendCancel(cid,"You can not use this item.")
end