XS
action

Descongelando Ursagrodon (1.0)

Por XScupion, 14 de mai. de 2015 em Actions e Talkactions

script
6
1.2k
XScupionX
14 de maio de 2015 às 21:35

Bom eu estava passando por um servidor e verifiquei que quase nenhum tem o sistema de descongelar o ursagrodon para tfs 1.0.

 

 

Agora em (actions/scripts/chyllfroest) crie um .lua chamado ou substitua com o seu nome: Ursagrodon

function onUse(cid, item, fromPosition, itemEx, toPosition)
    if(item.itemid == 22719) then
        if(itemEx.itemid == 22722) and getPlayerStorageValue(cid, 16410) < 1 then
            doPlayerSendTextMessage(cid, 19, "You managed to melt about half of the ice blook. Quickly now, it's ice cold here and the ice block could freeze over again.")
            doTransformItem(getTileItemById(toPosition,22722).uid,22723)
            setPlayerStorageValue(cid, 16410, 1)
        elseif (itemEx.itemid == 22722) and getPlayerStorageValue(cid, 16410) == 3 then
            doPlayerSendCancel(cid, "You already have the Ursagrodon.")
        end
        if(itemEx.itemid == 22723) and getPlayerStorageValue(cid, 16410) == 1 then
            doPlayerSendTextMessage(cid, 19, "You managed to melt almost the whole block, only the feet of the creature are still stuck in the ice. Finish the job!")
            doTransformItem(getTileItemById(toPosition,22723).uid,22724)
            setPlayerStorageValue(cid, 16410, 2)
        end
        if(itemEx.itemid == 22724) and getPlayerStorageValue(cid, 16410) == 2 then
            doPlayerSendTextMessage(cid, 19, "The freed Ursagrodon looks at you with glowing, obedient eyes.")
            doTransformItem(getTileItemById(toPosition,22724).uid,22725)
            setPlayerStorageValue(cid, 16410, 3)
            doPlayerAddMount(cid,38)
            doRemoveItem(item.uid, 1)
            end
        end
    return true
end

Depois em action.xml

<action itemid="IDDOMELTINGHORN" script="chyllfroest/ursagrodon.lua" />

Até mais.

FurabioF
14 de maio de 2015 às 21:46

Muito bom.

BrunoB
14 de maio de 2015 às 21:48

Obrigado por compartilhar conosco!

O script é de sua autoria?

XScupionX
14 de maio de 2015 às 21:49

, Veio junto com meu servidor mais estava com erro eu dei uma arrumada e também no itemid ai decidi postar. (Não estava transformando).

Editado Maio 14 por XScupion

BrunoB
14 de maio de 2015 às 22:04

XScupion, em 14 Mai 2015 - 21:49, disse:

, Veio junto com meu servidor mais estava com erro eu dei uma arrumada e também no itemid ai decidi postar. (Não estava transformando).

Entendi man, coloque os créditos então, do antigo e os seus por ter editado.

Obrigado novamente :)

XScupionX
14 de maio de 2015 às 22:06

,Não sei servidor veio com o otpanel eu coloco o do otpanel ou apenas o meu?, Ou deixo sem?