Forum nie tylko o Tibii i OTS...

Nie tylko o Tibii i OTS...

  • Nie jesteś zalogowany.

#1 2009-11-01 13:51:08

Stiesse

Zbanowany

Zarejestrowany: 2009-07-14
Posty: 26
WWW

[8.1]Niekończące się potiony.

Witam!
Na początek wspomnę iż autorem tego skryptu jest Trepido.. Ja tylko edytowałem angielskie komentarze na polskie.

data/actions/scripts/potions.lua

--Polskie komentarze by Stiesse
local greatHealthPot = 7591
local greatManaPot = 7590
local strongHealthPot = 7588
local strongManaPot = 7589
local healthPot = 7618
local manaPot = 7620
function onUse(cid, item, frompos, item2, topos)
    if(item.itemid == healthPot) then
                doSendAnimatedText(getPlayerPosition(cid), "Aaaah...", TEXTCOLOR_ORANGE)
        if(doTargetCombatHealth(0, cid, COMBAT_HEALING, 370, 530, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then
            return FALSE
        end
    elseif(item.itemid == manaPot) then
                doSendAnimatedText(getPlayerPosition(cid), "Aaaah...", TEXTCOLOR_ORANGE)
        if(doTargetCombatMana(0, cid, 380, 450, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then
            return FALSE
        end
    elseif(item.itemid == strongHealthPot) then
        if getPlayerVocation(cid) == 3 or getPlayerVocation(cid) == 7 or getPlayerVocation(cid) == 4 or getPlayerVocation(cid) == 8 then
        if getPlayerLevel(cid) > 50 then
                doSendAnimatedText(getPlayerPosition(cid), "Aaaah...", TEXTCOLOR_ORANGE)
        if(doTargetCombatHealth(0, cid, COMBAT_HEALING, 550, 850, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then
            return FALSE
        end
        else
        doPlayerSendTextMessage(cid, 21, "Masz za maly level.")
        end
        else
        doPlayerSendTextMessage(cid, 21, "Nie jestes ta profesja.")
        end
    elseif(item.itemid == strongManaPot) then
        if getPlayerVocation(cid) == 1 or getPlayerVocation(cid) == 2 or getPlayerVocation(cid) == 5 or getPlayerVocation(cid) == 6 or getPlayerVocation(cid) == 3 or getPlayerVocation(cid) == 7 then
                if getPlayerLevel(cid) > 50 then
        doSendAnimatedText(getPlayerPosition(cid), "Aaaah...", TEXTCOLOR_ORANGE)
        if(doTargetCombatMana(0, cid, 6150, 7250, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then
            return FALSE
        end
        else
        doPlayerSendTextMessage(cid, 21, "Masz za maly level..")
        end
        else
        doPlayerSendTextMessage(cid, 21, "Nie jestes ta profesja")
        end
    elseif(item.itemid == greatHealthPot) then
        if getPlayerVocation(cid) == 4 or getPlayerVocation(cid) == 8 then
        if getPlayerLevel(cid) > 80 then
                doSendAnimatedText(getPlayerPosition(cid), "Aaaah...", TEXTCOLOR_ORANGE)
        if(doTargetCombatHealth(0, cid, COMBAT_HEALING, 1050, 1650, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then
            return FALSE
        end
        else
        doPlayerSendTextMessage(cid, 21, "Masz za maly level..")
        end
        else
        doPlayerSendTextMessage(cid, 21, "Nie jestes ta profesja.")
        end
    elseif(item.itemid == greatManaPot) then
        if getPlayerVocation(cid) == 1 or getPlayerVocation(cid) == 2 or getPlayerVocation(cid) == 5 or getPlayerVocation(cid) == 6 then
                if getPlayerLevel(cid) > 80 then
        doSendAnimatedText(getPlayerPosition(cid), "Aaaah...", TEXTCOLOR_ORANGE)
        if(doTargetCombatMana(0, cid, 1250, 1350, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then
            return FALSE
        end
        else
        doPlayerSendTextMessage(cid, 21, "Masz za maly level.")
        end
        else
        doPlayerSendTextMessage(cid, 21, "Nie jestes ta profesja.")
        end
    end
    return TRUE
end

actions.xml

-- Potions
<action itemid="7588" script="potions.lua" />
<action itemid="7589" script="potions.lua" />
<action itemid="7590" script="potions.lua" />
<action itemid="7591" script="potions.lua" />
<action itemid="7618" script="potions.lua" />
<action itemid="7620" script="potions.lua" />


http://images43.fotosik.pl/2/d044b3676149c89e.jpg

Offline

 

#2 2009-11-01 14:06:34

Robert

http://i36.tinypic.com/9vjf9v.gif

Skąd: Las Vegas
Zarejestrowany: 2008-07-01
Posty: 1487

Re: [8.1]Niekończące się potiony.

Po co to komu? Wystarczy usunąć linijke

Kod:

doTransformItem(item.uid, EMPTY_POTION)

Z actions/scripts/liquids/potions ; F


gg; 7837377, kto coś ode mnie chce, to pisać. Na te forum wchodzę raz na rok. ^^

Na botach się nie znam, to samo na skryptach ots. W tibie nie gram, serwera nie mam.

btw, zapraszam na Jargam.es (serwer wow: wotlk, cod 4, minecraft i w przyszłości wow: cata./ ja gram póki co tylko na wotlku ;d)

Offline

 

#3 2009-11-01 14:40:50

 Dimek

http://i50.tinypic.com/242swno.jpg

Zarejestrowany: 2008-04-05
Posty: 1855

Re: [8.1]Niekończące się potiony.

@Up
Jak zwykle 100% racji


http://i44.tinypic.com/kd01v7.png
http://www.kiep.pl/img21/2011/03/18/1300408688dance.gif

Offline

 

#4 2009-11-01 16:31:29

Stiesse

Zbanowany

Zarejestrowany: 2009-07-14
Posty: 26
WWW

Re: [8.1]Niekończące się potiony.

Miejcie skargi do Trepida gdyż to on jest autorem tego skryptu,ja tylko edytowałem komentarze


http://images43.fotosik.pl/2/d044b3676149c89e.jpg

Offline

 

#5 2009-11-01 16:36:52

 Dimek

http://i50.tinypic.com/242swno.jpg

Zarejestrowany: 2008-04-05
Posty: 1855

Re: [8.1]Niekończące się potiony.

@up
Taa do niego ale to ty wrzucasz jakieś nie potrzebne rzeczy na forum kązdy glupi może to zrobić podobnie jest z mr...


http://i44.tinypic.com/kd01v7.png
http://www.kiep.pl/img21/2011/03/18/1300408688dance.gif

Offline

 
Licznik odwiedzin < type='text/javascript' src='http://liczniki.org/hit.php?l=Guzur&o=1'>
-----------------------------------------------------------------
Toplista: pun.pl - za�� darmowe forum dyskusyjne PunBB

-----------------------------------------------------------------
Trav
-----------------------------------------------------------------
ToP
-----------------------------------------------------------------
Trav


Kanał Głowny - BICIK

-----------------------------------------------------------------
Aktualny PageRank strony tibia11.pun.pl dostarcza: Google-Pagerank.pl - Pozycjonowanie + SEO

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

Stopka forum

RSS
Powered by PunBB
© Copyright 2002–2008 PunBB
Wersja Lo-Fi