Forum nie tylko o Tibii i OTS...

Nie tylko o Tibii i OTS...

  • Nie jesteś zalogowany.

#1 2009-05-08 00:11:20

naoymi

http://i38.tinypic.com/19pb0n.gif

Zarejestrowany: 2008-10-01
Posty: 13

[8.1]Arena PVP Problem ( da sie zabic)

Witam,
mam skrypt arena pvp :

Kod:

function onUse(cid, item, frompos, item2, topos)
          if item.uid == 7001 and item.itemid == 1945 then
                    player1pos = {x=414, y=502, z=8, stackpos=253}
                    player1 = getThingfromPos(player1pos)
                    player2pos = {x=414, y=504, z=8, stackpos=253}
                    player2 = getThingfromPos(player2pos)
                    if player1.itemid > 0 and player2.itemid > 0 then
                              player1level = getPlayerLevel(player1.uid)
                              player2level = getPlayerLevel(player2.uid)
                              if player1level >= 5 and player2level >= 5 then
                                        for arenax = 121,128 do
                                                  for arenay = 33,37 do
                                                            arenapos = {x=arenax, y=arenay, z=9, stackpos=253}
                                                            arenacreature = getThingfromPos(arenapos)
                                                            if isPlayer(arenacreature.uid) == 1 then
                                                                      doPlayerSendCancel(cid,"Poczekaj az walka sie zakonczy.")
                                                                      return 1
                                                            end
                                                  end
                                        end
                                        nplayer1pos = {x=416, y=503, z=8}
                                        nplayer2pos = {x=423, y=503, z=8}
                                        doSendMagicEffect(player1pos,2)
                                        doSendMagicEffect(player2pos,2)
                                        doTeleportThing(player1.uid,nplayer1pos)
                                        doTeleportThing(player2.uid,nplayer2pos)
                                        doSendMagicEffect(nplayer1pos,10)
                                        doSendMagicEffect(nplayer2pos,10)
                                        doPlayerSendTextMessage(player1.uid,18,"WALCZCIE!")
                                        doPlayerSendTextMessage(player2.uid,18,"WALCZCIE!")
                              else
                                        doPlayerSendCancel(cid,"Musisz miec 5 Level.")
                              end
                    else
                              doPlayerSendCancel(cid,"Potrzebujesz 2 graczy do pojedynku.")
                    end
          else
                    return 0
             end
          return 1
end

Dzwignia dziala, tzn teleportuje w odpowiednie miejsce ale jak testowalem z kolegą to mógł mnie zabic i pojawiałem sie w temple. Da sie zrobic aby zamiast zabijac teleportowalo przed arene ? Prosze o pomoc

Offline

 

#2 2009-05-08 06:49:42

Dimek2

http://i37.tinypic.com/2dqpohz.gif

Zarejestrowany: 2009-05-07
Posty: 20

Re: [8.1]Arena PVP Problem ( da sie zabic)

Pewnie masz zły skrypt skopiuj z jakiego evo 8.1 tam działa bo korzystam z takich silników

Offline

 

#3 2009-05-08 13:46:37

naoymi

http://i38.tinypic.com/19pb0n.gif

Zarejestrowany: 2008-10-01
Posty: 13

Re: [8.1]Arena PVP Problem ( da sie zabic)

moglbys mi podac ten skrypt? bo z twojego postu wnioskuje iz posiadasz takowy

Offline

 

#4 2009-05-08 15:11:47

xXxDanioSxXx

Zbanowany

6477635
Skąd: W-Wa
Zarejestrowany: 2008-02-19
Posty: 945
Nick: DaniosReaktywej
Profesja: Xbox Live
Server: 2,750G

Re: [8.1]Arena PVP Problem ( da sie zabic)

Powinno działać:

Spoiler:

-- pvp arena lever

function onUse(cid, item, frompos, item2, topos)
    if item.uid == 7001 and item.itemid == 1945 then
        player1pos = {x=1040, y=987, z=8, stackpos=253}
        player1 = getThingfromPos(player1pos)

        player2pos = {x=1040, y=989, z=8, stackpos=253}
        player2 = getThingfromPos(player2pos)

        if player1.itemid > 0 and player2.itemid > 0 then
            arenalevel = 25
            player1level = getPlayerLevel(player1.uid)
            player2level = getPlayerLevel(player2.uid)

            if player1level >= arenalevel and player2level >= arenalevel then
                for arenax = 1041, 1052 do
                    for arenay = 985, 991 do
                        arenapos = {x=arenax, y=arenay, z=9, stackpos=253}
                        arenacreature = getThingfromPos(arenapos)

                        if arenacreature.itemid > 0 then
                            doPlayerSendCancel(cid,"Wait for current duel to end.")
                            return 1
                        end
                    end
                end

                nplayer1pos = {x=1043, y=988, z=9}
                nplayer2pos = {x=1050, y=988, z=9}

                doSendMagicEffect(player1pos,2)
                doSendMagicEffect(player2pos,2)

                doTeleportThing(player1.uid,nplayer1pos)
                doTeleportThing(player2.uid,nplayer2pos)

                doSendMagicEffect(nplayer1pos,10)
                doSendMagicEffect(nplayer2pos,10)

                doPlayerSendTextMessage(player1.uid,18,"FIGHT!")
                doPlayerSendTextMessage(player2.uid,18,"FIGHT!")
            else
                doPlayerSendCancel(cid,"Both fighters must have level 25.")
            end
        else
            doPlayerSendCancel(cid,"You need 2 players for a duel.")
        end
    else
        return 0
       end

    return 1
end


http://card.mygamercard.net/PL/nxe/DaniosReaktywej.png
http://card.mygamercard.net/PL/cylinder/DaniosReaktywej.png
My Gamer Card - Xbox Live
http://img197.imageshack.us/img197/2086/ogjogmso.png

Offline

 

#5 2009-05-08 17:01:56

naoymi

http://i38.tinypic.com/19pb0n.gif

Zarejestrowany: 2008-10-01
Posty: 13

Re: [8.1]Arena PVP Problem ( da sie zabic)

czytalem gdzies ze jakies pvp zone trzeba ustawic. o co z tym chodzi?

Offline

 

#6 2009-05-08 17:20:45

Dimek2

http://i37.tinypic.com/2dqpohz.gif

Zarejestrowany: 2009-05-07
Posty: 20

Re: [8.1]Arena PVP Problem ( da sie zabic)

Danio ci podał oco ci biega zamien skrypty i po kłopocie

Offline

 

#7 2009-12-20 13:07:52

 Dawid2098

http://i34.tinypic.com/28ko5qb.gif

10386599
Skąd: Tychy
Zarejestrowany: 2009-09-17
Posty: 50
Nick: Master Sorcerer of Van
Profesja: Vanilla OTS c17.pl
Server: 128
WWW

Re: [8.1]Arena PVP Problem ( da sie zabic)

Dzieki Tylko Chcial Bym Zeby Ktos Mi Pomogl np: jak ustawic gdzie jest arena jaka dzwignia itp...

Ostatnio edytowany przez Dawid2098 (2009-12-20 13:09:09)


http://s2.tibiafun.y0.pl/char.php?c=Dawid2098

Link do tematu ze Skórką z Windowsa 7:
http://rapidshare.com/files/329844057/S … t.rar.html

Offline

 

Stopka forum

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


Darmowe Forum | Ciekawe Fora | Darmowe Fora
Najtańsze Bilety Lotnicze Atlanta szafy meble kuchenne lublin mieszkania w katowicach pisanie prac licencjackich