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

addon not work after relog

tibera

Active Member
Joined
Nov 9, 2014
Messages
105
Reaction score
33
Location
Governador Valadares - MG
im using Otx 2 - 0.7 - Version 7.72

outfit.png

outfit1.png
if disable addon1 addon2 and click ok , after relog acess addon 1 2 cant enable to use.

outfit2.png

Lua:
<?xml version="1.0"?>
<outfits>
    <outfit id="1">
        <list gender="0" lookType="136" name="Citizen"/>
        <list gender="1" lookType="128" name="Citizen"/>
    </outfit>

    <outfit id="2">
        <list gender="0" lookType="137" name="Hunter"/>
        <list gender="1" lookType="129" name="Hunter"/>
    </outfit>

    <outfit id="3">
        <list gender="0" lookType="138" name="Mage"/>
        <list gender="1" lookType="130" name="Mage"/>
    </outfit>

    <outfit id="4">
        <list gender="0" lookType="139" name="Knight"/>
        <list gender="1" lookType="131" name="Knight"/>
    </outfit>

    <outfit id="5" premium="yes">
        <list gender="0" lookType="140" name="Noblewoman"/>
        <list gender="1" lookType="132" name="Nobleman"/>
    </outfit>

    <outfit id="6" premium="yes">
        <list gender="0" lookType="141" name="Summoner"/>
        <list gender="1" lookType="133" name="Summoner"/>
    </outfit>

    <outfit id="7" premium="yes">
        <list gender="0" lookType="142" name="Warrior"/>
        <list gender="1" lookType="134" name="Warrior"/>
    </outfit>
    <outfit id="8" storageId="9470001" storageValue="3" premium="yes">
        <list gender="0" lookType="258" name="Citizen"/>
        <list gender="1" lookType="267" name="Citizen"/>
    </outfit>

    <outfit id="9" storageId="9470002" storageValue="3" premium="yes">
        <list gender="0" lookType="259" name="Hunter"/>
        <list gender="1" lookType="268" name="Hunter"/>
    </outfit>

    <outfit id="10" storageId="9470003" storageValue="3" premium="no">
        <list gender="0" lookType="260" name="Mage"/>
        <list gender="1" lookType="269" name="Mage"/>
    </outfit>

    <outfit id="11" storageId="9470004" storageValue="3" premium="yes">
        <list gender="0" lookType="261" name="Knight"/>
        <list gender="1" lookType="270" name="Knight"/>
    </outfit>

    <outfit id="12" storageId="9470005" storageValue="3" premium="yes">
        <list gender="0" lookType="262" name="Noblewoman"/>
        <list gender="1" lookType="271" name="Nobleman"/>
    </outfit>

    <outfit id="13" storageId="9470006" storageValue="3" premium="yes">
        <list gender="1" lookType="316" name="Summoner"/>
        <list gender="0" lookType="432" name="Summoner"/>
    </outfit>

    <outfit id="14" storageId="9470007" storageValue="3" premium="yes">
        <list gender="0" lookType="263" name="Warrior"/>
        <list gender="1" lookType="272" name="Warrior"/>
    </outfit>
    
    <outfit id="15" storageId="9470008" storageValue="3" premium="yes">
        <list gender="1" lookType="436" name="Druid"/>
        <list gender="0" lookType="431" name="Druid"/>
    </outfit>   
    
    <outfit id="16" storageId="9470009" storageValue="3" premium="yes">
        <list gender="1" lookType="414" name="Oriental"/>
        <list gender="0" lookType="434" name="Oriental"/>
    </outfit>   

    <outfit id="17" storageId="9470010" storageValue="3" premium="yes">
        <list gender="1" lookType="435" name="Assassin"/>
        <list gender="0" lookType="437" name="Assassin"/>
    </outfit>
    
    <outfit id="18" storageId="9470011" storageValue="3" premium="yes">
        <list gender="0" lookType="337" name="Guardian"/>
        <list gender="1" lookType="308" name="Guardian"/>
    </outfit>
    
    <outfit id="19" storageId="9470012" storageValue="3" premium="yes">
        <list gender="0" lookType="338" name="Spike Elite"/>
        <list gender="1" lookType="309" name="Spike Elite"/>
    </outfit>
    
    <outfit id="20" storageId="9470013" storageValue="3" premium="yes">
        <list gender="1" lookType="307" name="Mysticelite"/>
        <list gender="0" lookType="336" name="Mysticelite"/>
    </outfit>

    <outfit id="21" storageId="9470014" storageValue="3" premium="yes">
        <list gender="1" lookType="275" name="Yalahari"/>
        <list gender="0" lookType="266" name="Yalahari"/>
    </outfit>
    
    <outfit id="22" storageId="9470015" storageValue="3" premium="no">
        <list gender="1" lookType="273" name="Brotherhood"/>
        <list gender="0" lookType="265" name="Brotherhood"/>
    </outfit>
    
    <outfit id="23" storageId="9470016" storageValue="3" premium="no">
        <list gender="1" lookType="449" name="Golden"/>
        <list gender="0" lookType="456" name="Golden"/>
    </outfit>
    
    <outfit id="24" storageId="9470017" storageValue="3" premium="yes">
        <list gender="1" lookType="452" name="Crown"/>
        <list gender="0" lookType="451" name="Crown"/>
    </outfit>
    
    <outfit id="25" storageId="9470018" storageValue="3" premium="yes">
        <list gender="1" lookType="454" name="Dragon"/>
        <list gender="0" lookType="455" name="Dragon"/>
    </outfit>
    
    <outfit id="26" storageId="9470019" storageValue="3" premium="yes">
        <list gender="1" lookType="450" name="Conjurer"/>
        <list gender="0" lookType="457" name="Conjurer"/>
    </outfit>
    
    <outfit id="27" storageId="9470020" storageValue="3" premium="yes">
        <list gender="1" lookType="462" name="Rascoohan"/>
        <list gender="0" lookType="461" name="Rascoohan"/>
    </outfit>
    
    <outfit id="28" storageId="9470021" storageValue="3" premium="yes">
        <list gender="1" lookType="460" name="Poltergeist"/>
        <list gender="0" lookType="459" name="Poltergeist"/>
    </outfit>
    
    <outfit id="29" storageId="9470022" storageValue="3" premium="yes">
        <list gender="1" lookType="469" name="Angel"/>
        <list gender="0" lookType="468" name="Angel"/>
    </outfit>
    
    <outfit id="30" storageId="9470023" storageValue="3" premium="yes">
        <list gender="1" lookType="470" name="Demon"/>
        <list gender="0" lookType="470" name="Demon"/>
    </outfit>
    
    <outfit id="31"  storageId="9470024" storageValue="3" premium="yes">
        <list gender="1" lookType="471" name="Centurion"/>
        <list gender="0" lookType="471" name="Centurion"/>
    </outfit>
    
    <outfit id="32" storageId="9470025" storageValue="3" premium="yes">
        <list gender="1" lookType="453" name="Tomb Assassin"/>
        <list gender="0" lookType="458" name="Tomb Assassin"/>
    </outfit>
</outfits>

Lua:
function onUse(cid, item, frompos, item2, topos)
if getPlayerStorageValue(cid,9470001) <= 0 and item.itemid == 8357 then  -- citizen outfit
        setPlayerStorageValue(cid,9470001, 3)
        doPlayerAddOutfit(cid,258, 3)
        doPlayerAddOutfit(cid,267, 3)
        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You have received all addons of citizen outfit.')
        doRemoveItem(item.uid, 1)
else
end
if getPlayerStorageValue(cid,9470002) <= 0 and item.itemid == 8361 then  -- hunter outfit
        setPlayerStorageValue(cid,9470002, 3)
        doPlayerAddOutfit(cid,259, 3)
        doPlayerAddOutfit(cid,268, 3)
        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You have received all addons of hunter outfit.')
        doRemoveItem(item.uid, 1)
else
end
if getPlayerStorageValue(cid,9470003) <= 0 and item.itemid == 8404 then  -- Mage outfit
        setPlayerStorageValue(cid,9470003, 3)
        doPlayerAddOutfit(cid,260, 3)
        doPlayerAddOutfit(cid,269, 3)
        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You have received all addons of mage outfit.')
        doRemoveItem(item.uid, 1)
else
end
if getPlayerStorageValue(cid,9470004) <= 0 and item.itemid == 8356 then  -- knight outfit
        setPlayerStorageValue(cid,9470004, 3)
        doPlayerAddOutfit(cid,261, 3)
        doPlayerAddOutfit(cid,270, 3)
        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You have received all addons of knight outfit.')
        doRemoveItem(item.uid, 1)
