Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function quest_random(p: player, poziom: integer):
- set metadata value "questDialog" of {_p} to "Random"
- set metadata value "questPoziom" of {_p} to {_poziom}
- if {_poziom} is 1:
- send " " to {_p}
- send " " to {_p}
- send " " to {_p}
- send " " to {_p}
- send " " to {_p}
- send " " to {_p}
- send " " to {_p}
- send " " to {_p}
- send " " to {_p}
- send " " to {_p}
- send "&a&lRandom &8» &bWitaj %{_p}%, co cię do mnie sprowadza?" to {_p}
- send "&7 - <tooltip:&aKliknij wybrany dialog><cmd:/quest odpowiedz Random 1>Chce udać się do Netheru!" to {_p}
- send "&7 - <tooltip:&aKliknij wybrany dialog><cmd:/quest odpowiedz Random 2>Mogę wymienić u ciebie itemy z potworów?" to {_p}
- send "&7 - <tooltip:&aKliknij wybrany dialog><cmd:/quest odpowiedz Random 3>A nic... Już mnie nie ma" to {_p}
- send " " to {_p}
- stop
- command /quest <text> [<text>] [<text>] [<text>]:
- trigger:
- if arg 1 is "test":
- quest_random(player, 1)
- else if arg 1 is "odpowiedz":
- set {_m} to metadata value "questPoziom" of player
- quest_odpowiedz(player, arg 2, arg 3 parsed as integer, {_m})
- function quest_odpowiedz(p: player, npc: text, i: integer, poziom: integer):
- if metadata value "questDialog" of {_p} is {_npc}:
- if {_npc} is "Random":
- if {_poziom} is 1:
- clear metadata value "questDialog" of {_p}
- clear metadata value "questPoziom" of {_p}
- if {_i} is 1:
- send "[taktyczna dalsza czesc rozmowy (part 2)]" to {_p}
- quest_random({_p}, 2)
- else if {_i} is 2:
- send "&a&lRandom &8» &bA oto i moje przedmioty!" to {_p}
- wait 1 seconds
- open chest inventory with 6 rows named "[interfejs z wymiana]" for {_p}
- else if {_i} is 3:
- send "&a&lRandom &8» &bTo do milego!" to {_p}
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement