Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

Rekomendowane odpowiedzi

Opublikowano

Szukam jakiegoś rozbudowanego questu do pet gui na 3 bonusy.

Te bonusy musiały by wraz z levelm peta rosnąć. 

Chcę aby max level peta to 99.

Zeby mozna w nim było mozna zablokować i odblokować funkcję expa.

Ze jeśli nie chce to go nie expie.

itd

Ten quest jest zbugowany.

quest pets begin 
    state start begin     
     
        function givebonus(x) 
            local y,boni = {53,54,1},pets.bonusliste() 
            table.foreach(boni[x],function(i,l)  cmdchat("HaustierBonus"..i.." "..l.."") affect.add_collect(y[i],l,60*60*24*365*60) end ) 
            cmdchat("HaustierLevel "..pc.getqf('petlevel').."") 
            cmdchat("HaustierName "..pc.get_name().."") 
            pc.setqf("petruf",1)                 
        end 
        function bonusliste() 
            return { 
                [1] = {200,100,500}, 
                [2] = {250,150,1000}, 
                [3] = {300,200,1500}, 
                [4] = {350,250,2000}, 
                [5] = {400,300,3000}, 
            } 
        end     
        function removebonus(x) 
            local y,boni = {53,54,1},pets.bonusliste() 
            table.foreach(boni[x],function(i,l) affect.remove_collect(y[i],l,60*60*24*365*60) end ) 
             pet.unsummon() 
            pc.setqf("petruf",0) 
            horse.set_level("21") 
            cmdchat("HidePetGui") 
            cleartimer("bugcheck") 
        end         
     
        when 53001.use begin 
            horse.unride() horse.unsummon() 
            if pc.is_mount() then 
                say_title("Przepraszamy, ale") 
                say("musisz zejść z wierzchowca.!") 
                return 
            end 
            if pc.getqf('petlevel') == 0 then 
                pc.setqf('petlevel',1) 
            end 
            if pc.getqf("petruf") == 0 then 
                local Horselevel = 29-pc.getqf('petlevel') 
                horse.set_level(Horselevel) 
                 pet.unsummon()  pet.summon() 
                chat("Twój pet został nazwany.") 
                pets.givebonus(pc.getqf('petlevel')) 
                local expprocent1 = {20, 80, 160, 350, 400} 
                cmdchat("PetProcentExp "..(pc.getqf("exp")/expprocent1[pc.getqf("petlevel")]).."")                 
                cmdchat("ShowPetGui") 
                loop_timer("bugcheck", 0.2) 
            elseif pc.getqf("petruf") == 1 then         
                pets.removebonus(pc.getqf('petlevel')) 
                chat("Twój pet został odesłany.") 
            end         
        end 
         
         
        when kill with pc.getqf("petruf") == 1 begin 
            if pc.getqf("petlevel") == 5 then 
                return 
            end     
            if not npc.is_pc() then 
                pc.setqf("exp",pc.getqf("exp")+1) 
                local exp2up = {2000, 8000, 16000, 35000, 40000} 
                local expprocent = {20, 80, 160, 350, 400} 
                cmdchat("PetProcentExp "..(pc.getqf("exp")/expprocent[pc.getqf("petlevel")]).."") 
                if pc.getqf("exp") == exp2up[pc.getqf("petlevel")] then 
                    if pc.getqf("petlevel") == 4 then 
                        say_title("Gratulacje") 
                        say("Twój pet osiągnoł poziom "..(pc.getqf("petlevel")+1).."") 
                        say_reward("To już był maxymalny poziom peta!") 
                    end 
                    say_title("Gratulacje") 
                    say("Twój pet osiągnoł poziom "..(pc.getqf("petlevel")+1).."") 
                    say("Przywołaj peta ponownie.!") 
                    pc.setqf("petlevel",pc.getqf("petlevel")+1) 
                    pc.setqf("exp",0) 
                    pets.removebonus(pc.getqf('petlevel')) 
                end 
            end 
        end 
         
        -- Bugschutz 
         
        when bugcheck.timer begin 
            if pc.count_item(53001) == 0 then 
                say_title("Bug Użytkownika") 
                say("Znaleziono Buga.!") 
                pets.removebonus(pc.getqf('petlevel')) 
            end 
        end 
         
        when login or logout or disconnect with pc.getqf("petruf") == 1 begin 
            pets.removebonus(pc.getqf('petlevel')) 
            chat("Dein Haustier ist nicht mitgekommen...") 
            chat("Rufe es erneut!")     
        end         
         
    end     
end 
Opublikowano

Wystarczy dodać warunek, że when się wykona jeżeli poziom Twojego peta jest mniejszy niż 99. 

when kill with pc.getqf("petruf") == 1 and pc.getqf("petlevel") < 99 begin 

RazapMQ.png


CHIŃSKI OLDSCHOOL EASY - CLIENT ALA 2008r - KONCEPCJE Z CSYT2, YT2GAME I WIELU INNYCH CHIŃSKICH KLASYKÓW


JUŻ TERAZ NA KERUNIS.PL


125 LV MAX - BRAK ATLANTYDY I NOWYCH MAP - POŁĄCZENIE CHIŃSKICH SERWERÓW Z AUTORSKIMI ROZWIĄZANIAMI

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...