else
end
if getPlayerStorageValue(cid,9470005) <= 0 and item.itemid == 8428 then  -- noble outfit
        setPlayerStorageValue(cid,9470005, 3)
        doPlayerAddOutfit(cid,262, 3)
        doPlayerAddOutfit(cid,271, 3)
        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You have received all addons of noble outfit.')
        doRemoveItem(item.uid, 1)
else
end
if getPlayerStorageValue(cid,9470006) <= 0 and item.itemid == 8349 then  -- Summoner outfit
        setPlayerStorageValue(cid,9470006, 3)
        doPlayerAddOutfit(cid,316, 3)
        doPlayerAddOutfit(cid,432, 3)
        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You have received all addons of summoner outfit.')
        doRemoveItem(item.uid, 1)
else
end
if getPlayerStorageValue(cid,9470007) <= 0 and item.itemid == 8427 then  -- warrior outfit
        setPlayerStorageValue(cid,9470007, 3)
        doPlayerAddOutfit(cid,263, 3)
        doPlayerAddOutfit(cid,272, 3)
        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You have received all addons of warrior outfit.')
        doRemoveItem(item.uid, 1)
else
end
if getPlayerStorageValue(cid,9470008) <= 0 and item.itemid == 8362 then  -- Druid outfit
        setPlayerStorageValue(cid,9470008, 3)
        doPlayerAddOutfit(cid,436, 3)
        doPlayerAddOutfit(cid,431, 3)
        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You have received all addons of druid outfit.')
        doRemoveItem(item.uid, 1)
else
end
if getPlayerStorageValue(cid,9470009) <= 0 and item.itemid == 8360 then  -- Oriental outfit
        setPlayerStorageValue(cid,9470009, 3)
        doPlayerAddOutfit(cid,414, 3)
        doPlayerAddOutfit(cid,434, 3)
        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You have received all addons of oriental outfit.')
        doRemoveItem(item.uid, 1)
else
end
if getPlayerStorageValue(cid,9470010) <= 0 and item.itemid == 8358 then  -- Assassin outfit
        setPlayerStorageValue(cid,9470010, 3)
        doPlayerAddOutfit(cid,435, 3)
        doPlayerAddOutfit(cid,437, 3)
        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You have received all addons of assassin outfit.')
        doRemoveItem(item.uid, 1)
else
end
if getPlayerStorageValue(cid,9470011) <= 0 and item.itemid == 8431 then  -- Guardian outfit
        setPlayerStorageValue(cid,9470011, 3)
        doPlayerAddOutfit(cid,337, 3)
        doPlayerAddOutfit(cid,308, 3)
        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You have received all addons of guardian outfit.')
        doRemoveItem(item.uid, 1)
else
end
if getPlayerStorageValue(cid,9470012) <= 0 and item.itemid == 8432 then  -- Spike Elite outfit
        setPlayerStorageValue(cid,9470012, 3)
        doPlayerAddOutfit(cid,338, 3)
        doPlayerAddOutfit(cid,309, 3)
        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You have received all addons of spike elite outfit.')
        doRemoveItem(item.uid, 1)
else
end
if getPlayerStorageValue(cid,9470013) <= 0 and item.itemid == 8433 then  -- Mysticelite outfit
        setPlayerStorageValue(cid,9470013, 3)
        doPlayerAddOutfit(cid,307, 3)
        doPlayerAddOutfit(cid,336, 3)
        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You have received all addons of mysticelite elite outfit.')
        doRemoveItem(item.uid, 1)
else
end
if getPlayerStorageValue(cid,9470014) <= 0 and item.itemid == 8430 then  -- Yalahari outfit
        setPlayerStorageValue(cid,9470014, 3)
        doPlayerAddOutfit(cid,275, 3)
        doPlayerAddOutfit(cid,266, 3)
        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You have received all addons of yalahari outfit.')
        doRemoveItem(item.uid, 1)
else
end
if getPlayerStorageValue(cid,9470015) <= 0 and item.itemid == 8355 then  -- Brotherhood outfit
        setPlayerStorageValue(cid,9470015, 3)
        doPlayerAddOutfit(cid,273, 3)
        doPlayerAddOutfit(cid,265, 3)
        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You have received all addons of brotherhood outfit.')
        doRemoveItem(item.uid, 1)
else
end
if getPlayerStorageValue(cid,9470016) <= 0 and item.itemid == 8348 then   --Golden outfit
        setPlayerStorageValue(cid,9470016, 3)
        doPlayerAddOutfit(cid,449, 3)
        doPlayerAddOutfit(cid,456, 3)
        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You have received all addons of golden outfit.')
        doRemoveItem(item.uid, 1)
else
end
if getPlayerStorageValue(cid,9470017) <= 0 and item.itemid == 8429 then   --crown outfit
        setPlayerStorageValue(cid,9470017, 3)
        doPlayerAddOutfit(cid,452, 3)
        doPlayerAddOutfit(cid,451, 3)
        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You have received all addons of crown outfit.')
        doRemoveItem(item.uid, 1)
else
end
if getPlayerStorageValue(cid,9470018) <= 0 and item.itemid == 8417 then   --Dragon Slayer outfit
        setPlayerStorageValue(cid,9470018, 3)
        doPlayerAddOutfit(cid,454, 3)
        doPlayerAddOutfit(cid,455, 3)
        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You have received all addons of dragon slayer outfit.')
        doRemoveItem(item.uid, 1)
else
end
if getPlayerStorageValue(cid,9470019) <= 0 and item.itemid == 8353 then  -- Conjurer outfit
        setPlayerStorageValue(cid,9470019, 3)
        doPlayerAddOutfit(cid,450, 3)
        doPlayerAddOutfit(cid,457, 3)
        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You have received all addons of conjurer outfit.')
        doRemoveItem(item.uid, 1)
else
end
if getPlayerStorageValue(cid,9470020) <= 0 and item.itemid == 8363 then  -- Guaxinim outfit
        setPlayerStorageValue(cid,9470020, 3)
        doPlayerAddOutfit(cid,462, 3)
        doPlayerAddOutfit(cid,461, 3)
        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You have received all addons of rascoohan outfit.')
        doRemoveItem(item.uid, 1)
else
end
if getPlayerStorageValue(cid,9470021) <= 0 and item.itemid == 8434 then  -- Poltergeist outfit
        setPlayerStorageValue(cid,9470021, 3)
        doPlayerAddOutfit(cid,460, 3)
        doPlayerAddOutfit(cid,459, 3)
        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You have received all addons of poltergeist outfit.')
        doRemoveItem(item.uid, 1)
else
end
if getPlayerStorageValue(cid,9470022) <= 0 and item.itemid == 8422 then  -- Angel outfit
        setPlayerStorageValue(cid,9470022, 3)
        doPlayerAddOutfit(cid,469, 3)
        doPlayerAddOutfit(cid,468, 3)
        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You have received all addons of angel outfit.')
        doRemoveItem(item.uid, 1)
else
end
if getPlayerStorageValue(cid,9470023) <= 0 and item.itemid == 8418 then  -- Demon outfit
        setPlayerStorageValue(cid,9470023, 3)
        doPlayerAddOutfit(cid,470, 3)
        doPlayerAddOutfit(cid,470, 3)
        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You have received all addons of demon outfit.')
        doRemoveItem(item.uid, 1)
else
end
if getPlayerStorageValue(cid,9470024) <= 0 and item.itemid == 8419 then  -- Centurion outfit
        setPlayerStorageValue(cid,9470024, 3)
        doPlayerAddOutfit(cid,471, 3)
        doPlayerAddOutfit(cid,471, 3)
        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You have received all addons of centurion outfit.')
        doRemoveItem(item.uid, 1)
else
end
if getPlayerStorageValue(cid,9470025) <= 0 and item.itemid == 8354 then  -- Tomb Assassin outfit
        setPlayerStorageValue(cid,9470025, 3)
        doPlayerAddOutfit(cid,453, 3)
        doPlayerAddOutfit(cid,458, 3)
        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You have received all addons of tomb assassin outfit.')
        doRemoveItem(item.uid, 1)
else
end
return true
end
 
Does this account have premium?

--

Also here's a more concise way to have this script.

