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

Medal konny co 2h - przerobienie


Rekomendowane odpowiedzi

Opublikowano

Prosiłbym o przerobienie tego questu, żeby pisało dokładnie ile zostało do przeczytania nastepnego medalu. Bo pisze 2h a chciałbym, żeby pisało też ile minut.

quest medal1 begin
	state start begin
		when 50050.use with horse.get_level()==0 and horse.get_grade()==0 and pc.get_level()>=1 begin
			local pass_percent = 100
			local s = number(1, 100)
			local name = pc.get_name()
			local t = game.get_event_flag("horse_advance_"..name.."_time") - get_time()
			if get_time() > game.get_event_flag("horse_advance_"..name.."_time") then
				if s <= pass_percent then
					chat("Szkolenie przebiegło pomyślnie")
					chat("Otrzymałeś zwykłego konia")
					game.set_event_flag("horse_advance_"..name.."_time", get_time()+60*60*2)
					pc.give_item2(50051)
					pc.remove_item(50050, 1)
					horse.advance()
					horse.summon()
				else
					chat("Szkolenie niepomyślne")
					game.set_event_flag("horse_advance_"..name.."_time", get_time()+60*60*2)
					pc.remove_item(50050, 1)
				end
			else
				syschat(string.format("Pozostało %s godz.", math.ceil(t/3600)))
			end
		end
	end
end
quest medal2 begin
	state start begin
		when 50050.use with horse.get_level()>=1 and horse.get_level()<10 and horse.get_grade()==1 and pc.get_level()>=1 begin
			local pass_percent = 90
			local s = number(1, 100)
			local name = pc.get_name()
			local t = game.get_event_flag("horse_advance_"..name.."_time") - get_time()
			if get_time() > game.get_event_flag("horse_advance_"..name.."_time") then
				if s <= pass_percent then
					chat("Szkolenie przebiegło pomyślnie")
					chat("Poziom konia został zwiększony")
					game.set_event_flag("horse_advance_"..name.."_time", get_time()+60*60*2)
					pc.remove_item(50050, 1)
					horse.advance()
					horse.summon()
				else
					chat("Szkolenie niepomyślne")
					game.set_event_flag("horse_advance_"..name.."_time", get_time()+60*60*2)
					pc.remove_item(50050, 1)
				end
			else
				syschat(string.format("Pozostało %s godz.", math.ceil(t/3600)))
			end
		end
	end
end
quest medal3 begin
	state start begin
		when 50050.use with horse.get_level()==10 and horse.get_grade()==1 and pc.get_level()>=35 begin
			local pass_percent = 25
			local s = number(1, 100)
			local name = pc.get_name()
			local t = game.get_event_flag("horse_advance_"..name.."_time") - get_time()
			if get_time() > game.get_event_flag("horse_advance_"..name.."_time") then
				if s <= pass_percent then
					chat("Szkolenie przebiegło pomyślnie")
					chat("Otrzymałeś konia bojowego")
					game.set_event_flag("horse_advance_"..name.."_time", get_time()+60*60*4)
					pc.remove_item(50050, 1)
					pc.give_item2(50052)
					pc.remove_item(50051, 1)
					horse.unride()
					horse.unsummon()
					horse.advance()
					horse.summon()
				else
					chat("Szkolenie niepomyślne")
					pc.remove_item(50050, 1)
					game.set_event_flag("horse_advance_"..name.."_time", get_time()+60*60*4)
				end
			else
				syschat(string.format("Pozostało %s godz.", math.ceil(t/3600)))
			end
		end
	end
end
quest medal4 begin
	state start begin
		when 50050.use with horse.get_level()>10 and horse.get_level()<20  and horse.get_grade()==2 and pc.get_level()>=35 begin
			local pass_percent = 50
			local s = number(1,100)
			local name = pc.get_name()
			local t = game.get_event_flag("horse_advance_"..name.."_time") - get_time()
			if get_time() > game.get_event_flag("horse_advance_"..name.."_time") then
				if s <= pass_percent then
					chat("Szkolenie przebiegło pomyślnie")
					chat("Poziom konia został zwiększony")
					pc.remove_item(50050, 1)
					game.set_event_flag("horse_advance_"..name.."_time", get_time()+60*60*4)
					horse.advance()
					horse.summon()
				else
					chat("Szkolenie niepomyślne")
					pc.remove_item(50050, 1)
					game.set_event_flag("horse_advance_"..name.."_time", get_time()+60*60*4)
				end
			else
				syschat(string.format("Pozostało %s godz.", math.ceil(t/3600)))
			end
		end
	end
end
quest medal5 begin
	state start begin
		when 50050.use with horse.get_level()==20 and horse.get_grade()==2 and pc.get_level()>=45 begin
			local pass_percent = 10
			local s = number(1,100)
			local name = pc.get_name()
			local t = game.get_event_flag("horse_advance_"..name.."_time") - get_time()
			if get_time() > game.get_event_flag("horse_advance_"..name.."_time") then
				if s <= pass_percent then
					chat("Szkolenie przebiegło pomyślnie")
					chat("Otrzymałeś konia wojskowego")
					game.set_event_flag("horse_advance_"..name.."_time", get_time()+60*60*6)
					pc.remove_item(50050, 1)
					pc.give_item2(50053)
					pc.remove_item(50052, 1)
					horse.unride()
					horse.unsummon()
					horse.advance()
					horse.summon()
				else
					chat("Szkolenie niepomyślne")
					pc.remove_item(50050, 1)
					game.set_event_flag("horse_advance_"..name.."_time", get_time()+60*60*6)
				end
			else
				syschat(string.format("Pozostało %s godz.", math.ceil(t/3600)))
			end
		end
	end
end
quest medal6 begin
	state start begin
		when 50050.use with horse.get_level()>=21 and horse.get_level()<30 and horse.get_grade()==3 and pc.get_level()>=45 begin
			local pass_percent = 25
			local s = number(1,100)
			local name = pc.get_name()
			local t = game.get_event_flag("horse_advance_"..name.."_time") - get_time()
			if get_time() > game.get_event_flag("horse_advance_"..name.."_time") then
				if s <= pass_percent then
					chat("Szkolenie przebiegło pomyślnie")
					chat("Poziom konia został zwiększony")
					game.set_event_flag("horse_advance_"..name.."_time", get_time()+60*60*6)
					pc.remove_item(50050, 1)
					horse.advance()
					horse.summon()
				else
					chat("Szkolenie niepomyślne")
					game.set_event_flag("horse_advance_"..name.."_time", get_time()+60*60*6)
					pc.remove_item(50050, 1)
				end
			else
				syschat(string.format("Pozostało %s godz.", math.ceil(t/3600)))
			end
		end
	end
end
quest medal7 begin
	state start begin
		when 50050.use with horse.get_level()==0 and pc.get_level()<25 begin
		chat("Aby otrzymać konia musisz mieć co najmniej 1 poziom")
		end
	end
end
quest medal8 begin
	state start begin
		when 50050.use with horse.get_level()==10 and pc.get_level()<35 begin
		chat("Aby otrzymać konia bojowego musisz mieć co najmniej 35 poziom")
		end
	end
end
quest medal9 begin
	state start begin
		when 50050.use with horse.get_level()==20 and pc.get_level()<45 begin
		chat("Aby otrzymać konia militarnego musisz mieć co najmniej 45 poziom")
		end
	end
end

Kocham mpcforum.pl!!!

18706.png

Opublikowano


quest medal1 begin

state start begin

when 50050.use with horse.get_level()==0 and horse.get_grade()==0 and pc.get_level()>=1 begin

local pass_percent = 100

local s = number(1, 100)

local name = pc.get_name()

local t = game.get_event_flag("horse_advance_"..name.."_time") - get_time()

if get_time() > game.get_event_flag("horse_advance_"..name.."_time") then

if s <= pass_percent then

chat("Szkolenie przebiegło pomyślnie")

chat("Otrzymałeś zwykłego konia")

game.set_event_flag("horse_advance_"..name.."_time", get_time()+60*60*2)

pc.give_item2(50051)

pc.remove_item(50050, 1)

horse.advance()

horse.summon()

else

chat("Szkolenie niepomyślne")

game.set_event_flag("horse_advance_"..name.."_time", get_time()+60*60*2)

pc.remove_item(50050, 1)

end

else

local czas = t/3600

local h = math.ceil(czas)

local min = (czas - h)*60

local m = math.ceil(min)

syschat("Pozostały czas oczekiwania: "..h.."godzin "..m.."min.")

end

end

end

end

quest medal2 begin

state start begin

when 50050.use with horse.get_level()>=1 and horse.get_level()<10 and horse.get_grade()==1 and pc.get_level()>=1 begin

local pass_percent = 90

local s = number(1, 100)

local name = pc.get_name()

local t = game.get_event_flag("horse_advance_"..name.."_time") - get_time()

if get_time() > game.get_event_flag("horse_advance_"..name.."_time") then

if s <= pass_percent then

chat("Szkolenie przebiegło pomyślnie")

chat("Poziom konia został zwiększony")

game.set_event_flag("horse_advance_"..name.."_time", get_time()+60*60*2)

pc.remove_item(50050, 1)

horse.advance()

horse.summon()

else

chat("Szkolenie niepomyślne")

game.set_event_flag("horse_advance_"..name.."_time", get_time()+60*60*2)

pc.remove_item(50050, 1)

end

else

local czas = t/3600

local h = math.ceil(czas)

local min = (czas - h)*60

local m = math.ceil(min)

syschat("Pozostały czas oczekiwania: "..h.."godzin "..m.."min.")

end

end

end

end

quest medal3 begin

state start begin

when 50050.use with horse.get_level()==10 and horse.get_grade()==1 and pc.get_level()>=35 begin

local pass_percent = 25

local s = number(1, 100)

local name = pc.get_name()

