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

TFS 0.X 0.4 random doll help

vexler222

Active Member
Joined
Apr 22, 2012
Messages
714
Solutions
15
Reaction score
47
Hi, i will try create random addon doll but idk how roll addons? I have it but its only for one addon

Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
    local femaleOutfits = { ["insectoid"]={370} }
    local maleOutfits = { ["insectoid"]={369} }
    local msg = {"Congratulations! You get full random addon!"} --Text Use 'Simple Editing'
    if(getPlayerItemCount(cid, 12707) > 0) then
            doPlayerRemoveItem(cid, 12707, 1)
            doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[1])
                doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS)
            if(getPlayerSex(cid) == 0)then
              doPlayerAddOutfit(cid, 370, 3)
            else
              doPlayerAddOutfit(cid, 369, 3)
            end
end
end
 
Back
Top