Lua:
local outfits = {
    {storage = 9470001, outfit1 = 258, outfit2 = 267, itemid = 8357, message = 'You have received all addons of citizen outfit.'},
    {storage = 9470002, outfit1 = 259, outfit2 = 268, itemid = 8361, message = 'You have received all addons of hunter outfit.'},
    {storage = 9470003, outfit1 = 260, outfit2 = 269, itemid = 8404, message = 'You have received all addons of mage outfit.'},
    {storage = 9470004, outfit1 = 261, outfit2 = 270, itemid = 8356, message = 'You have received all addons of knight outfit.'},
    {storage = 9470005, outfit1 = 262, outfit2 = 271, itemid = 8428, message = 'You have received all addons of noble outfit.'},
    {storage = 9470006, outfit1 = 316, outfit2 = 432, itemid = 8349, message = 'You have received all addons of summoner outfit.'},
    {storage = 9470007, outfit1 = 263, outfit2 = 272, itemid = 8427, message = 'You have received all addons of warrior outfit.'},
    {storage = 9470008, outfit1 = 436, outfit2 = 431, itemid = 8362, message = 'You have received all addons of druid outfit.'},
    {storage = 9470009, outfit1 = 414, outfit2 = 434, itemid = 8360, message = 'You have received all addons of oriental outfit.'},
    {storage = 9470010, outfit1 = 435, outfit2 = 437, itemid = 8358, message = 'You have received all addons of assassin outfit.'},
    {storage = 9470011, outfit1 = 337, outfit2 = 308, itemid = 8431, message = 'You have received all addons of guardian outfit.'},
    {storage = 9470012, outfit1 = 338, outfit2 = 309, itemid = 8432, message = 'You have received all addons of spike elite outfit.'},
    {storage = 9470013, outfit1 = 307, outfit2 = 336, itemid = 8433, message = 'You have received all addons of mysticelite outfit.'},
    {storage = 9470014, outfit1 = 275, outfit2 = 266, itemid = 8430, message = 'You have received all addons of yalahari outfit.'},
    {storage = 9470015, outfit1 = 273, outfit2 = 265, itemid = 8355, message = 'You have received all addons of brotherhood outfit.'},
    {storage = 9470016, outfit1 = 449, outfit2 = 456, itemid = 8348, message = 'You have received all addons of golden outfit.'},
    {storage = 9470017, outfit1 = 452, outfit2 = 451, itemid = 8429, message = 'You have received all addons of crown outfit.'},
    {storage = 9470018, outfit1 = 454, outfit2 = 455, itemid = 8417, message = 'You have received all addons of dragon slayer outfit.'},
    {storage = 9470019, outfit1 = 450, outfit2 = 457, itemid = 8353, message = 'You have received all addons of conjurer outfit.'},
    {storage = 9470020, outfit1 = 462, outfit2 = 461, itemid = 8363, message = 'You have received all addons of guaxinim outfit.'},
    {storage = 9470021, outfit1 = 460, outfit2 = 459, itemid = 8434, message = 'You have received all addons of poltergeist outfit.'},
    {storage = 9470022, outfit1 = 469, outfit2 = 468, itemid = 8422, message = 'You have received all addons of angel outfit.'},
    {storage = 9470023, outfit1 = 470, outfit2 = 470, itemid = 8418, message = 'You have received all addons of demon outfit.'},
    {storage = 9470024, outfit1 = 471, outfit2 = 471, itemid = 8419, message = 'You have received all addons of centurion outfit.'},
    {storage = 9470025, outfit1 = 453, outfit2 = 458, itemid = 8354, message = 'You have received all addons of tomb assassin outfit.'}
}

function onUse(cid, item, frompos, item2, topos)
    for _, outfit in ipairs(outfits) do
        if getPlayerStorageValue(cid, outfit.storage) <= 0 and item.itemid == outfit.itemid then
            setPlayerStorageValue(cid, outfit.storage, 3)
            doPlayerAddOutfit(cid, outfit.outfit1, 3)
            doPlayerAddOutfit(cid, outfit.outfit2, 3)
            doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, outfit.message)
            doRemoveItem(item.uid, 1)
            return true
        end
    end
    return true
end
 
Does this account have premium?

--

Also here's a more concise way to have this script.

