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

Efekt przy przywołaniu peta


Mark

Rekomendowane odpowiedzi

Opublikowano

tele ze u mnie to wygląda tak

i gdie dopisac te buff?

 

quest pet_system begin
    state start begin
        when 53001.use or 53002.use or 53003.use or 53005.use or 53006.use or 53007.use or 53008.use or 53009.use begin
            local ItemValue = item.vnum
            for i = 1, table.getn(PetArray), 1 do
                if PetArray[i][1] == ItemValue then
                    local PetState = PetArray[i][2]
                    if pc.getqf("pet_index") == 0 then
                        if pc.getqf(PetState) == 0 then
                            local check = inizializza(i)
                            if check != 0 then return end
                            pc.setqf(PetState, 1)
                        end
                        pc.setqf("pet_index", i)
                        evoca(i, PET_SUMMON)
                    else
                        evoca(i, PET_UNSUMMON)
                        pc.setqf("pet_index", 0)
                    end
                end
            end
        end
        when 20120.click with pc.getqf("pet_index") == 1 begin    show_pet_menu(1)    end
        when 20121.click with pc.getqf("pet_index") == 1 begin    show_pet_menu(1)    end
        when 20122.click with pc.getqf("pet_index") == 1 begin    show_pet_menu(1)    end
        when 20123.click with pc.getqf("pet_index") == 2 begin    show_pet_menu(2)    end
        when 20124.click with pc.getqf("pet_index") == 2 begin    show_pet_menu(2)    end
        when 20125.click with pc.getqf("pet_index") == 2 begin    show_pet_menu(2)    end
        when 20126.click with pc.getqf("pet_index") == 3 begin    show_pet_menu(3)    end
        when 20127.click with pc.getqf("pet_index") == 3 begin    show_pet_menu(3)    end
        when 20128.click with pc.getqf("pet_index") == 3 begin    show_pet_menu(3)    end
        when 20129.click with pc.getqf("pet_index") == 4 begin    show_pet_menu(4)    end
        when 20130.click with pc.getqf("pet_index") == 4 begin    show_pet_menu(4)    end
        when 20131.click with pc.getqf("pet_index") == 4 begin    show_pet_menu(4)    end
        when 20132.click with pc.getqf("pet_index") == 5 begin    show_pet_menu(5)    end
        when 20133.click with pc.getqf("pet_index") == 5 begin    show_pet_menu(5)    end
        when 20134.click with pc.getqf("pet_index") == 5 begin    show_pet_menu(5)    end
        when 20135.click with pc.getqf("pet_index") == 6 begin    show_pet_menu(6)    end
        when 20136.click with pc.getqf("pet_index") == 6 begin    show_pet_menu(6)    end
        when 20137.click with pc.getqf("pet_index") == 6 begin    show_pet_menu(6)    end
        when 20138.click with pc.getqf("pet_index") == 7 begin    show_pet_menu(7)    end
        when 20139.click with pc.getqf("pet_index") == 7 begin    show_pet_menu(7)    end
        when 20140.click with pc.getqf("pet_index") == 7 begin    show_pet_menu(7)    end
        when 20141.click with pc.getqf("pet_index") == 8 begin    show_pet_menu(8)    end
        when 20142.click with pc.getqf("pet_index") == 8 begin    show_pet_menu(8)    end
        when 20143.click with pc.getqf("pet_index") == 8 begin    show_pet_menu(8)    end
 
        when kill with pc.getqf("pet_index") != 0 begin
            local i = pc.getqf("pet_index")
            if pc.get_level() > (npc.get_level() + 15) then
                return
            end
            if pc.get_level() <= npc.get_level() then
                PetGiveExp(i, 5)
            elseif pc.get_level() <= (npc.get_level() + 5) then
                PetGiveExp(i, 4)
            elseif pc.get_level() <= (npc.get_level() + 10) then
                PetGiveExp(i, 3)
            elseif pc.get_level() <= (npc.get_level() + 15) then
                PetGiveExp(i, 1)
            end
        end
        
        when logout with pc.getqf("pet_index") != 0 begin
            local i = pc.getqf("pet_index")
            evoca(i, PET_UNSUMMON)
            pc.setqf("pet_index", 0)
        end
        when login with pc.getqf("pet_index") != 0 begin
            local i = pc.getqf("pet_index")
            evoca(i, PET_UNSUMMON)
            pc.setqf("pet_index", 0)
        end
    end
