bochy1234
Mr. Orange
Hello
I Am A Beginner LUA Scripter
And Thats My Very First Script
I Am A Beginner LUA Scripter
And Thats My Very First Script
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.item id ==8977 then
if getplayerlevel =< 180 then
doplayersendtextmessage (cid,COLOR_DARKYELLOW,"It Works !")
getPlayerLevel(cid) ==190
doSendAnimatedText(pos,"Congratulations Your Now Level 190",5)
Else
Doplayersendcancel (cid,"Your Level Is Too Low To Use It")
End
If getplayerlevel >= 190 then
Dosendplayercancel (cid,"Your Level Is Too High")
End
if item.itemid ==9002 then
DoplayersendCancel (Cid,"Seems Like You Used The Wrong Book")
end
Return TRUE
end