Lua:
local outfits = {
    {storage = 9470001, outfit1 = 258, outfit2 = 267, itemid = 8357, message = 'You have received all addons of citizen outfit.'},
    {storage = 9470002, outfit1 = 259, outfit2 = 268, itemid = 8361, message = 'You have received all addons of hunter outfit.'},
    {storage = 9470003, outfit1 = 260, outfit2 = 269, itemid = 8404, message = 'You have received all addons of mage outfit.'},
    {storage = 9470004, outfit1 = 261, outfit2 = 270, itemid = 8356, message = 'You have received all addons of knight outfit.'},
    {storage = 9470005, outfit1 = 262, outfit2 = 271, itemid = 8428, message = 'You have received all addons of noble outfit.'},
    {storage = 9470006, outfit1 = 316, outfit2 = 432, itemid = 8349, message = 'You have received all addons of summoner outfit.'},
    {storage = 9470007, outfit1 = 263, outfit2 = 272, itemid = 8427, message = 'You have received all addons of warrior outfit.'},
    {storage = 9470008, outfit1 = 436, outfit2 = 431, itemid = 8362, message = 'You have received all addons of druid outfit.'},
    {storage = 9470009, outfit1 = 414, outfit2 = 434, itemid = 8360, message = 'You have received all addons of oriental outfit.'},
    {storage = 9470010, outfit1 = 435, outfit2 = 437, itemid = 8358, message = 'You have received all addons of assassin outfit.'},
    {storage = 9470011, outfit1 = 337, outfit2 = 308, itemid = 8431, message = 'You have received all addons of guardian outfit.'},
    {storage = 9470012, outfit1 = 338, outfit2 = 309, itemid = 8432, message = 'You have received all addons of spike elite outfit.'},
    {storage = 9470013, outfit1 = 307, outfit2 = 336, itemid = 8433, message = 'You have received all addons of mysticelite outfit.'},
    {storage = 9470014, outfit1 = 275, outfit2 = 266, itemid = 8430, message = 'You have received all addons of yalahari outfit.'},
    {storage = 9470015, outfit1 = 273, outfit2 = 265, itemid = 8355, message = 'You have received all addons of brotherhood outfit.'},
    {storage = 9470016, outfit1 = 449, outfit2 = 456, itemid = 8348, message = 'You have received all addons of golden outfit.'},
    {storage = 9470017, outfit1 = 452, outfit2 = 451, itemid = 8429, message = 'You have received all addons of crown outfit.'},
    {storage = 9470018, outfit1 = 454, outfit2 = 455, itemid = 8417, message = 'You have received all addons of dragon slayer outfit.'},
    {storage = 9470019, outfit1 = 450, outfit2 = 457, itemid = 8353, message = 'You have received all addons of conjurer outfit.'},
    {storage = 9470020, outfit1 = 462, outfit2 = 461, itemid = 8363, message = 'You have received all addons of guaxinim outfit.'},
    {storage = 9470021, outfit1 = 460, outfit2 = 459, itemid = 8434, message = 'You have received all addons of poltergeist outfit.'},
    {storage = 9470022, outfit1 = 469, outfit2 = 468, itemid = 8422, message = 'You have received all addons of angel outfit.'},
    {storage = 9470023, outfit1 = 470, outfit2 = 470, itemid = 8418, message = 'You have received all addons of demon outfit.'},
    {storage = 9470024, outfit1 = 471, outfit2 = 471, itemid = 8419, message = 'You have received all addons of centurion outfit.'},
    {storage = 9470025, outfit1 = 453, outfit2 = 458, itemid = 8354, message = 'You have received all addons of tomb assassin outfit.'}
}

function onUse(cid, item, frompos, item2, topos)
    for _, outfit in ipairs(outfits) do
        if getPlayerStorageValue(cid, outfit.storage) <= 0 and item.itemid == outfit.itemid then
            setPlayerStorageValue(cid, outfit.storage, 3)
            doPlayerAddOutfit(cid, outfit.outfit1, 3)
            doPlayerAddOutfit(cid, outfit.outfit2, 3)
            doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, outfit.message)
            doRemoveItem(item.uid, 1)
            return true
        end
    end
    return true
end
yes, its premium.
ill try this code
Post automatically merged:

same bug in addon.
 
Last edited:
maybe the source code related to saving outfits is not complete as it is an 7.72 engine
i solved problem.
in script "data/creaturescripts/scripts/out.lua"

Lua:
function onLogin(cid)
if getPlayerStorageValue(cid,8470001) >= 1 then --
        doPlayerAddOutfit(cid,258, 3)
        doPlayerAddOutfit(cid,267, 3)
else
end
if getPlayerStorageValue(cid,8470002) >= 1 then --
        doPlayerAddOutfit(cid,259, 3)
        doPlayerAddOutfit(cid,268, 3)
end
if getPlayerStorageValue(cid,8470003) >= 1 then --
        doPlayerAddOutfit(cid,260, 3)
        doPlayerAddOutfit(cid,269, 3)