end
 
  • 2 tygodnie później...
  • Odpowiedzi 55
  • Dodano
  • Ostatniej odpowiedzi
  • 6 miesięcy temu...
Opublikowano

Świetne :=)

 

 

tele ze u mnie to wygląda tak

i gdie dopisac te buff?

quest pet_system begin
    state start begin
        when 53001.use or 53002.use or 53003.use or 53005.use or 53006.use or 53007.use or 53008.use or 53009.use begin
            local ItemValue = item.vnum
            for i = 1, table.getn(PetArray), 1 do
                if PetArray[i][1] == ItemValue then
                    local PetState = PetArray[i][2]
                    if pc.getqf("pet_index") == 0 then
                        if pc.getqf(PetState) == 0 then
                            local check = inizializza(i)
                            if check != 0 then return end
                            pc.setqf(PetState, 1)
                        end
                        pc.setqf("pet_index", i)
                        evoca(i, PET_SUMMON)
                    else
                        evoca(i, PET_UNSUMMON)
                        pc.setqf("pet_index", 0)
                    end
                end
            end
        end
        when 20120.click with pc.getqf("pet_index") == 1 begin    show_pet_menu(1)    end
        when 20121.click with pc.getqf("pet_index") == 1 begin    show_pet_menu(1)    end
        when 20122.click with pc.getqf("pet_index") == 1 begin    show_pet_menu(1)    end
        when 20123.click with pc.getqf("pet_index") == 2 begin    show_pet_menu(2)    end
        when 20124.click with pc.getqf("pet_index") == 2 begin    show_pet_menu(2)    end
        when 20125.click with pc.getqf("pet_index") == 2 begin    show_pet_menu(2)    end
        when 20126.click with pc.getqf("pet_index") == 3 begin    show_pet_menu(3)    end
        when 20127.click with pc.getqf("pet_index") == 3 begin    show_pet_menu(3)    end
        when 20128.click with pc.getqf("pet_index") == 3 begin    show_pet_menu(3)    end
        when 20129.click with pc.getqf("pet_index") == 4 begin    show_pet_menu(4)    end
        when 20130.click with pc.getqf("pet_index") == 4 begin    show_pet_menu(4)    end
        when 20131.click with pc.getqf("pet_index") == 4 begin    show_pet_menu(4)    end
        when 20132.click with pc.getqf("pet_index") == 5 begin    show_pet_menu(5)    end
        when 20133.click with pc.getqf("pet_index") == 5 begin    show_pet_menu(5)    end
        when 20134.click with pc.getqf("pet_index") == 5 begin    show_pet_menu(5)    end
        when 20135.click with pc.getqf("pet_index") == 6 begin    show_pet_menu(6)    end
        when 20136.click with pc.getqf("pet_index") == 6 begin    show_pet_menu(6)    end
        when 20137.click with pc.getqf("pet_index") == 6 begin    show_pet_menu(6)    end
        when 20138.click with pc.getqf("pet_index") == 7 begin    show_pet_menu(7)    end
        when 20139.click with pc.getqf("pet_index") == 7 begin    show_pet_menu(7)    end
        when 20140.click with pc.getqf("pet_index") == 7 begin    show_pet_menu(7)    end
        when 20141.click with pc.getqf("pet_index") == 8 begin    show_pet_menu(8)    end
        when 20142.click with pc.getqf("pet_index") == 8 begin    show_pet_menu(8)    end
        when 20143.click with pc.getqf("pet_index") == 8 begin    show_pet_menu(8)    end
 
        when kill with pc.getqf("pet_index") != 0 begin
            local i = pc.getqf("pet_index")
            if pc.get_level() > (npc.get_level() + 15) then
                return
            end
            if pc.get_level() <= npc.get_level() then
                PetGiveExp(i, 5)
            elseif pc.get_level() <= (npc.get_level() + 5) then
                PetGiveExp(i, 4)
            elseif pc.get_level() <= (npc.get_level() + 10) then
                PetGiveExp(i, 3)
            elseif pc.get_level() <= (npc.get_level() + 15) then
                PetGiveExp(i, 1)
            end
        end
        
        when logout with pc.getqf("pet_index") != 0 begin
            local i = pc.getqf("pet_index")
            evoca(i, PET_UNSUMMON)
            pc.setqf("pet_index", 0)
        end
        when login with pc.getqf("pet_index") != 0 begin
            local i = pc.getqf("pet_index")
            evoca(i, PET_UNSUMMON)
            pc.setqf("pet_index", 0)
        end
    end
