Stax
Learning Lua
hello, i just started learning lua and though i would post my advances on scripting. if you know how i can improve dont mind telling me. i take critism, help anything that can make me a better scripter ,but please dont be harsh in your cristism like "you suck ass" or stuff like that^_^
heres my first script
heres my first script
Lua:
function onAdvance(cid, skill, oldLevel, newLevel)
if (skill == SKILL_LEVEL and newLevel>oldLevel) then
if getPlayerLevel (cid) == 50 then
doPlayerSendTextMessage(cid,21,"Congratulations!")
elseif getPlayerLevel (cid) < 50 then
doPlayerSendTextMessage(cid,21,"Hurry up and get level 50!")
end
end
end
special thanks to Quas for helping me with some lua stuff
Last edited: