Postado Janeiro 25, 2013 12 anos Nome do Script: Ao logar pela primeira vez no server, setar uma looktype, dependendo da vocação Tipo do Script: Creaturescript (eu acho, mas o meu n deu certo) Versão Utilizada: 8.60 Servidor Utilizado: trunk.r3777 Nível de Experiência: Medio Informações Extras: Bom nesse meu projeto, vão ter 15 vocações, cada uma só vai poder usar uma outifit, então assim que logar vamos dizer um Elf Mage vocação id 5 e outifit id 5, o script coloca a lookType 203 ai eu vou bloquear e ninguem vai poder trocar de outifit ai um elf mage vai usar a looktype 203, orc mage a looktype 6 e assim vai os ids das vocações são iguais aos das outifits Editado Janeiro 26, 2013 12 anos por tiagoduuarte (veja o histórico de edições)
Postado Janeiro 25, 2013 12 anos \mods\outfit onLogin.xml <?xml version="1.0" encoding="UTF-8"?> <mod name="Outfit onLogin" version="1.0" author="Kimoszin" contact="tibiaking.com" enabled="yes"> <config name="outfit_config"><![CDATA[ outfits = { [0] = {type = {lookType = 1}}, [1] = {type = {lookType = 255}}, [2] = {type = {lookType = 254}}, [3] = {type = {lookType = 264}}, [4] = {type = {lookType = 64}}, [5] = {type = {lookType = 5}}, [6] = {type = {lookType = 71}}, [7] = {type = {lookType = 70}}, [8] = {type = {lookType = 66}}, [9] = {type = {lookType = 6}}, [10] = {type = {lookType = 7}}, [11] = {type = {lookType = 8}}, [12] = {type = {lookType = 50}}, [13] = {type = {lookType = 59}}, [14] = {type = {lookType = 194}}, [15] = {type = {lookType = 57}}, } ]]></config> <event type="login" name="outfitLogin" event="buffer"><![CDATA[ domodlib("outfit_config") return doSetCreatureOutfit(cid, outfits[getPlayerVocation(cid)].type, -1) ]]></event> </mod>
Postado Janeiro 26, 2013 12 anos Autor \mods\outfit onLogin.xml <?xml version="1.0" encoding="UTF-8"?> <mod name="Outfit onLogin" version="1.0" author="Kimoszin" contact="tibiaking.com" enabled="yes"> <config name="outfit_config"><![CDATA[ outfits = { [0] = {type = {lookType = 1}}, [1] = {type = {lookType = 255}}, [2] = {type = {lookType = 254}}, [3] = {type = {lookType = 264}}, [4] = {type = {lookType = 64}}, [5] = {type = {lookType = 5}}, [6] = {type = {lookType = 71}}, [7] = {type = {lookType = 70}}, [8] = {type = {lookType = 66}}, [9] = {type = {lookType = 6}}, [10] = {type = {lookType = 7}}, [11] = {type = {lookType = 8}}, [12] = {type = {lookType = 50}}, [13] = {type = {lookType = 59}}, [14] = {type = {lookType = 194}}, [15] = {type = {lookType = 57}}, } ]]></config> <event type="login" name="outfitLogin" event="buffer"><![CDATA[ domodlib("outfit_config") return doSetCreatureOutfit(cid, outfits[getPlayerVocation(cid)].type, -1) ]]></event> </mod> Perfeito merecia + +reps :\ +rep
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.