Okay so I will start learning LUA using this tutorial, I want you guys to tell me if theres something wrong or how to improve something
Okay so my first script:
I want it that when you use id 5906 (demon dust) a demon is created (not summon) and if you arent using the correct dust it says ""You are not using the correct item!"
so is this correct?:
Also as I dont have any ot files im writing in Notepad lol so idk how wtf is with the spaces and all that..
Okay so my first script:
I want it that when you use id 5906 (demon dust) a demon is created (not summon) and if you arent using the correct dust it says ""You are not using the correct item!"
so is this correct?:
LUA:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.itemid == 5906 then
doCreateMonster(Demon, pos)
else if item.itemid == 5906 FALSE
doPlayerSendTextMessage(cid,21,"You are not using the correct item!")
end
return TRUE
Also as I dont have any ot files im writing in Notepad lol so idk how wtf is with the spaces and all that..
Last edited: