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

Lua Storages for outifts and addons TFS 036

natanal99

New Member
Joined
May 31, 2011
Messages
67
Reaction score
3
So i want to made an item that execute a SQL querry to add for all player in your account the addons and outifts the player you are in the moment have.

I know that addons and outfits are saved in storages and to do it i need to now what storage means what outfit.

I've been researching and i can't find it :/

And i read that if x storage means you got x outfit the value of x storage means:
0 (no addons),
1 (addon1),
2 (addon2) and
3 (both)

I made some tests in my bd and it doesn't seens true, anyone know about it?
I'll be rly thankfull :)
 
Your on the right track.
Storages required for outfits are yours to choose. There is no pre-determined storages.
To add an outfit, and respectively the addons, use the same piece of code.
Code:
doPlayerAddOutfit(cid, 158, 3)
0 = outfit
1 = addon 1
2 = addon 2
3 = both

If you want players to have all outfits, then just change
data/xml/vocations.xml
Code:
<outfit id="15" premium="yes" default="1">
<list gender="0" lookType="158" name="Shaman"/>
<list gender="1" lookType="154" name="Shaman"/>
</outfit>
If you want it to require a quest.. change as so, and give player the storage value required to wear it.
Code:
<outfit id="15" premium="yes" quest="8001">
<list gender="0" lookType="158" name="Shaman"/>
<list gender="1" lookType="154" name="Shaman"/>
</outfit>
Alternatively, you could change it to
Code:
default = 0
and reward them the outfit using
Code:
doPlayerAddOutfit(cid, 158, 0)
doPlayerAddOutfit(cid, 154, 0)
A few months ago I answered how to reward players all addons.
If you look there, it only requires one storage value.

Hope it all helps.

Cheers.
 
Back
Top