local t = game.get_event_flag("horse_advance_"..name.."_time") - get_time()

if get_time() > game.get_event_flag("horse_advance_"..name.."_time") then

if s <= pass_percent then

chat("Szkolenie przebiegło pomyślnie")

chat("Otrzymałeś konia bojowego")

game.set_event_flag("horse_advance_"..name.."_time", get_time()+60*60*4)

pc.remove_item(50050, 1)

pc.give_item2(50052)

pc.remove_item(50051, 1)

horse.unride()

horse.unsummon()

horse.advance()

horse.summon()

else

chat("Szkolenie niepomyślne")

pc.remove_item(50050, 1)

game.set_event_flag("horse_advance_"..name.."_time", get_time()+60*60*4)

end

else

local czas = t/3600

local h = math.ceil(czas)

local min = (czas - h)*60

local m = math.ceil(min)

syschat("Pozostały czas oczekiwania: "..h.."godzin "..m.."min.")

end

end

end

end

quest medal4 begin

state start begin

when 50050.use with horse.get_level()>10 and horse.get_level()<20 and horse.get_grade()==2 and pc.get_level()>=35 begin

local pass_percent = 50

local s = number(1,100)

local name = pc.get_name()

local t = game.get_event_flag("horse_advance_"..name.."_time") - get_time()

if get_time() > game.get_event_flag("horse_advance_"..name.."_time") then

if s <= pass_percent then

chat("Szkolenie przebiegło pomyślnie")

chat("Poziom konia został zwiększony")

pc.remove_item(50050, 1)

game.set_event_flag("horse_advance_"..name.."_time", get_time()+60*60*4)

horse.advance()

horse.summon()

else

chat("Szkolenie niepomyślne")

pc.remove_item(50050, 1)

game.set_event_flag("horse_advance_"..name.."_time", get_time()+60*60*4)

end

else

local czas = t/3600

local h = math.ceil(czas)

local min = (czas - h)*60

local m = math.ceil(min)

syschat("Pozostały czas oczekiwania: "..h.."godzin "..m.."min.")

end

end

end

end

quest medal5 begin

state start begin

when 50050.use with horse.get_level()==20 and horse.get_grade()==2 and pc.get_level()>=45 begin

local pass_percent = 10

local s = number(1,100)

local name = pc.get_name()

local t = game.get_event_flag("horse_advance_"..name.."_time") - get_time()

if get_time() > game.get_event_flag("horse_advance_"..name.."_time") then

if s <= pass_percent then

chat("Szkolenie przebiegło pomyślnie")

chat("Otrzymałeś konia wojskowego")

game.set_event_flag("horse_advance_"..name.."_time", get_time()+60*60*6)

pc.remove_item(50050, 1)

pc.give_item2(50053)

pc.remove_item(50052, 1)

horse.unride()

horse.unsummon()

horse.advance()

horse.summon()

else

chat("Szkolenie niepomyślne")

pc.remove_item(50050, 1)

game.set_event_flag("horse_advance_"..name.."_time", get_time()+60*60*6)

end

else

local czas = t/3600

local h = math.ceil(czas)

local min = (czas - h)*60

local m = math.ceil(min)

syschat("Pozostały czas oczekiwania: "..h.."godzin "..m.."min.")

end

end

end

end

quest medal6 begin

state start begin

when 50050.use with horse.get_level()>=21 and horse.get_level()<30 and horse.get_grade()==3 and pc.get_level()>=45 begin

local pass_percent = 25

local s = number(1,100)

local name = pc.get_name()

local t = game.get_event_flag("horse_advance_"..name.."_time") - get_time()

if get_time() > game.get_event_flag("horse_advance_"..name.."_time") then

if s <= pass_percent then

chat("Szkolenie przebiegło pomyślnie")

chat("Poziom konia został zwiększony")

game.set_event_flag("horse_advance_"..name.."_time", get_time()+60*60*6)

pc.remove_item(50050, 1)

horse.advance()

horse.summon()

else

chat("Szkolenie niepomyślne")

game.set_event_flag("horse_advance_"..name.."_time", get_time()+60*60*6)

pc.remove_item(50050, 1)

end

else

local czas = t/3600

local h = math.ceil(czas)

local min = (czas - h)*60

local m = math.ceil(min)

syschat("Pozostały czas oczekiwania: "..h.."godzin "..m.."min.")

end

end

end

end

quest medal7 begin

state start begin

when 50050.use with horse.get_level()==0 and pc.get_level()<25 begin

chat("Aby otrzymać konia musisz mieć co najmniej 1 poziom")

end

end

end

quest medal8 begin

state start begin

when 50050.use with horse.get_level()==10 and pc.get_level()<35 begin

chat("Aby otrzymać konia bojowego musisz mieć co najmniej 35 poziom")

end

end

end

quest medal9 begin

state start begin

when 50050.use with horse.get_level()==20 and pc.get_level()<45 begin

chat("Aby otrzymać konia militarnego musisz mieć co najmniej 45 poziom")

end

end

end

9pu8p2.png

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...