Advertisement
szumielxd

Untitled

Jul 6th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1. function quest_random(p: player, poziom: integer):
  2. set metadata value "questDialog" of {_p} to "Random"
  3. set metadata value "questPoziom" of {_p} to {_poziom}
  4. if {_poziom} is 1:
  5. send " " to {_p}
  6. send " " to {_p}
  7. send " " to {_p}
  8. send " " to {_p}
  9. send " " to {_p}
  10. send " " to {_p}
  11. send " " to {_p}
  12. send " " to {_p}
  13. send " " to {_p}
  14. send " " to {_p}
  15. send "&a&lRandom &8» &bWitaj %{_p}%, co cię do mnie sprowadza?" to {_p}
  16. send "&7 - <tooltip:&aKliknij wybrany dialog><cmd:/quest odpowiedz Random 1>Chce udać się do Netheru!" to {_p}
  17. send "&7 - <tooltip:&aKliknij wybrany dialog><cmd:/quest odpowiedz Random 2>Mogę wymienić u ciebie itemy z potworów?" to {_p}
  18. send "&7 - <tooltip:&aKliknij wybrany dialog><cmd:/quest odpowiedz Random 3>A nic... Już mnie nie ma" to {_p}
  19. send " " to {_p}
  20. stop
  21.  
  22.  
  23.  
  24. command /quest <text> [<text>] [<text>] [<text>]:
  25. trigger:
  26. if arg 1 is "test":
  27. quest_random(player, 1)
  28. else if arg 1 is "odpowiedz":
  29. set {_m} to metadata value "questPoziom" of player
  30. quest_odpowiedz(player, arg 2, arg 3 parsed as integer, {_m})
  31.  
  32.  
  33.  
  34.  
  35. function quest_odpowiedz(p: player, npc: text, i: integer, poziom: integer):
  36. if metadata value "questDialog" of {_p} is {_npc}:
  37. if {_npc} is "Random":
  38. if {_poziom} is 1:
  39. clear metadata value "questDialog" of {_p}
  40. clear metadata value "questPoziom" of {_p}
  41. if {_i} is 1:
  42. send "[taktyczna dalsza czesc rozmowy (part 2)]" to {_p}
  43. quest_random({_p}, 2)
  44. else if {_i} is 2:
  45. send "&a&lRandom &8» &bA oto i moje przedmioty!" to {_p}
  46. wait 1 seconds
  47. open chest inventory with 6 rows named "[interfejs z wymiana]" for {_p}
  48. else if {_i} is 3:
  49. send "&a&lRandom &8» &bTo do milego!" to {_p}
  50. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement