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

[Pytanie]Bugi Almanti


Rekomendowane odpowiedzi

Opublikowano

Wiecie moze jakie są bugi w plikach almantii?

Jak narazie znalałem bug w quescie z petami otóz bije sobie w m1 stworki i bije a petowy exp nie leci:)

Tutaj Quest:

-- ID PETÓW --
-- 1. RENIFEREK - 20126 - 11
-- 2. AZRAELUŚ - 20129 - 12
-- 3. PIESEK - 20132 - 13
-- 4. LEW - 20135 - 14
-- 5. ŚWINKA - 20138 - 15
-- 6. TYGRYSEK - 20141 - 16 
-- 7. FENIKS - 20144 - 17
-- 8. LODOWY FENIKS - 20147 - 18
-- NEW: 20150-74

	-- <Item vnum="85001" name="Reniferek" gb2312name="Reniferek" type="18" subtype="10" weight="0" size="1" antiflag="128" flag="0" wearflag="0" immuneflag="0" gold="0" buy_price="500000" limittype0="0" limitvalue0="0" limittype1="0" limitvalue1="0" applytype0="0" applyvalue0="0" applytype1="0" applyvalue1="0" applytype2="0" applyvalue2="0" value0="0" value1="0" value2="0" value3="0" value4="0" value5="0" socket0="0" socket1="64928" socket2="127" socket3="65008" socket4="21631" socket5="4855" refine_vnum="0" refine_set="0" magic_pct="0" specular="0" socket_pct="0" />
	-- <Item vnum="85002" name="Azraeluś " gb2312name="Azraeluś " type="18" subtype="10" weight="0" size="1" antiflag="128" flag="0" wearflag="0" immuneflag="0" gold="0" buy_price="500000" limittype0="0" limitvalue0="0" limittype1="0" limitvalue1="0" applytype0="0" applyvalue0="0" applytype1="0" applyvalue1="0" applytype2="0" applyvalue2="0" value0="0" value1="0" value2="0" value3="0" value4="0" value5="0" socket0="0" socket1="64928" socket2="127" socket3="65008" socket4="21631" socket5="4855" refine_vnum="0" refine_set="0" magic_pct="0" specular="0" socket_pct="0" />
	-- <Item vnum="85003" name="Piesek" gb2312name="Piesek" type="18" subtype="10" weight="0" size="1" antiflag="128" flag="0" wearflag="0" immuneflag="0" gold="0" buy_price="500000" limittype0="0" limitvalue0="0" limittype1="0" limitvalue1="0" applytype0="0" applyvalue0="0" applytype1="0" applyvalue1="0" applytype2="0" applyvalue2="0" value0="0" value1="0" value2="0" value3="0" value4="0" value5="0" socket0="0" socket1="64928" socket2="127" socket3="65008" socket4="21631" socket5="4855" refine_vnum="0" refine_set="0" magic_pct="0" specular="0" socket_pct="0" />
	-- <Item vnum="85004" name="Lewek" gb2312name="Lewek" type="18" subtype="10" weight="0" size="1" antiflag="128" flag="0" wearflag="0" immuneflag="0" gold="0" buy_price="500000" limittype0="0" limitvalue0="0" limittype1="0" limitvalue1="0" applytype0="0" applyvalue0="0" applytype1="0" applyvalue1="0" applytype2="0" applyvalue2="0" value0="0" value1="0" value2="0" value3="0" value4="0" value5="0" socket0="0" socket1="64928" socket2="127" socket3="65008" socket4="21631" socket5="4855" refine_vnum="0" refine_set="0" magic_pct="0" specular="0" socket_pct="0" />
	-- <Item vnum="85005" name="Świnka" gb2312name="Świnka" type="18" subtype="10" weight="0" size="1" antiflag="128" flag="0" wearflag="0" immuneflag="0" gold="0" buy_price="500000" limittype0="0" limitvalue0="0" limittype1="0" limitvalue1="0" applytype0="0" applyvalue0="0" applytype1="0" applyvalue1="0" applytype2="0" applyvalue2="0" value0="0" value1="0" value2="0" value3="0" value4="0" value5="0" socket0="0" socket1="64928" socket2="127" socket3="65008" socket4="21631" socket5="4855" refine_vnum="0" refine_set="0" magic_pct="0" specular="0" socket_pct="0" />
	-- <Item vnum="85006" name="Tygrysek" gb2312name="Tygrysek" type="18" subtype="10" weight="0" size="1" antiflag="128" flag="0" wearflag="0" immuneflag="0" gold="0" buy_price="500000" limittype0="0" limitvalue0="0" limittype1="0" limitvalue1="0" applytype0="0" applyvalue0="0" applytype1="0" applyvalue1="0" applytype2="0" applyvalue2="0" value0="0" value1="0" value2="0" value3="0" value4="0" value5="0" socket0="0" socket1="64928" socket2="127" socket3="65008" socket4="21631" socket5="4855" refine_vnum="0" refine_set="0" magic_pct="0" specular="0" socket_pct="0" />
	-- <Item vnum="85007" name="Ognisty Feniks" gb2312name="Ognisty Feniks" type="18" subtype="10" weight="0" size="1" antiflag="128" flag="0" wearflag="0" immuneflag="0" gold="0" buy_price="500000" limittype0="0" limitvalue0="0" limittype1="0" limitvalue1="0" applytype0="0" applyvalue0="0" applytype1="0" applyvalue1="0" applytype2="0" applyvalue2="0" value0="0" value1="0" value2="0" value3="0" value4="0" value5="0" socket0="0" socket1="64928" socket2="127" socket3="65008" socket4="21631" socket5="4855" refine_vnum="0" refine_set="0" magic_pct="0" specular="0" socket_pct="0" />
	-- <Item vnum="85008" name="Lodowy Feniks" gb2312name="Lodowy Feniks" type="18" subtype="10" weight="0" size="1" antiflag="128" flag="0" wearflag="0" immuneflag="0" gold="0" buy_price="500000" limittype0="0" limitvalue0="0" limittype1="0" limitvalue1="0" applytype0="0" applyvalue0="0" applytype1="0" applyvalue1="0" applytype2="0" applyvalue2="0" value0="0" value1="0" value2="0" value3="0" value4="0" value5="0" socket0="0" socket1="64928" socket2="127" socket3="65008" socket4="21631" socket5="4855" refine_vnum="0" refine_set="0" magic_pct="0" specular="0" socket_pct="0" />


quest petsystemik begin
	state start begin
		when 38050.use begin
			say_size(350, 375)
			say_title("Skrzynia Zwierzaka")
			say("Wybierz sobie zwierzątko, które będzie Ci towarzyszyć:")
			local s = select("Reniferek", "Azraeluś ", "Piesek", "Lwiątko", "Świnka", "Tygrysek", "Ognisty Feniks", "Lodowy Feniks", "Zamknij")
			if s == 1 then
				pc.give_item2(85001, 1)
				pc.remove_item(38050, 1)
			elseif s == 2 then
				pc.give_item2(85002, 1)
				pc.remove_item(38050, 1)
			elseif s == 3 then
				pc.give_item2(85003, 1)
				pc.remove_item(38050, 1)
			elseif s == 4 then
				pc.give_item2(85004, 1)
				pc.remove_item(38050, 1)
			elseif s == 5 then
				pc.give_item2(85005, 1)
				pc.remove_item(38050, 1)
			elseif s == 6 then
				pc.give_item2(85006, 1)
				pc.remove_item(38050, 1)
			elseif s == 7 then
				pc.give_item2(85007, 1)
				pc.remove_item(38050, 1)
			elseif s == 8 then
				pc.give_item2(85008, 1)
				pc.remove_item(38050, 1)
			end		
		end
		when 50053.use begin
			if pc.getqf("horselvl") < 20 then
				pc.setqf("horselvl", 20)
			end
			syschat("<Informacja> Koń został przywołany. ")
			if pc.getqf("horselvl") == 20 then
			if pc.is_guild_master() then
					pc.mount(20186, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20185, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20184, 200000)
			end
			elseif pc.getqf("horselvl") == 21 then
				if pc.is_guild_master() then
					pc.mount(20189, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20188, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20187, 200000)
				end
			elseif pc.getqf("horselvl") == 22 then
				if pc.is_guild_master() then
					pc.mount(20189, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20188, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20187, 200000)
				end
			elseif pc.getqf("horselvl") == 23 then
				if pc.is_guild_master() then
					pc.mount(20206, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20202, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20210, 200000)
				end
			elseif pc.getqf("horselvl") == 24 then
				if pc.is_guild_master() then
					pc.mount(20206, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20202, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20210, 200000)
				end
			elseif pc.getqf("horselvl") == 25 then
				if pc.is_guild_master() then
					pc.mount(20205, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20201, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20209, 200000)
				end
			elseif pc.getqf("horselvl") == 26 then
				if pc.is_guild_master() then
					pc.mount(20205, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20201, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20209, 200000)
				end
			elseif pc.getqf("horselvl") == 27 then
				if pc.is_guild_master() then
					pc.mount(20207, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20203, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20211, 200000)
				end
			elseif pc.getqf("horselvl") == 28 then
				if pc.is_guild_master() then
					pc.mount(20207, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20203, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20211, 200000)
				end
			elseif pc.getqf("horselvl") == 29 then
				if pc.is_guild_master() then
					pc.mount(20208, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20204, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20212, 200000)
				end
			elseif pc.getqf("horselvl") == 30 then
				if pc.is_guild_master() then
					pc.mount(20208, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20204, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20212, 200000)
				end
			end
		end
		when 20349.chat."Trening Konia" with pc.getqf("horselvl") < 30 begin
			say_title("Stajenny:")
			say("Witaj,")
			say("Chciałbyś polepszyć poziom swojego konia?")
			say("Nic trudnego! Wystarczy, że przyniesiesz mi")
			say("odpowiednią ilość medali konnych i pieniędzy.")
			say("Aktualnie posiadasz "..pc.getqf("horselvl").." poziom konia.")
			say_reward("Wymagania na "..(pc.getqf("horselvl")+1).." poziom:")
			if pc.getqf("horselvl") == 20 then
				say("Medale Konne: 1")
				say("Yang: 10.000.000")
				say("Szansa Pomyślnego Treningu: 100%")
			elseif pc.getqf("horselvl") == 21 then
				say("Medale Konne: 2")
				say("Yang: 20.000.000")
				say("Szansa Pomyślnego Treningu: 90%")
			elseif pc.getqf("horselvl") == 22 then
				say("Medale Konne: 3")
				say("Yang: 30.000.000")
				say("Szansa Pomyślnego Treningu: 80%")
			elseif pc.getqf("horselvl") == 23 then
				say("Medale Konne: 4")
				say("Yang: 40.000.000")
				say("Szansa Pomyślnego Treningu: 70%")
			elseif pc.getqf("horselvl") == 24 then
				say("Medale Konne: 5")
				say("Yang: 50.000.000")
				say("Szansa Pomyślnego Treningu: 60%")
			elseif pc.getqf("horselvl") == 25 then
				say("Medale Konne: 6")
				say("Yang: 60.000.000")
				say("Szansa Pomyślnego Treningu: 50%")
			elseif pc.getqf("horselvl") == 26 then
				say("Medale Konne: 7")
				say("Yang: 70.000.000")
				say("Szansa Pomyślnego Treningu: 40%")
			elseif pc.getqf("horselvl") == 27 then
				say("Medale Konne: 8")
				say("Yang: 80.000.000")
				say("Szansa Pomyślnego Treningu: 30%")
			elseif pc.getqf("horselvl") == 28 then
				say("Medale Konne: 9")
				say("Yang: 90.000.000")
				say("Szansa Pomyślnego Treningu: 20%")
			elseif pc.getqf("horselvl") == 29 then
				say("Medale Konne: 10")
				say("Yang: 100.000.000")
				say("Szansa Pomyślnego Treningu: 10%")
			end
			local sstajenny = select("Chcę rozpocząć trening!", "Dzięki, nie skorzystam.")
			if sstajenny == 1 then
				if pc.getqf("horselvl") == 20 then
					if pc.count_item(50050) < 1 then
						syschat("<Informacja> Nie posiadasz odpowiedniej ilości medali konnych!")
					elseif pc.money < 10000000 then
						syschat("<Informacja> Nie posiadasz odpowiedniej ilości pieniędzy!")
					else
						pc.remove_item(50050, 1)
						pc.changemoney(-10000000)
						pc.setqf("horselvl", 21)
						syschat("<Informacja> Trening konia zakończył się powodzeniem!")
					end
				elseif pc.getqf("horselvl") == 21 then
					if pc.count_item(50050) < 2 then
						syschat("<Informacja> Nie posiadasz odpowiedniej ilości medali konnych!")
					elseif pc.money < 20000000 then
						syschat("<Informacja> Nie posiadasz odpowiedniej ilości pieniędzy!")
					else
						local szansah22 = math.random(1, 100)
						if szansah22 <= 90 then
							pc.remove_item(50050, 2)
							pc.changemoney(-20000000)
							pc.setqf("horselvl", 22)
							syschat("<Informacja> Trening konia zakończył się powodzeniem!")
						else
							pc.remove_item(50050, 2)
							pc.changemoney(-20000000)
							syschat("<Informacja> Trening konia zakończył się porażką!")
						end
					end
				elseif pc.getqf("horselvl") == 22 then
					if pc.count_item(50050) < 3 then
						syschat("<Informacja> Nie posiadasz odpowiedniej ilości medali konnych!")
					elseif pc.money < 30000000 then
						syschat("<Informacja> Nie posiadasz odpowiedniej ilości pieniędzy!")
					else
						local szansah23 = math.random(1, 100)
						if szansah23 <= 80 then
							pc.remove_item(50050, 3)
							pc.changemoney(-30000000)
							pc.setqf("horselvl", 23)
							syschat("<Informacja> Trening konia zakończył się powodzeniem!")
						else
							pc.remove_item(50050, 3)
							pc.changemoney(-30000000)
							syschat("<Informacja> Trening konia zakończył się porażką!")
						end
					end
				elseif pc.getqf("horselvl") == 23 then
					if pc.count_item(50050) < 4 then
						syschat("<Informacja> Nie posiadasz odpowiedniej ilości medali konnych!")
					elseif pc.money < 40000000 then
						syschat("<Informacja> Nie posiadasz odpowiedniej ilości pieniędzy!")
					else
						local szansah24 = math.random(1, 100)
						if szansah24 <= 70 then
							pc.remove_item(50050, 4)
							pc.changemoney(-40000000)
							pc.setqf("horselvl", 24)
							syschat("<Informacja> Trening konia zakończył się powodzeniem!")
						else
							pc.remove_item(50050, 4)
							pc.changemoney(-40000000)
							syschat("<Informacja> Trening konia zakończył się porażką!")
						end
					end
				elseif pc.getqf("horselvl") == 24 then
					if pc.count_item(50050) < 5 then
						syschat("<Informacja> Nie posiadasz odpowiedniej ilości medali konnych!")
					elseif pc.money < 50000000 then
						syschat("<Informacja> Nie posiadasz odpowiedniej ilości pieniędzy!")
					else
						local szansah25 = math.random(1, 100)
						if szansah25 <= 60 then
							pc.remove_item(50050, 5)
							pc.changemoney(-50000000)
							pc.setqf("horselvl", 25)
							syschat("<Informacja> Trening konia zakończył się powodzeniem!")
						else
							pc.remove_item(50050, 5)
							pc.changemoney(-50000000)
							syschat("<Informacja> Trening konia zakończył się porażką!")
						end
					end
				elseif pc.getqf("horselvl") == 25 then
					if pc.count_item(50050) < 6 then
						syschat("<Informacja> Nie posiadasz odpowiedniej ilości medali konnych!")
					elseif pc.money < 60000000 then
						syschat("<Informacja> Nie posiadasz odpowiedniej ilości pieniędzy!")
					else
						local szansah26 = math.random(1, 100)
						if szansah26 <= 50 then
							pc.remove_item(50050, 6)
							pc.changemoney(-60000000)
							pc.setqf("horselvl", 26)
							syschat("<Informacja> Trening konia zakończył się powodzeniem!")
						else
							pc.remove_item(50050, 6)
							pc.changemoney(-60000000)
							syschat("<Informacja> Trening konia zakończył się porażką!")
						end
					end
				elseif pc.getqf("horselvl") == 26 then
					if pc.count_item(50050) < 7 then
						syschat("<Informacja> Nie posiadasz odpowiedniej ilości medali konnych!")
					elseif pc.money < 70000000 then
						syschat("<Informacja> Nie posiadasz odpowiedniej ilości pieniędzy!")
					else
						local szansah27 = math.random(1, 100)
						if szansah27 <= 40 then
							pc.remove_item(50050, 7)
							pc.changemoney(-70000000)
							pc.setqf("horselvl", 27)
							syschat("<Informacja> Trening konia zakończył się powodzeniem!")
						else
							pc.remove_item(50050, 7)
							pc.changemoney(-70000000)
							syschat("<Informacja> Trening konia zakończył się porażką!")
						end
					end
				elseif pc.getqf("horselvl") == 27 then
					if pc.count_item(50050) < 8 then
						syschat("<Informacja> Nie posiadasz odpowiedniej ilości medali konnych!")
					elseif pc.money < 80000000 then
						syschat("<Informacja> Nie posiadasz odpowiedniej ilości pieniędzy!")
					else
						local szansah28 = math.random(1, 100)
						if szansah28 <= 30 then
							pc.remove_item(50050, 8)
							pc.changemoney(-80000000)
							pc.setqf("horselvl", 28)
							syschat("<Informacja> Trening konia zakończył się powodzeniem!")
						else
							pc.remove_item(50050, 8)
							pc.changemoney(-80000000)
							syschat("<Informacja> Trening konia zakończył się porażką!")
						end
					end
				elseif pc.getqf("horselvl") == 28 then
					if pc.count_item(50050) < 9 then
						syschat("<Informacja> Nie posiadasz odpowiedniej ilości medali konnych!")
					elseif pc.money < 90000000 then
						syschat("<Informacja> Nie posiadasz odpowiedniej ilości pieniędzy!")
					else
						local szansah29 = math.random(1, 100)
						if szansah29 <= 20 then
							pc.remove_item(50050, 9)
							pc.changemoney(-90000000)
							pc.setqf("horselvl", 29)
							syschat("<Informacja> Trening konia zakończył się powodzeniem!")
						else
							pc.remove_item(50050, 9)
							pc.changemoney(-90000000)
							syschat("<Informacja> Trening konia zakończył się porażką!")
						end
					end
				elseif pc.getqf("horselvl") == 29 then
					if pc.count_item(50050) < 10 then
						syschat("<Informacja> Nie posiadasz odpowiedniej ilości medali konnych!")
					elseif pc.money < 100000000 then
						syschat("<Informacja> Nie posiadasz odpowiedniej ilości pieniędzy!")
					else
						local szansah30 = math.random(1, 100)
						if szansah30 <= 10 then
							pc.remove_item(50050, 10)
							pc.changemoney(-100000000)
							pc.setqf("horselvl", 30)
							syschat("<Informacja> Trening konia zakończył się powodzeniem!")
						else
							pc.remove_item(50050, 10)
							pc.changemoney(-100000000)
							syschat("<Informacja> Trening konia zakończył się porażką!")
						end
					end
				end
			end
		end
		
		when kill with npc.get_race() >= 8024 and npc.get_race() < 8028 begin
			if pc.getqf("horselvl") == 22 then
				local szansa1 = number(1, 100)
				if szansa1 <= 4 then
					pc.give_item2(71114)
				end
				local szansa2 = number(1, 100)
				if szansa2 <= 4 then
					pc.give_item2(71116)
				end
				local szansa3 = number(1, 100)
				if szansa3 <= 4 then
					pc.give_item2(71118)
				end
				local szansa4 = number(1, 100)
				if szansa4 <= 4 then
					pc.give_item2(71120)
				end
			elseif pc.getqf("horselvl") == 23 then
				local szansa1 = number(1, 100)
				if szansa1 <= 4 then
					pc.give_item2(71114)
				end
				local szansa2 = number(1, 100)
				if szansa2 <= 4 then
					pc.give_item2(71116)
				end
				local szansa3 = number(1, 100)
				if szansa3 <= 4 then
					pc.give_item2(71118)
				end
				local szansa4 = number(1, 100)
				if szansa4 <= 4 then
					pc.give_item2(71120)
				end
				local szansa5 = number(1, 100)
				if szansa5 <= 4 then
					pc.give_item2(71124)
				end
			elseif pc.getqf("horselvl") == 24 then
				local szansa1 = number(1, 100)
				if szansa1 <= 4 then
					pc.give_item2(71114)
				end
				local szansa2 = number(1, 100)
				if szansa2 <= 4 then
					pc.give_item2(71116)
				end
				local szansa3 = number(1, 100)
				if szansa3 <= 4 then
					pc.give_item2(71118)
				end
				local szansa4 = number(1, 100)
				if szansa4 <= 4 then
					pc.give_item2(71120)
				end
				local szansa5 = number(1, 100)
				if szansa5 <= 4 then
					pc.give_item2(71124)
				end
			elseif pc.getqf("horselvl") == 25 then
				local szansa1 = number(1, 100)
				if szansa1 <= 4 then
					pc.give_item2(71114)
				end
				local szansa2 = number(1, 100)
				if szansa2 <= 4 then
					pc.give_item2(71116)
				end
				local szansa3 = number(1, 100)
				if szansa3 <= 4 then
					pc.give_item2(71118)
				end
				local szansa4 = number(1, 100)
				if szansa4 <= 4 then
					pc.give_item2(71120)
				end
				local szansa5 = number(1, 100)
				if szansa5 <= 4 then
					pc.give_item2(71124)
				end
				local szansa6 = number(1, 100)
				if szansa6 <= 3 then
					pc.give_item2(71137)
				end
				local szansa7 = number(1, 100)
				if szansa7 <= 3 then
					pc.give_item2(71138)
				end
				local szansa8 = number(1, 100)
				if szansa8 <= 3 then
					pc.give_item2(71139)
				end
			elseif pc.getqf("horselvl") == 26 then
				local szansa1 = number(1, 100)
				if szansa1 <= 4 then
					pc.give_item2(71114)
				end
				local szansa2 = number(1, 100)
				if szansa2 <= 4 then
					pc.give_item2(71116)
				end
				local szansa3 = number(1, 100)
				if szansa3 <= 4 then
					pc.give_item2(71118)
				end
				local szansa4 = number(1, 100)
				if szansa4 <= 4 then
					pc.give_item2(71120)
				end
				local szansa5 = number(1, 100)
				if szansa5 <= 4 then
					pc.give_item2(71124)
				end
				local szansa6 = number(1, 100)
				if szansa6 <= 3 then
					pc.give_item2(71137)
				end
				local szansa7 = number(1, 100)
				if szansa7 <= 3 then
					pc.give_item2(71138)
				end
				local szansa8 = number(1, 100)
				if szansa8 <= 3 then
					pc.give_item2(71139)
				end
			elseif pc.getqf("horselvl") == 27 then
				local szansa1 = number(1, 100)
				if szansa1 <= 4 then
					pc.give_item2(71114)
				end
				local szansa2 = number(1, 100)
				if szansa2 <= 4 then
					pc.give_item2(71116)
				end
				local szansa3 = number(1, 100)
				if szansa3 <= 4 then
					pc.give_item2(71118)
				end
				local szansa4 = number(1, 100)
				if szansa4 <= 4 then
					pc.give_item2(71120)
				end
				local szansa5 = number(1, 100)
				if szansa5 <= 4 then
					pc.give_item2(71124)
				end
				local szansa6 = number(1, 100)
				if szansa6 <= 3 then
					pc.give_item2(71137)
				end
				local szansa7 = number(1, 100)
				if szansa7 <= 3 then
					pc.give_item2(71138)
				end
				local szansa8 = number(1, 100)
				if szansa8 <= 3 then
					pc.give_item2(71139)
				end
				local szansa9 = number(1, 100)
				if szansa9 <= 3 then
					pc.give_item2(71140)
				end
				local szansa10 = number(1, 100)
				if szansa10 <= 3 then
					pc.give_item2(71141)
				end
				local szansa11 = number(1, 100)
				if szansa11 <= 3 then
					pc.give_item2(71142)
				end
			elseif pc.getqf("horselvl") == 28 then
				local szansa1 = number(1, 100)
				if szansa1 <= 4 then
					pc.give_item2(71114)
				end
				local szansa2 = number(1, 100)
				if szansa2 <= 4 then
					pc.give_item2(71116)
				end
				local szansa3 = number(1, 100)
				if szansa3 <= 4 then
					pc.give_item2(71118)
				end
				local szansa4 = number(1, 100)
				if szansa4 <= 4 then
					pc.give_item2(71120)
				end
				local szansa5 = number(1, 100)
				if szansa5 <= 4 then
					pc.give_item2(71124)
				end
				local szansa6 = number(1, 100)
				if szansa6 <= 3 then
					pc.give_item2(71137)
				end
				local szansa7 = number(1, 100)
				if szansa7 <= 3 then
					pc.give_item2(71138)
				end
				local szansa8 = number(1, 100)
				if szansa8 <= 3 then
					pc.give_item2(71139)
				end
				local szansa9 = number(1, 100)
				if szansa9 <= 3 then
					pc.give_item2(71140)
				end
				local szansa10 = number(1, 100)
				if szansa10 <= 3 then
					pc.give_item2(71141)
				end
				local szansa11 = number(1, 100)
				if szansa11 <= 3 then
					pc.give_item2(71142)
				end
			elseif pc.getqf("horselvl") == 29 then
				local szansa1 = number(1, 100)
				if szansa1 <= 4 then
					pc.give_item2(71114)
				end
				local szansa2 = number(1, 100)
				if szansa2 <= 4 then
					pc.give_item2(71116)
				end
				local szansa3 = number(1, 100)
				if szansa3 <= 4 then
					pc.give_item2(71118)
				end
				local szansa4 = number(1, 100)
				if szansa4 <= 4 then
					pc.give_item2(71120)
				end
				local szansa5 = number(1, 100)
				if szansa5 <= 4 then
					pc.give_item2(71124)
				end
				local szansa6 = number(1, 100)
				if szansa6 <= 3 then
					pc.give_item2(71137)
				end
				local szansa7 = number(1, 100)
				if szansa7 <= 3 then
					pc.give_item2(71138)
				end
				local szansa8 = number(1, 100)
				if szansa8 <= 3 then
					pc.give_item2(71139)
				end
				local szansa9 = number(1, 100)
				if szansa9 <= 3 then
					pc.give_item2(71140)
				end
				local szansa10 = number(1, 100)
				if szansa10 <= 3 then
					pc.give_item2(71141)
				end
				local szansa11 = number(1, 100)
				if szansa11 <= 3 then
					pc.give_item2(71142)
				end
				local szansa12 = number(1, 100)
				if szansa12 <= 3 then
					pc.give_item2(52091)
				end
				local szansa13 = number(1, 100)
				if szansa13 <= 3 then
					pc.give_item2(52094)
				end
			elseif pc.getqf("horselvl") == 30 then
				local szansa1 = number(1, 100)
				if szansa1 <= 4 then
					pc.give_item2(71114)
				end
				local szansa2 = number(1, 100)
				if szansa2 <= 4 then
					pc.give_item2(71116)
				end
				local szansa3 = number(1, 100)
				if szansa3 <= 4 then
					pc.give_item2(71118)
				end
				local szansa4 = number(1, 100)
				if szansa4 <= 4 then
					pc.give_item2(71120)
				end
				local szansa5 = number(1, 100)
				if szansa5 <= 4 then
					pc.give_item2(71124)
				end
				local szansa6 = number(1, 100)
				if szansa6 <= 3 then
					pc.give_item2(71137)
				end
				local szansa7 = number(1, 100)
				if szansa7 <= 3 then
					pc.give_item2(71138)
				end
				local szansa8 = number(1, 100)
				if szansa8 <= 3 then
					pc.give_item2(71139)
				end
				local szansa9 = number(1, 100)
				if szansa9 <= 3 then
					pc.give_item2(71140)
				end
				local szansa10 = number(1, 100)
				if szansa10 <= 3 then
					pc.give_item2(71141)
				end
				local szansa11 = number(1, 100)
				if szansa11 <= 3 then
					pc.give_item2(71142)
				end
				local szansa12 = number(1, 100)
				if szansa12 <= 3 then
					pc.give_item2(52091)
				end
				local szansa13 = number(1, 100)
				if szansa13 <= 3 then
					pc.give_item2(52094)
				end
				local szansa14 = number(1, 100)
				if szansa14 <= 3 then
					pc.give_item2(52092)
				end
				local szansa15 = number(1, 100)
				if szansa15 <= 3 then
					pc.give_item2(52095)
				end
				local szansa16 = number(1, 100)
				if szansa16 <= 3 then
					pc.give_item2(52093)
				end
				local szansa17 = number(1, 100)
				if szansa17 <= 3 then
					pc.give_item2(52096)
				end
			end
		end
		when login begin
		affect.remove_collect(pc.getqf("bonuszwierzak1"), pc.getqf("wartosczwierzak1"), 86400)
		affect.remove_collect(pc.getqf("bonuszwierzak2"), pc.getqf("wartosczwierzak2"), 86400)
		affect.remove_collect(pc.getqf("bonuszwierzak3"), pc.getqf("wartosczwierzak3"), 86400)
		end
		when 85001.use begin
		if pc.getqf("pierwszy_pet") == 0 then
			pc.setqf("zwierzak", item.vnum)
			pc.setqf("wartosczwierzak", 1)
			pc.setqf("wartosczwierzak1", 2)
			pc.setqf("wartosczwierzak2", 2)
			pc.setqf("wartosczwierzak3", 2)
			pc.setqf("pierwszy_pet", 1)
			pc.setqf("poziom_zwierzaka", 1)
			horse.summon()
	local pierwszy = {41, 8, 28, 10, 11 }
	local one = number(1, 5)
	local drugi = {12, 14, 13, 23, 24}
	local two = number(1, 5)
	local trzeci = {18, 19, 20, 21, 22}
	local three = number(1, 5)
	pc.setqf("bonuszwierzak1", pierwszy[one])
	pc.setqf("bonuszwierzak2", drugi[two])
	pc.setqf("bonuszwierzak3", trzeci[three])
	horse.set_level(22)
	horse.summon()
		return
				end
		if pc.getqf("zwierzak") >= 1 and pc.getqf("zwierzak") != item.vnum then
		syschat("<Informacja> Nie można przywołać drugiego zwierzaka!")
		syschat("<Informacja> Posiadasz już jednego, kolejny to zbyt duży obowiązek.")
		return
	end
		if pc.getqf("zwierzak") == item.vnum and horse.is_summon()  then
		horse.unsummon()
		syschat("<Informacja> Zwierzak został odwołany.")
		affect.remove_collect(pc.getqf("bonuszwierzak1"), pc.getqf("wartosczwierzak1"), 86400)
		affect.remove_collect(pc.getqf("bonuszwierzak2"), pc.getqf("wartosczwierzak2"), 86400)
		affect.remove_collect(pc.getqf("bonuszwierzak3"), pc.getqf("wartosczwierzak3"), 86400)
		horse.revive()
		return
	end
		if pc.getqf("zwierzak") == item.vnum and not horse.is_summon() and not pc.is_mount()  then
		horse.unsummon()
		horse.set_level(22)
		horse.summon()
		syschat("<Informacja> Zwierzak został przywołany.")
		affect.add_collect(pc.getqf("bonuszwierzak1"), pc.getqf("wartosczwierzak1"), 86400)
		affect.add_collect(pc.getqf("bonuszwierzak2"), pc.getqf("wartosczwierzak2"), 86400)
		affect.add_collect(pc.getqf("bonuszwierzak3"), pc.getqf("wartosczwierzak3"), 86400)
		end
		if pc.getqf("zwierzak") == item.vnum and not horse.is_summon() and pc.is_mount()  then
		pc.unmount()
		horse.unsummon()
		horse.set_level(22)
		horse.summon()
			if pc.getqf("horselvl") < 20 then
				pc.setqf("horselvl", 20)
			end
			syschat("<Informacja> Koń został przywołany. ")
			if pc.getqf("horselvl") == 20 then
			if pc.is_guild_master() then
					pc.mount(20186, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20185, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20184, 200000)
			end
			elseif pc.getqf("horselvl") == 21 then
				if pc.is_guild_master() then
					pc.mount(20189, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20188, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20187, 200000)
				end
			elseif pc.getqf("horselvl") == 22 then
				if pc.is_guild_master() then
					pc.mount(20189, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20188, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20187, 200000)
				end
			elseif pc.getqf("horselvl") == 23 then
				if pc.is_guild_master() then
					pc.mount(20206, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20202, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20210, 200000)
				end
			elseif pc.getqf("horselvl") == 24 then
				if pc.is_guild_master() then
					pc.mount(20206, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20202, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20210, 200000)
				end
			elseif pc.getqf("horselvl") == 25 then
				if pc.is_guild_master() then
					pc.mount(20205, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20201, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20209, 200000)
				end
			elseif pc.getqf("horselvl") == 26 then
				if pc.is_guild_master() then
					pc.mount(20205, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20201, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20209, 200000)
				end
			elseif pc.getqf("horselvl") == 27 then
				if pc.is_guild_master() then
					pc.mount(20207, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20203, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20211, 200000)
				end
			elseif pc.getqf("horselvl") == 28 then
				if pc.is_guild_master() then
					pc.mount(20207, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20203, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20211, 200000)
				end
			elseif pc.getqf("horselvl") == 29 then
				if pc.is_guild_master() then
					pc.mount(20208, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20204, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20212, 200000)
				end
			elseif pc.getqf("horselvl") == 30 then
				if pc.is_guild_master() then
					pc.mount(20208, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20204, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20212, 200000)
				end
			end
		syschat("<Informacja> Zwierzak został przywołany.")
		affect.add_collect(pc.getqf("bonuszwierzak1"), pc.getqf("wartosczwierzak1"), 86400)
		affect.add_collect(pc.getqf("bonuszwierzak2"), pc.getqf("wartosczwierzak2"), 86400)
		affect.add_collect(pc.getqf("bonuszwierzak3"), pc.getqf("wartosczwierzak3"), 86400)
		end
	end
		when 85002.use begin 
		if pc.getqf("pierwszy_pet") == 0 then
			pc.setqf("zwierzak", item.vnum)
			pc.setqf("wartosczwierzak", 1)
			pc.setqf("wartosczwierzak1", 2)
			pc.setqf("wartosczwierzak2", 2)
			pc.setqf("wartosczwierzak3", 2)
			pc.setqf("pierwszy_pet", 1)
			pc.setqf("poziom_zwierzaka", 1)
			horse.summon()
	local pierwszy = {41, 8, 28, 10, 11}
	local one = number(1, 5)
	local drugi = {12, 14, 13, 23, 24}
	local two = number(1, 5)
	local trzeci = {18, 19, 20, 21, 22}
	local three = number(1, 5)
	pc.setqf("bonuszwierzak1", pierwszy[one])
	pc.setqf("bonuszwierzak2", drugi[two])
	pc.setqf("bonuszwierzak3", trzeci[three])
	horse.set_level(23)
	horse.summon()
		return
				end
		if pc.getqf("zwierzak") >= 1 and pc.getqf("zwierzak") != item.vnum then
		syschat("<Informacja> Nie można przywołać drugiego zwierzaka!")
		syschat("<Informacja> Posiadasz już jednego, kolejny to zbyt duży obowiązek.")
		return
	end
		if pc.getqf("zwierzak") == item.vnum and horse.is_summon()  then
		horse.unsummon()
		syschat("<Informacja> Zwierzak został odwołany.")
		affect.remove_collect(pc.getqf("bonuszwierzak1"), pc.getqf("wartosczwierzak1"), 86400)
		affect.remove_collect(pc.getqf("bonuszwierzak2"), pc.getqf("wartosczwierzak2"), 86400)
		affect.remove_collect(pc.getqf("bonuszwierzak3"), pc.getqf("wartosczwierzak3"), 86400)
		horse.revive()
		return
	end
		if pc.getqf("zwierzak") == item.vnum and not horse.is_summon() and not pc.is_mount()  then
		horse.unsummon()
		horse.set_level(23)
		horse.summon()
		syschat("<Informacja> Zwierzak został przywołany.")
		affect.add_collect(pc.getqf("bonuszwierzak1"), pc.getqf("wartosczwierzak1"), 86400)
		affect.add_collect(pc.getqf("bonuszwierzak2"), pc.getqf("wartosczwierzak2"), 86400)
		affect.add_collect(pc.getqf("bonuszwierzak3"), pc.getqf("wartosczwierzak3"), 86400)
		end
		if pc.getqf("zwierzak") == item.vnum and not horse.is_summon() and pc.is_mount()  then
		pc.unmount()
		horse.unsummon()
		horse.set_level(23)
		horse.summon()
		syschat("<Informacja> Zwierzak został przywołany.")
			if pc.getqf("horselvl") < 20 then
				pc.setqf("horselvl", 20)
			end
			syschat("<Informacja> Koń został przywołany. ")
			if pc.getqf("horselvl") == 20 then
			if pc.is_guild_master() then
					pc.mount(20186, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20185, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20184, 200000)
			end
			elseif pc.getqf("horselvl") == 21 then
				if pc.is_guild_master() then
					pc.mount(20189, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20188, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20187, 200000)
				end
			elseif pc.getqf("horselvl") == 22 then
				if pc.is_guild_master() then
					pc.mount(20189, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20188, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20187, 200000)
				end
			elseif pc.getqf("horselvl") == 23 then
				if pc.is_guild_master() then
					pc.mount(20206, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20202, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20210, 200000)
				end
			elseif pc.getqf("horselvl") == 24 then
				if pc.is_guild_master() then
					pc.mount(20206, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20202, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20210, 200000)
				end
			elseif pc.getqf("horselvl") == 25 then
				if pc.is_guild_master() then
					pc.mount(20205, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20201, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20209, 200000)
				end
			elseif pc.getqf("horselvl") == 26 then
				if pc.is_guild_master() then
					pc.mount(20205, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20201, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20209, 200000)
				end
			elseif pc.getqf("horselvl") == 27 then
				if pc.is_guild_master() then
					pc.mount(20207, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20203, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20211, 200000)
				end
			elseif pc.getqf("horselvl") == 28 then
				if pc.is_guild_master() then
					pc.mount(20207, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20203, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20211, 200000)
				end
			elseif pc.getqf("horselvl") == 29 then
				if pc.is_guild_master() then
					pc.mount(20208, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20204, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20212, 200000)
				end
			elseif pc.getqf("horselvl") == 30 then
				if pc.is_guild_master() then
					pc.mount(20208, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20204, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20212, 200000)
				end
			end
		affect.add_collect(pc.getqf("bonuszwierzak1"), pc.getqf("wartosczwierzak1"), 86400)
		affect.add_collect(pc.getqf("bonuszwierzak2"), pc.getqf("wartosczwierzak2"), 86400)
		affect.add_collect(pc.getqf("bonuszwierzak3"), pc.getqf("wartosczwierzak3"), 86400)
		end
	end
		when 85003.use begin 
		if pc.getqf("pierwszy_pet") == 0 then
			pc.setqf("zwierzak", item.vnum)
			pc.setqf("wartosczwierzak", 1)
			pc.setqf("wartosczwierzak1", 2)
			pc.setqf("wartosczwierzak2", 2)
			pc.setqf("wartosczwierzak3", 2)
			pc.setqf("pierwszy_pet", 1)
			pc.setqf("poziom_zwierzaka", 1)
	local pierwszy = {41, 8, 28, 10, 11}
	local one = number(1, 5)
	local drugi = {12, 14, 13, 23, 24}
	local two = number(1, 5)
	local trzeci = {18, 19, 20, 21, 22}
	local three = number(1, 5)
	pc.setqf("bonuszwierzak1", pierwszy[one])
	pc.setqf("bonuszwierzak2", drugi[two])
	pc.setqf("bonuszwierzak3", trzeci[three])
	horse.set_level(24)
	horse.summon()
		return
				end
		if pc.getqf("zwierzak") >= 1 and pc.getqf("zwierzak") != item.vnum then
		syschat("<Informacja> Nie można przywołać drugiego zwierzaka!")
		syschat("<Informacja> Posiadasz już jednego, kolejny to zbyt duży obowiązek.")
		return
	end
		if pc.getqf("zwierzak") == item.vnum and horse.is_summon()  then
		horse.unsummon()
		syschat("<Informacja> Zwierzak został odwołany.")
		affect.remove_collect(pc.getqf("bonuszwierzak1"), pc.getqf("wartosczwierzak1"), 86400)
		affect.remove_collect(pc.getqf("bonuszwierzak2"), pc.getqf("wartosczwierzak2"), 86400)
		affect.remove_collect(pc.getqf("bonuszwierzak3"), pc.getqf("wartosczwierzak3"), 86400)
		horse.revive()
		return
	end
		if pc.getqf("zwierzak") == item.vnum and not horse.is_summon() and not pc.is_mount()  then
		horse.unsummon()
		horse.set_level(24)
		horse.summon()
		syschat("<Informacja> Zwierzak został przywołany.")
		affect.add_collect(pc.getqf("bonuszwierzak1"), pc.getqf("wartosczwierzak1"), 86400)
		affect.add_collect(pc.getqf("bonuszwierzak2"), pc.getqf("wartosczwierzak2"), 86400)
		affect.add_collect(pc.getqf("bonuszwierzak3"), pc.getqf("wartosczwierzak3"), 86400)
		end
		if pc.getqf("zwierzak") == item.vnum and not horse.is_summon() and pc.is_mount()  then
		pc.unmount()
		horse.unsummon()
		horse.set_level(24)
		horse.summon()
		syschat("<Informacja> Zwierzak został przywołany.")
			syschat("<Informacja> Koń został przywołany. ")
			if pc.getqf("horselvl") < 20 then
				pc.setqf("horselvl", 20)
			end
			syschat("<Informacja> Koń został przywołany. ")
			if pc.getqf("horselvl") == 20 then
			if pc.is_guild_master() then
					pc.mount(20186, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20185, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20184, 200000)
			end
			elseif pc.getqf("horselvl") == 21 then
				if pc.is_guild_master() then
					pc.mount(20189, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20188, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20187, 200000)
				end
			elseif pc.getqf("horselvl") == 22 then
				if pc.is_guild_master() then
					pc.mount(20189, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20188, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20187, 200000)
				end
			elseif pc.getqf("horselvl") == 23 then
				if pc.is_guild_master() then
					pc.mount(20206, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20202, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20210, 200000)
				end
			elseif pc.getqf("horselvl") == 24 then
				if pc.is_guild_master() then
					pc.mount(20206, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20202, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20210, 200000)
				end
			elseif pc.getqf("horselvl") == 25 then
				if pc.is_guild_master() then
					pc.mount(20205, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20201, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20209, 200000)
				end
			elseif pc.getqf("horselvl") == 26 then
				if pc.is_guild_master() then
					pc.mount(20205, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20201, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20209, 200000)
				end
			elseif pc.getqf("horselvl") == 27 then
				if pc.is_guild_master() then
					pc.mount(20207, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20203, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20211, 200000)
				end
			elseif pc.getqf("horselvl") == 28 then
				if pc.is_guild_master() then
					pc.mount(20207, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20203, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20211, 200000)
				end
			elseif pc.getqf("horselvl") == 29 then
				if pc.is_guild_master() then
					pc.mount(20208, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20204, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20212, 200000)
				end
			elseif pc.getqf("horselvl") == 30 then
				if pc.is_guild_master() then
					pc.mount(20208, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20204, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20212, 200000)
				end
			end
		affect.add_collect(pc.getqf("bonuszwierzak1"), pc.getqf("wartosczwierzak1"), 86400)
		affect.add_collect(pc.getqf("bonuszwierzak2"), pc.getqf("wartosczwierzak2"), 86400)
		affect.add_collect(pc.getqf("bonuszwierzak3"), pc.getqf("wartosczwierzak3"), 86400)
		end
	end
		when 85004.use begin 
		if pc.getqf("pierwszy_pet") == 0 then
			pc.setqf("zwierzak", item.vnum)
			pc.setqf("wartosczwierzak", 1)
			pc.setqf("wartosczwierzak1", 2)
			pc.setqf("wartosczwierzak2", 2)
			pc.setqf("wartosczwierzak3", 2)
			pc.setqf("pierwszy_pet", 1)
			pc.setqf("poziom_zwierzaka", 1)
	local pierwszy = {41, 8, 28, 10, 11 }
	local one = number(1, 5)
	local drugi = {12, 14, 13, 23, 24}
	local two = number(1, 5)
	local trzeci = {18, 19, 20, 21, 22}
	local three = number(1, 5)
	pc.setqf("bonuszwierzak1", pierwszy[one])
	pc.setqf("bonuszwierzak2", drugi[two])
	pc.setqf("bonuszwierzak3", trzeci[three])
	horse.set_level(25)
	horse.summon()
		return
				end
		if pc.getqf("zwierzak") >= 1 and pc.getqf("zwierzak") != item.vnum then
		syschat("<Informacja> Nie można przywołać drugiego zwierzaka!")
		syschat("<Informacja> Posiadasz już jednego, kolejny to zbyt duży obowiązek.")
		return
	end
		if pc.getqf("zwierzak") == item.vnum and horse.is_summon()  then
		horse.unsummon()
		syschat("<Informacja> Zwierzak został odwołany.")
		affect.remove_collect(pc.getqf("bonuszwierzak1"), pc.getqf("wartosczwierzak1"), 86400)
		affect.remove_collect(pc.getqf("bonuszwierzak2"), pc.getqf("wartosczwierzak2"), 86400)
		affect.remove_collect(pc.getqf("bonuszwierzak3"), pc.getqf("wartosczwierzak3"), 86400)
		horse.revive()
		return
	end
		if pc.getqf("zwierzak") == item.vnum and not horse.is_summon() and not pc.is_mount()  then
		horse.unsummon()
		horse.set_level(25)
		horse.summon()
		syschat("<Informacja> Zwierzak został przywołany.")
		affect.add_collect(pc.getqf("bonuszwierzak1"), pc.getqf("wartosczwierzak1"), 86400)
		affect.add_collect(pc.getqf("bonuszwierzak2"), pc.getqf("wartosczwierzak2"), 86400)
		affect.add_collect(pc.getqf("bonuszwierzak3"), pc.getqf("wartosczwierzak3"), 86400)
		end
		if pc.getqf("zwierzak") == item.vnum and not horse.is_summon() and pc.is_mount()  then
		pc.unmount()
		horse.unsummon()
		horse.set_level(25)
		horse.summon()
		syschat("<Informacja> Zwierzak został przywołany.")
			if pc.getqf("horselvl") < 20 then
				pc.setqf("horselvl", 20)
			end
			syschat("<Informacja> Koń został przywołany. ")
			if pc.getqf("horselvl") == 20 then
			if pc.is_guild_master() then
					pc.mount(20186, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20185, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20184, 200000)
			end
			elseif pc.getqf("horselvl") == 21 then
				if pc.is_guild_master() then
					pc.mount(20189, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20188, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20187, 200000)
				end
			elseif pc.getqf("horselvl") == 22 then
				if pc.is_guild_master() then
					pc.mount(20189, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20188, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20187, 200000)
				end
			elseif pc.getqf("horselvl") == 23 then
				if pc.is_guild_master() then
					pc.mount(20206, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20202, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20210, 200000)
				end
			elseif pc.getqf("horselvl") == 24 then
				if pc.is_guild_master() then
					pc.mount(20206, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20202, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20210, 200000)
				end
			elseif pc.getqf("horselvl") == 25 then
				if pc.is_guild_master() then
					pc.mount(20205, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20201, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20209, 200000)
				end
			elseif pc.getqf("horselvl") == 26 then
				if pc.is_guild_master() then
					pc.mount(20205, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20201, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20209, 200000)
				end
			elseif pc.getqf("horselvl") == 27 then
				if pc.is_guild_master() then
					pc.mount(20207, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20203, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20211, 200000)
				end
			elseif pc.getqf("horselvl") == 28 then
				if pc.is_guild_master() then
					pc.mount(20207, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20203, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20211, 200000)
				end
			elseif pc.getqf("horselvl") == 29 then
				if pc.is_guild_master() then
					pc.mount(20208, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20204, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20212, 200000)
				end
			elseif pc.getqf("horselvl") == 30 then
				if pc.is_guild_master() then
					pc.mount(20208, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20204, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20212, 200000)
				end
			end
		affect.add_collect(pc.getqf("bonuszwierzak1"), pc.getqf("wartosczwierzak1"), 86400)
		affect.add_collect(pc.getqf("bonuszwierzak2"), pc.getqf("wartosczwierzak2"), 86400)
		affect.add_collect(pc.getqf("bonuszwierzak3"), pc.getqf("wartosczwierzak3"), 86400)
		end
	end
		when 85005.use begin 
		if pc.getqf("pierwszy_pet") == 0 then
			pc.setqf("zwierzak", item.vnum)
			pc.setqf("wartosczwierzak", 1)
			pc.setqf("wartosczwierzak1", 2)
			pc.setqf("wartosczwierzak2", 2)
			pc.setqf("wartosczwierzak3", 2)
			pc.setqf("pierwszy_pet", 1)
			pc.setqf("poziom_zwierzaka", 1)
	local pierwszy = {41, 8, 28, 10, 11 }
	local one = number(1, 5)
	local drugi = {12, 14, 13, 23, 24}
	local two = number(1, 5)
	local trzeci = {18, 19, 20, 21, 22}
	local three = number(1, 5)
	pc.setqf("bonuszwierzak1", pierwszy[one])
	pc.setqf("bonuszwierzak2", drugi[two])
	pc.setqf("bonuszwierzak3", trzeci[three])
	horse.set_level(26)
	horse.summon()
		return
				end
		if pc.getqf("zwierzak") >= 1 and pc.getqf("zwierzak") != item.vnum then
		syschat("<Informacja> Nie można przywołać drugiego zwierzaka!")
		syschat("<Informacja> Posiadasz już jednego, kolejny to zbyt duży obowiązek.")
		return
	end
		if pc.getqf("zwierzak") == item.vnum and horse.is_summon()  then
		horse.unsummon()
		syschat("<Informacja> Zwierzak został odwołany.")
		affect.remove_collect(pc.getqf("bonuszwierzak1"), pc.getqf("wartosczwierzak1"), 86400)
		affect.remove_collect(pc.getqf("bonuszwierzak2"), pc.getqf("wartosczwierzak2"), 86400)
		affect.remove_collect(pc.getqf("bonuszwierzak3"), pc.getqf("wartosczwierzak3"), 86400)
		horse.revive()
		return
	end
		if pc.getqf("zwierzak") == item.vnum and not horse.is_summon() and not pc.is_mount()  then
		horse.unsummon()
		horse.set_level(26)
		horse.summon()
		syschat("<Informacja> Zwierzak został przywołany.")
		affect.add_collect(pc.getqf("bonuszwierzak1"), pc.getqf("wartosczwierzak1"), 86400)
		affect.add_collect(pc.getqf("bonuszwierzak2"), pc.getqf("wartosczwierzak2"), 86400)
		affect.add_collect(pc.getqf("bonuszwierzak3"), pc.getqf("wartosczwierzak3"), 86400)
		end
		if pc.getqf("zwierzak") == item.vnum and not horse.is_summon() and pc.is_mount()  then
		pc.unmount()
		horse.unsummon()
		horse.set_level(26)
		horse.summon()
		syschat("<Informacja> Zwierzak został przywołany.")
			if pc.getqf("horselvl") < 20 then
				pc.setqf("horselvl", 20)
			end
			syschat("<Informacja> Koń został przywołany. ")
			if pc.getqf("horselvl") == 20 then
			if pc.is_guild_master() then
					pc.mount(20186, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20185, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20184, 200000)
			end
			elseif pc.getqf("horselvl") == 21 then
				if pc.is_guild_master() then
					pc.mount(20189, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20188, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20187, 200000)
				end
			elseif pc.getqf("horselvl") == 22 then
				if pc.is_guild_master() then
					pc.mount(20189, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20188, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20187, 200000)
				end
			elseif pc.getqf("horselvl") == 23 then
				if pc.is_guild_master() then
					pc.mount(20206, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20202, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20210, 200000)
				end
			elseif pc.getqf("horselvl") == 24 then
				if pc.is_guild_master() then
					pc.mount(20206, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20202, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20210, 200000)
				end
			elseif pc.getqf("horselvl") == 25 then
				if pc.is_guild_master() then
					pc.mount(20205, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20201, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20209, 200000)
				end
			elseif pc.getqf("horselvl") == 26 then
				if pc.is_guild_master() then
					pc.mount(20205, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20201, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20209, 200000)
				end
			elseif pc.getqf("horselvl") == 27 then
				if pc.is_guild_master() then
					pc.mount(20207, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20203, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20211, 200000)
				end
			elseif pc.getqf("horselvl") == 28 then
				if pc.is_guild_master() then
					pc.mount(20207, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20203, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20211, 200000)
				end
			elseif pc.getqf("horselvl") == 29 then
				if pc.is_guild_master() then
					pc.mount(20208, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20204, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20212, 200000)
				end
			elseif pc.getqf("horselvl") == 30 then
				if pc.is_guild_master() then
					pc.mount(20208, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20204, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20212, 200000)
				end
			end
		affect.add_collect(pc.getqf("bonuszwierzak1"), pc.getqf("wartosczwierzak1"), 86400)
		affect.add_collect(pc.getqf("bonuszwierzak2"), pc.getqf("wartosczwierzak2"), 86400)
		affect.add_collect(pc.getqf("bonuszwierzak3"), pc.getqf("wartosczwierzak3"), 86400)
		end
	end
		when 85006.use begin 
		if pc.getqf("pierwszy_pet") == 0 then
			pc.setqf("zwierzak", item.vnum)
			pc.setqf("wartosczwierzak", 1)
			pc.setqf("wartosczwierzak1", 2)
			pc.setqf("wartosczwierzak2", 2)
			pc.setqf("wartosczwierzak3", 2)
			pc.setqf("pierwszy_pet", 1)
			pc.setqf("poziom_zwierzaka", 1)
	local pierwszy = {41, 8, 28, 10, 11 }
	local one = number(1, 5)
	local drugi = {12, 14, 13, 23, 24}
	local two = number(1, 5)
	local trzeci = {18, 19, 20, 21, 22}
	local three = number(1, 5)
	pc.setqf("bonuszwierzak1", pierwszy[one])
	pc.setqf("bonuszwierzak2", drugi[two])
	pc.setqf("bonuszwierzak3", trzeci[three])
	horse.set_level(27)
	horse.summon()
		return
				end
		if pc.getqf("zwierzak") >= 1 and pc.getqf("zwierzak") != item.vnum then
		syschat("<Informacja> Nie można przywołać drugiego zwierzaka!")
		syschat("<Informacja> Posiadasz już jednego, kolejny to zbyt duży obowiązek.")
		return
	end
		if pc.getqf("zwierzak") == item.vnum and horse.is_summon() then
		horse.unsummon()
		syschat("<Informacja> Zwierzak został odwołany.")
		affect.remove_collect(pc.getqf("bonuszwierzak1"), pc.getqf("wartosczwierzak1"), 86400)
		affect.remove_collect(pc.getqf("bonuszwierzak2"), pc.getqf("wartosczwierzak2"), 86400)
		affect.remove_collect(pc.getqf("bonuszwierzak3"), pc.getqf("wartosczwierzak3"), 86400)
		horse.revive()
		return
	end
				if pc.getqf("zwierzak") == item.vnum and not horse.is_summon() and not pc.is_mount()  then
		horse.unsummon()
		horse.set_level(27)
		horse.summon()
		syschat("<Informacja> Zwierzak został przywołany.")
		affect.add_collect(pc.getqf("bonuszwierzak1"), pc.getqf("wartosczwierzak1"), 86400)
		affect.add_collect(pc.getqf("bonuszwierzak2"), pc.getqf("wartosczwierzak2"), 86400)
		affect.add_collect(pc.getqf("bonuszwierzak3"), pc.getqf("wartosczwierzak3"), 86400)
		end
		if pc.getqf("zwierzak") == item.vnum and not horse.is_summon() and pc.is_mount()  then
		pc.unmount()
		horse.unsummon()
		horse.set_level(27)
		horse.summon()
		syschat("<Informacja> Zwierzak został przywołany.")
			if pc.getqf("horselvl") < 20 then
				pc.setqf("horselvl", 20)
			end
			syschat("<Informacja> Koń został przywołany. ")
			if pc.getqf("horselvl") == 20 then
			if pc.is_guild_master() then
					pc.mount(20186, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20185, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20184, 200000)
			end
			elseif pc.getqf("horselvl") == 21 then
				if pc.is_guild_master() then
					pc.mount(20189, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20188, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20187, 200000)
				end
			elseif pc.getqf("horselvl") == 22 then
				if pc.is_guild_master() then
					pc.mount(20189, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20188, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20187, 200000)
				end
			elseif pc.getqf("horselvl") == 23 then
				if pc.is_guild_master() then
					pc.mount(20206, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20202, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20210, 200000)
				end
			elseif pc.getqf("horselvl") == 24 then
				if pc.is_guild_master() then
					pc.mount(20206, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20202, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20210, 200000)
				end
			elseif pc.getqf("horselvl") == 25 then
				if pc.is_guild_master() then
					pc.mount(20205, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20201, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20209, 200000)
				end
			elseif pc.getqf("horselvl") == 26 then
				if pc.is_guild_master() then
					pc.mount(20205, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20201, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20209, 200000)
				end
			elseif pc.getqf("horselvl") == 27 then
				if pc.is_guild_master() then
					pc.mount(20207, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20203, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20211, 200000)
				end
			elseif pc.getqf("horselvl") == 28 then
				if pc.is_guild_master() then
					pc.mount(20207, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20203, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20211, 200000)
				end
			elseif pc.getqf("horselvl") == 29 then
				if pc.is_guild_master() then
					pc.mount(20208, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20204, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20212, 200000)
				end
			elseif pc.getqf("horselvl") == 30 then
				if pc.is_guild_master() then
					pc.mount(20208, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20204, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20212, 200000)
				end
			end
		affect.add_collect(pc.getqf("bonuszwierzak1"), pc.getqf("wartosczwierzak1"), 86400)
		affect.add_collect(pc.getqf("bonuszwierzak2"), pc.getqf("wartosczwierzak2"), 86400)
		affect.add_collect(pc.getqf("bonuszwierzak3"), pc.getqf("wartosczwierzak3"), 86400)
		end
	end
		when 85007.use begin 
		if pc.getqf("pierwszy_pet") == 0 then
			pc.setqf("zwierzak", item.vnum)
			pc.setqf("wartosczwierzak", 1)
			pc.setqf("wartosczwierzak1", 2)
			pc.setqf("wartosczwierzak2", 2)
			pc.setqf("wartosczwierzak3", 2)
			pc.setqf("pierwszy_pet", 1)
			pc.setqf("poziom_zwierzaka", 1)
	local pierwszy = {41, 8, 28, 10, 11 }
	local one = number(1, 5)
	local drugi = {12, 14, 13, 23, 24}
	local two = number(1, 5)
	local trzeci = {18, 19, 20, 21, 22}
	local three = number(1, 5)
	pc.setqf("bonuszwierzak1", pierwszy[one])
	pc.setqf("bonuszwierzak2", drugi[two])
	pc.setqf("bonuszwierzak3", trzeci[three])
	horse.set_level(28)
	horse.summon()
		return
				end
		if pc.getqf("zwierzak") >= 1 and pc.getqf("zwierzak") != item.vnum then
		syschat("<Informacja> Nie można przywołać drugiego zwierzaka!")
		syschat("<Informacja> Posiadasz już jednego, kolejny to zbyt duży obowiązek.")
		return
	end
		if pc.getqf("zwierzak") == item.vnum and horse.is_summon()  then
		horse.unsummon()
		syschat("<Informacja> Zwierzak został odwołany.")
		affect.remove_collect(pc.getqf("bonuszwierzak1"), pc.getqf("wartosczwierzak1"), 86400)
		affect.remove_collect(pc.getqf("bonuszwierzak2"), pc.getqf("wartosczwierzak2"), 86400)
		affect.remove_collect(pc.getqf("bonuszwierzak3"), pc.getqf("wartosczwierzak3"), 86400)
		horse.revive()
		return
	end
		if pc.getqf("zwierzak") == item.vnum and not horse.is_summon() and not pc.is_mount()  then
		horse.unsummon()
		horse.set_level(28)
		horse.summon()
		syschat("<Informacja> Zwierzak został przywołany.")
		affect.add_collect(pc.getqf("bonuszwierzak1"), pc.getqf("wartosczwierzak1"), 86400)
		affect.add_collect(pc.getqf("bonuszwierzak2"), pc.getqf("wartosczwierzak2"), 86400)
		affect.add_collect(pc.getqf("bonuszwierzak3"), pc.getqf("wartosczwierzak3"), 86400)
		end
		if pc.getqf("zwierzak") == item.vnum and not horse.is_summon() and pc.is_mount()  then
		pc.unmount()
		horse.unsummon()
		horse.set_level(28)
		horse.summon()
		syschat("<Informacja> Zwierzak został przywołany.")
			if pc.getqf("horselvl") < 20 then
				pc.setqf("horselvl", 20)
			end
			syschat("<Informacja> Koń został przywołany. ")
			if pc.getqf("horselvl") == 20 then
			if pc.is_guild_master() then
					pc.mount(20186, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20185, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20184, 200000)
			end
			elseif pc.getqf("horselvl") == 21 then
				if pc.is_guild_master() then
					pc.mount(20189, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20188, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20187, 200000)
				end
			elseif pc.getqf("horselvl") == 22 then
				if pc.is_guild_master() then
					pc.mount(20189, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20188, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20187, 200000)
				end
			elseif pc.getqf("horselvl") == 23 then
				if pc.is_guild_master() then
					pc.mount(20206, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20202, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20210, 200000)
				end
			elseif pc.getqf("horselvl") == 24 then
				if pc.is_guild_master() then
					pc.mount(20206, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20202, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20210, 200000)
				end
			elseif pc.getqf("horselvl") == 25 then
				if pc.is_guild_master() then
					pc.mount(20205, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20201, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20209, 200000)
				end
			elseif pc.getqf("horselvl") == 26 then
				if pc.is_guild_master() then
					pc.mount(20205, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20201, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20209, 200000)
				end
			elseif pc.getqf("horselvl") == 27 then
				if pc.is_guild_master() then
					pc.mount(20207, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20203, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20211, 200000)
				end
			elseif pc.getqf("horselvl") == 28 then
				if pc.is_guild_master() then
					pc.mount(20207, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20203, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20211, 200000)
				end
			elseif pc.getqf("horselvl") == 29 then
				if pc.is_guild_master() then
					pc.mount(20208, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20204, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20212, 200000)
				end
			elseif pc.getqf("horselvl") == 30 then
				if pc.is_guild_master() then
					pc.mount(20208, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20204, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20212, 200000)
				end
			end
		affect.add_collect(pc.getqf("bonuszwierzak1"), pc.getqf("wartosczwierzak1"), 86400)
		affect.add_collect(pc.getqf("bonuszwierzak2"), pc.getqf("wartosczwierzak2"), 86400)
		affect.add_collect(pc.getqf("bonuszwierzak3"), pc.getqf("wartosczwierzak3"), 86400)
		end
	end
		when 85008.use begin 
		if pc.getqf("pierwszy_pet") == 0 then
			pc.setqf("zwierzak", item.vnum)
			pc.setqf("wartosczwierzak", 1)
			pc.setqf("wartosczwierzak1", 2)
			pc.setqf("wartosczwierzak2", 2)
			pc.setqf("wartosczwierzak3", 2)
			pc.setqf("pierwszy_pet", 1)
			pc.setqf("poziom_zwierzaka", 1)
	local pierwszy = {41, 8, 28, 10, 11 }
	local one = number(1, 5)
	local drugi = {12, 14, 13, 23, 24}
	local two = number(1, 5)
	local trzeci = {18, 19, 20, 21, 22}
	local three = number(1, 5)
	pc.setqf("bonuszwierzak1", pierwszy[one])
	pc.setqf("bonuszwierzak2", drugi[two])
	pc.setqf("bonuszwierzak3", trzeci[three])
	horse.set_level(29)
	horse.summon()
		return

				end
		if pc.getqf("zwierzak") >= 1 and pc.getqf("zwierzak") != item.vnum then
		syschat("<Informacja> Nie można przywołać drugiego zwierzaka!")
		syschat("<Informacja> Posiadasz już jednego, kolejny to zbyt duży obowiązek.")
		return
	end
		if pc.getqf("zwierzak") == item.vnum and horse.is_summon() then
		horse.unsummon()
		syschat("<Informacja> Zwierzak został odwołany.")
		affect.remove_collect(pc.getqf("bonuszwierzak1"), pc.getqf("wartosczwierzak1"), 86400)
		affect.remove_collect(pc.getqf("bonuszwierzak2"), pc.getqf("wartosczwierzak2"), 86400)
		affect.remove_collect(pc.getqf("bonuszwierzak3"), pc.getqf("wartosczwierzak3"), 86400)
		horse.revive()
		return
	end
		if pc.getqf("zwierzak") == item.vnum and not horse.is_summon() and not pc.is_mount()  then
		horse.unsummon()
		horse.set_level(29)
		horse.summon()
		syschat("<Informacja> Zwierzak został przywołany.")
		affect.add_collect(pc.getqf("bonuszwierzak1"), pc.getqf("wartosczwierzak1"), 86400)
		affect.add_collect(pc.getqf("bonuszwierzak2"), pc.getqf("wartosczwierzak2"), 86400)
		affect.add_collect(pc.getqf("bonuszwierzak3"), pc.getqf("wartosczwierzak3"), 86400)
		end
		if pc.getqf("zwierzak") == item.vnum and not horse.is_summon() and pc.is_mount()  then
		pc.unmount()
		horse.unsummon()
		horse.set_level(29)
		horse.summon()
		syschat("<Informacja> Zwierzak został przywołany.")
			if pc.getqf("horselvl") < 20 then
				pc.setqf("horselvl", 20)
			end
			syschat("<Informacja> Koń został przywołany. ")
			if pc.getqf("horselvl") == 20 then
			if pc.is_guild_master() then
					pc.mount(20186, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20185, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20184, 200000)
			end
			elseif pc.getqf("horselvl") == 21 then
				if pc.is_guild_master() then
					pc.mount(20189, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20188, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20187, 200000)
				end
			elseif pc.getqf("horselvl") == 22 then
				if pc.is_guild_master() then
					pc.mount(20189, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20188, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20187, 200000)
				end
			elseif pc.getqf("horselvl") == 23 then
				if pc.is_guild_master() then
					pc.mount(20206, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20202, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20210, 200000)
				end
			elseif pc.getqf("horselvl") == 24 then
				if pc.is_guild_master() then
					pc.mount(20206, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20202, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20210, 200000)
				end
			elseif pc.getqf("horselvl") == 25 then
				if pc.is_guild_master() then
					pc.mount(20205, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20201, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20209, 200000)
				end
			elseif pc.getqf("horselvl") == 26 then
				if pc.is_guild_master() then
					pc.mount(20205, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20201, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20209, 200000)
				end
			elseif pc.getqf("horselvl") == 27 then
				if pc.is_guild_master() then
					pc.mount(20207, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20203, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20211, 200000)
				end
			elseif pc.getqf("horselvl") == 28 then
				if pc.is_guild_master() then
					pc.mount(20207, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20203, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20211, 200000)
				end
			elseif pc.getqf("horselvl") == 29 then
				if pc.is_guild_master() then
					pc.mount(20208, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20204, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20212, 200000)
				end
			elseif pc.getqf("horselvl") == 30 then
				if pc.is_guild_master() then
					pc.mount(20208, 200000)
			elseif pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20204, 200000)
			elseif not pc.has_guild() and not pc.is_guild_master() then
					pc.mount(20212, 200000)
				end
			end
		affect.add_collect(pc.getqf("bonuszwierzak1"), pc.getqf("wartosczwierzak1"), 86400)
		affect.add_collect(pc.getqf("bonuszwierzak2"), pc.getqf("wartosczwierzak2"), 86400)
		affect.add_collect(pc.getqf("bonuszwierzak3"), pc.getqf("wartosczwierzak3"), 86400)
		end
	end
		when 20120.click or 20121.click or 20122.click or 20123.click or 20124.click or 20125.click or 20126.click or 20127.click or 20128.click or 20129.click or 20130.click or 20131.click or 20132.click or 20133.click or 20134.click or 20135.click or 20136.click or 20137.click or 20138.click or 20139.click or 20140.click or 20141.click or 20142.click or 20144.click or 20143.click with horse.is_summon() begin
		local dos_zwierzak = {
				[0] = { 100000000 },
				[1] = { 1000000000 },
				[2] = { 2000000000 },
				[3] = { 3000000000 },
				[4] = { 4000000000 },
				[5] = { 5000000000 },
				[6] = { 6000000000 },
				[7] = { 7000000000 },
				[8] = { 8000000000 },
				[9] = { 9000000000 },
				[10] = { 10000000000 },
		}
	local dos = math.floor(pc.getqf("exp_zwierzaka")*1000/dos_zwierzak[1][1])
	local level = pc.getqf("poziom_zwierzaka")
	say_title("Menu Zwierzaka:")
	say("Doświadczenie: "..dos.."%")
	say("Poziom: "..level.."/10")
	say("")
	local s=select("Bonusy Zwierzaka","Doświadczenie", "Odeślij Zwierzaka", "Stan Zwierzaka", "Zamknij")
	if s==2 then
	say_title("Menu Zwierzaka:")
	say("Oddawanie doświadczenia:")
	if pc.getqf("oddawaj_exp") == 0 then
	say_reward("<Wyłączone>")
	say("Czy chcesz je włączyć?")
	local w = select("Tak", "Nie")
	if w == 1 then
	say_title("Menu Zwierzaka:")
	say("Włączono oddawanie doświadczenia!")
	pc.setqf("oddawaj_exp", 1)
	return	
	end
	elseif pc.getqf("oddawaj_exp") == 1 then
	say("<Włączone>")
	say_reward("Czy chcesz je wyłączyć?")
	local w = select("Tak", "Nie")
	if w == 1 then
	say_title("Menu Zwierzaka:")
	say("Wyłączono oddawanie doświadczenia!")
	pc.setqf("oddawaj_exp", 0)
	return	
	end
	return
