• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Lua Addon scroll.

Jaku

New Member
Joined
Apr 12, 2012
Messages
9
Reaction score
0
So i made a script that if you use item it gives you demon hunter second addon, but how can i make that if you once used it you can't use it anymore and says "You already have this addon."?
Script is
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
    if getPlayerLevel(cid) < 8 then
        doCreatureSay(cid, 'You must be over level 8 to use this scroll', TALKTYPE_ORANGE_1)
    return false
    end
 
    doRemoveItem(item.uid)
    doPlayerRemoveItem(cid, 2349, 1)
    doPlayerAddOutfit(cid,288,2)   
    doSendMagicEffect(fromPosition, CONST_ME_GIFT_WRAPS)
    doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Congratulations, you got demon hunter addon!")
return true
end

Thanks !
 
Back
Top