end
 

 

Wgraj nowego questa.

Opublikowano

lepiej zamiast:

[TAB][TAB][TAB]"mall"[TAB][TAB][TAB][TAB][TAB]: self.__InGameShop_Show,
[TAB][TAB][TAB]"buff8"[TAB][TAB][TAB][TAB][TAB]: self.__buff8,
[TAB][TAB][TAB]"buff9"[TAB][TAB][TAB][TAB][TAB]: self.__buff9,
[TAB][TAB][TAB]"buff10"[TAB][TAB][TAB][TAB]: self.__buff10,
[TAB][TAB][TAB]"buff11"[TAB][TAB][TAB][TAB]: self.__buff11,
[TAB][TAB][TAB]"buff12"[TAB][TAB][TAB][TAB]: self.__buff12,
[TAB][TAB][TAB]"buff13"[TAB][TAB][TAB][TAB]: self.__buff13,
[TAB][TAB][TAB]"buff14"[TAB][TAB][TAB][TAB]: self.__buff14,
[TAB][TAB][TAB]"buff15"[TAB][TAB][TAB][TAB]: self.__buff15,
 

dać :

[TAB][TAB][TAB]"mall"[TAB][TAB][TAB][TAB][TAB]: self.__InGameShop_Show,
[TAB][TAB][TAB]"buff8"[TAB][TAB][TAB][TAB][TAB]: self.__buff(8),
[TAB][TAB][TAB]"buff9"[TAB][TAB][TAB][TAB][TAB]: self.__buff(9),
[TAB][TAB][TAB]"buff10"[TAB][TAB][TAB][TAB]: self.__buff(10),
[TAB][TAB][TAB]"buff11"[TAB][TAB][TAB][TAB]: self.__buff(11),
[TAB][TAB][TAB]"buff12"[TAB][TAB][TAB][TAB]: self.__buff(12),
[TAB][TAB][TAB]"buff13"[TAB][TAB][TAB][TAB]: self.__buff(13),
[TAB][TAB][TAB]"buff14"[TAB][TAB][TAB][TAB]: self.__buff(14),
[TAB][TAB][TAB]"buff15"[TAB][TAB][TAB][TAB]: self.__buff(15),
 
 

i zamiast 

 

 

 

# Buff
[TAB]def __buff8(self):
[TAB][TAB]net.SendChatPacket("(b8)")
[TAB]def __buff9(self):
[TAB][TAB]net.SendChatPacket("(b9)")
[TAB]def __buff10(self):
[TAB][TAB]net.SendChatPacket("(b10)")
[TAB]def __buff11(self):
[TAB][TAB]net.SendChatPacket("(b11)")
[TAB]def __buff12(self):
[TAB][TAB]net.SendChatPacket("(b12)")
[TAB]def __buff13(self):
[TAB][TAB]net.SendChatPacket("(b13)")
[TAB]def __buff14(self):
[TAB][TAB]net.SendChatPacket("(b14)")
[TAB]def __buff15(self):
[TAB][TAB]net.SendChatPacket("(b15)")
# End Buff
 
to 

 

[TAB]def __buff(self, nr):
[TAB][TAB]net.SendChatPacket("(b"+ nr +")")

 

Jak się chcesz bawić w uproszczanie to łatwiej już:

Group buff_pet1				
{				
	Vnum	itemVnum		
	type	ATTR		
	effect	"d:\ymir work\effect\etc\buff\buff_pet1.mse"
}		
I tylko pakujesz klienta,

50596142255057180250.png

  • 3 lata później...
  • 2 tygodnie później...
  • Ups... zablokował(a) ten temat

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...