• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

Outfits only used by a certain vocation

flaite1

"Senior Fish"
Joined
Jun 19, 2009
Messages
1,923
Reaction score
26
Location
shile
how to make some new outfit but they can only be used by a certain new vocation? theyr going to be monster outfits, like an elf looking outfit
 
I can tell you how to make a new outfit but not how to make it too a certain vocation.
 
In creature scripts make it :P. login.lua:

if isSorcerer(cid) then
doSetCreatureOutfit(cid, id, -1)
elseif isDruid(cid) then
doSetCreatureOutfit(cid, id, -1)
return TRUE
end

change 'id'. Should work. Or same with function doCreatureChangeOutfit(cid, outfit).
 
or use sth like
Code:
<outfit type="1" looktype="128" enabled="1" name="Citizen" premium="0" quest="78954"/>
for each outfit you want limit, where quest is storage value, and just give correct storages to vocations.
This should work like knight can use warrior and knight outfits, sorcerer can use summoner and wizard, or any combination you want
 
Another solution to this, would be to make every vocation have a sex of it's own. All you need to do to make sure they're still seen as male of female, is go to your lib folder. Open constant.lua

Find:
LUA:
PLAYERSEX_FEMALE = 0
PLAYERSEX_MALE = 1
PLAYERSEX_GAMEMASTER = 2

Then, add the vocation numbers you want to use to the list with a , seperating

Example:
LUA:
PLAYERSEX_FEMALE = 0, 4, 8
PLAYERSEX_MALE = 1, 3, 7
PLAYERSEX_GAMEMASTER = 2

Also, just have your character creator set their sex, or have it as a creaturescript.
 
i have like 10 lib folders but noone has something called like that
 
Back
Top