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

Lua/C++ Function - Outfit for certain vocation.

Mokate

New Member
Joined
Sep 17, 2012
Messages
19
Reaction score
0
Hey guys I have a small problem as im a newbie scripter im trying to experiment with OT enginge and I have a question I was trying to add a certain outfit for a certain vocation. So say a sorcerer only has outfits of id 1,2,3 etc but I wish to get a new function in outfits.xml so i know i must edit something in source using C++.

Let me explain more what I need. So this line below is taken from outfits.xml:
LUA:
    <outfit id="1">
        <list gender="0" lookType="136" name="Citizen"/>
        <list gender="1" lookType="128" name="Citizen"/>
    </outfit>
[code=lua]

Im trying to change it so I could do this here:
[code=lua]
    <outfit id="1" voc id="1" voc id="2">
        <list gender="0" lookType="136" name="Citizen"/>
        <list gender="1" lookType="128" name="Citizen"/>
    </outfit>
[code=lua]

So I could add a function voc id="x" and choose a certain vocation id so it has that outfit. If the vocation id wouldn't be beside the outfit then he can't use it. I would really appreciate if someone would help me thanks. Oh and before I forget im using TFS 0.3.6pl1.
 
Hmm, Never thought of it im gonna try this out. But how can I put let's say Storage 8000, 2 for a certain vocation when it logs into the game?

edit//
Nevermind I got it sorted thanks for your help and links. :)
 
Back
Top