Ir para conteúdo
  • Cadastre-se

Posts Recomendados

Eae Gente... :trollface: Esse é meu primeiro topico! N sei se esta na seçao certa. mas vamos lá

Changer Outfit!!!

É um script simples. Eu peguei de um outro sistema de mount system e editei.

-Oq ele faz?

-Quando o player um determinado item. ele troka seu outfit para um looktype de monstro. SAKO?

Vamos lá.

Primeiro duplique um arquivo em data/actions/scripts e renomei-e para ---> outfit's.lua <---

e dentro cole isso...

-----------------------------------------------------------------------------------------------------------------------------

--------------------

---- CONDITION -----

--------------------

local wolfCondition = createConditionObject(CONDITION_OUTFIT)

setConditionParam(wolfCondition, CONDITION_PARAM_TICKS, 1000000)

addOutfitCondition(wolfCondition, {lookType = 4, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0})

addOutfitCondition(wolfCondition, {lookType = 7, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0})

addOutfitCondition(wolfCondition, {lookType = 6, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0})

addOutfitCondition(wolfCondition, {lookType = 16, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0})

addOutfitCondition(wolfCondition, {lookType = 23, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0})

addOutfitCondition(wolfCondition, {lookType = 17, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0})

addOutfitCondition(wolfCondition, {lookType = 22, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0})

addOutfitCondition(wolfCondition, {lookType = 27, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0})

addOutfitCondition(wolfCondition, {lookType = 12, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0})

addOutfitCondition(wolfCondition, {lookType = 44, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0})

addOutfitCondition(wolfCondition, {lookType = 48, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0})

addOutfitCondition(wolfCondition, {lookType = 51, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0})

addOutfitCondition(wolfCondition, {lookType = 47, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0})

addOutfitCondition(wolfCondition, {lookType = 73, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0})

addOutfitCondition(wolfCondition, {lookType = 75, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0})

addOutfitCondition(wolfCondition, {lookType = 123, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0})

addOutfitCondition(wolfCondition, {lookType = 125, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0})

addOutfitCondition(wolfCondition, {lookType = 159, lookHead = 79, lookBody = 65, lookLegs = 114, lookFeet =

94})

addOutfitCondition(wolfCondition, {lookType = 194, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0})

addOutfitCondition(wolfCondition, {lookType = 198, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0})

addOutfitCondition(wolfCondition, {lookType = 203, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0})

addOutfitCondition(wolfCondition, {lookType = 206, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0})

addOutfitCondition(wolfCondition, {lookType = 209, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0})

addOutfitCondition(wolfCondition, {lookType = 210, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0})

addOutfitCondition(wolfCondition, {lookType = 217, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0})

addOutfitCondition(wolfCondition, {lookType = 228, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0})

addOutfitCondition(wolfCondition, {lookType = 229, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0})

addOutfitCondition(wolfCondition, {lookType = 234, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0})

addOutfitCondition(wolfCondition, {lookType = 231, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0})

addOutfitCondition(wolfCondition, {lookType = 243, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0})

addOutfitCondition(wolfCondition, {lookType = 253, lookHead = 79, lookBody = 65, lookLegs = 114, lookFeet =

94})

addOutfitCondition(wolfCondition, {lookType = 266, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0})

addOutfitCondition(wolfCondition, {lookType = 275, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0})

addOutfitCondition(wolfCondition, {lookType = 290, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0})

addOutfitCondition(wolfCondition, {lookType = 292, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0})

addOutfitCondition(wolfCondition, {lookType = 302, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0})

addOutfitCondition(wolfCondition, {lookType = 317, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0})

addOutfitCondition(wolfCondition, {lookType = 320, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0})

addOutfitCondition(wolfCondition, {lookType = 342, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0})

addOutfitCondition(wolfCondition, {lookType = 344, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0})

addOutfitCondition(wolfCondition, {lookType = 351, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0})

--------------------

----- config -------

--------------------

local t = {

[6579] = {article='a' ,name='wolf', text='changer outfit!', dtext='changer outfit!', s=100,

condition=wolfCondition},

}

------------------------------------

--- don't change if you are noob ---

------------------------------------

function onUse(cid, item, fromPosition, itemEx, toPosition)

local v, r = getCreaturePosition(cid), t[item.itemid]

local s = r.s

local pos = {x = v.x, y = v.y, z = v.z}

if r then

if getPlayerStorageValue(cid, s) <= 0 then

doSendMagicEffect(pos, 13)

doCreatureSay(cid, r.text, 19)

setPlayerStorageValue(cid, s, 1)

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, 'You have new looktype ' ..

r.article .. ' '.. r.name .. '.')

return doAddCondition(cid, r.condition)

elseif getPlayerStorageValue(cid, s) == 1 then

doSendMagicEffect(pos, 13)

doCreatureSay(cid, r.dtext, 19)

setPlayerStorageValue(cid, s, 0)

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, 'You have new looktype ' ..

r.article .. ' '.. r.name .. '.')

return doRemoveCondition(cid, CONDITION_OUTFIT)

else

return doPlayerSendCancel(cid, 'You can\'t do this.')

end

else

return doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_BLUE, 'There has been some error,

try contacting a staff member.')

end

end

-----------------------------------------------------------------------------------------------------------------------------

e agora em data/actions/actions.xml e adicione essa tag :

<action itemid="6579" event="script" value="outfit's.lua"/>

ali em 6579 é o item q o player vai uzar... q é o tibia doll.

End

;)

Link para o post
Compartilhar em outros sites
  • 1 month later...

Tópico mal organizado

e sem os créditos

@FECHADO

Att,

Skyligh

Entrada Como Membro 14 / 08 / 2012

Entrada Como Suporte 05 / 12 / 2012

Saída Como Suporte 06 / 01 / 2013

sem_ta28.png

Contato : [email protected] / [email protected]

Link para o post
Compartilhar em outros sites
Visitante
Este tópico está impedido de receber novos posts.
  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo