Well in my server i figured it was to easy just to start with all the Outfits so i made them all just start with the Citizen outfit and i placed chests all around my map for when you click it you get the outfit. [Note this is for 0.3.5 Only]
So if you want them just to use Citizen Outfit for when they start use this.
Outfits.xml
And then in your Actions.xml
Then AllOutfits.lua
So if you want them just to use Citizen Outfit for when they start use this.
Outfits.xml
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" default="0">
<list gender="0" lookType="137" name="Hunter"/>
<list gender="1" lookType="129" name="Hunter"/>
</outfit>
<outfit id="3" default="0">
<list gender="0" lookType="138" name="Mage"/>
<list gender="1" lookType="130" name="Mage"/>
</outfit>
<outfit id="4" default="0">
<list gender="0" lookType="139" name="Knight"/>
<list gender="1" lookType="131" name="Knight"/>
</outfit>
<outfit id="5" premium="yes" default="0">
<list gender="0" lookType="140" name="Noblewoman"/>
<list gender="1" lookType="132" name="Nobleman"/>
</outfit>
<outfit id="6" premium="yes" default="0">
<list gender="0" lookType="141" name="Summoner"/>
<list gender="1" lookType="133" name="Summoner"/>
</outfit>
<outfit id="7" premium="yes" default="0">
<list gender="0" lookType="142" name="Warrior"/>
<list gender="1" lookType="134" name="Warrior"/>
</outfit>
<outfit id="8" premium="yes" default="0">
<list gender="0" lookType="147" name="Barbarian"/>
<list gender="1" lookType="143" name="Barbarian"/>
</outfit>
<outfit id="9" premium="yes" default="0">
<list gender="0" lookType="148" name="Druid"/>
<list gender="1" lookType="144" name="Druid"/>
</outfit>
<outfit id="10" premium="yes" default="0">
<list gender="0" lookType="149" name="Wizard"/>
<list gender="1" lookType="145" name="Wizard"/>
</outfit>
<outfit id="11" premium="yes" default="0">
<list gender="0" lookType="150" name="Oriental"/>
<list gender="1" lookType="146" name="Oriental"/>
</outfit>
<outfit id="12" premium="yes" default="0">
<list gender="0" lookType="155" name="Pirate"/>
<list gender="1" lookType="151" name="Pirate"/>
</outfit>
<outfit id="13" premium="yes" default="0">
<list gender="0" lookType="156" name="Assassin"/>
<list gender="1" lookType="152" name="Assassin"/>
</outfit>
<outfit id="14" premium="yes" default="0">
<list gender="0" lookType="157" name="Beggar"/>
<list gender="1" lookType="153" name="Beggar"/>
</outfit>
<outfit id="15" premium="yes" default="0">
<list gender="0" lookType="158" name="Shaman"/>
<list gender="1" lookType="154" name="Shaman"/>
</outfit>
<outfit id="16" premium="yes" default="0">
<list gender="0" lookType="252" name="Norsewoman"/>
<list gender="1" lookType="251" name="Norseman"/>
</outfit>
<outfit id="17" premium="yes" default="0">
<list gender="0" lookType="269" name="Nightmare"/>
<list gender="1" lookType="268" name="Nightmare"/>
</outfit>
<outfit id="18" premium="yes" default="0">
<list gender="0" lookType="270" name="Jester"/>
<list gender="1" lookType="273" name="Jester"/>
</outfit>
<outfit id="19" premium="yes" default="0">
<list gender="0" lookType="279" name="Brotherhood"/>
<list gender="1" lookType="278" name="Brotherhood"/>
</outfit>
<outfit id="20" premium="yes" default="0">
<list gender="0" lookType="288" name="Demonhunter"/>
<list gender="1" lookType="289" name="Demonhunter"/>
</outfit>
<outfit id="21" premium="yes" default="0">
<list gender="0" lookType="324" name="Yalaharian"/>
<list gender="1" lookType="325" name="Yalaharian"/>
</outfit>
<outfit id="22" access="5" premium="yes">
<list gender="0-3" lookType="12" name="Archdemon"/>
</outfit>
<outfit id="23" access="5" premium="yes">
<list gender="0-3" lookType="159" name="Elf"/>
</outfit>
<outfit id="24" access="5" premium="yes">
<list gender="0-3" lookType="160" name="Dwarf"/>
</outfit>
<outfit id="25" access="5" premium="yes">
<list gender="0-3" lookType="226" name="Frog"/>
</outfit>
<outfit id="26" access="5" premium="yes">
<list gender="0-3" lookType="194" name="Cult"/>
</outfit>
<outfit id="27" access="5" premium="yes">
<list gender="0-3" lookType="253" name="Headsplitter"/>
</outfit>
<outfit id="28" access="5" premium="yes">
<list gender="0-3" lookType="254" name="Skullhunter"/>
</outfit>
<outfit id="29" access="5" premium="yes">
<list gender="0-3" lookType="255" name="Bloodwalker"/>
</outfit>
<outfit id="30" access="5" premium="yes">
<list gender="0-3" lookType="264" name="Brutetamer"/>
</outfit>
<outfit id="31" access="3" premium="yes">
<list gender="2;3" lookType="75" name="Gamemaster"/>
</outfit>
<outfit id="32" access="4" premium="yes">
<list gender="2;3" lookType="266" name="Community Manager"/>
</outfit>
<outfit id="33" access="5" premium="yes">
<list gender="2;3" lookType="302" name="God"/>
</outfit>
</outfits>
And then in your Actions.xml
PHP:
<!--Outfit Quests -->
<action uniqueid="12001" event="script" value="allOutfits.lua"/> -- Hunter
<action uniqueid="12002" event="script" value="allOutfits.lua"/> -- Mage
<action uniqueid="12003" event="script" value="allOutfits.lua"/> -- Knight
<action uniqueid="12004" event="script" value="allOutfits.lua"/> -- Nobleman
<action uniqueid="12005" event="script" value="allOutfits.lua"/> -- Summoner
<action uniqueid="12006" event="script" value="allOutfits.lua"/> -- Warrior
<action uniqueid="12007" event="script" value="allOutfits.lua"/> -- Barbarian
<action uniqueid="12008" event="script" value="allOutfits.lua"/> -- Druid
<action uniqueid="12009" event="script" value="allOutfits.lua"/> -- Wizard
<action uniqueid="12010" event="script" value="allOutfits.lua"/> -- Oriental
<action uniqueid="12011" event="script" value="allOutfits.lua"/> -- Pirate
<action uniqueid="12012" event="script" value="allOutfits.lua"/> -- Assassin
<action uniqueid="12013" event="script" value="allOutfits.lua"/> -- Beggar
<action uniqueid="12014" event="script" value="allOutfits.lua"/> -- Shaman
<action uniqueid="12015" event="script" value="allOutfits.lua"/> -- Norseman
<action uniqueid="12016" event="script" value="allOutfits.lua"/> -- Knightmare
<action uniqueid="12017" event="script" value="allOutfits.lua"/> -- Jester
<action uniqueid="12018" event="script" value="allOutfits.lua"/> -- Brotherhood
<action uniqueid="12019" event="script" value="allOutfits.lua"/> -- Demon Hunter
<action uniqueid="12020" event="script" value="allOutfits.lua"/> -- Yalahari
Then AllOutfits.lua
Lua:
function onUse(cid, item, frompos, item2, topos)
if item.uid == 12001 then
if (getPlayerStorageValue(cid,12010) == -1) then
doPlayerSendTextMessage(cid,21,"You now have the Hunter Outfit!")
doPlayerAddOutfitId(cid,2,0)
setPlayerStorageValue(cid,12010,1)
doSendMagicEffect(getCreaturePosition(cid), math.random(1, 67))
else
doPlayerSendTextMessage(cid,25,"You Already have the Hunter Outfit.")
end
elseif item.uid == 12002 then
if (getPlayerStorageValue(cid,12011) == -1) then
doPlayerSendTextMessage(cid,21,"You now have the Mage Outfit!")
doPlayerAddOutfitId(cid,3,0)
setPlayerStorageValue(cid,12011,1)
doSendMagicEffect(getCreaturePosition(cid), math.random(1, 67))
else
doPlayerSendTextMessage(cid,25,"You Already have the Mage Outfit.")
end
elseif item.uid == 12003 then
if (getPlayerStorageValue(cid,12012) == -1) then
doPlayerSendTextMessage(cid,21,"You now have the Knight Outfit!")
doPlayerAddOutfitId(cid,4,0)
setPlayerStorageValue(cid,12012,1)
doSendMagicEffect(getCreaturePosition(cid), math.random(1, 67))
else
doPlayerSendTextMessage(cid,25,"You Already have the Knight Outfit.")
end
elseif item.uid == 12004 then
if (getPlayerStorageValue(cid,12013) == -1) and getPlayerSex(cid) == 1 then
doPlayerSendTextMessage(cid,21,"You now have the Nobleman Outfit!")
doPlayerAddOutfitId(cid,5,0)
setPlayerStorageValue(cid,12013,1)
doSendMagicEffect(getCreaturePosition(cid), math.random(1, 67))
else if(getPlayerStorageValue(cid,12013) == -1) and getPlayerSex(cid) == 0 then
doPlayerSendTextMessage(cid,21,"You now have the Noblewoman Outfit!")
doPlayerAddOutfitId(cid,5,0)
setPlayerStorageValue(cid,12013,1)
else
doPlayerSendTextMessage(cid,25,"You Already have this outfit.")
end
end
elseif item.uid == 12005 then
if (getPlayerStorageValue(cid,12014) == -1) then
doPlayerSendTextMessage(cid,21,"You now have the Summoner Outfit!")
doPlayerAddOutfitId(cid,6,0)
setPlayerStorageValue(cid,12014,1)
doSendMagicEffect(getCreaturePosition(cid), math.random(1, 67))
else
doPlayerSendTextMessage(cid,25,"You Already have the Summoner Outfit.")
end
elseif item.uid == 12006 then
if (getPlayerStorageValue(cid,12015) == -1) then
doPlayerSendTextMessage(cid,21,"You now have the Warrior Outfit!")
doPlayerAddOutfitId(cid,7,0)
setPlayerStorageValue(cid,12015,1)
doSendMagicEffect(getCreaturePosition(cid), math.random(1, 67))
else
doPlayerSendTextMessage(cid,25,"You Already have the Warrior Outfit.")
end
elseif item.uid == 12007 then
if (getPlayerStorageValue(cid,12016) == -1) then
doPlayerSendTextMessage(cid,21,"You now have the Barbarian Outfit!")
doPlayerAddOutfitId(cid,8,0)
setPlayerStorageValue(cid,12016,1)
doSendMagicEffect(getCreaturePosition(cid), math.random(1, 67))
else
doPlayerSendTextMessage(cid,25,"You Already have the Barbarian Outfit.")
end
elseif item.uid == 12008 then
if (getPlayerStorageValue(cid,12017) == -1) then
doPlayerSendTextMessage(cid,21,"You now have the Druid Outfit!")
doPlayerAddOutfitId(cid,9,0)
setPlayerStorageValue(cid,12017,1)
doSendMagicEffect(getCreaturePosition(cid), math.random(1, 67))
else
doPlayerSendTextMessage(cid,25,"You Already have the Druid Outfit.")
end
elseif item.uid == 12009 then
if (getPlayerStorageValue(cid,12018) == -1) then
doPlayerSendTextMessage(cid,21,"You now have the Wizard Outfit!")
doPlayerAddOutfitId(cid,10,0)
setPlayerStorageValue(cid,12018,1)
doSendMagicEffect(getCreaturePosition(cid), math.random(1, 67))
else
doPlayerSendTextMessage(cid,25,"You Already have the Wizard Outfit.")
end
elseif item.uid == 12010 then
if (getPlayerStorageValue(cid,12019) == -1) then
doPlayerSendTextMessage(cid,21,"You now have the Oriental Outfit!")
doPlayerAddOutfitId(cid,11,0)
setPlayerStorageValue(cid,12019,1)
doSendMagicEffect(getCreaturePosition(cid), math.random(1, 67))
else
doPlayerSendTextMessage(cid,25,"You Already have the Oriental Outfit.")
end
elseif item.uid == 12011 then
if (getPlayerStorageValue(cid,12020) == -1) then
doPlayerSendTextMessage(cid,21,"You now have the Pirate Outfit!")
doPlayerAddOutfitId(cid,12,0)
setPlayerStorageValue(cid,12020,1)
doSendMagicEffect(getCreaturePosition(cid), math.random(1, 67))
else
doPlayerSendTextMessage(cid,25,"You Already have the Pirate Outfit.")
end
elseif item.uid == 12012 then
if (getPlayerStorageValue(cid,12021) == -1) then
doPlayerSendTextMessage(cid,21,"You now have the Assassin Outfit!")
doPlayerAddOutfitId(cid,13,0)
setPlayerStorageValue(cid,12021,1)
doSendMagicEffect(getCreaturePosition(cid), math.random(1, 67))
else
doPlayerSendTextMessage(cid,25,"You Already have the Assassin Outfit.")
end
elseif item.uid == 12013 then
if (getPlayerStorageValue(cid,12022) == -1) then
doPlayerSendTextMessage(cid,21,"You now have the Beggar Outfit!")
doPlayerAddOutfitId(cid,14,0)
setPlayerStorageValue(cid,12022,1)
doSendMagicEffect(getCreaturePosition(cid), math.random(1, 67))
else
doPlayerSendTextMessage(cid,25,"You Already have the Beggar Outfit.")
end
elseif item.uid == 12014 then
if (getPlayerStorageValue(cid,12023) == -1) then
doPlayerSendTextMessage(cid,21,"You now have the Shaman Outfit!")
doPlayerAddOutfitId(cid,15,0)
setPlayerStorageValue(cid,12023,1)
doSendMagicEffect(getCreaturePosition(cid), math.random(1, 67))
else
doPlayerSendTextMessage(cid,25,"You Already have the Shaman Outfit.")
end
elseif item.uid == 12015 then
if (getPlayerStorageValue(cid,12024) == -1) and getPlayerSex(cid) == 1 then
doPlayerSendTextMessage(cid,21,"You now have the Norseman Outfit!")
doPlayerAddOutfitId(cid,16,0)
setPlayerStorageValue(cid,12024,1)
doSendMagicEffect(getCreaturePosition(cid), math.random(1, 67))
else if(getPlayerStorageValue(cid,12024) == -1) and getPlayerSex(cid) == 0 then
doPlayerSendTextMessage(cid,21,"You now have the Norsewoman Outfit!")
doPlayerAddOutfitId(cid,16,0)
setPlayerStorageValue(cid,12024,1)
else
doPlayerSendTextMessage(cid,25,"You Already have this outfit.")
end
end
elseif item.uid == 12016 then
if (getPlayerStorageValue(cid,12025) == -1) then
doPlayerSendTextMessage(cid,21,"You now have the Knightmare Outfit!")
doPlayerAddOutfitId(cid,17,0)
setPlayerStorageValue(cid,12025,1)
doSendMagicEffect(getCreaturePosition(cid), math.random(1, 67))
else
doPlayerSendTextMessage(cid,25,"You Already have the Knightmare Outfit.")
end
elseif item.uid == 12017 then
if (getPlayerStorageValue(cid,12026) == -1) then
doPlayerSendTextMessage(cid,21,"You now have the Jester Outfit!")
doPlayerAddOutfitId(cid,18,0)
setPlayerStorageValue(cid,12026,1)
doSendMagicEffect(getCreaturePosition(cid), math.random(1, 67))
else
doPlayerSendTextMessage(cid,25,"You Already have the Jester Outfit.")
end
elseif item.uid == 12018 then
if (getPlayerStorageValue(cid,12027) == -1) then
doPlayerSendTextMessage(cid,21,"You now have the Brotherhood Outfit!")
doPlayerAddOutfitId(cid,19,0)
setPlayerStorageValue(cid,12027,1)
doSendMagicEffect(getCreaturePosition(cid), math.random(1, 67))
else
doPlayerSendTextMessage(cid,25,"You Already have the Brotherhood Outfit.")
end
elseif item.uid == 12019 then
if (getPlayerStorageValue(cid,12028) == -1) then
doPlayerSendTextMessage(cid,21,"You now have the Demonhunter Outfit!")
doPlayerAddOutfitId(cid,20,0)
setPlayerStorageValue(cid,12028,1)
doSendMagicEffect(getCreaturePosition(cid), math.random(1, 67))
else
doPlayerSendTextMessage(cid,25,"You Already have the Demonhunter Outfit.")
end
elseif item.uid == 12020 then
if (getPlayerStorageValue(cid,12029) == -1) then
doPlayerSendTextMessage(cid,21,"You now have the Yalahari Outfit!")
doPlayerAddOutfitId(cid,21,0)
setPlayerStorageValue(cid,12029,1)
doSendMagicEffect(getCreaturePosition(cid), math.random(1, 67))
else
doPlayerSendTextMessage(cid,25,"You Already have the Yalahari Outfit.")
end
end
return TRUE
end
Last edited: