outfits on level gain tfs 0.4

Yaboihunna

New Member
Joined
Mar 27, 2019
Messages
128
Best answers
0
Reaction score
2
requesting script like level 30 get citizen outfit full
level 60 hunter addon
90 mage addon etc please and thank you :p
 

heba

Advanced OT User
Joined
Aug 5, 2011
Messages
1,378
Best answers
14
Reaction score
187
use onAdvance
function onAdvance(cid, skill, oldlevel, newlevel)
if skill == SKILL__LEVEL then
bbllablablaballbablablablablablbla
end
return true
end

if u need if advanced in ml use if skill == SKILL__MAGLEVEL

for add outfit use
doPlayerAddOutfitId(cid, 6, 3)
6 number of outfit u can change for any outfit u want
6 is Summoner
4 is Knight
i hope you understand me
 
Last edited:

krouse002

New Member
Joined
Apr 15, 2019
Messages
3
Best answers
0
Reaction score
0
Você pode me ajudar com o meu servidor de ajuda? Adicione também uma barra de energia ali em baixo fixa
Detalhes
 

Itutorial

Veteran OT User
Joined
Dec 23, 2014
Messages
1,540
Best answers
35
Reaction score
377
Should be close.

Code:
local outfits = {
    [60] = {storage = 30000, maleID = 1, femaleID = 2, name = "Citizen"}
}

function onAdvance(cid, skill, oldlevel, newlevel)
    if skill == SKILL_LEVEL then
        local OUTFIT = outfits[skill]
        
        if not OUTFIT then return true end
        
        if getPlayerStorageValue(cid, OUTFIT.storage) ~= 1 then
            if getPlayerSex(cid) == 0 then
                doPlayerAddOutfit(cid, OUTFIT.femaleID)
                doPlayerAddOutfitAddon(cid, OUTFIT.femaleID, 1)
                doPlayerAddOutfitAddon(cid, OUTFIT.femaleID, 2)
            else
                doPlayerAddOutfit(cid, OUTFIT.maleID)
                doPlayerAddOutfitAddon(cid, OUTFIT.maleID, 1)
                doPlayerAddOutfitAddon(cid, OUTFIT.maleID, 2)
            end
        setPlayerStorageValue(cid, OUTFIT.storage, 1)
        end
    end
return true
end
 

krouse002

New Member
Joined
Apr 15, 2019
Messages
3
Best answers
0
Reaction score
0
para editar essas imagens que eu quero no otclient tenho que modificar os codigos? nao da apenas para substituir ?
 
Top