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

RevScripts TFS 1.3 - Applying Set Outfits to a Specific Vocation

srunobantana

Member
Joined
Oct 24, 2021
Messages
42
Reaction score
19
XML:
<outfit type="0" looktype="908" name="Dende" premium="no" unlocked="no" enabled="yes" />

How can I apply set outfits to a specific vocation? I want these two options to appear in the desired vocation, without changing the looktype. The goal is to set the outfits on the player so that they appear in the OTClient under 'set outfits.'

Vocation:
XML:
<vocation id="9" clientid="1" name="Dende" description="an dende" gaincap="25" gainhp="15" gainmana="5" gainhpticks="2" gainhpamount="10" gainmanaticks="4" gainmanaamount="10" manamultiplier="3.0" attackspeed="2000" basespeed="220" soulmax="200" gainsoulticks="15" fromvoc="9">
 
You have to change in outfit.cpp/h XML reading from "type" (type = sex) to VocationID, same for functions that sending outfit list based on sex type to client.
 
You have to change in outfit.cpp/h XML reading from "type" (type = sex) to VocationID, same for functions that sending outfit list based on sex type to client.
I tried, but I couldn't. It always gives an error.
Post automatically merged:

I'm making a workaround to deliver the outfits, haha haha haha.

Login.lua
LUA:
if vocation:getId() == 9 then
    player:addOutfit(908)  -- Add the Dende outfit (ID 908)
    player:setOutfit({lookType = 908, lookHead = 15, lookBody = 15, lookLegs = 15, lookFeet = 15})
end
 
Last edited:
Back
Top