end

end
	if s==5 then
	return
end
	if s==4 then
	say_title("Menu Zwierzaka:")
	say("Aktualna Siła Zwierzaka: "..horse.get_health_pct().."%")
	say("Aktualna Wytrzymałość Zwierzaka: "..horse.get_stamina_pct().."%")
	return
end
	if s==3 then
		affect.remove_collect(pc.getqf("bonuszwierzak1"), pc.getqf("wartosczwierzak1"), 86400)
		affect.remove_collect(pc.getqf("bonuszwierzak2"), pc.getqf("wartosczwierzak2"), 86400)
		affect.remove_collect(pc.getqf("bonuszwierzak3"), pc.getqf("wartosczwierzak3"), 86400)
	horse.unsummon()
	return
	end
	if s==1 then
		local bonus = {
				[3] = { "Witalność " },
				[4] = { "Inteligencja " },
				[5] = { "Siła " },
				[6] = { "Zręczność " },
				[7] = { "Szybkość Ataku" },
				[8] = { "Szybkość Ruchu" },
				[9] = { "Szybkość Zaklęcia" },
				[10] = { "Regeneracja PŻ " },
				[11] = { "Regeneracja PE" },
				[12] = { "Szansa na Otrucie" },
				[13] = { "Szansa na Omdlenie" },
				[14] = { "Szansa na Spowolnienie" },
				[15] = { "Szansa na Krytyka" },
				[16] = { "Szansa na Przeszywke " },
				[17] = { "Silny przeciwko Ludziom" },
				[18] = { "Silny przeciwko Zwierzętom" },
				[19] = { "Silny przeciwko Orkom" },
				[20] = { "Silny przeciwko Mistykom" },
				[21] = { "Silny przeciwko Nieumarłym" },
				[22] = { "Silny przeciwko Diabłom" },
				[23] = { "Obrażenia dodane PŻ " },
				[24] = { "Obrażenia dodane PE " },
				[25] = { "Szansa na Kradzież PE " },
				[26] = { "Szansa na Kradzież PŻ " },
				[28] = { "Szansa na Uniknięcie Strzały " },
				[29] = { "Odporność na Miecze" },
				[30] = { "Odporność na Dwurękę " },
				[31] = { "Odporność na Sztylety" },
				[32] = { "Odporność na Dzwony" },
				[33] = { "Odporność na Wachlarze" },
				[34] = { "Odporność na Strzały" },
				[35] = { "Odporność na Ogień " },
				[36] = { "Odporność na Błyskawice" },
				[37] = { "Odporność na Magie" },
				[39] = { "Szansa na Blok Ciosów" },
				[40] = { "Szansa na Odbicie Ciosu" },
				[41] = { "Odporność na Trucizny" },
		}
	say_title("Menu Zwierzaka:")
	say("1: "..bonus[pc.getqf("bonuszwierzak1")][1].."+"..pc.getqf("wartosczwierzak1"))
	say("2: "..bonus[pc.getqf("bonuszwierzak2")][1].."+"..pc.getqf("wartosczwierzak2"))
	say("3: "..bonus[pc.getqf("bonuszwierzak3")][1].."+"..pc.getqf("wartosczwierzak3"))
	say("")
	local s=select("Zmień Bony", "Rozdaj Statystyki("..pc.getqf("wartoscbonu")..")", "Odejmij Statystyki", "Wyjdź ")
	if s==3 then
	say_title("Menu Zwierzaka:")
	say_reward("Wybierz bonus od którego chcesz odjąć punkt")
	say("1: "..bonus[pc.getqf("bonuszwierzak1")][1].."+"..pc.getqf("wartosczwierzak1"))
	say("2: "..bonus[pc.getqf("bonuszwierzak2")][1].."+"..pc.getqf("wartosczwierzak2"))
	say("3: "..bonus[pc.getqf("bonuszwierzak3")][1].."+"..pc.getqf("wartosczwierzak3"))
		affect.remove_collect(pc.getqf("bonuszwierzak1"), pc.getqf("wartosczwierzak1"), 86400)
		affect.remove_collect(pc.getqf("bonuszwierzak2"), pc.getqf("wartosczwierzak2"), 86400)
		affect.remove_collect(pc.getqf("bonuszwierzak3"), pc.getqf("wartosczwierzak3"), 86400)
	local b = select("Pierwszy Bonus", "Drugi Bonus", "Trzeci Bonus", "Anuluj")
	if b==1 then
	say_title("Menu Zwierzaka:")
	say("Ile punktów chcesz odjąć od bonu(maks.20):")
	local i = input()
	pc.setqf("odejmijbon", i)
	timer("bodejmijbon", 2)
	pc.setqf("wartoscdodanab", 
	return
	end
	if b == 2 then
	say_title("Menu Zwierzaka:")
	say("Ile punktów chcesz odjąć od bonu(maks.20):")
	local i = input()
	pc.setqf("odejmijbon", i)
	timer("bodejmijbon", 2)
	pc.setqf("wartoscdodanab", 
	return
	end
	if b == 3 then
	say_title("Menu Zwierzaka:")
	say("Ile punktów chcesz odjąć od bonu(maks.20):")
	local i = input()
	pc.setqf("odejmijbon", i)
	timer("bodejmijbon", 2)
	pc.setqf("wartoscdodanab", 
	return
	end
end
	if s==2 then
	if pc.getqf("wartoscbonu") == 0 then
	say_title("Menu Zwierzaka:")
	say("Nie posiadasz ani jednego pkt. bonusu!")
	return
	end
	say_title("Menu Zwierzaka:")
	say_reward("Wybierz bonus do którego chcesz dodać punkt")
	say("1.: "..bonus[pc.getqf("bonuszwierzak1")][1].."+"..pc.getqf("wartosczwierzak1"))
	say("2.: "..bonus[pc.getqf("bonuszwierzak2")][1].."+"..pc.getqf("wartosczwierzak2"))
	say("3.: "..bonus[pc.getqf("bonuszwierzak3")][1].."+"..pc.getqf("wartosczwierzak3"))
		affect.remove_collect(pc.getqf("bonuszwierzak1"), pc.getqf("wartosczwierzak1"), 86400)
		affect.remove_collect(pc.getqf("bonuszwierzak2"), pc.getqf("wartosczwierzak2"), 86400)
		affect.remove_collect(pc.getqf("bonuszwierzak3"), pc.getqf("wartosczwierzak3"), 86400)
	local b = select("Pierwszy Bonus", "Drugi Bonus", "Trzeci Bonus", "Anuluj")
	if b == 1 then
	say_title("Menu Zwierzaka:")
	say("Ile punktów statystyk chcesz dodać(maks.20):")
	local i = tonumber(input())
	if i < 20 and i > 0 then
	pc.setqf("rozdajbon", i)
	timer("rozdajbon", 2)
	pc.setqf("wartoscdodana", 
	return
	end
	end
	if b == 2 then
	say_title("Menu Zwierzaka:")
	say("Ile punktów statystyk chcesz dodać(maks.20):")
	local i = tonumber(input())
	if i < 20 and i > 0 then
	pc.setqf("rozdajbon", i)
	timer("rozdajbon", 2)
	pc.setqf("wartoscdodana", 
	return
	end
	end
	if b == 3 then
	say_title("Menu Zwierzaka:")
	say("")
	say("Ile punktów statystyk chcesz dodać(maks.20):")
	local i = tonumber(input())
	if i < 20 and i > 0 then
	pc.setqf("rozdajbon", i)
	timer("rozdajbon", 2)
	pc.setqf("wartoscdodana", 
	return
	end
	end
end
	if s==1 then
	if pc.getqf("pierwsza_zmiana") == 0 then
	say_title("Menu Zwierzaka:")
	say("Możesz zmienić bonusy za pomocą:")
	say_item_vnum(39028)
	pc.setqf("pierwsza_zmiana", 1)
	return
	end
	if pc.getqf("pierwsza_zmiana") == 1 then
	affect.remove_collect(pc.getqf("bonuszwierzak1"), pc.getqf("wartosczwierzak1"), 86400)
	affect.remove_collect(pc.getqf("bonuszwierzak2"), pc.getqf("wartosczwierzak2"), 86400)
	affect.remove_collect(pc.getqf("bonuszwierzak3"), pc.getqf("wartosczwierzak3"), 86400)
	if pc.countitem(39028) == 0 then
	syschat("<Informacja> Nie posiadasz Zaczarowania Bonusów!")
	return
end
	while true do
	local pierwszy = {41, 8, 28, 10, 11}
	local one = number(1, 5)
	local drugi = {12, 14, 13, 23, 24}
	local two = number(1, 5)
	local trzeci = {18, 19, 20, 21, 22}
	local three = number(1, 5)
	pc.setqf("bonuszwierzak1", pierwszy[one])
	pc.setqf("bonuszwierzak2", drugi[two])
	pc.setqf("bonuszwierzak3", trzeci[three])
	local bonusa = pierwszy[one]
	local bonusb = drugi[two]
	local bonusc = trzeci[three]
	local razem = pc.getqf("wartosczwierzak1")+pc.getqf("wartosczwierzak2")+pc.getqf("wartosczwierzak3")
	local tudodaj = razem-(2*3)
	pc.setqf("wartoscbonu", pc.getqf("wartoscbonu")+tudodaj)
	pc.setqf("wartosczwierzak1", 2)
	pc.setqf("wartosczwierzak2", 2)
	pc.setqf("wartosczwierzak3", 2)
	say_title("Menu Zwierzaka:")
	say_reward("Tak wyglądają nowe bonusy:")
	say("1: "..bonus[bonusa][1].."+"..pc.getqf("wartosczwierzak1"))
	say("2: "..bonus[bonusb][1].."+"..pc.getqf("wartosczwierzak2"))
	say("3: "..bonus[bonusc][1].."+"..pc.getqf("wartosczwierzak3"))
	say("")
	pc.remove_item(39028, 1)
	local s=select("Kontynuuj Zmianę ", "Koniec")
	if s==1 then
	pc.remove_item(39028, 1)
	if pc.countitem(39028) == 0 then
	syschat("<Informacja> Nie posiadasz Zaczarowania Bonusów!")
	return
end
end
	if s==2 then
	return
	end
	end
	end
	end
	end
	end
	when kill begin
			local level_peta = item.get_socket(0)
		local dos_zwierzaka = {
				[0] = { 100000000 },
				[1] = { 1000000000 },
				[2] = { 2000000000 },
				[3] = { 3000000000 },
				[4] = { 4000000000 },
				[5] = { 5000000000 },
				[6] = { 6000000000 },
				[7] = { 7000000000 },
				[8] = { 8000000000 },
				[9] = { 9000000000 },
				[10] = { 10000000000 },
		}
			if pc.getqf("exp_zwierzaka") >= dos_zwierzaka[level_peta][1] then
			if pc.getqf("wartosczwierzak") == 0 then
			pc.setqf("wartosczwierzak", 1)
			pc.setqf("wartosczwierzak1", 2)
			pc.setqf("wartosczwierzak2", 2)
			pc.setqf("wartosczwierzak3", 2)
			return
			end
			if pc.getqf("poziom_zwierzaka") == 10 then
			if pc.get_sex() == 0 then
			d.notice("<Informacja> Zwierzak Pana "..pc.get_name().." awansował na poziom 10 - Gratulacje!")
			else
			d.notice("<Informacja> Zwierzak Pani "..pc.get_name().." awansował na poziom 10 - Gratulacje!")
			end
			syschat("<Informacja> Przyznano kolejne 4 punkty statystyk do rozdzania.")
			pc.setqf("poziom_zwierzaka", pc.getqf("poziom_zwierzaka")+1)
			pc.setqf("exp_zwierzaka", 0)
			pc.setqf("wartoscbonu", pc.getqf("wartoscbonu")+4)
			return
		end
			if pc.getqf("poziom_zwierzaka") <= 9 then
			pc.setqf("poziom_zwierzaka", pc.getqf("poziom_zwierzaka")+1)
			if pc.get_sex() == 0 then
			notice_all("<Informacja> Zwierzak Pana "..pc.get_name().." awansował na poziom "..pc.getqf("poziom_zwierzaka").." - Gratulacje!")
			else
			notice_all("<Informacja> Zwierzak Pani "..pc.get_name().." awansował na poziom "..pc.getqf("poziom_zwierzaka").." - Gratulacje!")
			end
			syschat("<Informacja> Przyznano kolejne 4 punkty statystyk do rozdzania.")
			pc.setqf("exp_zwierzaka", 0)
			pc.setqf("wartoscbonu", pc.getqf("wartoscbonu")+4)
			return

			end
		end
			if pc.getqf("exp_zwierzaka") < dos_zwierzaka[1][1] then
			if pc.getqf("oddawaj_exp") == 1 then
			if pc.getqf("poziom_zwierzaka") <=9 then
			local exp = (npc.get_level()*300)
			local expp = math.floor(exp)
			pc.setqf("exp_zwierzaka", pc.getqf("exp_zwierzaka")+npc.get_level()*300)
			return
			end
			end
			end
	end
	when rozdajbon.timer begin
	if pc.getqf("rozdajbon") > pc.getqf("wartoscbonu") then
	say_title("Menu Zwierzaka:")
	say("Nie posiadasz tylu punktów bonusu!")
	return
	end
	pc.setqf("wartoscbonu",pc.getqf("wartoscbonu")-pc.getqf("rozdajbon"))
	if pc.getqf("wartoscdodana") == 1 then
	pc.setqf("wartosczwierzak1", pc.getqf("wartosczwierzak1")+pc.getqf("rozdajbon"))
	return
	end
	if pc.getqf("wartoscdodana") == 2 then
	pc.setqf("wartosczwierzak2", pc.getqf("wartosczwierzak2")+pc.getqf("rozdajbon"))
	return
	end
	if pc.getqf("wartoscdodana") == 3 then
	pc.setqf("wartosczwierzak3", pc.getqf("wartosczwierzak3")+pc.getqf("rozdajbon"))
	return
	end
end
	when bodajmijbon.timer begin
	pc.setqf("wartoscbonu",pc.getqf("wartoscbonu")-pc.getqf("rozdajbon"))
	if pc.getqf("wartoscdodanab") == 1 then
	if pc.getqf("wartosczwierzak1") <= 2 then
	say_title("Menu Zwierzaka:")
	say("Aby odjąć punkty statystyk od bonusu musi on")
	say("posiadać przynajmniej 2 punkty.")
	return
	end
	if pc.getqf("wartosczwierzak1")-2 < pc.getqf("odejmijbon") then
	say_title("Menu Zwierzaka:")
	say("Ten bonus nie posiada tylu pktów")
	return
	end
	pc.setqf("wartosczwierzak1", pc.getqf("wartosczwierzak1")-pc.getqf("odejmijbon"))
	return
	end
	if pc.getqf("wartoscdodanab") == 2 then
	if pc.getqf("wartosczwierzak2") <= 2 then
	say_title("Menu Zwierzaka:")
	say("Aby odjąć punkty statystyk od bonusu musi on")
	say("posiadać przynajmniej 2 punkty.")
	return
	end
	if pc.getqf("wartosczwierzak2")-2 < pc.getqf("odejmijbon") then
	say_title("Menu Zwierzaka:")
	say("Ten bonus nie posiada tylu pktów")
	return
	end
	pc.setqf("wartosczwierzak2", pc.getqf("wartosczwierzak2")-pc.getqf("odejmijbon"))
	return
	end
	if pc.getqf("wartoscdodanab") == 3 then
	if pc.getqf("wartosczwierzak3") <= 2 then
	say_title("Menu Zwierzaka:")
	say("Aby odjąć punkty statystyk od bonusu musi on")
	say("posiadać przynajmniej 2 punkty.")
	return
	end
	if pc.getqf("wartosczwierzak3")-2 < pc.getqf("odejmijbon") then
	say_title("Menu Zwierzaka:")
	say("Ten bonus nie posiada tylu pktów")
	return
	end
	pc.setqf("wartosczwierzak3", pc.getqf("wartosczwierzak3")-pc.getqf("odejmijbon"))
	return
	end
end
when 40004.use with pc.is_gm() begin
			pc.setqf("poziom_zwierzaka", pc.getqf("poziom_zwierzaka")+1)
			pc.setqf("exp_zwierzaka", 0)
			pc.setqf("wartoscbonu", 0)
			pc.setqf("wartoscbonu", pc.getqf("wartoscbonu")+4)
end
when login begin
if pc.getqf("wartosczwierzak1") > 20 or pc.getqf("wartosczwierzak1") < 0 then
	affect.remove_collect(pc.getqf("bonuszwierzak1"), pc.getqf("wartosczwierzak1"), 86400)
	pc.setqf("wartosczwierzak1", 20)
	pc.setqf("wartoscbonu", 0)
	affect.remove(515, pc.getqf("bonuszwierzak1"))
elseif pc.getqf("wartosczwierzak2") > 20 or pc.getqf("wartosczwierzak2") < 0 then
	affect.remove_collect(pc.getqf("bonuszwierzak2"), pc.getqf("wartosczwierzak2"), 86400)
	pc.setqf("wartosczwierzak2", 20)
	pc.setqf("wartoscbonu", 0)
	affect.remove(515, pc.getqf("bonuszwierzak2"))
elseif pc.getqf("wartosczwierzak3") > 20 or pc.getqf("wartosczwierzak3") < 0 then
	affect.remove_collect(pc.getqf("bonuszwierzak3"), pc.getqf("wartosczwierzak3"), 86400)
	affect.remove(515, pc.getqf("bonuszwierzak3"))
	pc.setqf("wartosczwierzak3", 20)
	pc.setqf("wartoscbonu", 0)
end
end

end
end

Pomoże ktoś?

Czy znalazł ktoś jeszcze inne bugi?

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...