Postado Julho 17, 2014 11 anos Em Creaturescripts.xml <event type="login" name="ChangeOutfit" event="script" value="ChangeOutfit.lua"/> Em Login.lua registerCreatureEvent(cid, "ChangeOutfit") ChangeOutfit.lua local outfit = { -- SORCERER sorcerer_male = {lookType = 268, lookHead = 86, lookBody = 86, lookLegs = 86, lookFeet = 86, lookTypeEx = 0, lookAddons = 3}, sorcerer_female = {lookType = 268, lookHead = 86, lookBody = 86, lookLegs = 86, lookFeet = 86, lookTypeEx = 0, lookAddons = 3}, -- DRUID druid_male = {lookType = 268, lookHead = 86, lookBody = 86, lookLegs = 86, lookFeet = 86, lookTypeEx = 0, lookAddons = 3}, druid_female = {lookType = 268, lookHead = 86, lookBody = 86, lookLegs = 86, lookFeet = 86, lookTypeEx = 0, lookAddons = 3}, -- PALADIN paladin_male = {lookType = 268, lookHead = 86, lookBody = 86, lookLegs = 86, lookFeet = 86, lookTypeEx = 0, lookAddons = 3}, paladin_female = {lookType = 268, lookHead = 86, lookBody = 86, lookLegs = 86, lookFeet = 86, lookTypeEx = 0, lookAddons = 3}, -- KNIGHT knight_male = {lookType = 268, lookHead = 86, lookBody = 86, lookLegs = 86, lookFeet = 86, lookTypeEx = 0, lookAddons = 3}, knight_female = {lookType = 268, lookHead = 86, lookBody = 86, lookLegs = 86, lookFeet = 86, lookTypeEx = 0, lookAddons = 3}, } local storage = 8888 function onLogin(cid) if getPlayerStorageValue(cid, storage) == -1 then if getPlayerVocation(cid) == 1 or getPlayerVocation(cid) == 5 then if getPlayerSex(cid) == 0 then doCreatureChangeOutfit(cid, outfit.sorcerer_female) else doCreatureChangeOutfit(cid, outfit.sorcerer_male) end elseif getPlayerVocation(cid) == 2 or getPlayerVocation(cid) == 6 then if getPlayerSex(cid) == 0 then doCreatureChangeOutfit(cid, outfit.druid_female) else doCreatureChangeOutfit(cid, outfit.druid_male) end elseif getPlayerVocation(cid) == 3 or getPlayerVocation(cid) == 7 then if getPlayerSex(cid) == 0 then doCreatureChangeOutfit(cid, outfit.paladin_female) else doCreatureChangeOutfit(cid, outfit.paladin_male) end elseif getPlayerVocation(cid) == 4 or getPlayerVocation(cid) == 8 then if getPlayerSex(cid) == 0 then doCreatureChangeOutfit(cid, outfit.knight_female) else doCreatureChangeOutfit(cid, outfit.knight_male) end end setPlayerStorageValue(cid, storage, 1) end return true end Configura apenas a tabela outfit. STYLLER OT 2022
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.