function onLogin(cid)
local sex = {
[0] = {lookType = 136, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0},
[1] = {lookType = 128, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0}
}
if isPremium(cid) == TRUE then
setPlayerStorageValue(cid, 9899, 1)
elseif getPlayerStorageValue(cid, 9899) >= 1 and isPremium(cid) == FALSE then
doCreatureChangeOutfit(cid, sex[getPlayerSex(cid)])
setPlayerStorageValue(cid, 9899, -1)
end
return TRUE
end
- Fórum
- OTServ
- Recursos
- Scripting
- Globalevents e Spells
- Script Outfit
5
1.6k
info
Grupo: Herói
Registrado: 20/05/10
Posts: 3.4k
Reputação: +1.5k
Gênero: Masculino

12 de dezembro de 2010 às 18:18
info
Grupo: Campones
Registrado: 29/04/10
Posts: 38
Reputação: +2
Char no Tibia: Terry Thigo

12 de dezembro de 2010 às 18:27
aonde eu koloko isso em creaturescript?
info
Grupo: Herói
Registrado: 20/05/10
Posts: 3.4k
Reputação: +1.5k
Gênero: Masculino

12 de dezembro de 2010 às 18:33
é...
ai em creaturescript.xml
<event type="login" name="PaOut" script="NOME DO SEU SCRIPT.lua"/>


info
Grupo: Campones
Registrado: 29/04/10
Posts: 38
Reputação: +2
Char no Tibia: Terry Thigo
Preciso de um script pra quando acabar a p.a dele caso ele tiver de outfit premium ele volte para a outfit free
ESTOU PRECISANDO MUITO DESSE SCRIPT
Espero resposta