end
if getPlayerStorageValue(cid,8470004) >= 1 then --
        doPlayerAddOutfit(cid,261, 3)
        doPlayerAddOutfit(cid,270, 3)
end
if getPlayerStorageValue(cid,8470005) >= 1 then --
        doPlayerAddOutfit(cid,262, 3)
        doPlayerAddOutfit(cid,271, 3)
end
if getPlayerStorageValue(cid,8470006) >= 1 then --
        doPlayerAddOutfit(cid,316, 3)
        doPlayerAddOutfit(cid,432, 3)
end
if getPlayerStorageValue(cid,8470007) >= 1 then --
        doPlayerAddOutfit(cid,263, 3)
        doPlayerAddOutfit(cid,272, 3)
end
if getPlayerStorageValue(cid,8470008) >= 1 then --
        doPlayerAddOutfit(cid,436, 3)
        doPlayerAddOutfit(cid,431, 3)
end
if getPlayerStorageValue(cid,8470009) >= 1 then --
        doPlayerAddOutfit(cid,414, 3)
        doPlayerAddOutfit(cid,434, 3)
end
if getPlayerStorageValue(cid,8470010) >= 1 then --
        doPlayerAddOutfit(cid,435, 3)
        doPlayerAddOutfit(cid,437, 3)
end
if getPlayerStorageValue(cid,8470011) >= 1 then --
        doPlayerAddOutfit(cid,337, 3)
        doPlayerAddOutfit(cid,308, 3)
end
if getPlayerStorageValue(cid,8470012) >= 1 then --
        doPlayerAddOutfit(cid,338, 3)
        doPlayerAddOutfit(cid,309, 3)
end
if getPlayerStorageValue(cid,8470013) >= 1 then --
        doPlayerAddOutfit(cid,307, 3)
        doPlayerAddOutfit(cid,336, 3)
end
if getPlayerStorageValue(cid,8470014) >= 1 then --
        doPlayerAddOutfit(cid,275, 3)
        doPlayerAddOutfit(cid,266, 3)
end
if getPlayerStorageValue(cid,8470015) >= 1 then --
        doPlayerAddOutfit(cid,273, 3)
        doPlayerAddOutfit(cid,265, 3)
end
if getPlayerStorageValue(cid,8470016) >= 1 then --
        doPlayerAddOutfit(cid,449, 3)
        doPlayerAddOutfit(cid,456, 3)
end
if getPlayerStorageValue(cid,8470017) >= 1 then --
        doPlayerAddOutfit(cid,452, 3)
        doPlayerAddOutfit(cid,451, 3)
end
if getPlayerStorageValue(cid,8470018) >= 1 then --
        doPlayerAddOutfit(cid,454, 3)
        doPlayerAddOutfit(cid,455, 3)
end
if getPlayerStorageValue(cid,8470019) >= 1 then --
        doPlayerAddOutfit(cid,450, 3)
        doPlayerAddOutfit(cid,457, 3)
end
if getPlayerStorageValue(cid,8470020) >= 1 then --
        doPlayerAddOutfit(cid,462, 3)
        doPlayerAddOutfit(cid,461, 3)
end
if getPlayerStorageValue(cid,8470021) >= 1 then --
        doPlayerAddOutfit(cid,460, 3)
        doPlayerAddOutfit(cid,459, 3)
end
if getPlayerStorageValue(cid,8470022) >= 1 then --
        doPlayerAddOutfit(cid,469, 3)
        doPlayerAddOutfit(cid,468, 3)
end
if getPlayerStorageValue(cid,8470023) >= 1 then --
        doPlayerAddOutfit(cid,470, 3)
end
if getPlayerStorageValue(cid,8470024) >= 1 then --
        doPlayerAddOutfit(cid,471, 3)
end
if getPlayerStorageValue(cid,8470025) >= 1 then --
        doPlayerAddOutfit(cid,453, 3)
        doPlayerAddOutfit(cid,458, 3)
end
return true
end
 
i solved problem.
in script "data/creaturescripts/scripts/out.lua"

Lua:
function onLogin(cid)
if getPlayerStorageValue(cid,8470001) >= 1 then --
        doPlayerAddOutfit(cid,258, 3)
        doPlayerAddOutfit(cid,267, 3)
else
end
if getPlayerStorageValue(cid,8470002) >= 1 then --
        doPlayerAddOutfit(cid,259, 3)
        doPlayerAddOutfit(cid,268, 3)
end
if getPlayerStorageValue(cid,8470003) >= 1 then --
        doPlayerAddOutfit(cid,260, 3)
        doPlayerAddOutfit(cid,269, 3)
end
if getPlayerStorageValue(cid,8470004) >= 1 then --
        doPlayerAddOutfit(cid,261, 3)
        doPlayerAddOutfit(cid,270, 3)
end
if getPlayerStorageValue(cid,8470005) >= 1 then --
        doPlayerAddOutfit(cid,262, 3)
        doPlayerAddOutfit(cid,271, 3)
end
if getPlayerStorageValue(cid,8470006) >= 1 then --
        doPlayerAddOutfit(cid,316, 3)
        doPlayerAddOutfit(cid,432, 3)
end
if getPlayerStorageValue(cid,8470007) >= 1 then --
        doPlayerAddOutfit(cid,263, 3)
        doPlayerAddOutfit(cid,272, 3)
end
if getPlayerStorageValue(cid,8470008) >= 1 then --
        doPlayerAddOutfit(cid,436, 3)
        doPlayerAddOutfit(cid,431, 3)
end
if getPlayerStorageValue(cid,8470009) >= 1 then --
        doPlayerAddOutfit(cid,414, 3)
        doPlayerAddOutfit(cid,434, 3)
end
if getPlayerStorageValue(cid,8470010) >= 1 then --
        doPlayerAddOutfit(cid,435, 3)
        doPlayerAddOutfit(cid,437, 3)
end
if getPlayerStorageValue(cid,8470011) >= 1 then --
        doPlayerAddOutfit(cid,337, 3)
        doPlayerAddOutfit(cid,308, 3)
end
if getPlayerStorageValue(cid,8470012) >= 1 then --
        doPlayerAddOutfit(cid,338, 3)
        doPlayerAddOutfit(cid,309, 3)
end
if getPlayerStorageValue(cid,8470013) >= 1 then --
        doPlayerAddOutfit(cid,307, 3)
        doPlayerAddOutfit(cid,336, 3)
end
if getPlayerStorageValue(cid,8470014) >= 1 then --
        doPlayerAddOutfit(cid,275, 3)
        doPlayerAddOutfit(cid,266, 3)
end
if getPlayerStorageValue(cid,8470015) >= 1 then --
        doPlayerAddOutfit(cid,273, 3)
        doPlayerAddOutfit(cid,265, 3)
end
if getPlayerStorageValue(cid,8470016) >= 1 then --
        doPlayerAddOutfit(cid,449, 3)
        doPlayerAddOutfit(cid,456, 3)
end
if getPlayerStorageValue(cid,8470017) >= 1 then --
        doPlayerAddOutfit(cid,452, 3)
        doPlayerAddOutfit(cid,451, 3)
end
if getPlayerStorageValue(cid,8470018) >= 1 then --
        doPlayerAddOutfit(cid,454, 3)
        doPlayerAddOutfit(cid,455, 3)
end
if getPlayerStorageValue(cid,8470019) >= 1 then --
        doPlayerAddOutfit(cid,450, 3)
        doPlayerAddOutfit(cid,457, 3)
end
if getPlayerStorageValue(cid,8470020) >= 1 then --
        doPlayerAddOutfit(cid,462, 3)
        doPlayerAddOutfit(cid,461, 3)
end
if getPlayerStorageValue(cid,8470021) >= 1 then --
        doPlayerAddOutfit(cid,460, 3)
        doPlayerAddOutfit(cid,459, 3)
end
if getPlayerStorageValue(cid,8470022) >= 1 then --
        doPlayerAddOutfit(cid,469, 3)
        doPlayerAddOutfit(cid,468, 3)
end
if getPlayerStorageValue(cid,8470023) >= 1 then --
        doPlayerAddOutfit(cid,470, 3)
end
if getPlayerStorageValue(cid,8470024) >= 1 then --
        doPlayerAddOutfit(cid,471, 3)
end
if getPlayerStorageValue(cid,8470025) >= 1 then --
        doPlayerAddOutfit(cid,453, 3)
        doPlayerAddOutfit(cid,458, 3)
end
return true
end
what? :(

Not recommended bro.

-- edit maybe check why outfits doesn't get re-add on login since the storage reserved is still kept with the needed info so i suggest looking in the part onLogin (from source) that do that part with reliable coding style in c++
 
Last edited:
Back
Top