Advertisement
Guest User

Untitled

a guest
Feb 17th, 2020
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.40 KB | None | 0 0
  1. quest systemy_runy begin
  2. state start begin
  3. when login begin
  4. cmdchat("runeID "..q.getcurrentquestindex())
  5. local vnumList = {6990, 6991, 6992, 6993, 6994, 6995, 6996, 6997, 6998}
  6. for i = 1, table.getn(vnumList) do
  7. if pc.getqf("runaCzas"..vnumList[i]) <= get_time() then
  8. pc.setqf("runaCzas"..vnumList[i], 0)
  9. pc.setqf("runaVnum"..vnumList[i], 0)
  10. end
  11. end
  12. end
  13.  
  14. when info or button begin
  15. local runeList = {
  16. {6990, 0},
  17. {6991, 2},
  18. {6992, 3},
  19. {6993, 5},
  20. {6994, 1},
  21. {6994, 6},
  22. {6996, 7},
  23. {6997, 8},
  24. {6998, 9},
  25. }
  26. cmdchat("openRune 0|0|0|2|0|3|0|5|0|4|0|1|0|7|8|9")
  27. for i = 1, table.getn(runeList) do
  28. if pc.getqf("runaVnum"..runeList[i][1]) != 0 then
  29. cmdchat("setRune "..runeList[i][1].."#"..runeList[i][2])
  30. end
  31. end
  32. end
  33.  
  34. when 20001.chat."Artefakty - Drop Ulepszaczy" begin
  35. say_title(mob_name(npc.get_race())..":")
  36. say("Artefakt #1:")
  37. say("Artefakt #2:")
  38. say("Artefakt #3:")
  39. say("Artefakt #4:")
  40. say("Artefakt #5:")
  41. say("Artefakt #6:")
  42. say("Artefakt #7:")
  43. say("Artefakt #8:")
  44. say("Artefakt #9:")
  45. say("")
  46. end
  47.  
  48. when 6990.use or 6991.use or 6992.use or 6993.use or 6994.use or 6995.use or 6996.use or 6997.use or 6998.use begin
  49. if get_time() < pc.getqf("runaCzas"..item.get_vnum()) then
  50. syschat("|cFFD966FF(System Artefaktów):|h|r Nie możesz użyć jeszcze tej runy!")
  51. return
  52. end
  53. local bonus = {
  54. [6990] = {1, 2500, 0},
  55. [6991] = {1, 5000, 2},
  56. [6992] = {17, 15, 3},
  57. [6993] = {17, 15, 5},
  58. [6994] = {93, 15, 1},
  59. [6995] = {72, 7, 6},
  60. [6996] = {17, 15, 7},
  61. [6997] = {93, 15, 8},
  62. [6998] = {72, 7, 9},
  63. }
  64. cmdchat("setRune "..item.get_vnum().."#"..bonus[item.get_vnum()][3])
  65. affect.add_collect(bonus[item.get_vnum()][1], bonus[item.get_vnum()][2], 1)
  66. pc.setqf("runaCzas"..item.get_vnum(), get_time()+1)
  67. pc.setqf("runaVnum"..item.get_vnum(), item.get_vnum())
  68. pc.remove_item(item.get_vnum(), 1)
  69. end
  70. end
  71. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement