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

Vocation outfit!

Amiroslo

Excellent OT User
Joined
Jul 28, 2009
Messages
6,812
Solutions
6
Reaction score
822
Hey guys, I think that this needs source editing so Im going to request it.
I want if u r vocation id 1,2,3 u can see outfitid 1,2,3
and if u r vocation id 4,5,6 u see outfit id 4,5,6
and you can change between them, but if u r vocation 1,2,3 u cant see vocid 4,5,6 same for vocid 4,5,6

ty, rep++
 
try this script , i don't know if this is the request you need or no :D try and report back to me here i will help you more
LUA:
  --[[
        [1] = Sorcerer
        [2] = Druid
        [3] = Paladin
    [4] = Knight
    [5] = Master Sorcerer
    [6] = Elder Druid
    [7] = Royal Paladin
    [8] = Elite Knight
]]--
 
 
local outfits = {
        [1] = {lookType = 266, lookHead = 114 , lookBody = 18, lookLegs = 94, lookFeet = 0, lookTypeEx = 0, lookAddons = 0},
        [2] = {lookType = 266, lookHead = 114 , lookBody = 18, lookLegs = 94, lookFeet = 0, lookTypeEx = 0, lookAddons = 0},
        [3] = {lookType = 266, lookHead = 114 , lookBody = 18, lookLegs = 94, lookFeet = 0, lookTypeEx = 0, lookAddons = 0},
        [4] = {lookType = 75, lookHead = 114 , lookBody = 18, lookLegs = 94, lookFeet = 0, lookTypeEx = 0, lookAddons = 0},
        [5] = {lookType = 301, lookHead = 114 , lookBody = 18, lookLegs = 94, lookFeet = 0, lookTypeEx = 0, lookAddons = 0},
        [6] = {lookType = 301, lookHead = 114 , lookBody = 18, lookLegs = 94, lookFeet = 0, lookTypeEx = 0, lookAddons = 0},
        [7] = {lookType = 301, lookHead = 114 , lookBody = 18, lookLegs = 94, lookFeet = 0, lookTypeEx = 0, lookAddons = 0},
        [8] = {lookType = 301, lookHead = 114 , lookBody = 18, lookLegs = 94, lookFeet = 0, lookTypeEx = 0, lookAddons = 0}
}
 
function onLogin(cid)
        if outfits[getPlayerVocation(cid)] then
                doSetCreatureOutfit(cid, outfits[getPlayerVocation(cid)], -1)
        end
        return TRUE
end
Xml part
XML:
<event type="login" name="Outfit" script="outfit.lua"/>
 
You can also add Ex. Vocation 1, when he login he gain 3 storages. Then on outfit.xml you can do this:

LUA:
<outfit id="10" premium="yes" quest="1000">
<list gender="0" lookType="100" name="Outfit"/>
 
try this script , i don't know if this is the request you need or no :D try and report back to me here i will help you more
LUA:
  --[[
        [1] = Sorcerer
        [2] = Druid
        [3] = Paladin
    [4] = Knight
    [5] = Master Sorcerer
    [6] = Elder Druid
    [7] = Royal Paladin
    [8] = Elite Knight
]]--
 
 
local outfits = {
        [1] = {lookType = 266, lookHead = 114 , lookBody = 18, lookLegs = 94, lookFeet = 0, lookTypeEx = 0, lookAddons = 0},
        [2] = {lookType = 266, lookHead = 114 , lookBody = 18, lookLegs = 94, lookFeet = 0, lookTypeEx = 0, lookAddons = 0},
        [3] = {lookType = 266, lookHead = 114 , lookBody = 18, lookLegs = 94, lookFeet = 0, lookTypeEx = 0, lookAddons = 0},
        [4] = {lookType = 75, lookHead = 114 , lookBody = 18, lookLegs = 94, lookFeet = 0, lookTypeEx = 0, lookAddons = 0},
        [5] = {lookType = 301, lookHead = 114 , lookBody = 18, lookLegs = 94, lookFeet = 0, lookTypeEx = 0, lookAddons = 0},
        [6] = {lookType = 301, lookHead = 114 , lookBody = 18, lookLegs = 94, lookFeet = 0, lookTypeEx = 0, lookAddons = 0},
        [7] = {lookType = 301, lookHead = 114 , lookBody = 18, lookLegs = 94, lookFeet = 0, lookTypeEx = 0, lookAddons = 0},
        [8] = {lookType = 301, lookHead = 114 , lookBody = 18, lookLegs = 94, lookFeet = 0, lookTypeEx = 0, lookAddons = 0}
}
 
