Advertisement
Guest User

Untitled

a guest
Sep 15th, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.49 KB | None | 0 0
  1. quest osiagniecia begin
  2. state start begin
  3. when login or levelup begin
  4. bcaa = tonumber(pc.getf("achiev", "points"))
  5. local sm = mysql_direct_query("SELECT po FROM account.account WHERE id='"..pc.get_account_id().."'")
  6. cmdchat("PO "..bcaa)
  7. cmdchat("SM "..sm.cash)
  8. end
  9. -----------------------------------------------------------------------------------------------------------------------
  10. --- kupony
  11. -----------------------------------------------------------------------------------------------------------------------
  12. when 864.use begin
  13. if not pc.can_warp() then
  14. syschat("Odczekaj 10 sekund.")
  15. return
  16. end
  17. pc.remove_item(864, 1)
  18. pc.setf("achiev", "points", 50 + pc.getf("achiev", "points"))
  19. bcaa = tonumber(pc.getf("achiev", "points"))
  20. cmdchat("PO "..bcaa)
  21. syschat("50 Punktów Osiągnięć dodanych!")
  22. end
  23. when 866.use begin
  24. if not pc.can_warp() then
  25. syschat("Odczekaj 10 sekund.")
  26. return
  27. end
  28. pc.remove_item(866, 1)
  29. pc.setf("achiev", "points", 150 + pc.getf("achiev", "points"))
  30. bcaa = tonumber(pc.getf("achiev", "points"))
  31. cmdchat("PO "..bcaa)
  32. syschat("150 Punktów Osiągnięć dodanych!")
  33. end
  34. when 868.use begin
  35. if not pc.can_warp() then
  36. syschat("Odczekaj 10 sekund.")
  37. return
  38. end
  39. pc.remove_item(868, 1)
  40. pc.setf("achiev", "points", 500 + pc.getf("achiev", "points"))
  41. bcaa = tonumber(pc.getf("achiev", "points"))
  42. cmdchat("PO "..bcaa)
  43. syschat("500 Punktów Osiągnięć dodanych!")
  44. end
  45. -----------------------------------------------------------------------------------------------------------------------
  46. --- zabicia bosów
  47. -----------------------------------------------------------------------------------------------------------------------
  48. when kill begin
  49. local tablica_bossy = {
  50. [1] = {222, 1, "Osiągnięcie:/Pokonałeś:/Dendroculusa/", "Gratulacje:/Unicestwiłeś/Dendroculusa/", "Życzymy/powodzenia/w/dalszej/rozgrywce!", 2, 3, 4},
  51. [2] = {225, 1, "Osiągnięcie:/Pokonałeś:/Abandonna/", "Gratulacje:/Unicestwiłeś/Abandonna/", "Życzymy/powodzenia/w/dalszej/rozgrywce!", 2, 4, 4},
  52. [3] = {228, 1, "Osiągnięcie:/Pokonałeś:/Księżycowe/Monstrum", "Gratulacje:/Unicestwiłeś/Księżycowe/Monstrum", "Życzymy/powodzenia/w/dalszej/rozgrywce!", 2, 3, 4},
  53. [4] = {230, 50, "Osiągnięcie:/Pokonałeś:/Motherfucker'a/", "Gratulacje:/Unicestwiłeś/Motherfucker'a/", "Życzymy/powodzenia/w/dalszej/rozgrywce!", 2, 3, 4},
  54. }
  55.  
  56. for i = 1, table.getn(tablica_bossy) do
  57. if npc.get_race() == tablica_bossy[i][1] then
  58. pc.setf("achiev", "points", tablica_bossy[i][2] + pc.getf("achiev", "points"))
  59. cmdchat("Osiagniecie "..tablica_bossy[i][3].."|"..tablica_bossy[i][4].."|"..tablica_bossy[i][5].."|"..tablica_bossy[i][2].."|"..tablica_bossy[i][6].."|"..tablica_bossy[i][7].."|"..tablica_bossy[i][8].."")
  60. bcaa = tonumber(pc.getf("achiev", "points"))
  61. cmdchat("PO "..bcaa)
  62. end
  63. end
  64. end
  65. -----------------------------------------------------------------------------------------------------------------------
  66. --- zabicia metinów
  67. -----------------------------------------------------------------------------------------------------------------------
  68. when kill begin
  69. local tablica_metiny = {
  70. [1] = {221, 1, "Osiągnięcie:/Zniszczyłeś:/Podgrzybka/", "Gratulacje:/Zniszczyłeś/Podgrzybka/", "Życzymy/powodzenia/w/dalszej/rozgrywce!", 3, 3, 4},
  71. [2] = {224, 1, "Osiągnięcie:/Zniszczyłeś:/Smocze/Jajo", "Gratulacje:/Zniszczyłeś/Smocze/Jajo", "Życzymy/powodzenia/w/dalszej/rozgrywce!", 3, 3, 4},
  72. [3] = {227, 1, "Osiągnięcie:/Zniszczyłeś:/Księzycowe/Jajo", "Gratulacje:/Zniszczyłeś/Księżycowe/Jajo", "Życzymy/powodzenia/w/dalszej/rozgrywce!", 3, 3, 4},
  73. [4] = {8040, 1, "Osiągnięcie:/Zniszczyłeś:/Kamień/Początku", "Gratulacje:/Zniszczyłeś/Kamień/Początku", "Życzymy/powodzenia/w/dalszej/rozgrywce!", 3, 3, 4},
  74.  
  75. }
  76. for i = 1, table.getn(tablica_metiny) do
  77. if npc.get_race() == tablica_metiny[i][1] then
  78. pc.setf("achiev", "points", tablica_metiny[i][2] + pc.getf("achiev", "points"))
  79. cmdchat("Osiagniecie "..tablica_metiny[i][3].."|"..tablica_metiny[i][4].."|"..tablica_metiny[i][5].."|"..tablica_metiny[i][2].."|"..tablica_metiny[i][6].."|"..tablica_metiny[i][7].."|"..tablica_metiny[i][8].."")
  80. bcaa = tonumber(pc.getf("achiev", "points"))
  81. cmdchat("PO "..bcaa)
  82. end
  83. end
  84. end
  85. end
  86. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement