SopelPL

Untitled

Feb 25th, 2018
2,226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.72 KB | None | 0 0
  1. #Beta 2.0#
  2. options:
  3. logo: &bDuel &7>>
  4. variables:
  5. {iloscaren} = 0
  6. {saveInventory} = false
  7. on sign change:
  8. if line 1 is "duel":
  9. if line 2 is "dolacz" or "join":
  10. if line 3 is set:
  11. if file "plugins/Duel/areny/%uncolored line 3%.yml" exists:
  12. set line 1 to "&bDuel"
  13. set line 2 to "&aDolacz"
  14. set line 3 to "%uncolored line 3%"
  15. else:
  16. set line 3 to "&4ERROR"
  17. if line 1 is "duel":
  18. if line 2 is "status":
  19. if line 3 is set:
  20. if file "plugins/Duel/areny/%uncolored line 3%.yml" exists:
  21. set line 1 to "&bDuel"
  22. set line 2 to "&aStatus"
  23. set line 3 to "%uncolored line 3%"
  24. else:
  25. set line 3 to "&4ERROR"
  26. on rightclick on sign:
  27. if line 1 of clicked block is "&bDuel":
  28. if line 2 of clicked block is "&aDolacz":
  29. if line 3 of clicked block is set:
  30. execute player command "duel dolacz %uncolored line 3%"
  31. stop
  32. if line 1 of clicked block is "&bDuel":
  33. if line 2 of clicked block is "&aStatus":
  34. if line 3 of clicked block is set:
  35. send "&aStatus areny &b%line 3%"
  36. send "&7>> &cW grze: &a%{start.%uncolored line 3%}%"
  37. send "&7>> &cGraczy na arenie: &a%{gracze.%uncolored line 3%}%"
  38. stop
  39. on load:
  40. if folder "plugins/Duel" doesn't exists:
  41. create folder "plugins/Duel"
  42. create folder "plugins/Duel/areny"
  43. create file "plugins/Duel/config.yml"
  44. set "cfg.saveInv" to "false" in yaml file "plugins/Duel/config.yml"
  45. else:
  46. set {_req} to single value "cfg.saveInv" get of "plugins/Duel/config.yml" parsed as boolean
  47. set {saveInventory} to {_req}
  48. set {_version} to content of file "plugins/Skript/scripts/%script%.sk"
  49. set {_v} to index of "##" in {_version}
  50. set {_v2} to subtext of {_version} from character ({_v}+1) to character (length of {_version})
  51. set {_v3} to index of "##" in {_v2}
  52. set {version} to subtext of {_version} from character ({_v}+1) to character ({_v3})
  53. set {_version} to result of connect to "https://pastebin.com/raw/UfHan3Df"
  54. set {version.new} to subtext of {_version} from character ({_v}+1) to character ({_v3})
  55. {version} is not {version.new}:
  56. send "&aDostepna jest nowa wersja skryptu! Pobierz ja /duel pobierz" to console
  57.  
  58. command /duel [<text>] [<text>] [<text>]:
  59. trigger:
  60. if arg 1 is not set:
  61. send "&aKomendy &bDuel&a:"
  62. send "&7/duel dolacz <arena> - &aDolaczasz do areny"
  63. send "&7/duel opusc <arena> - &aOpuszczasz arene"
  64. send "&7/duel lista - &aLista aren"
  65. send "&7/duel profil - &aPokazuje twoj profil"
  66. send "&7/duel ranking - &aPokazuje ranking graczy"
  67. if player has permission "sduel.admin":
  68. send "&7/duel stworz <arena> - &aTworzy arene"
  69. send "&7/duel ustaw spawn1/2 <arena> - &aUstawia spawn 1 i 2 na danej arenie"
  70. send "&7/duel zapisz ekwipunek <arena> - &aZapisuje ekwipunek na danej arenie"
  71. send "&7/duel wczytaj ekwipunek <arena> - &aWczytuje (w celach testowych) ekwipunek danej areny"
  72. send "&7/duel dodaj nagroda <arena> - &aDodaje item z reki do listy nagrod danej areny"
  73. send "&7/duel przenies lobby <arena> - &aUstawia lobby dla danej areny"
  74. send "&7/duel usun <arena> - &aUsuwa arene"
  75. send "&7/duel wersja - &aPokazuje informacje o wersji"
  76. send "&7/duel pobierz - &aPobiera najnowsza wersje"
  77. send "&7/duel profil <nick> - &aPokazuje profil gracza"
  78. if arg 1 is "pobierz" or "download":
  79. set {_version} to result of connect to "https://pastebin.com/raw/UfHan3Df"
  80. set {_v} to index of "##" in {_version}
  81. set {_v2} to subtext of {_version} from character ({_v}+1) to character (length of {_version})
  82. set {_v3} to index of "##" in {_v2}
  83. set {version.new} to subtext of {_version} from character ({_v}+1) to character ({_v3})
  84. {version} is not {version.new}:
  85. download "https://pastebin.com/raw/UfHan3Df" to "plugins/Skript/scripts/%script%.sk"
  86. send "{@logo} &aNajnowsza wersja zostala pobrana przeladuj skrypt!"
  87. else:
  88. send "{@logo} &c&nPosiadasz aktualna wersje skryptu!"
  89. stop
  90. if arg 1 is "wersja" or "version":
  91. set {_version} to result of connect to "https://pastebin.com/raw/UfHan3Df"
  92. set {_v} to index of "##" in {_version}
  93. set {_v2} to subtext of {_version} from character ({_v}+1) to character (length of {_version})
  94. set {_v3} to index of "##" in {_v2}
  95. set {version.new} to subtext of {_version} from character ({_v}+1) to character ({_v3})
  96. send "{@logo} &aTwoja wersja to %{version}%"
  97. send "{@logo} &aNajnowsza wersja to %{version.new}%"
  98. {version} is not {version.new}:
  99. send "{@logo} &aDostepna jest nowa wersja skryptu!"
  100. if arg 1 is "dolacz" or "join":
  101. if arg 2 is set:
  102. if {wgrze.%player%} is false:
  103. if file "plugins/Duel/areny/%arg 2%.yml" exists:
  104. if {gracze.%arg 2%} < 2:
  105. if {start.%arg 2%} is false:
  106. add 1 to {gracze.%arg 2%}
  107. if {spawn1.%arg 2%} is true:
  108. clear inventory of player
  109. set player's helmet to air
  110. set player's chestplate to air
  111. set player's leggings to air
  112. set player's boots to air
  113. set {_s1X} to single value "info.spawn1X" get of "plugins/Duel/areny/%arg 2%.yml" parsed as number
  114. set {_s1Y} to single value "info.spawn1Y" get of "plugins/Duel/areny/%arg 2%.yml" parsed as number
  115. set {_s1Z} to single value "info.spawn1Z" get of "plugins/Duel/areny/%arg 2%.yml" parsed as number
  116. set {_s1W} to single value "info.spawn1World" get of "plugins/Duel/areny/%arg 2%.yml" parsed as world
  117. set {_loc1} to location at ({_s1X}, {_s1Y}, {_s1Z}) of world {_s1W}
  118. teleport player to {_loc1}
  119. set {wgrze.%player%.%arg 2%} to true
  120. set {wgrze.%player%} to true
  121. if {saveInventory} is true:
  122. set {oldequip.%player%} to serialized inventory of player
  123. set {oldhelm.%player%} to "%helmet of the player%"
  124. set {oldklata.%player%} to "%chestplate of the player%"
  125. set {oldspodnie.%player%} to "%legging of the player%"
  126. set {oldbuty.%player%} to "%boots of the player%"
  127. restore inventory of player from {ekwipunek.%arg 2%}
  128. equip the player with {helm.%arg 2%} parsed as item
  129. equip the player with {klata.%arg 2%} parsed as item
  130. equip the player with {spodnie.%arg 2%} parsed as item
  131. equip the player with {buty.%arg 2%} parsed as item
  132. apply slowness 255 to the player for 9999999 second
  133. set {spawn1.%arg 2%} to false
  134. else:
  135. clear inventory of player
  136. set player's helmet to air
  137. set player's chestplate to air
  138. set player's leggings to air
  139. set player's boots to air
  140. set {_s2X} to single value "info.spawn2X" get of "plugins/Duel/areny/%arg 2%.yml" parsed as number
  141. set {_s2Y} to single value "info.spawn2Y" get of "plugins/Duel/areny/%arg 2%.yml" parsed as number
  142. set {_s2Z} to single value "info.spawn2Z" get of "plugins/Duel/areny/%arg 2%.yml" parsed as number
  143. set {_s2W} to single value "info.spawn2World" get of "plugins/Duel/areny/%arg 2%.yml" parsed as world
  144. set {_loc2} to location at ({_s2X}, {_s2Y}, {_s2Z}) of world {_s2W}
  145. teleport player to {_loc2}
  146. set {wgrze.%player%.%arg 2%} to true
  147. set {wgrze.%player%} to true
  148. if {saveInventory} is true:
  149. set {oldequip.%player%} to serialized inventory of player
  150. set {oldhelm.%player%} to "%helmet of the player%"
  151. set {oldklata.%player%} to "%chestplate of the player%"
  152. set {oldspodnie.%player%} to "%legging of the player%"
  153. set {oldbuty.%player%} to "%boots of the player%"
  154. restore inventory of player from {ekwipunek.%arg 2%}
  155. equip the player with {helm.%arg 2%} parsed as item
  156. equip the player with {klata.%arg 2%} parsed as item
  157. equip the player with {spodnie.%arg 2%} parsed as item
  158. equip the player with {buty.%arg 2%} parsed as item
  159. apply slowness 255 to the player for 9999999 second
  160. set {start.%arg 2%} to true
  161. loop all players:
  162. if {wgrze.%loop-player%.%arg 2%} is true:
  163. send "{@logo} &aGra rozpocznie sie za 5 sekund" to loop-player
  164. wait 1 second
  165. loop all players:
  166. if {wgrze.%loop-player%.%arg 2%} is true:
  167. send "{@logo} &aGra rozpocznie sie za 4 sekundy" to loop-player
  168. wait 1 second
  169. loop all players:
  170. if {wgrze.%loop-player%.%arg 2%} is true:
  171. send "{@logo} &aGra rozpocznie sie za 3 sekundy" to loop-player
  172. wait 1 second
  173. loop all players:
  174. if {wgrze.%loop-player%.%arg 2%} is true:
  175. send "{@logo} &aGra rozpocznie sie za 2 sekundy" to loop-player
  176. wait 1 second
  177. loop all players:
  178. if {wgrze.%loop-player%.%arg 2%} is true:
  179. send "{@logo} &aGra rozpocznie sie za 1 sekunde" to loop-player
  180. wait 1 second
  181. loop all players:
  182. if {wgrze.%loop-player%.%arg 2%} is true:
  183. remove slowness from loop-player
  184. send "{@logo} &aGra rozpoczela sie!" to loop-player
  185. stop
  186. else:
  187. send "{@logo} &c&nArena juz wystartowala!"
  188. stop
  189. else:
  190. send "{@logo} &c&nLimit osob osiagniety!"
  191. stop
  192. else:
  193. send "{@logo} &c&nTaka arena nie istnieje!"
  194. stop
  195. else:
  196. send "{@logo} &c&nJuz jestes w grze!"
  197. stop
  198. else:
  199. send "{@logo} &c&nPodaj nazwe areny!"
  200. stop
  201. if arg 1 is "dodaj" or "add":
  202. if player has permission "sduel.admin":
  203. if arg 2 is "nagroda" or "prize":
  204. if arg 3 is set:
  205. if file "plugins/Duel/areny/%arg 3%.yml" exists:
  206. set {_item} to player's tool
  207. add {_item} to {prize.%arg 3%::*}
  208. send "{@logo} &aNagroda zostala dodana!"
  209. stop
  210. else:
  211. send "{@logo} &c&nArena nie istnieje!"
  212. stop
  213. else:
  214. send "{@logo} &c&nPodaj nazwe areny!"
  215. stop
  216. else:
  217. send "{@logo} &c&nZly argument!"
  218. stop
  219. else:
  220. send "{@logo} &c&nBrak uprawnien!"
  221. stop
  222. if arg 1 is "opusc":
  223. if arg 2 is set:
  224. if file "plugins/Duel/areny/%arg 2%.yml" exists:
  225. if {wgrze.%player%.%arg 2%} is true:
  226. if {start.%arg 2%} is false:
  227. set {wgrze.%player%} to false
  228. set {wgrze.%player%.%arg 2%} to false
  229. set {gracze.%arg 2%} to 0
  230. set {spawn1.%arg 2%} to true
  231. clear inventory of player
  232. teleport player to spawn
  233. remove slowness from player
  234. send "{@logo} &aOpusciles gre!"
  235. stop
  236. else:
  237. send "{@logo} &c&nNie mozesz opuscic gry!"
  238. stop
  239. else:
  240. send "{@logo} &c&nNie grasz na tej arenie!"
  241. stop
  242. else:
  243. send "{@logo} &c&nArena nie istnieje!"
  244. stop
  245. else:
  246. send "{@logo} &c&nPodaj nazwe areny!"
  247. stop
  248. if arg 1 is "stworz" or "create":
  249. if player has permission "sduel.admin":
  250. if arg 2 is set:
  251. if file "plugins/Duel/areny/%arg 2%.yml" doesn't exists:
  252. create file "plugins/Duel/areny/%arg 2%.yml"
  253. add arg 2 to {listaaren.duel::*}
  254. set {start.%arg 2%} to false
  255. set {gracze.%arg 2%} to 0
  256. set {spawn1.%arg 2%} to true
  257. loop all players:
  258. set {wgrze.%loop-player%.%arg 2%} to false
  259. add 1 to {iloscaren}
  260. send "{@logo} &aArena &b%arg 2% &azostala stworzona!"
  261. stop
  262. else:
  263. send "{@logo} &c&nTaka arena juz istnieje!"
  264. stop
  265. else:
  266. send "{@logo} &c&nPodaj nazwe areny!"
  267. stop
  268. else:
  269. send "{@logo} &c&nBrak uprawnien!"
  270. stop
  271. if arg 1 is "ustaw" or "set":
  272. if player has permission "sduel.admin":
  273. if arg 2 is "spawn1":
  274. if arg 3 is set:
  275. if file "plugins/Duel/areny/%arg 3%.yml" exists:
  276. set {_spawn1X} to "%x-coordinate of player%"
  277. set {_spawn1Y} to "%y-coordinate of player%"
  278. set {_spawn1Z} to "%z-coordinate of player%"
  279. set {_spawn1World} to "%world of player%"
  280. set "info.spawn1X" to "%{_spawn1X}%" in yaml file "plugins/Duel/areny/%arg 3%.yml"
  281. set "info.spawn1Y" to "%{_spawn1Y}%" in yaml file "plugins/Duel/areny/%arg 3%.yml"
  282. set "info.spawn1Z" to "%{_spawn1Z}%" in yaml file "plugins/Duel/areny/%arg 3%.yml"
  283. set "info.spawn1World" to "%{_spawn1World}%" in yaml file "plugins/Duel/areny/%arg 3%.yml"
  284. send "{@logo} &aSpawn 1 dla areny &b%arg 3% &azostal ustawiony &7(&6x: %{_spawn1X}%,y: %{_spawn1Y}%,z: %{_spawn1Z}%&7)"
  285. stop
  286. else:
  287. send "{@logo} &c&nTaka arena nie istnieje!"
  288. stop
  289. else:
  290. send "{@logo} &c&nPodaj nazwe areny!"
  291. stop
  292. if arg 2 is "spawn2":
  293. if arg 3 is set:
  294. if file "plugins/Duel/areny/%arg 3%.yml" exists:
  295. set {_spawn2X} to "%x-coordinate of player%"
  296. set {_spawn2Y} to "%y-coordinate of player%"
  297. set {_spawn2Z} to "%z-coordinate of player%"
  298. set {_spawn2World} to "%world of player%"
  299. set "info.spawn2X" to "%{_spawn2X}%" in yaml file "plugins/Duel/areny/%arg 3%.yml"
  300. set "info.spawn2Y" to "%{_spawn2Y}%" in yaml file "plugins/Duel/areny/%arg 3%.yml"
  301. set "info.spawn2Z" to "%{_spawn2Z}%" in yaml file "plugins/Duel/areny/%arg 3%.yml"
  302. set "info.spawn2World" to "%{_spawn2World}%" in yaml file "plugins/Duel/areny/%arg 3%.yml"
  303. send "{@logo} &aSpawn 2 dla areny &b%arg 3% &azostal ustawiony &7(&6x: %{_spawn2X}%,y: %{_spawn2Y}%,z: %{_spawn2Z}%&7)"
  304. stop
  305. else:
  306. send "{@logo} &c&nTaka arena nie istnieje!"
  307. stop
  308. else:
  309. send "{@logo} &c&nPodaj nazwe areny!"
  310. stop
  311. else:
  312. send "{@logo} &c&nBrak uprawnien!"
  313. stop
  314. if arg 1 is "zapisz" or "save":
  315. if player has permission "sduel.admin":
  316. if arg 2 is "ekwipunek" or "inventory":
  317. if arg 3 is set:
  318. if file "plugins/Duel/areny/%arg 3%.yml" exists:
  319. set {ekwipunek.%arg 3%} to serialized inventory of player
  320. set {helm.%arg 3%} to "%helmet of the player%"
  321. set {klata.%arg 3%} to "%chestplate of the player%"
  322. set {spodnie.%arg 3%} to "%legging of the player%"
  323. set {buty.%arg 3%} to "%boots of the player%"
  324. send "{@logo} &aEkwipunek dla areny &b%arg 3% &azostal ustawiony!"
  325. stop
  326. else:
  327. send "{@logo} &c&nTaka arena nie istnieje!"
  328. stop
  329. else:
  330. send "{@logo} &c&nPodaj nazwe areny!"
  331. stop
  332. else:
  333. send "{@logo} &c&nZly argument!"
  334. stop
  335. else:
  336. send "{@logo} &c&nBrak uprawnien!"
  337. stop
  338. if arg 1 is "wczytaj" or "load":
  339. if player has permission "sduel.admin":
  340. if arg 2 is "ekwipunek" or "inventory":
  341. if arg 3 is set:
  342. if file "plugins/Duel/areny/%arg 3%.yml" exists:
  343. restore inventory of player from {ekwipunek.%arg 3%}
  344. equip the player with {helm.%arg 3%} parsed as item
  345. equip the player with {klata.%arg 3%} parsed as item
  346. equip the player with {spodnie.%arg 3%} parsed as item
  347. equip the player with {buty.%arg 3%} parsed as item
  348. send "{@logo} &aEkwipunek dla areny &b%arg 3% &azostal wczytany!"
  349. stop
  350. else:
  351. send "{@logo} &c&nTaka arena nie istnieje!"
  352. stop
  353. else:
  354. send "{@logo} &c&nPodaj nazwe areny!"
  355. stop
  356. else:
  357. send "{@logo} &c&nZly argument!"
  358. stop
  359. else:
  360. send "{@logo} &c&nBrak uprawnien!"
  361. stop
  362. if arg 1 is "przenies" or "move":
  363. if player has permission "sduel.admin":
  364. if arg 2 is "lobby":
  365. if arg 3 is set:
  366. if file "plugins/Duel/areny/%arg 3%.yml" exists:
  367. set {lobby.%arg 3%} to location of player
  368. send "{@logo} &aUstawiono lobby dla areny &b%arg 3%"
  369. stop
  370. else:
  371. send "{@logo} &c&nTaka arena nie istnieje!"
  372. stop
  373. else:
  374. send "{@logo} &c&nPodaj nazwe areny!"
  375. stop
  376. else:
  377. send "{@logo} &c&nZly argument!"
  378. stop
  379. else:
  380. send "{@logo} &c&nBrak uprawnien!"
  381. stop
  382. if arg 1 is "usun" or "delete":
  383. if player has permission "sduel.admin":
  384. if arg 2 is set:
  385. if file "plugins/Duel/areny/%arg 2%.yml" exists:
  386. remove arg 2 from {listaaren.duel::*}
  387. remove 1 from {iloscaren}
  388. loop all players:
  389. if {wgrze.%loop-player%.%arg 2%} is true:
  390. set {wgrze.%loop-player%.%arg 2%} to false
  391. delete {start.%arg 2%}
  392. delete {gracze.%arg 2%}
  393. delete {spawn1.%arg 2%}
  394. delete {ekwipunek.%arg 2%}
  395. delete {helm.%arg 2%}
  396. delete {klata.%arg 2%}
  397. delete {spodnie.%arg 2%}
  398. delete {buty.%arg 2%}
  399. delete file "plugins/Duel/areny/%arg 2%.yml"
  400. send "{@logo} &aArena &b%arg 2% &azostala usunieta!"
  401. stop
  402. else:
  403. send "{@logo} &c&nTaka arena nie istnieje!"
  404. stop
  405. else:
  406. send "{@logo} &c&nPodaj nazwe areny!"
  407. stop
  408. else:
  409. send "{@logo} &c&nBrak uprawnien!"
  410. stop
  411. if arg 1 is "lista":
  412. send "{@logo} &aAreny: &6%{listaaren.duel::*}%"
  413. if arg 1 is "profil":
  414. if arg 2 isn't set:
  415. open chest with 3 rows named "&aTwoj profil" to player
  416. wait 1 tick
  417. format slot 10 of player with 1 of green wool named "&aWygrane: &6%{wygrane.%player%}%" to be unstealable
  418. format slot 13 of player with 1 of paper named "&aPunkty: &6%{punkty.%player%}%" to be unstealable
  419. format slot 16 of player with 1 of red wool named "&aPrzegrane: &6%{przegrane.%player%}%" to be unstealable
  420. else:
  421. if player has permission "sduel.admin":
  422. set {_my} to player
  423. if arg 2 isn't {_my}:
  424. open chest with 3 rows named "&aProfil uzytkownika &6%arg 2%" to player
  425. wait 1 tick
  426. format slot 10 of player with 1 of green wool named "&aWygrane: &6%{wygrane.%arg 2%}%" to be unstealable
  427. format slot 13 of player with 1 of paper named "&aPunkty: &6%{punkty.%arg 2%}%" to be unstealable
  428. format slot 16 of player with 1 of red wool named "&aPrzegrane: &6%{przegrane.%arg 2%}%" to be unstealable
  429. else:
  430. send "{@logo} &c&nAby otworzyc swoj profil wpisz /duel profil"
  431. stop
  432. if arg 1 is "ranking":
  433. open chest with 1 rows named "&aRanking osob online" to player
  434. set {_wyn} to 0
  435. loop all players:
  436. if {_wyn} < 5:
  437. if {punkty.%loop-player%} > 0:
  438. format slot {_wyn} of player with 1 of paper named "&c%loop-player%" with lore "&aPunkty: &6%{punkty.%loop-player%}%" to be unstealable
  439. add 1 to {_wyn}
  440. format slot 6 of player with 1 of glass pane named "" with lore "" to be unstealable
  441. format slot 8 of player with 1 of feather named "&aInformacje" with lore "&cRanking dotyczy tylko osob online!" to be unstealable
  442. on first join:
  443. set {wgrze.%player%} to false
  444. loop {iloscaren} times:
  445. set {wgrze.%player%.%loop-value%} to false
  446. on death of player:
  447. if {wgrze.%victim%} is true:
  448. set {wgrze.%victim%} to false
  449. loop {listaaren.duel::*}:
  450. if {wgrze.%attacker%.%loop-value%} is true:
  451. set {wgrze.%victim%.%loop-value%} to false
  452. set {wgrze.%attacker%.%loop-value%} to false
  453. set {wgrze.%attacker%} to false
  454. set {gracze.%loop-value%} to 0
  455. set {start.%loop-value%} to false
  456. set {spawn1.%loop-value%} to true
  457. teleport attacker to {lobby.%loop-value%}
  458. teleport victim to {lobby.%loop-value%}
  459. clear inventory of attacker
  460. add random element out of {prize.%loop-value%::*} to attacker
  461. add 1 to {wygrane.%attacker%}
  462. set {_p1} to "%random integer between 1 and 5%" parsed as integer
  463. add {_p1} to {punkty.%attacker%}
  464. send "{@logo} &aWygrales arene &b%loop-value% &a! &6(+%{_p1}%)" to attacker
  465. add 1 to {przegrane.%victim%}
  466. send "{@logo} &aPrzegrales gre na arenie &b%loop-value% &a! &6(+0)" to victim
  467. if {saveInventory} is true:
  468. restore inventory of attacker from {oldequip.%attacker%}
  469. equip the attacker with {oldhelm.%attacker%} parsed as item
  470. equip the attacker with {oldklata.%attacker%} parsed as item
  471. equip the attacker with {oldspodnie.%attacker%} parsed as item
  472. equip the attacker with {oldbuty.%attacker%} parsed as item
  473. restore inventory of victim from {oldequip.%victim%}
  474. equip the victim with {oldhelm.%victim%} parsed as item
  475. equip the victim with {oldklata.%victim%} parsed as item
  476. equip the victim with {oldspodnie.%victim%} parsed as item
  477. equip the victim with {oldbuty.%victim%} parsed as item
  478. on disconnect:
  479. if {wgrze.%player%} is true:
  480. set {wgrze.%player%} to false
  481. loop {listaaren.duel::*}:
  482. if {wgrze.%player%.%loop-value%} is true:
  483. if {start.%loop-value%} is true:
  484. set {wgrze.%player%.%loop-value%} to false
  485. set {gracze.%loop-value%} to 0
  486. set {start.%loop-value%} to false
  487. set {spawn1.%loop-value%} to true
  488. add 1 to {przegrane.%player%}
  489. kill player
  490. set {_rq} to loop-value
  491. loop all players:
  492. if {wgrze.%loop-player%.%{_rq}%} is true:
  493. add 1 to {wygrane.%loop-player%}
  494. send "{@logo} &aTwoj partner sie wylogowal. Mozesz opuscic gre &7(/duel opusc %{_rq}%)" to loop-player
  495. add random element out of {prize.%loop-value%::*} to loop-player
Advertisement
Add Comment
Please, Sign In to add comment