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

Add outfit doll

GM SoftCores

Member
Joined
Jun 3, 2008
Messages
149
Reaction score
8
Hello i want script fixed adding outfit custom new to player if they use this doll they unblock this and can select outfit

I already tested and problem its when i relog didnt saved outfit

Sorry for my english <3

I got this script Addon Doll in TFS 1.0 (https://otland.net/threads/addon-doll-in-tfs-1-0.201887/#post-1940968)

But didnt saved outfit in "select outfit"

Thanks.
Post automatically merged:

I check this and try to configured for tfs 1.2 Action - Action {OutFit Script} (https://otland.net/threads/action-outfit-script.192573/)
 
What TFS are you using?
Post automatically merged:

Place this in data/XML/outfits.xml
XML:
<outfit type="0" looktype="xxx" name="xxx" premium="no" unlocked="no" enabled="yes" /> <!-- FEMALE -->
<outfit type="1" looktype="xxx" name="xxx" premium="no" unlocked="no" enabled="yes" /> <!-- MALE -->
Remember to change looktype to the actual looktype, and the name aswell.

Place this in data/actions/other/customoutfit.lua and change the looktype.
Lua:
local config = {
    storage = 535923,
    effect = CONST_ME_FIREWORK_RED,
    text1 = "You have gained your new outfit!",
    text2 = "You already have this outfit!",
    looktype = 63
}
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
    if player:getStorageValue(config.storage) < 1 then
        player:addOutfit(config.looktype)
        player:sendTextMessage(MESSAGE_INFO_DESCR, config.text1)
        player:setStorageValue(config.storage, 1)
        player:getPosition():sendMagicEffect(config.effect)
        item:remove()
    else
        player:sendTextMessage(MESSAGE_INFO_DESCR, config.text2)
    end
    return true
end

And then add in data/actions/actions.xml
XML:
<action id="2110" script="other/customoutfit.lua" />

And you should be done.
 
Last edited:
I'm using this code but it's not working...

IF I use the command !addon hunter or !addon "hunter nothing happens, only if I use only !addon that it shows some message telling something is wrong, try again.

Does anyone knows?
 
guys better use modal window addon doll from this forum, thats much better

edit: here is the link
 
Back
Top