function onLogin(cid)
        if outfits[getPlayerVocation(cid)] then
                doSetCreatureOutfit(cid, outfits[getPlayerVocation(cid)], -1)
        end
        return TRUE
end
Xml part
XML:
<event type="login" name="Outfit" script="outfit.lua"/>

no not this, this sets the outfit id to voc id x onlogin. I need that voc id 1,2,3 can see only outfit id 1,2,3 and same for voc 4,5,6
 
Omg amir, you an do it easily by doing like i told you!

Here is a easy script i made!
LUA:
--////////Sorcerer/////////--
local storage1 = 1000
local storage2 = 1001
local storage3 = 1002
--////////Druid/////////--
local storage4 = 1003
local storage5 = 1004
local storage6 = 1005

function onLogin(cid)
if getPlayerVocation(cid) == 1 and getPlayerStorageValue(cid,storage1) == 0 and getPlayerStorageValue(cid,storage2) == 0 and getPlayerStorageValue(cid,storage3) == 0 then
setPlayerStorageValue(cid,storage1, 1)
setPlayerStorageValue(cid,storage2, 1)
setPlayerStorageValue(cid,storage3, 1)
elseif getPlayerVocation(cid) == 2 and getPlayerStorageValue(cid,storage5) == 0 and getPlayerStorageValue(cid,storage6) == 0 and getPlayerStorageValue(cid,storage6) == 0 then
setPlayerStorageValue(cid,storage4, 1)
setPlayerStorageValue(cid,storage5, 1)
setPlayerStorageValue(cid,storage6, 1)
   return true
  end
end

Then you can goto outfits.xml and do this:
LUA:
--/////////Sorcerers/////////--
<outfit id="1" premium="yes" quest="1000">
<list gender="0" lookType="588" name="Sorcerer1"/>
<list gender="1" lookType="587" name="Sorcerer1"/>
</outfit>
<outfit id="2" premium="yes" quest="1001">
<list gender="0" lookType="588" name="Sorcerer2"/>
<list gender="1" lookType="587" name="Sorcerer2"/>
</outfit>
<outfit id="3" premium="yes" quest="1002">
<list gender="0" lookType="588" name="Sorcerer3"/>
<list gender="1" lookType="587" name="Sorcerer3"/>
</outfit>
--/////////Druids/////////--
<outfit id="4" premium="yes" quest="1003">
<list gender="0" lookType="588" name="Druid1"/>
<list gender="1" lookType="587" name="Druid1"/>
</outfit>
<outfit id="5" premium="yes" quest="1004">
<list gender="0" lookType="588" name="Druid2"/>
<list gender="1" lookType="587" name="Druid2"/>
</outfit>
<outfit id="6" premium="yes" quest="1005">
<list gender="0" lookType="588" name="Druid3"/>
<list gender="1" lookType="587" name="Druid3"/>
</outfit>

Enjoy
 
@UP
Ok ty, will test it!

- - - Updated - - -

didnt work added an end cuz it was missing but still, no errors, but cant change outfit :S only have 1 outfit that I start with
 
Last edited:
to login

- - - Updated - - -

I added it own .lua and registered it in login.lua :P
can anyone give me the source edit part
 
bump, need the source editing line and what to replace plz

- - - Updated - - -

can anyone give me the source part?
 
tell me what kind of ots are u doing

if u r doing dragon ball ots just pm me, ill give u some scripts usefull scripts
 
Back
Top