Guest User

SteamCraft 1.0!

a guest
Jul 17th, 2015
315
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.64 KB | None | 0 0
  1. variables:
  2. {steamcraft::%player%::account::balance} = 0
  3. options:
  4. tag: &8[&3SteamCraft&8]
  5. cena.kupna: 50
  6.  
  7. command /sc [<text>] [<text>] [<integer>] [<player>]:
  8. trigger:
  9. if arg 1 is not set:
  10. if {steamcraft::%player%::logged} is true:
  11. send "&2&m-----------------------------------------------------"
  12. send "&b SteamCraft [zalogowany, %{steamcraft::%player%::account::balance}%$]"
  13. send "&7- &e/sc usun &7- Usuwa konto SteamCraft"
  14. send "&7- &e/sc lista &7- Lista kont SteamCraft&b*"
  15. send "&7- &e/sc wyloguj &7- Wylogowywuje Cie z konta SteamCraft"
  16. send "&7- &e/sc dodaj [nazwa_gry] &7- Dodaje gre do SteamCraft&b*"
  17. send "&7- &e/sc usungre [nazwa_gry] &7- Usuwa gre z SteamCraft&b*"
  18. send "&7- &e/sc gry &7- Lista gier w SteamCraft"
  19. send "&7- &e/sc mojegry &7- Lista twoich gier w SteamCraft"
  20. send "&7- &e/sc kup [nazwa_gry] &7- Kupujesz gre ze sklepu SteamCraft"
  21. send "&7- &e/sc dodajgraczowi [nazwa_gry] [gracz] &7- Dodaje gre ze sklepu SteamCraft dla gracza&b*"
  22. send "&7- &e/sc usungraczowi [nazwa_gry] [gracz] &7- Usuwa gre ze sklepu SteamCraft dla gracza&b*"
  23. send "&b* - dla administratora"
  24. send "&b by boleknowak"
  25. send "&2&m-----------------------------------------------------"
  26. else:
  27. send "&2&m-----------------------------------------------------"
  28. send "&b SteamCraft"
  29. send "&7- &e/sc stworz [haslo] &7- Tworzy konto SteamCraft"
  30. send "&7- &e/sc login [haslo] &7- Loguje Cie na konto SteamCraft"
  31. send "&b by boleknowak"
  32. send "&2&m-----------------------------------------------------"
  33. if arg 1 is "stworz":
  34. if arg 2 is set:
  35. if {steamcraft::%player%::account} is true:
  36. send "{@tag} &cMasz juz konto!"
  37. else:
  38. set {steamcraft::%player%::password} to arg 2
  39. send "{@tag} &aTwoje nowe konto to: &6%player%&a, a haslo: &6%arg 2%"
  40. set {steamcraft::%player%::account} to true
  41. add "%player%_%arg 2%" to {steamcraft::account::*}
  42. if arg 1 is "usun":
  43. if {steamcraft::%player%::account} is true:
  44. send "{@tag} &aPomyslnie usunales konto SteamCraft!"
  45. delete {steamcraft::%player%::account}
  46. delete {steamcraft::%player%::password}
  47. remove "%player%_%{steamcraft::%player%::password}%" from {steamcraft::account::*}
  48. else:
  49. send "{@tag} &cNie masz konta!"
  50. if arg 1 is "lista":
  51. if player has permission "steamcraft.lista.uzytkownicy":
  52. send "{@tag} &6Lista kont SteamCraft:"
  53. send "{@tag} &9Ilosc kont: %size of {steamcraft::account::*}%"
  54. send "{@tag} &9Konta:"
  55. set {_} to "%{steamcraft::account::*}%"
  56. replace all "and" with ", " in {_}
  57. send "%{_}%"
  58. delete {_}
  59. if arg 1 is "login":
  60. if arg 2 is set:
  61. if {steamcraft::%player%::account} is true:
  62. if arg 2 is "%{steamcraft::%player%::password}%":
  63. if {steamcraft::%player%::logged} is true:
  64. send "{@tag} &cJestes zalogowany!"
  65. else:
  66. send "{@tag} &aZalogowano!"
  67. set {steamcraft::%player%::logged} to true
  68. else:
  69. send "{@tag} &cPodales zle haslo, lub twoje konto nie istnieje!"
  70. else:
  71. send "{@tag} &cNie masz konta!"
  72. if arg 1 is "logout" or "wyloguj":
  73. if {steamcraft::%player%::logged} is true:
  74. set {steamcraft::%player%::logged} to false
  75. send "{@tag} &aWylogowales sie pomyslnie!"
  76. else:
  77. send "{@tag} &cNie jestes zalogowany!"
  78. if arg 1 is "dodaj":
  79. if arg 2 is set:
  80. if player has permission "steamcraft.add.game":
  81. if file "plugins/Skript/scripts/%arg 2%.sk" doesn't exists:
  82. send "&cNie ma takiego skryptu." to player
  83. else:
  84. send "&aDodano: &6&l%arg 2%" to player
  85. add "%arg 2%" to {steamcraft::games::*}
  86. else:
  87. send "{@tag} &cNie mozesz tego zrobic!"
  88. if arg 1 is "usungre":
  89. if arg 2 is set:
  90. if player has permission "steamcraft.remove.game":
  91. remove "%arg 2%" from {steamcraft::games::*}
  92. send "{@tag} &aUsunales gre: &6&l%arg 2%"
  93. if arg 1 is "gry":
  94. send "{@tag} &9Ilosc gier: %size of {steamcraft::games::*}%"
  95. send "{@tag} &9Gry:"
  96. set {_} to "%{steamcraft::games::*}%"
  97. replace all " and" with ", " in {_}
  98. replace all "<none>" with "Brak gier!" in {_}
  99. send "&a%{_}%"
  100. delete {_}
  101. if arg 1 is "kup":
  102. if arg 2 is set:
  103. if {steamcraft::%player%::logged} is false:
  104. send "{@tag} &cMusisz byc zalogowany!"
  105. else:
  106. if {steamcraft::%player%::account::balance} >= {@cena.kupna}:
  107. loop {steamcraft::games::*}:
  108. if loop-value is arg 2:
  109. send "{@tag} &aZakupiles gre &6&l%arg 2%&a, koszt &6&l50"
  110. add "%arg 2%" to {steamcraft::%player%::games::*}
  111. stop
  112. send "{@tag} &cNie ma takiej gry!"
  113. stop
  114. else:
  115. send "{@tag} &cNie stac Cie!"
  116. if arg 1 is "mojegry":
  117. if {steamcraft::%player%::logged} is false:
  118. send "{@tag} &cMusisz byc zalogowany!"
  119. else:
  120. send "{@tag} &9Moje gry:"
  121. set {_} to "%{steamcraft::%player%::games::*}%"
  122. replace all " and" with ", " in {_}
  123. replace all "<none>" with "Brak gier!" in {_}
  124. send "&a%{_}%"
  125. delete {_}
  126. if arg 1 is "dodajgraczowi":
  127. if arg 2 is set:
  128. if player-arg is set:
  129. if player has permission "steamcraft.addgame.user":
  130. if {steamcraft::%player%::account} is true:
  131. if file "plugins/Skript/scripts/%arg 2%.sk" doesn't exists:
  132. send "{@tag} &cNie ma takiej gry"
  133. else:
  134. add "%arg 2%" to {steamcraft::%player-arg%::games::*}
  135. send "{@tag} &aDodano gre &6&l%arg 2% &agraczowi &6&l%player-arg%"
  136. if arg 1 is "usungraczowi":
  137. if arg 2 is set:
  138. if player-arg is set:
  139. if player has permission "steamcraft.removegame.user":
  140. if {steamcraft::%player%::account} is true:
  141. loop {steamcraft::%player-arg%::games::*}:
  142. if loop-value is arg 2:
  143. remove "%arg 2%" from {steamcraft::%player-arg%::games::*}
  144. send "{@tag} &aUsunieto gre &6&l%arg 2% &agraczowi &6&l%player-arg%"
  145. stop
  146. if arg 1 is "graj":
  147. if arg 2 is set:
  148. if {steamcraft::%player%::logged} is false:
  149. send "{@tag} &cMusisz byc zalogowany!"
  150. else:
  151. loop {steamcraft::%player%::games::*}:
  152. if loop-value is arg 2:
  153. execute console command "pex user %player% add ""steamcraft.joingame.bypass"""
  154. send "{@tag} &aŁączenie z grą..."
  155. wait 2 seconds
  156. execute player command "%arg 2% join"
  157. wait 5 tick
  158. execute console command "pex user %player% remove ""steamcraft.joingame.bypass"""
  159. stop
  160. send "{@tag} &cNie masz tej gry!"
  161. stop
  162. on quit:
  163. execute player command "sc logout"
Advertisement
Add Comment
Please, Sign In to add comment