Skocz do zawartości
  • 👋 Witaj na MPCForum!

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

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

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

    Zarejestruj się teraz

Rekomendowane odpowiedzi

Opublikowano

 

 

quest new_mount begin
	state start begin
		function pokaz_gui()
			local self = 
			{
				-- [item_id] = {"Bonus 1", "Bonus 2", "Bonus 3", "image in client"}
				[71110] = {"Max PŻ: +10000", "Średnie obrażenia: 10%", "Obrona 75", "dzik"},
				[71111] = {"Max PŻ: +15000", "Średnie obrażenia: 15%", "Obrona 100", "wilk"},
				[71112] = {"Max PŻ: +20000", "Średnie obrażenia: 20%", "Obrona 125", "tygrys"},
				[71121] = {"Max PŻ: +45000", "Średnie obrażenia: 30%", "Obrona 200", "lew"},
				[71114] = {"Max PŻ: +35000", "Średnie obrażenia: 35%", "Szansa na Bonus DOŚ: 30%", "lodowy_lew"},
				[71115] = {"Max PŻ: +40000", "Średnie obrażenia: 40%", "Silny przeciwko Potworom + 20%", "dzik_cienia"},
				[71116] = {"Max PŻ: +50000", "Średnie obrażenia: 45%", "Szansa na cios krytyczny +15%", "wilk_cienia"},
				[71117] = {"Max PŻ: +60000", "Średnie obrażenia: 50%", "Szansa na cios krytyczny +15%", "tygrys_cienia"},
				[71118] = {"Max PŻ: +70000", "Średnie obrażenia: 55%", "Odporność na obrażenia: 10%", "lew_cienia"},
			}
			local item_vnum = pc.getqf("uzyty")
			cmdchat("WData "..string.gsub(self[item_vnum][1], ' ', '_').."|"..string.gsub(self[item_vnum][2], ' ', '_').."|"..string.gsub(self[item_vnum][3], ' ', '_').."|"..self[item_vnum][4])
			cmdchat("WShow")
			pc.setqf("wylaczono", 0)
			loop_timer("wylacz", 10)
		end
		when 71110.use begin -- pieczęć
			if pc.is_riding() then
				horse.unride()
			end
			if horse.is_summon() then	
				horse.unsummon()	
			end
			pc.setqf("uzyty", item.vnum)
			pc.mount(20110, 60*10)
			new_mount.pokaz_gui()
		end
		when 71111.use begin -- pieczęć 
			if pc.is_riding() then
				horse.unride()
			end
			if horse.is_summon() then	
				horse.unsummon()	
			end
			pc.setqf("uzyty", item.vnum)
			pc.mount(20111, 60*10)
			new_mount.pokaz_gui()				-- 
		end
		when 71112.use begin -- pieczęć 
			if pc.is_riding() then
				horse.unride()
			end
			if horse.is_summon() then	
				horse.unsummon()	
			end
			pc.setqf("uzyty", item.vnum)
			pc.mount(20112, 60*10)
			new_mount.pokaz_gui()				-- 
		end
		when 71121.use begin -- pieczęć 
			if pc.is_riding() then
				horse.unride()
			end
			if horse.is_summon() then	
				horse.unsummon()	
			end
			pc.setqf("uzyty", item.vnum)
			pc.mount(20113, 60*10)
			new_mount.pokaz_gui()
		end
		when 71114.use begin -- pieczęć 
			if pc.is_riding() then
				horse.unride()
			end
			if horse.is_summon() then	
				horse.unsummon()	
			end
			pc.setqf("uzyty", item.vnum)
			pc.mount(20114, 60*10)
			new_mount.pokaz_gui()	
		end
		when 71115.use begin -- pieczęć 
			if pc.is_riding() then
				horse.unride()
			end
			if horse.is_summon() then	
				horse.unsummon()	
			end
			pc.setqf("uzyty", item.vnum)
			pc.mount(20115, 60*10)
			new_mount.pokaz_gui()				-- 
		end
		when 71116.use begin -- pieczęć 
			if pc.is_riding() then
				horse.unride()
			end
			if horse.is_summon() then	
				horse.unsummon()	
			end
			pc.setqf("uzyty", item.vnum)
			pc.mount(20116, 60*10)
			new_mount.pokaz_gui()				-- 
		end
		when 71117.use begin -- pieczęć 
			if pc.is_riding() then
				horse.unride()
			end
			if horse.is_summon() then	
				horse.unsummon()	
			end
			pc.setqf("uzyty", item.vnum)
			pc.mount(20117, 60*10)
			new_mount.pokaz_gui()				-- 
		end
		when 71118.use begin -- pieczęć 
			if pc.is_riding() then
				horse.unride()
			end
			if horse.is_summon() then	
				horse.unsummon()	
			end
			pc.setqf("uzyty", item.vnum)
			pc.mount(20118, 60*10)
			new_mount.pokaz_gui()	
		end
		when pieczec.timer begin
			if pc.is_riding() then
				horse.unride()
			end
			if horse.is_summon() then	
				horse.unsummon()	
			end
			if pc.is_polymorphed() then
				if pc.get_sex() == 0 then
					chat("Nie możesz przywołać wierzchowca, będąc zmienionym w potwora.")
				else
					chat("Nie możesz przywołać wierzchowca, będąc zmieniona w potwora.")
				end
			else
				if item.select_cell(97) then
					if item.get_vnum() == 71110 then
						pc.mount(20110, 60*10)
					elseif item.get_vnum() == 71111 then
						pc.mount(20111, 60*10)
					elseif item.get_vnum() == 71112 then
						pc.mount(20112, 60*10)
					elseif item.get_vnum() == 71121 then
						pc.mount(20113, 60*10)
					elseif item.get_vnum() == 71114 then
						pc.mount(20114, 60*10)
					elseif item.get_vnum() == 71115 then
						pc.mount(20115, 60*10)
					elseif item.get_vnum() == 71116 then
						pc.mount(20116, 60*10)
					elseif item.get_vnum() == 71117 then
						pc.mount(20117, 60*10)
					elseif item.get_vnum() == 71118 then
						pc.mount(20118, 60*10)
					end
					new_mount.pokaz_gui()
				end
				if item.select_cell(98) then
					if item.get_vnum() == 71110 then
						pc.mount(20110, 60*10)
					elseif item.get_vnum() == 71111 then
						pc.mount(20111, 60*10)
					elseif item.get_vnum() == 71112 then
						pc.mount(20112, 60*10)
					elseif item.get_vnum() == 71121 then
						pc.mount(20113, 60*10)
					elseif item.get_vnum() == 71114 then
						pc.mount(20114, 60*10)
					elseif item.get_vnum() == 71115 then
						pc.mount(20115, 60*10)
					elseif item.get_vnum() == 71116 then
						pc.mount(20116, 60*10)
					elseif item.get_vnum() == 71117 then
						pc.mount(20117, 60*10)
					elseif item.get_vnum() == 71118 then
						pc.mount(20118, 60*10)
					end
					new_mount.pokaz_gui()
				end
			end

		end
		when login begin
			if item.select_cell(97) then
				if item.get_vnum() >= 71110 and item.get_vnum() <= 71121 then
					timer("pieczec", 1)
					new_mount.pokaz_gui()
				end
			end
			if item.select_cell(98) then
				if item.get_vnum() >= 71110 and  item.get_vnum() <= 71121 then
					timer("pieczec", 1)
					new_mount.pokaz_gui()
				end
			end
			new_mount.podkresl()
		end
		when wylacz.loop_timer begin
			if pc.getqf("wylaczono") == 0 then
				cmdchat("WHide")
				pc.setqf("wylaczono", 1)
				cleartimer("wylacz")
			end
		end
		when logout begin
			cmdchat("WHide")
			pc.setqf("wylaczono", 1)
		end
	end        
end   

 

 

Zdejmowane pieczęcie ustawia się w MySQL.

  • 2 tygodnie później...

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...