Autor: Nie znany
Licencja: Nie znana
Fajny skrypcik, znalazłem go ponad rok temu gdzieś na otlandzie, zanikł jednak w sieci, usunąłem go teraz z mojego ots'a, ale może innym się przyda. do Actions.xml :
<!--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
Do data\actions\scripts tworzymy plik AllOutfits.lua i wklejamy do niego:
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