Forum nie tylko o Tibii i OTS...

Nie tylko o Tibii i OTS...

  • Nie jesteś zalogowany.
  • Polecamy: Gry

#1 2008-04-11 15:35:45

Batorun

http://i38.tinypic.com/avakh.gif

status 5714112
276169
Call me!
Skąd: Maboro OTS
Zarejestrowany: 2008-01-19
Posty: 72
Nick: Sir Batorun
Profesja: Berylia
Server: 7
WWW

Manarune !

hello

Poszukuję Mana Rune z Exhausted i, że dodaje manę zależnie od lvl (pod Tibię 8.10 SQL silnik B-Fox: 7 (Seven) v1&v2!)! Proszę o pomoc !

bye

Offline

 

#2 2008-04-11 18:06:13

1DeVoP2

http://i33.tinypic.com/2v2gq5x.gif

status 1241421
4598593
Call me!
Skąd: Cementarz
Zarejestrowany: 2008-03-15
Posty: 283
Nick: Icy Gravler
Profesja: Neptera
Server: 1
WWW

Re: Manarune !

Actions.xml:

<action itemid="2275" script="manarune.lua" allowfaruse="1"/>

manarune.lua:

function onUse(cid, item, frompos, item2, topos)

    local level = getPlayerLevel(cid)
    local mlevel = getPlayerMagLevel(cid)
   
    -- Exhausted Settings --
    local exhausted_seconds = 1 -- How many seconds manarune will be unavailible to use. --
    local exhausted_storagevalue = 7000 -- Storage Value to store exhaust. It MUST be unused! --
    -- Exhausted Settings END --
   
    -- Mana Formula Settings --
    -- You can use "level" and "mlevel" --
    local mana_minimum = (level * 3) + (mlevel * 5) - 50
    local mana_maximum = (level * 3) + (mlevel * 5)
    -- Mana Formula Settings END --
   
    local mana_add = math.random(mana_minimum, mana_maximum)
   
        -- We check the charges. --
        if(item.type > 1) then
            -- Exhausted check. --
            if(os.time() > getPlayerStorageValue(cid, exhausted_storagevalue)) then
                -- Entity is player? --
                if(isPlayer(item2.uid) == 1) then
                    doSendMagicEffect(frompos, CONST_ME_MAGIC_RED)
                    doSendMagicEffect(topos, CONST_ME_MAGIC_GREEN)
                    doSendAnimatedText(topos, mana_add, TEXTCOLOR_LIGHTBLUE)
                    doPlayerAddMana(item2.uid, mana_add)
                    setPlayerStorageValue(cid, exhausted_storagevalue, os.time() + exhausted_seconds)
                    doChangeTypeItem(item.uid, item.type - 1)
                else
                    doSendMagicEffect(frompos, CONST_ME_POFF)
                    doPlayerSendCancel(cid, "You can use this rune only on players.")
                end
            else
                doSendMagicEffect(frompos, CONST_ME_POFF)
                doPlayerSendCancel(cid, "You are exhausted.")
            end
        else
            if(os.time() < getPlayerStorageValue(cid, exhausted_storagevalue)) then
                doSendMagicEffect(frompos, CONST_ME_POFF)
                doPlayerSendCancel(cid, "You are exhausted.")
            else
                if(isPlayer(item2.uid) == 1) then
                    doSendMagicEffect(frompos, CONST_ME_MAGIC_RED)
                    doSendMagicEffect(topos, CONST_ME_MAGIC_GREEN)
                    doSendAnimatedText(topos, mana_add, TEXTCOLOR_LIGHTBLUE)
                    doPlayerAddMana(item2.uid, mana_add)
                    setPlayerStorageValue(cid, exhausted_storagevalue, os.time() + exhausted_seconds)
                    doRemoveItem(item.uid, 1)
                else
                    doSendMagicEffect(frompos, CONST_ME_POFF)
                    doPlayerSendCancel(cid, "You can use this rune only on players.")
                end
            end
        end
                       
    return 1
end

Offline

 

#3 2008-04-12 07:44:17

1DeVoP2

http://i33.tinypic.com/2v2gq5x.gif

status 1241421
4598593
Call me!
Skąd: Cementarz
Zarejestrowany: 2008-03-15
Posty: 283
Nick: Icy Gravler
Profesja: Neptera
Server: 1
WWW

Offline

 

#4 2008-04-12 14:25:11

Batorun

http://i38.tinypic.com/avakh.gif

status 5714112
276169
Call me!
Skąd: Maboro OTS
Zarejestrowany: 2008-01-19
Posty: 72
Nick: Sir Batorun
Profesja: Berylia
Server: 7
WWW

Re: Manarune !

Dziękuję, ale sam znalazłem skrypt na manarune. TEMAT DO ZAMKNIĘCIA!!!

Offline

 

Stopka forum

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

[ Generated in 0.016 seconds, 9 queries executed ]


Darmowe Forum | Ciekawe Fora | Darmowe Fora
www.narutototalgame.pun.pl www.hajtownia.pun.pl www.teatr-przedmiotu.pun.pl www.dirt-bike.pun.pl www.mago1w.pun.pl