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

System Osiągnięć


Rekomendowane odpowiedzi

Opublikowano

Witam ponownie ;/

 

Potrzebuję questa na system osiągnięć ale pod tę funkcję:

cmdchat("achievement 1|Wielcy_muszą_odejść_#1|".. actual_achievement_points + Reward .."|11290|".. boss .."/100")
Kiedy zabijemy 100bossów zakończy się Wielcy_muszą_odejść_#1 a rozpocznie się Wielcy_muszą_odejść_#2 (500bossów).

 

Nie wiem jak to napisać dlatego proszę o pomoc.

 

Robiłem coś takiego ale nie działa.

when 591.kill or 793.kill or 794.kill or 795.kill or 993.kill or 1191.kill or 13006.kill or 1307.kill or 1902.kill or 1903.kill or 2207.kill or 2092.kill or 2093.kill or 5161.kill or 5162.kill or 5163.kill or 691.kill or 791.kill or 792.kill or 1094.kill or 1093.kill or 1095.kill or 1192.kill or 1304.kill or 1901.kill or 2091.kill or 2206.kill or 2191.kill or 2493.kill or 5002.kill begin
			local Reward = 150
			local actual_achievement_points = pc.getqf("achievement_points")
			local point = pc.getqf("boss")+1
			if point < 100 then
			pc.setqf("boss", point)
			pc.setqf("achievement_points", actual_achievement_points + Reward)
			cmdchat("achievement 1|Wielcy_muszą_odejść_#1|".. actual_achievement_points + Reward .."|11290|".. boss .."/100")
		end
Opublikowano

Powinieneś zrobić to za pomocą state, czyli dodajesz w funkcji kill

if point >= 100 then
set_state(wielcy2)
end

dodajesz pozniej nowy state, czyli np.

state wielcy2 begin
wpiszujesz znowu when kill itd...
end
Opublikowano

 

Powinieneś zrobić to za pomocą state, czyli dodajesz w funkcji kill

if point >= 100 then
set_state(wielcy2)
end

dodajesz pozniej nowy state, czyli np.

state wielcy2 begin
wpiszujesz znowu when kill itd...
end

 

tak?

 

quest achievement begin
state start begin
 
when login begin
local actual_achievement_points = pc.getqf("achievement_points")
if pc.getqf("firstlogin") != 1 then
local Reward = 1
pc.setqf("firstlogin", 1)
pc.setqf("achievement_points", actual_achievement_points + Reward)
cmdchat("achievement 1|Pierwsze_logowanie|".. actual_achievement_points + Reward .."|11290|".. firstlogin .."")
else
cmdchat("po ".. pc.getqf("achievement_points"))
end
when 591.kill or 793.kill or 794.kill or 795.kill or 993.kill or 1191.kill or 13006.kill or 1307.kill or 1902.kill or 1903.kill or 2207.kill or 2092.kill or 2093.kill or 5161.kill or 5162.kill or 5163.kill or 691.kill or 791.kill or 792.kill or 1094.kill or 1093.kill or 1095.kill or 1192.kill or 1304.kill or 1901.kill or 2091.kill or 2206.kill or 2191.kill or 2493.kill or 5002.kill begin
local Reward = 150
local actual_achievement_points = pc.getqf("achievement_points")
local point = pc.getqf("boss")+1
if point >= 100 then
pc.setqf("boss", point)
pc.setqf("achievement_points", actual_achievement_points + Reward)
cmdchat("achievement 1|Wielcy_muszą_odejść_#1|".. actual_achievement_points + Reward .."|11290|".. boss .."/100")
set_state(wielcy2)
end
end
state wielcy2 begin
when 591.kill or 793.kill or 794.kill or 795.kill or 993.kill or 1191.kill or 13006.kill or 1307.kill or 1902.kill or 1903.kill or 2207.kill or 2092.kill or 2093.kill or 5161.kill or 5162.kill or 5163.kill or 691.kill or 791.kill or 792.kill or 1094.kill or 1093.kill or 1095.kill or 1192.kill or 1304.kill or 1901.kill or 2091.kill or 2206.kill or 2191.kill or 2493.kill or 5002.kill begin
local Reward = 250
local actual_achievement_points = pc.getqf("achievement_points")
local point = pc.getqf("boss")+1
if point >= 500 then
pc.setqf("boss", point)
pc.setqf("achievement_points", actual_achievement_points + Reward)
cmdchat("achievement 1|Wielcy_muszą_odejść_#2|".. actual_achievement_points + Reward .."|11290|".. boss .."/500")
set_state(wielcy3)
end
end
state wielcy3 begin
when 591.kill or 793.kill or 794.kill or 795.kill or 993.kill or 1191.kill or 13006.kill or 1307.kill or 1902.kill or 1903.kill or 2207.kill or 2092.kill or 2093.kill or 5161.kill or 5162.kill or 5163.kill or 691.kill or 791.kill or 792.kill or 1094.kill or 1093.kill or 1095.kill or 1192.kill or 1304.kill or 1901.kill or 2091.kill or 2206.kill or 2191.kill or 2493.kill or 5002.kill begin
local Reward = 500
local actual_achievement_points = pc.getqf("achievement_points")
local point = pc.getqf("boss")+1
if point >= 1000 then
pc.setqf("boss", point)
pc.setqf("achievement_points", actual_achievement_points + Reward)
cmdchat("achievement 1|Wielcy_muszą_odejść_#2|".. actual_achievement_points + Reward .."|11290|".. boss .."/1000")
end
end
end
end
Opublikowano


 

local Reward = 150

local actual_achievement_points = pc.getqf("achievement_points")

local point = pc.getqf("boss")+1

pc.setqf("boss", point)

pc.setqf("achievement_points", actual_achievement_points + Reward)

if point >= 0 and point <= 100 then

cmdchat("achievement 1|Wielcy_muszą_odejść_#1|".. actual_achievement_points + Reward .."|11290|".. boss .."/100")

return

end

if point >= 101 and point <= 500 then

cmdchat("achievement 1|Wielcy_muszą_odejść_#2|".. actual_achievement_points + Reward .."|11290|".. boss .."/500")

return

end

^^ Kliknij tutaj w dól ^^



"Narodowiec, nie nazista. Prawdziwy Polak - nacjonalista! Czołem!"


CaM


Opublikowano

@ Up

 

Wasze questy nawet nie będą naliczać zabitych bossów.

 

Po drugie można to znacznie skrócić.

 

Po trzecie nikt nie zauważył że jest zbyt mało endów.

 

 

@ Top

 

Proszę:

 

Quest obecnie kończy się po zabiciu 1000 bossów. Możesz go zmodyfikować jeszcze, a nawet musisz.

http://wklej.to/3VJLr

Radzę jeszcze dopisać funkcje npc.get_race() do whena, z tym powinieneś sobie poradzić.

when 8088.kill begin  -- jak masz inny quest z takim warunkiem to będą kolidować ze sobą i dupa.
 
when kill with npc.get_race() == 8088 or npc.get_race() == 8089 begin -- Dzięki zastosowaniu funkcji npc.get_race()  questy i inne warunki nie będą ze sobą kolidować 

Tutaj quest:

 

 

 

quest achievement begin
	state start begin
		when login begin
			local actual_achievement_points = pc.getqf("achievement_points")
			if pc.getqf("firstlogin") != 1 then
				local Reward4 = 1
				pc.setqf("firstlogin", 1)
				pc.setqf("achievement_points", actual_achievement_points + Reward4)
				cmdchat("achievement 1|Pierwsze_logowanie|".. actual_achievement_points + Reward4 .."|11290|".. firstlogin .."")
			else
				cmdchat("po ".. pc.getqf("achievement_points"))
			end
		end
		when 591.kill or 793.kill or 794.kill or 795.kill or 993.kill or 1191.kill or 13006.kill or 1307.kill or 1902.kill or 1903.kill or 2207.kill or 2092.kill or 2093.kill or 5161.kill or 5162.kill or 5163.kill or 691.kill or 791.kill or 792.kill or 1094.kill or 1093.kill or 1095.kill or 1192.kill or 1304.kill or 1901.kill or 2091.kill or 2206.kill or 2191.kill or 2493.kill or 5002.kill begin
			pc.setqf("ilosc", pc.getqf("ilosc")+1)
			local Reward = 150
			local actual_achievement_points = pc.getqf("achievement_points")
			local punkty = pc.getqf("ilosc")
			if punkty == 100 then
				pc.setqf("achievement_points", actual_achievement_points + Reward)
				cmdchat("achievement 1|Wielcy_muszą_odejść_#1|".. actual_achievement_points + Reward .."|11290|".. ilosc .."/100")
			elseif punkty == 500 then
				local Reward2 = 150
				pc.setqf("achievement_points", actual_achievement_points + Reward2)
				cmdchat("achievement 1|Wielcy_muszą_odejść_#2|".. actual_achievement_points + Reward2 .."|11290|".. ilosc .."/500")
			elseif punkty == 1000 then
				local Reward3 = 500
				pc.setqf("achievement_points", actual_achievement_points + Reward3)
				cmdchat("achievement 1|Wielcy_muszą_odejść_#3|".. actual_achievement_points + Reward3 .."|11290|".. ilosc .."/1000")
                                set_state(koniec)
			end
		end
	end
        state koniec begin
        end
end




 





I'm here for You, not for myself

Always help You


 

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...