Em login.lua, você procura por este trecho e apague:
else str = str .. " Please choose your outfit." doPlayerSendOutfitWindow(cid)
No mesmo arquivo adicione:
registerCreatureEvent(cid, "loginOuts")
Em creaturescripts/scripts, crie um arquivo chamado loginOuts.lua e adicione dentro:
function onLogin(cid)
if getPlayerStorageValue(cid, 18169) >= 1 then
return true
end
if getPlayerVocation(cid) >= 1 and getPlayerVocation(cid) <= 8 then
setPlayerStorageValue(cid, 18169, 1)
doSetCreatureOutfit(cid, {lookType = 128}, -1)
elseif getPlayerVocation(cid) >= 9 and getPlayerVocation(cid) <= 16 then
setPlayerStorageValue(cid, 18169, 1)
doSetCreatureOutfit(cid, {lookType = 5}, -1)
elseif getPlayerVocation(cid) >= 17 and getPlayerVocation(cid) <= 24 then
setPlayerStorageValue(cid, 18169, 1)
doSetCreatureOutfit(cid, {lookType = 159}, -1)
elseif getPlayerVocation(cid) >= 25 and getPlayerVocation(cid) <= 32 then
setPlayerStorageValue(cid, 18169, 1)
doSetCreatureOutfit(cid, {lookType = 160}, -1)
else
return true
end
return true
end
No arquivo creaturescripts.xml adicione esta seguinte tag:
<event type="login" name="loginOuts" event="script" value="loginOuts.lua"/>
#GoodLuck.







info
Grupo: Campones
Registrado: 10/06/13
Posts: 62
Reputação: +2
Fala galera fiz raças no meu servidor: humano, orc, elf, dwarf, mas qnd loga a primeira vez aparece choose your outifit, eu queria tirar isso! E mesmo se der esc vc fica com a roupa de humano inicial, e tbm queria q qnd loga-se por cada vocação sua outifit fosse uma, tipo vocações:
1,2,3,4,5,6,7,8 (128)
9,10,11,12,13,14,15,16 (5)
17,18,19,20,21,22,23,24 (159)
25,26,27,28,29,30,31,32 (160)