tibera
Active Member
im using Otx 2 - 0.7 - Version 7.72
if disable addon1 addon2 and click ok , after relog acess addon 1 2 cant enable to use.
if disable addon1 addon2 and click ok , after relog acess addon 1 2 cant enable to use.
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