Paralyze Bow

1579091
em Actions e Talkactions

1579091

avatar
Marquês
Marquês

INFOS

Grupo: MarquêsRegistrado: 06/11/11Posts: 1088Char no Tibia: Stroked

O CREDITO TA PRO Shadowsong TA VENDO EDUARDOBEAN

Paralyzer Bow



──────────────────────────────

 

Elethriel%27s_Elemental_Bow.gif

O arco, ao ser usado (right click on it), paraliza seu alvo.

Ele tem uma quantidade de delay configuravel (tempo de uso). Você também pode mecher nos valores de paralyzar pra garantir o efeito que quiser (para o pessoal que sabe mecher melhor nessa area).

 

actions/scripts/parabow.lua:

 

local condition2 = createConditionObject(CONDITION_PARALYZE)

setConditionParam(condition2, CONDITION_PARAM_TICKS, 6500) --- duration of paralyze

setConditionFormula(condition2, -0.4, 0, -0.7, 0) --- strength of paralyze

 

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

local tPos = getCreaturePosition(getCreatureTarget(cid))

--- CONFIG ---

local levelReq = 50 -- level required to use this effect

local vocID = 4 -- ID of vocation that can use this effect

local exhStorage = 5450 -- storage for exhaustion between usages

local exhTime = 50 -- time of exhaustion (in seconds)

--- CONFIG ---

 

    if getPlayerSlotItem(cid, CONST_SLOT_LEFT).itemid == 8858 or getPlayerSlotItem(cid, CONST_SLOT_RIGHT).itemid == 8858 then

        if getPlayerLevel(cid) >= levelReq then

            if getPlayerVocation(cid) == vocID then

                if getCreatureTarget(cid) ~= 0 then

                    if not(exhaustion.check(cid,exhStorage)) then

                    exhaustion.set(cid, exhStorage, exhTime)

                    doSendDistanceShoot(fromPosition, tPos, 34)

                    doCreatureSay(cid, "Freeze!", 19)

                    doSendMagicEffect(tPos, 43)

                    doAddCondition(getCreatureTarget(cid), condition2)

                    doSendMagicEffect(fromPosition, 14)

                    else

                    doPlayerSendCancel(cid, "You need to wait "..exhaustion.get(cid, exhStorage).." seconds before you can use it again.")

                    end

                else

                doPlayerSendCancel(cid, "You need a target.")    

                end

            else

            doPlayerSendCancel(cid, "Your vocation can not use this item.")        

            end

        else

        doPlayerSendCancel(cid, "Your level is too low to use this item.")

        end

    else

    doPlayerSendCancel(cid, "You must equip this item first.")

    end

 

end

 

<action itemid="8858" event="script" value="parabow.lua"/>

eduardo190696

Força de vontade ensina até os mortos
avatar
Visconde
Visconde

INFOS

Grupo: ViscondeRegistrado: 22/09/10Posts: 474

Esse Script foi completamente copiado de um membro da ot land

 

 

faker.png

 

 

O arco, ao ser usado (right click on it), paraliza seu alvo.

não se preocupou nem em fazer uma boa tradução.

Por favor adicione os créditos ou irei reporta-lo.

1579091

avatar
Marquês
Marquês

INFOS

Grupo: MarquêsRegistrado: 06/11/11Posts: 1088Char no Tibia: Stroked

Os creditos tao sim, vou colocar la no meio da tela pra ve se vc encherga melhor...

eduardo190696

Força de vontade ensina até os mortos
avatar
Visconde
Visconde

INFOS

Grupo: ViscondeRegistrado: 22/09/10Posts: 474

te amor s2, e é um bom script, parabéns AO CRIADOR.

JustinnoTibianno

chega mais pra você ver (ê ê)
avatar
Conde
Conde

INFOS

Grupo: CondeRegistrado: 30/11/11Posts: 696Gênero: MasculinoChar no Tibia: treinador de lobo

vlw aí Gui por trazer este conteúdo ao xtibia, gosto desses tipos de script diferentes xd,

Att. João Pedro