Advertisement
Guest User

Untitled

a guest
Jun 14th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.74 KB | None | 0 0
  1. quest WytwarzanieMarmurow begin
  2. state start begin
  3. when login begin
  4. cmdchat("TworzenieMarmurow "..q.getcurrentquestindex())
  5. end
  6.  
  7. when button or info begin
  8. chat("Testowa wiadomość...")
  9. local Tworzenie = getinput("getinput")
  10.  
  11. if Tworzenie == "Wytworz1" then
  12. if pc.count_item(10) < 1 or pc.count_item(11) < 1 or pc.count_item(12) < 1 then
  13. syschat("[Informacja] Nie posiadasz przy sobie odpowiednich materiałów aby wytworzyć ten marmur!")
  14. return
  15. end
  16.  
  17. local szansa = number(1, 100)
  18. if szansa <= 50 then
  19. pc.give_item2(70104, 1)
  20. for d = 0, 300 do
  21. if item.select_cell(d) then
  22. if item.get_vnum() == 70104 then
  23. if item.get_socket(0) == 0 then
  24. item.set_socket(0, 101)
  25. syschat("[Informacja] Otrzymałeś marmur jakiś tam...")
  26. end
  27. end
  28. end
  29. end
  30. else
  31. syschat("[Informacja] Niestety nie udało się wytworzyć marmuru!")
  32. end
  33. pc.remove_item(10, 1)
  34. pc.remove_item(11, 1)
  35. pc.remove_item(12, 1)
  36. end
  37. --[[
  38. if Tworzenie == "Wytworz2" then
  39. if pc.count_item(ID_KAMIENIA) < 1 or pc.count_item(ID_KAMIENIA) < 1 or pc.count_item(ID_KAMIENIA) < 1 then
  40. syschat("[Informacja] Nie posiadasz przy sobie odpowiednich materiałów aby wytworzyć ten marmur!")
  41. return
  42. end
  43.  
  44. local szansa = number(1, 100)
  45. if szansa <= 60 then
  46. pc.give_item2(ID_MARMURU2, 1)
  47. for d = 0, 300 do
  48. if item.select_cell(d) then
  49. if item.get_vnum() == ID_MARMURU2 then
  50. if item.get_socket(0) == 0 then
  51. item.set_socket(0, ID_MOBA2)
  52. syschat("[Informacja] Otrzymałeś marmur jakiś tam...")
  53. end
  54. end
  55. end
  56. end
  57. else
  58.  
  59. end
  60. pc.remove_item(ID_KAMIENA, 1)
  61. pc.remove_item(ID_KAMIENA, 1)
  62. pc.remove_item(ID_KAMIENA, 1)
  63. end
  64.  
  65. if Tworzenie == "Wytworz3" then
  66. if pc.count_item(ID_KAMIENIA) < 1 or pc.count_item(ID_KAMIENIA) < 1 or pc.count_item(ID_KAMIENIA) < 1 then
  67. syschat("[Informacja] Nie posiadasz przy sobie odpowiednich materiałów aby wytworzyć ten marmur!")
  68. return
  69. end
  70.  
  71. local szansa = number(1, 100)
  72. if szansa <= 80 then
  73. pc.give_item2(ID_MARMURU3, 1)
  74. for d = 0, 300 do
  75. if item.select_cell(d) then
  76. if item.get_vnum() == ID_MARMURU3 then
  77. if item.get_socket(0) == 0 then
  78. item.set_socket(0, ID_MOBA2)
  79. syschat("[Informacja] Otrzymałeś marmur jakiś tam...")
  80. end
  81. end
  82. end
  83. end
  84. else
  85. syschat("[Informacja] Niestety nie udało się wytworzyć marmuru!")
  86. end
  87. pc.remove_item(ID_KAMIENA, 1)
  88. pc.remove_item(ID_KAMIENA, 1)
  89. pc.remove_item(ID_KAMIENA, 1)
  90. end
  91. ]]--
  92. end
  93. end
  94. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement