• 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!

[Request] Addon Chest

PHP:
function onUse(cid, item, frompos, item2, topos)

if item.uid ==5007 then
queststatus = getPlayerStorageValue(cid,5007)
if queststatus == 1 then
doPlayerSendTextMessage(cid,22,"This quest is empty.")

else
doPlayerSendTextMessage(cid,22,"You found a complete citizen addons.")
doSendMagicEffect(topos,12)
if getPlayerSex(cid) == 0 then
doPlayerAddOutfit(cid, 128, 3)
doPlayerAddOutfit(cid, 136, 3)
setPlayerStorageValue(cid,8002,2)
else
doPlayerAddOutfit(cid, 128, 3)
doPlayerAddOutfit(cid, 136, 3)
talk_state = 1
end
end
return 0
end
return 1
end

Rep+ plox?
 
PHP:
local config = {
     storage = 12345,
     text = "first hunter"
     outfitMale = 129
     outfitFemale = 137
     addon = 1
}

function onUse(cid, item, fromPosition, itemEx, toPosition)
     if getPlayerStorageValue(cid, config.storage) == -1 then
          doPlayerSendTextMessage(cid, 25, "You found the " .. config.text .. " addon.")
          doPlayerAddOutfit(cid, config.outfitMale, config.addon)
          doPlayerAddOutfit(cid, config.outfitFemale, config.addon)
          setPlayerStorageValue(cid, config.storage, 1)
     else
          doPlayerSendTextMessage(cid, 25, "It is empty.")
     end
     return TRUE
end
 
Back
Top