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

Pisanie / Poprawa Questów !


PoczatKujacy

Rekomendowane odpowiedzi

  • Odpowiedzi 8,7 tys.
  • Dodano
  • Ostatniej odpowiedzi
Opublikowano

Witam, mam tu quest na automatyczną informację co ustawiony czas na serwerze, czy można w jednym queście zastosować np. 3 wiadomości o różnych rozpiętościach czasowych ? pierwsza 5 min druga 10 itp ?

 

http://wklej.to/YveCO

 

Za pomoc +++

2421404553.png
Opublikowano

Poprawi mi ktoś tego questa?

Quest ma polegac na tym ze:

1.idziemy do npc o id 20091

2.w zaleznosci od klasy postaci mamy inne opcje do wyboru

3.dla kazdej postaci oprucz sury mamy po 2 opcje wyboru

4. opcje wyboru to ulepszenie zbroi i 2 ulepszenia broni

5.do wytworzenia broni potrzebne po 5 perel i odpowiednia bron

6.do wytworzenia zbroi potrzebne po 10 perel i stalka zalezna od klasy postaci

 

oto quest:

 

 

quest epiki begin
    state start begin
		    when 20091.chat."System ulepszeń epickich przedniotów. "  begin
				    say("Seon-Pyeong: ")
				    say("Odkryłem nowy system wytwarzania przedmiotów. ")
				    say("Jeżeli przyniesiesz mi niebieską zbroję+9 ")
				    say("i po 10 różnych pereł. ")
				    say("otrzymasz karmazynową zbroję na 90lvl. ")
                       say(" ")
                       say("Jeżeli przyniesiesz mi broń na 65 lvl +9 ")
				    say("i po 5 różnych pereł. ")
				    say("otrzymasz nową epicką broń na 90lvl. ")
                       say(" ")
                       say("Czy chcesz spróbować? ")

				    local main_set = select("Tak","Nie")
				    if main_set == 2 then
						    return
				    end
                       -----------------------------
                       local perly_brak = "Niestety, ale nie masz Wystarczającej ilości Ulepszaczy. "
                       -----------------------------
                       local red_perla = 27991
                       local blue_perla = 27992
                       local white_perla = 27993
                       local stal_woj = 11299
                       local stal_ninja = 11499
                       local stal_sura = 11699
                       local stal_szaman = 11899
                       local bojowy = 149
                       local egzo = 249
                       local parta = 3139
                       local smoczy_noz = 1109
                       local luk = 2149
                       local dzwon = 5109
                       local wachlarz = 7149
                       local runiczny = 10460
                       local n_2reczna = 3190
                       local n_sura = 10470
                       local n_luk = 12370
                       local n_sztylet = 11340
                       local n_dzwon = 15340
                       local n_wachlarz = 17370
                       -----------------------------
				    say("Seon-Pyeong: ")
				    say("Co chcesz ulepszyć? ")
                       if pc.get_job() == 0 then
                           local s = select ( "Zbroję " , "Miecz " , "Borń 2ręczna " , "Anuluj" )
                               if 1 == s then
                               if pc.count_item(red_perla) >= 10 then
                               if pc.count_item(blue_perla) >= 10 then
                               if pc.count_item(white_perla) >= 10 then
                               if pc.count_item(stal_wojo) = 1 then
                                   pc.give_item2(43030, 1)
                                   pc.remove_item(red_perla,10)
                                   pc.remove_item(blue_perla,10)
                                   pc.remove_item(white_perla,10)
                                   pc.remove_item(stal_wojo,1)
                               else
                                   say(perly_brak)
                               end
                               elseif 2 == s then
                               if pc.count_item(red_perla) >= 5 then
                               if pc.count_item(blue_perla) >= 5 then
                               if pc.count_item(white_perla) >= 5 then
                               if pc.count_item(bojowy) >= 1 then
                                   pc.give_item2(runiczny, 1)
                                   pc.remove_item(red_perla,5)
                                   pc.remove_item(blue_perla,5)
                                   pc.remove_item(white_perla,5)
                                   pc.remove_item(bojowy,1)
                               else
                                   say(perly_brak)
                               end
                               elseif 3 == s then
                               if pc.count_item(red_perla) >= 5 then
                               if pc.count_item(blue_perla) >= 5 then
                               if pc.count_item(white_perla) >= 5 then
                               if pc.count_item(parta) >= 1 then
                                   pc.give_item2(n_2reczna, 1)
                                   pc.remove_item(red_perla,5)
                                   pc.remove_item(blue_perla,5)
                                   pc.remove_item(white_perla,5)
                                   pc.remove_item(parta,1)
                               else
                                   say(perly_brak)
                               end
                           end
                       end
                       elseif pc.get_job() == 1 then
                           local s = select ( "Zbroję " , "Łuk " , "Sztylety " , "Anuluj" )
                               if 1 == s then
                               if pc.count_item(red_perla) >= 10 then
                               if pc.count_item(blue_perla) >= 10 then
                               if pc.count_item(white_perla) >= 10 then
                               if pc.count_item(stal_ninja) = 1 then
                                   pc.give_item2(43010, 1)
                                   pc.remove_item(red_perla,10)
                                   pc.remove_item(blue_perla,10)
                                   pc.remove_item(white_perla,10)
                                   pc.remove_item(stal_ninja,1)
                               else
                                   say(perly_brak)
                               end
                               elseif 2 == s then
                               if pc.count_item(red_perla) >= 5 then
                               if pc.count_item(blue_perla) >= 5 then
                               if pc.count_item(white_perla) >= 5 then
                               if pc.count_item(luk) >= 1 then
                                   pc.give_item2(n_luk, 1)
                                   pc.remove_item(red_perla,5)
                                   pc.remove_item(blue_perla,5)
                                   pc.remove_item(white_perla,5)
                                   pc.remove_item(luk,1)
                               else
                                   say(perly_brak)
                               end
                               elseif 3 == s then
                               if pc.count_item(red_perla) >= 5 then
                               if pc.count_item(blue_perla) >= 5 then
                               if pc.count_item(white_perla) >= 5 then
                               if pc.count_item(smoczy_noz) >= 1 then
                                   pc.give_item2(n_sztylet, 1)
                                   pc.remove_item(red_perla,5)
                                   pc.remove_item(blue_perla,5)
                                   pc.remove_item(white_perla,5)
                                   pc.remove_item(smoczy_noz,1)
                               else
                                   say(perly_brak)
                               end
                           end
                       end
                       elseif pc.get_job() == 2 then
                           local s = select ( "Zbroję " , "Miecz " , "Anuluj" )
                               if 1 == s then
                               if pc.count_item(red_perla) >= 10 then
                               if pc.count_item(blue_perla) >= 10 then
                               if pc.count_item(white_perla) >= 10 then
                               if pc.count_item(stal_sura) = 1 then
                                   pc.give_item2(43000, 1)
                                   pc.remove_item(red_perla,10)
                                   pc.remove_item(blue_perla,10)
                                   pc.remove_item(white_perla,10)
                                   pc.remove_item(stal_sura,1)
                               else
                                   say(perly_brak)
                               end
                               elseif 2 == s then
                               if pc.count_item(red_perla) >= 5 then
                               if pc.count_item(blue_perla) >= 5 then
                               if pc.count_item(white_perla) >= 5 then
                               if pc.count_item(egzo) >= 1 then
                                   pc.give_item2(n_sura, 1)
                                   pc.remove_item(red_perla,5)
                                   pc.remove_item(blue_perla,5)
                                   pc.remove_item(white_perla,5)
                                   pc.remove_item(egzo,1)
                               else
                                   say(perly_brak)
                               end
                           end
                       end
                       elseif pc.get_job() == 3 then
                           local s = select ( "Zbroję " , "Dzwon " , "Wachlarz " , "Anuluj" )
                               if 1 == s then
                               if pc.count_item(red_perla) >= 10 then
                               if pc.count_item(blue_perla) >= 10 then
                               if pc.count_item(white_perla) >= 10 then
                               if pc.count_item(stal_szaman) = 1 then
                                   pc.give_item2(43020, 1)
                                   pc.remove_item(red_perla,10)
                                   pc.remove_item(blue_perla,10)
                                   pc.remove_item(white_perla,10)
                                   pc.remove_item(stal_szaman,1)
                               else
                                   say(perly_brak)
                               end
                               elseif 2 == s then
                               if pc.count_item(red_perla) >= 5 then
                               if pc.count_item(blue_perla) >= 5 then
                               if pc.count_item(white_perla) >= 5 then
                               if pc.count_item(dzwon) >= 1 then
                                   pc.give_item2(n_dzwon, 1)
                                   pc.remove_item(red_perla,5)
                                   pc.remove_item(blue_perla,5)
                                   pc.remove_item(white_perla,5)
                                   pc.remove_item(dzwon,1)
                               else
                                   say(perly_brak)
                               end
                               elseif 3 == s then
                               if pc.count_item(red_perla) >= 5 then
                               if pc.count_item(blue_perla) >= 5 then
                               if pc.count_item(white_perla) >= 5 then
                               if pc.count_item(wachlarz) >= 1 then
                                   pc.give_item2(n_wachlarz, 1)
                                   pc.remove_item(red_perla,5)
                                   pc.remove_item(blue_perla,5)
                                   pc.remove_item(white_perla,5)
                                   pc.remove_item(wachlarz,1)
                               else
                                   say(perly_brak)
                               end
                           end
                       end
		    end -- end_chat
    end -- end_state
end -- end_quest

 

 

 

zrobilem tak tego questa bo nie wiem jak inaczej go napisac

Opublikowano

Witam , poprawi ktoś mi quest z plików terenzo ( hair.quest) tak aby fryzury były zakładane tak jak standardowe inne fryzury a nie do systemu kostiumów ? Type i Subtype ustawiałem 18 - 10 jak i również 25 - 0 ale fryzura albo się nie zakłada albo się niby zakłada lecz tego nie widać a po rlg/teleporcie ucina mi głowę . Z góry dzięki . Pozdrawiam, Patryk

 

http://wklej.to/QGu9i

Opublikowano

Ma ktoś questa, który po zabiciu np. 500 mobów obojętnie jakich id, dostawało się item ?

 

++

 

może coś takiego?

 

http://wklej.to/GPmdj

 

quest kill begin
state start begin
 when kill with not npc.is_pc begin
  pc.setqf("zabito", pc.getqf("zabito")+1)
  if pc.getqf("zabito") >= 500 then
   pc.give_item2(27003, 200) -- wpisujesz iD itemu, ilosc
   pc.setqf("zabito", 0)
  end
 end
end
end

Opublikowano

Witam , poprawi ktoś mi quest z plików terenzo ( hair.quest) tak aby fryzury były zakładane tak jak standardowe inne fryzury a nie do systemu kostiumów ? Type i Subtype ustawiałem 18 - 10 jak i również 25 - 0 ale fryzura albo się nie zakłada albo się niby zakłada lecz tego nie widać a po rlg/teleporcie ucina mi głowę . Z góry dzięki . Pozdrawiam, Patryk

 

http://wklej.to/QGu9i

Opublikowano

Wygląda dobrze. Osobiście bym when id_moba.kill begin zamienił na when kill with npc.get_race() == id moba begin.

Opublikowano

Jak można wykonać warynki w queście, aby po zabiciu danego moba w danym dungeonie i id xxx, wszyscy co są aktualnie w dungeonie dostawali jakiś bonus x, a po zakończeniu co jeszcze trzeba wpisać ,aby te bonusy zostały odwrócone :D

 

 

 

+ dodatkowo jeszcze żę po zabiciu moba o id x, główny bos o id y tracił np, def.

 

 

 

Za pomoc w tym limit dzienny ! ++++++

2421404553.png
Opublikowano

poprawi ktos tego questa albo przerobi na tablice?

 

 

quest epiki begin
               state start begin
                               when 20091.chat."System ulepszeń epickich przedniotów. "  begin
                                               say("Seon-Pyeong: ")
                                               say("Odkryłem nowy system wytwarzania przedmiotów. ")
                                               say("Jeżeli przyniesiesz mi niebieską zbroję+9 ")
                                               say("i po 10 różnych pereł. ")
                                               say("otrzymasz karmazynową zbroję na 90lvl. ")
                                               say(" ")
                                               say("Jeżeli przyniesiesz mi broń na 65 lvl +9 ")
                                               say("i po 5 różnych pereł. ")
                                               say("otrzymasz nową epicką broń na 90lvl. ")
                                               say(" ")
                                               say("Czy chcesz spróbować? ")

                                               local main_set = select("Tak","Nie")
                                               if main_set == 2 then
                                                               return
                                               end
                                               -----------------------------
                                               local perly_brak = "Niestety, ale nie masz Wystarczającej ilości Ulepszaczy. "
                                               -----------------------------
                                               local red_perla = 27991
                                               local blue_perla = 27992
                                               local white_perla = 27993
                                               local stal_woj = 11299
                                               local stal_ninja = 11499
                                               local stal_sura = 11699
                                               local stal_szaman = 11899
                                               local bojowy = 149
                                               local egzo = 249
                                               local parta = 3139
                                               local smoczy_noz = 1109
                                               local luk = 2149
                                               local dzwon = 5109
                                               local wachlarz = 7149
                                               local runiczny = 10460
                                               local n_2reczna = 3190
                                               local n_sura = 10470
                                               local n_luk = 12370
                                               local n_sztylet = 11340
                                               local n_dzwon = 15340
                                               local n_wachlarz = 17370
                                               -----------------------------
                                               say("Seon-Pyeong: ")
                                               say("Co chcesz ulepszyć? ")
                                               if pc.get_job() == 0 then
                                                       local s = select ( "Zbroję " , "Miecz " , "Borń 2ręczna " , "Anuluj" )
                                                               if 1 == s then
                                                               if pc.count_item(red_perla) >= 10 then
                                                               if pc.count_item(blue_perla) >= 10 then
                                                               if pc.count_item(white_perla) >= 10 then
                                                               if pc.count_item(stal_wojo) = 1 then
                                                                       pc.give_item2(43030, 1)
                                                                       pc.remove_item(red_perla,10)
                                                                       pc.remove_item(blue_perla,10)
                                                                       pc.remove_item(white_perla,10)
                                                                       pc.remove_item(stal_wojo,1)
                                                               else
                                                                       say(perly_brak)
                                                               end
                                                               elseif 2 == s then
                                                               if pc.count_item(red_perla) >= 5 then
                                                               if pc.count_item(blue_perla) >= 5 then
                                                               if pc.count_item(white_perla) >= 5 then
                                                               if pc.count_item(bojowy) >= 1 then
                                                                       pc.give_item2(runiczny, 1)
                                                                       pc.remove_item(red_perla,5)
                                                                       pc.remove_item(blue_perla,5)
                                                                       pc.remove_item(white_perla,5)
                                                                       pc.remove_item(bojowy,1)
                                                               else
                                                                       say(perly_brak)
                                                               end
                                                               elseif 3 == s then
                                                               if pc.count_item(red_perla) >= 5 then
                                                               if pc.count_item(blue_perla) >= 5 then
                                                               if pc.count_item(white_perla) >= 5 then
                                                               if pc.count_item(parta) >= 1 then
                                                                       pc.give_item2(n_2reczna, 1)
                                                                       pc.remove_item(red_perla,5)
                                                                       pc.remove_item(blue_perla,5)
                                                                       pc.remove_item(white_perla,5)
                                                                       pc.remove_item(parta,1)
                                                               else
                                                                       say(perly_brak)
                                                               end
                                                       end
                                               end
                                               elseif pc.get_job() == 1 then
                                                       local s = select ( "Zbroję " , "Łuk " , "Sztylety " , "Anuluj" )
                                                               if 1 == s then
                                                               if pc.count_item(red_perla) >= 10 then
                                                               if pc.count_item(blue_perla) >= 10 then
                                                               if pc.count_item(white_perla) >= 10 then
                                                               if pc.count_item(stal_ninja) = 1 then
                                                                       pc.give_item2(43010, 1)
                                                                       pc.remove_item(red_perla,10)
                                                                       pc.remove_item(blue_perla,10)
                                                                       pc.remove_item(white_perla,10)
                                                                       pc.remove_item(stal_ninja,1)
                                                               else
                                                                       say(perly_brak)
                                                               end
                                                               elseif 2 == s then
                                                               if pc.count_item(red_perla) >= 5 then
                                                               if pc.count_item(blue_perla) >= 5 then
                                                               if pc.count_item(white_perla) >= 5 then
                                                               if pc.count_item(luk) >= 1 then
                                                                       pc.give_item2(n_luk, 1)
                                                                       pc.remove_item(red_perla,5)
                                                                       pc.remove_item(blue_perla,5)
                                                                       pc.remove_item(white_perla,5)
                                                                       pc.remove_item(luk,1)
                                                               else
                                                                       say(perly_brak)
                                                               end
                                                               elseif 3 == s then
                                                               if pc.count_item(red_perla) >= 5 then
                                                               if pc.count_item(blue_perla) >= 5 then
                                                               if pc.count_item(white_perla) >= 5 then
                                                               if pc.count_item(smoczy_noz) >= 1 then
                                                                       pc.give_item2(n_sztylet, 1)
                                                                       pc.remove_item(red_perla,5)
                                                                       pc.remove_item(blue_perla,5)
                                                                       pc.remove_item(white_perla,5)
                                                                       pc.remove_item(smoczy_noz,1)
                                                               else
                                                                       say(perly_brak)
                                                               end
                                                       end
                                               end
                                               elseif pc.get_job() == 2 then
                                                       local s = select ( "Zbroję " , "Miecz " , "Anuluj" )
                                                               if 1 == s then
                                                               if pc.count_item(red_perla) >= 10 then
                                                               if pc.count_item(blue_perla) >= 10 then
                                                               if pc.count_item(white_perla) >= 10 then
                                                               if pc.count_item(stal_sura) = 1 then
                                                                       pc.give_item2(43000, 1)
                                                                       pc.remove_item(red_perla,10)
                                                                       pc.remove_item(blue_perla,10)
                                                                       pc.remove_item(white_perla,10)
                                                                       pc.remove_item(stal_sura,1)
                                                               else
                                                                       say(perly_brak)
                                                               end
                                                               elseif 2 == s then
                                                               if pc.count_item(red_perla) >= 5 then
                                                               if pc.count_item(blue_perla) >= 5 then
                                                               if pc.count_item(white_perla) >= 5 then
                                                               if pc.count_item(egzo) >= 1 then
                                                                       pc.give_item2(n_sura, 1)
                                                                       pc.remove_item(red_perla,5)
                                                                       pc.remove_item(blue_perla,5)
                                                                       pc.remove_item(white_perla,5)
                                                                       pc.remove_item(egzo,1)
                                                               else
                                                                       say(perly_brak)
                                                               end
                                                       end
                                               end
                                               elseif pc.get_job() == 3 then
                                                       local s = select ( "Zbroję " , "Dzwon " , "Wachlarz " , "Anuluj" )
                                                               if 1 == s then
                                                               if pc.count_item(red_perla) >= 10 then
                                                               if pc.count_item(blue_perla) >= 10 then
                                                               if pc.count_item(white_perla) >= 10 then
                                                               if pc.count_item(stal_szaman) = 1 then
                                                                       pc.give_item2(43020, 1)
                                                                       pc.remove_item(red_perla,10)
                                                                       pc.remove_item(blue_perla,10)
                                                                       pc.remove_item(white_perla,10)
                                                                       pc.remove_item(stal_szaman,1)
                                                               else
                                                                       say(perly_brak)
                                                               end
                                                               elseif 2 == s then
                                                               if pc.count_item(red_perla) >= 5 then
                                                               if pc.count_item(blue_perla) >= 5 then
                                                               if pc.count_item(white_perla) >= 5 then
                                                               if pc.count_item(dzwon) >= 1 then
                                                                       pc.give_item2(n_dzwon, 1)
                                                                       pc.remove_item(red_perla,5)
                                                                       pc.remove_item(blue_perla,5)
                                                                       pc.remove_item(white_perla,5)
                                                                       pc.remove_item(dzwon,1)
                                                               else
                                                                       say(perly_brak)
                                                               end
                                                               elseif 3 == s then
                                                               if pc.count_item(red_perla) >= 5 then
                                                               if pc.count_item(blue_perla) >= 5 then
                                                               if pc.count_item(white_perla) >= 5 then
                                                               if pc.count_item(wachlarz) >= 1 then
                                                                       pc.give_item2(n_wachlarz, 1)
                                                                       pc.remove_item(red_perla,5)
                                                                       pc.remove_item(blue_perla,5)
                                                                       pc.remove_item(white_perla,5)
                                                                       pc.remove_item(wachlarz,1)
                                                               else
                                                                       say(perly_brak)
                                                               end
                                                       end
                                               end
                               end -- end_chat
               end -- end_state
end -- end_quest

 

Opublikowano

elo ,mam prosbe o questa.

Po nasunięciu ITEMU:4000 na item:5000

(chyba ,,when 20094.take with item.vnum == 70104,,)

Query sprawdza czy w player.specjal w kolumnie specjal1 jest wartość 0 ,jeżeli tak to nadaje wartość 1)

4funmt2.pl

Opublikowano

Pierwszy quest polski znak przy " po szukaj ^^

 

Drugi quest sprawdź:

http://wklej.to/744oq

 

Trzeci quest nie działa strona www

 

Czwarty quest sprawdź:

http://wklej.to/rO7fi

 

Odsyłam do tematów:

http://www.mpcforum.pl/topic/808170-quest-tips-tricks/

http://www.mpcforum.pl/topic/792847-tuttablice-w-questach-czyli-czym-to-sie-je/

 

@ 2x UP

20094 to chyba ten co u niego robi się epki, a więc kowal i ten z doliny nie mogę mieć take (blokuje to game) funkcja take w game do tych npc jest przypisana jako ulepszanie (inaczej wytłumaczyć tego nie umiem)

Nieregulaminowa sygnatura

Opublikowano

20094 to chyba ten co u niego robi się epki, a więc kowal i ten z doliny nie mogę mieć take (blokuje to game) funkcja take w game do tych npc jest przypisana jako ulepszanie (inaczej wytłumaczyć tego nie umiem)

Nope, to 20091. I to jeszcze zależy, czy refined_vnum(raczej to pole) jest ustawione pod ulepszanie.

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...