15
action

Paralyze Bow

Por 1579091, 13 de set. de 2012 em Actions e Talkactions

tibia
script
otserv
6
1.3k
15790911
13 de setembro de 2012 às 18:20

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"/>

Editado Setembro 23 por GuizitoG

grokuG
15 de setembro de 2012 às 17:45

U.u eu fiz 1 item desses aí mas como uma runa, só que como o OT era 350000 xp nem fazia diferença daí fiz burn na wand '-'

2 semanas depois...
eduardo190696E
23 de setembro de 2012 às 21:12

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.

Editado Setembro 23 por eduardobean

15790911
23 de setembro de 2012 às 21:20

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

eduardo190696E
23 de setembro de 2012 às 22:39

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

JustinnoTibiannoJ
24 de setembro de 2012 às 06:49

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