Advertisement
CREAMPAN0408

Untitled

Feb 18th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 44.75 KB | None | 0 0
  1. # ############## #
  2. # Skrypt #
  3. # By LordGumisiek#
  4. # Name BlackSmith
  5. #
  6. # Version: 1.0 #
  7. # ############## #
  8.  
  9. options:
  10. #------------------------#
  11. tag: Miecz
  12. #------------------------#
  13.  
  14. #------------------------#
  15. wmsz1: 1
  16. wmsz2: 2
  17. wmsz3: 3
  18. wmsz4: 4
  19. wmsz5: 5
  20. wmsz6: 6
  21. wmsz7: 7
  22. #------------------------#
  23.  
  24. #------------------------#
  25. kmsz1: 2
  26. kmsz2: 3
  27. kmsz3: 4
  28. kmsz4: 5
  29. kmsz5: 6
  30. kmsz6: 7
  31. kmsz7: 8
  32. #------------------------#
  33.  
  34. #------------------------#
  35. zmsz1: 3
  36. zmsz2: 4
  37. zmsz3: 5
  38. zmsz4: 6
  39. zmsz5: 7
  40. zmsz6: 8
  41. zmsz7: 9
  42. #------------------------#
  43.  
  44. #------------------------#
  45. dmsz1: 4
  46. dmsz2: 5
  47. dmsz3: 6
  48. dmsz4: 7
  49. dmsz5: 8
  50. dmsz6: 9
  51. #------------------------#
  52.  
  53. #Cena za ulepszenie
  54. #Miecze drewniane
  55.  
  56. #------------------------#
  57. wmszc1: 2
  58. wmszc2: 5
  59. wmszc3: 8
  60. wmszc4: 10
  61. wmszc5: 12
  62. wmszc6: 15
  63. wmszc7: 18
  64. #------------------------#
  65.  
  66. #Miecze kamienne
  67.  
  68. #------------------------#
  69. kmszc1: 10
  70. kmszc2: 15
  71. kmszc3: 20
  72. kmszc4: 25
  73. kmszc5: 30
  74. kmszc6: 35
  75. kmszc7: 40
  76. #------------------------#
  77.  
  78. #Miecze zelazne
  79.  
  80. #------------------------#
  81. zmszc1: 40
  82. zmszc2: 50
  83. zmszc3: 60
  84. zmszc4: 70
  85. zmszc5: 80
  86. zmszc6: 90
  87. zmszc7: 100
  88. #------------------------#
  89.  
  90. #Miecze diaxowe
  91.  
  92. #------------------------#
  93. dmszc1: 100
  94. dmszc2: 150
  95. dmszc3: 200
  96. dmszc4: 250
  97. dmszc5: 300
  98. dmszc6: 350
  99. #------------------------#
  100.  
  101. variables:
  102. {ms.%player%} = true
  103.  
  104. on damage:
  105. if attacker's tool is wooden sword:
  106. if name of attacker's tool is "&0Drewniany miecz +1":
  107. set damage to 3
  108. if name of attacker's tool is "&0Drewniany miecz +2":
  109. set damage to 4
  110. if name of attacker's tool is "&0Drewniany miecz +3":
  111. set damage to 5
  112. if name of attacker's tool is "&0Drewniany miecz +4":
  113. set damage to 6
  114. if name of attacker's tool is "&0Drewniany miecz +5":
  115. set damage to 7
  116. if name of attacker's tool is "&0Drewniany miecz +6":
  117. set damage to 8
  118. if attacker's tool is stone sword:
  119. if name of attacker's tool is "&8Kamienny miecz +1":
  120. set damage to 5
  121. if name of attacker's tool is "&8Kamienny miecz +2":
  122. set damage to 6
  123. if name of attacker's tool is "&8Kamienny miecz +3":
  124. set damage to 7
  125. if name of attacker's tool is "&8Kamienny miecz +4":
  126. set damage to 8
  127. if name of attacker's tool is "&8Kamienny miecz +5":
  128. set damage to 9
  129. if name of attacker's tool is "&8Kamienny miecz +6":
  130. set damage to 10
  131. if attacker's tool is iron sword:
  132. if name of attacker's tool is "&7Zelazn miecz +1":
  133. set damage to 6
  134. if name of attacker's tool is "&7Zelazn miecz +2":
  135. set damage to 7
  136. if name of attacker's tool is "&7Zelazn miecz +3":
  137. set damage to 8
  138. if name of attacker's tool is "&7Zelazn miecz +4":
  139. set damage to 9
  140. if name of attacker's tool is "&7Zelazn miecz +5":
  141. set damage to 10
  142. if name of attacker's tool is "&7Zelazn miecz +6":
  143. set damage to 11
  144. if attacker's tool is diamond sword:
  145. if name of attacker's tool is "&bDiamentowy miecz +1":
  146. set damage to 7
  147. if name of attacker's tool is "&bDiamentowy miecz +2":
  148. set damage to 8
  149. if name of attacker's tool is "&bDiamentowy miecz +3":
  150. set damage to 9
  151. if name of attacker's tool is "&bDiamentowy miecz +4":
  152. set damage to 10
  153. if name of attacker's tool is "&bDiamentowy miecz +5":
  154. set damage to 11
  155. if name of attacker's tool is "&bDiamentowy miecz +6":
  156. set damage to 13
  157.  
  158. command /kowal:
  159. permission: koodsh.gracz
  160. trigger:
  161. open chest with 5 rows named "&6Kowal" to player
  162. format slot 0 of player with 1 of wooden sword named "&0Drewniany miecz +1" with lore "Szansa spalenia: {@wmsz1} | Cena: {@wmszc1}" to run "sudo %player% kowalspal miecz w +1 %player%"
  163. format slot 1 of player with 1 of wooden sword named "&0Drewniany miecz +2" with lore "Szansa spalenia: {@wmsz2} | Cena: {@wmszc2}" to run "sudo %player% kowalspal miecz w +2 %player%"
  164. format slot 2 of player with 1 of wooden sword named "&0Drewniany miecz +3" with lore "Szansa spalenia: {@wmsz3} | Cena: {@wmszc3}" to run "sudo %player% kowalspal miecz w +3 %player%"
  165. format slot 3 of player with 1 of wooden sword named "&0Drewniany miecz +4" with lore "Szansa spalenia: {@wmsz4} | Cena: {@wmszc4}" to run "sudo %player% kowalspal miecz w +4 %player%"
  166. format slot 4 of player with 1 of wooden sword named "&0Drewniany miecz +5" with lore "Szansa spalenia: {@wmsz5} | Cena: {@wmszc5}" to run "sudo %player% kowalspal miecz w +5 %player%"
  167. format slot 5 of player with 1 of wooden sword named "&0Drewniany miecz +6" with lore "Szansa spalenia: {@wmsz6} | Cena: {@wmszc6}" to run "sudo %player% kowalspal miecz w +6 %player%"
  168. format slot 7 of player with 1 of stone sword named "&8Kamienny miecz +1" with lore "Szansa spalenia: {@wmsz7} | Cena: {@wmszc7}" to run "sudo %player% kowalspal miecz w +7 %player%"
  169. format slot 9 of player with 1 of stone sword named "&8Kamienny miecz +1" with lore "Szansa spalenia: {@kmsz1} | Cena: {@kmszc1}" to run "sudo %player% kowalspal miecz k +1 %player%"
  170. format slot 10 of player with 1 of stone sword named "&8Kamienny miecz +2" with lore "Szansa spalenia: {@kmsz2} | Cena: {@kmszc2}" to run "sudo %player% kowalspal miecz k +2 %player%"
  171. format slot 11 of player with 1 of stone sword named "&8Kamienny miecz +3" with lore "Szansa spalenia: {@kmsz3} | Cena: {@kmszc3}" to run "sudo %player% kowalspal miecz k +3 %player%"
  172. format slot 12 of player with 1 of stone sword named "&8Kamienny miecz +4" with lore "Szansa spalenia: {@kmsz4} | Cena: {@kmszc4}" to run "sudo %player% kowalspal miecz k +4 %player%"
  173. format slot 13 of player with 1 of stone sword named "&8Kamienny miecz +5" with lore "Szansa spalenia: {@kmsz5} | Cena: {@kmszc5}" to run "sudo %player% kowalspal miecz k +5 %player%"
  174. format slot 14 of player with 1 of stone sword named "&8Kamienny miecz +6" with lore "Szansa spalenia: {@kmsz6} | Cena: {@kmszc6}" to run "sudo %player% kowalspal miecz k +6 %player%"
  175. format slot 16 of player with 1 of iron sword named "&7Zelazny miecz +1" with lore "Szansa spalenia: {@kmsz7} | Cena: {@kmszc7}" to run "sudo %player% kowalspal miecz k +7 %player%"
  176. format slot 18 of player with 1 of iron sword named "&7Zelazny miecz +1" with lore "Szansa spalenia: {@zmsz1} | Cena: {@zmszc1}" to run "sudo %player% kowalspal miecz z +1 %player%"
  177. format slot 19 of player with 1 of iron sword named "&7Zelazny miecz +2" with lore "Szansa spalenia: {@zmsz2} | Cena: {@zmszc2}" to run "sudo %player% kowalspal miecz z +2 %player%"
  178. format slot 20 of player with 1 of iron sword named "&7Zelazny miecz +3" with lore "Szansa spalenia: {@zmsz3} | Cena: {@zmszc3}" to run "sudo %player% kowalspal miecz z +3 %player%"
  179. format slot 21 of player with 1 of iron sword named "&7Zelazny miecz +4" with lore "Szansa spalenia: {@zmsz4} | Cena: {@zmszc4}" to run "sudo %player% kowalspal miecz z +4 %player%"
  180. format slot 22 of player with 1 of iron sword named "&7Zelazny miecz +5" with lore "Szansa spalenia: {@zmsz5} | Cena: {@zmszc5}" to run "sudo %player% kowalspal miecz z +5 %player%"
  181. format slot 23 of player with 1 of iron sword named "&7Zelazny miecz +6" with lore "Szansa spalenia: {@zmsz6} | Cena: {@zmszc6}" to run "sudo %player% kowalspal miecz z +6 %player%"
  182. format slot 25 of player with 1 of diamond sword named "&bDiamentowy miecz +1" with lore "Szansa spalenia: {@zmsz7} | Cena: {@zmszc7}" to run "sudo %player% kowalspal miecz z +7 %player%"
  183. format slot 27 of player with 1 of diamond sword named "&bDiamentowy miecz +1" with lore "Szansa spalenia: {@dmsz1} | Cena: {@dmszc1}" to run "sudo %player% kowalspal miecz d +1 %player%"
  184. format slot 28 of player with 1 of diamond sword named "&bDiamentowy miecz +2" with lore "Szansa spalenia: {@dmsz2} | Cena: {@dmszc2}" to run "sudo %player% kowalspal miecz d +2 %player%"
  185. format slot 29 of player with 1 of diamond sword named "&bDiamentowy miecz +3" with lore "Szansa spalenia: {@dmsz3} | Cena: {@dmszc3}" to run "sudo %player% kowalspal miecz d +3 %player%"
  186. format slot 30 of player with 1 of diamond sword named "&bDiamentowy miecz +4" with lore "Szansa spalenia: {@dmsz4} | Cena: {@dmszc4}" to run "sudo %player% kowalspal miecz d +4 %player%"
  187. format slot 31 of player with 1 of diamond sword named "&bDiamentowy miecz +5" with lore "Szansa spalenia: {@dmsz5} | Cena: {@dmszc5}" to run "sudo %player% kowalspal miecz d +5 %player%"
  188. format slot 32 of player with 1 of diamond sword named "&bDiamentowy miecz +6" with lore "Szansa spalenia: {@dmsz6} | Cena: {@dmszc6}" to run "sudo %player% kowalspal miecz d +6 %player%"
  189. stop
  190. command /kowalspal [<text>] [<text>] [<text>] [<player=%player%>]:
  191. permission: koodsh.gracz
  192. trigger:
  193. if arg 1 is "miecz":
  194. if arg 2 is "w":
  195. if arg 3 is "+1":
  196. if arg 4 is set:
  197. set {ms.%player%} to false
  198. wait 1 tick
  199. chance of {@wmsz1}%:
  200. set {ms.%player%} to true
  201. if {ms.%player%} is true:
  202. if player's tool is wooden sword:
  203. if player's balance is more than or equal to {@wmszc1}:
  204. remove {@wmszc1} from player's balance
  205. send "{@tag} &aUlepszanie zakonczone porazka!!!"
  206. remove wooden sword from player
  207. else:
  208. send "&aNie posiadasz tyle pieniedzy!!!"
  209. stop
  210. else:
  211. send "{@tag} &aNie posiadasz tego miecza!!!"
  212. stop
  213. if {ms.%player%} is false:
  214. if player's tool is wooden sword:
  215. if player's balance is more than or equal to {@wmszc1}:
  216. remove {@wmszc1} from player's balance
  217. set {ms.%player%} to false
  218. remove wooden sword from player
  219. wait 1 tick
  220. give wooden sword named "&0Drewniany miecz +1" to player
  221. send "{@tag} &aUlepszanie zakonczone sukcesem!!!"
  222. else:
  223. send "&aNie posiadasz tyle pieniedzy!!!"
  224. stop
  225. if arg 3 is "+2":
  226. if arg 4 is set:
  227. set {ms.%player%} to false
  228. wait 1 tick
  229. chance of {@wmsz2}%:
  230. set {ms.%player%} to true
  231. if {ms.%player%} is true:
  232. if player's tool is wooden sword:
  233. if name of player's tool is "&0Drewniany miecz +1":
  234. if player's balance is more than or equal to {@wmszc2}:
  235. remove {@wmszc2} from player's balance
  236. send "{@tag} &aUlepszanie zakonczone porazka!!!"
  237. remove wooden sword named "&0Drewniany miecz +1" from player
  238. else:
  239. send "&aNie posiadasz tyle pieniedzy!!!"
  240. stop
  241. else:
  242. send "{@tag} &aNie posiadasz tego miecza!!!"
  243. stop
  244. if {ms.%player%} is false:
  245. if player's tool is wooden sword:
  246. if name of player's tool is "&0Drewniany miecz +1":
  247. if player's balance is more than or equal to {@wmszc2}:
  248. remove {@wmszc2} from player's balance
  249. set {ms.%player%} to false
  250. remove wooden sword named "&0Drewniany miecz +1" from player
  251. wait 1 tick
  252. give wooden sword named "&0Drewniany miecz +2" to player
  253. send "{@tag} &aUlepszanie zakonczone sukcesem!!!"
  254. else:
  255. send "&aNie posiadasz tyle pieniedzy!!!"
  256. stop
  257. else:
  258. send "{@tag} &aNie posiadasz tego miecza!!!"
  259. stop
  260. if arg 3 is "+3":
  261. if arg 4 is set:
  262. set {ms.%player%} to false
  263. wait 1 tick
  264. chance of {@wmsz3}%:
  265. set {ms.%player%} to true
  266. if {ms.%player%} is true:
  267. if player's tool is wooden sword:
  268. if name of player's tool is "&0Drewniany miecz +2":
  269. if player's balance is more than or equal to {@wmszc3}:
  270. remove {@wmszc3} from player's balance
  271. send "{@tag} &aUlepszanie zakonczone porazka!!!"
  272. remove wooden sword named "&0Drewniany miecz +2" from player
  273. else:
  274. send "&aNie posiadasz tyle pieniedzy!!!"
  275. stop
  276. else:
  277. send "{@tag} &aNie posiadasz tego miecza!!!"
  278. stop
  279. if {ms.%player%} is false:
  280. if player's tool is wooden sword:
  281. if name of player's tool is "&0Drewniany miecz +2":
  282. if player's balance is more than or equal to {@wmszc3}:
  283. remove {@wmszc3} from player's balance
  284. set {ms.%player%} to false
  285. remove wooden sword named "&0Drewniany miecz +2" from player
  286. wait 1 tick
  287. give wooden sword named "&0Drewniany miecz +3" to player
  288. send "{@tag} &aUlepszanie zakonczone sukcesem!!!"
  289. else:
  290. send "&aNie posiadasz tyle pieniedzy!!!"
  291. stop
  292. else:
  293. send "{@tag} &aNie posiadasz tego miecza!!!"
  294. stop
  295. if arg 3 is "+4":
  296. if arg 4 is set:
  297. set {ms.%player%} to false
  298. wait 1 tick
  299. chance of {@wmsz4}%:
  300. set {ms.%player%} to true
  301. if {ms.%player%} is true:
  302. if player's tool is wooden sword:
  303. if name of player's tool is "&0Drewniany miecz +3":
  304. if player's balance is more than or equal to {@wmszc4}:
  305. remove {@wmszc4} from player's balance
  306. send "{@tag} &aUlepszanie zakonczone porazka!!!"
  307. remove wooden sword named "&0Drewniany miecz +3" from player
  308. else:
  309. send "&aNie posiadasz tyle pieniedzy!!!"
  310. stop
  311. else:
  312. send "{@tag} &aNie posiadasz tego miecza!!!"
  313. stop
  314. if {ms.%player%} is false:
  315. if player's tool is wooden sword:
  316. if name of player's tool is "&0Drewniany miecz +3":
  317. if player's balance is more than or equal to {@wmszc4}:
  318. remove {@wmszc4} from player's balance
  319. set {ms.%player%} to false
  320. remove wooden sword named "&0Drewniany miecz +3" from player
  321. wait 1 tick
  322. give wooden sword named "&0Drewniany miecz +4" to player
  323. send "{@tag} &aUlepszanie zakonczone sukcesem!!!"
  324. else:
  325. send "&aNie posiadasz tyle pieniedzy!!!"
  326. stop
  327. else:
  328. send "{@tag} &aNie posiadasz tego miecza!!!"
  329. stop
  330. if arg 3 is "+5":
  331. if arg 4 is set:
  332. set {ms.%player%} to false
  333. wait 1 tick
  334. chance of {@wmsz5}%:
  335. set {ms.%player%} to true
  336. if {ms.%player%} is true:
  337. if player's tool is wooden sword:
  338. if name of player's tool is "&0Drewniany miecz +4":
  339. if player's balance is more than or equal to {@wmszc5}:
  340. remove {@wmszc5} from player's balance
  341. send "{@tag} &aUlepszanie zakonczone porazka!!!"
  342. remove wooden sword named "&0Drewniany miecz +4" from player
  343. else:
  344. send "&aNie posiadasz tyle pieniedzy!!!"
  345. stop
  346. else:
  347. send "{@tag} &aNie posiadasz tego miecza!!!"
  348. stop
  349. if {ms.%player%} is false:
  350. if player's tool is wooden sword:
  351. if name of player's tool is "&0Drewniany miecz +4":
  352. if player's balance is more than or equal to {@wmszc5}:
  353. remove {@wmszc5} from player's balance
  354. set {ms.%player%} to false
  355. remove wooden sword named "&0Drewniany miecz +4" from player
  356. wait 1 tick
  357. give wooden sword named "&0Drewniany miecz +5" to player
  358. send "{@tag} &aUlepszanie zakonczone sukcesem!!!"
  359. else:
  360. send "&aNie posiadasz tyle pieniedzy!!!"
  361. stop
  362. else:
  363. send "{@tag} &aNie posiadasz tego miecza!!!"
  364. stop
  365. if arg 3 is "+6":
  366. if arg 4 is set:
  367. set {ms.%player%} to false
  368. wait 1 tick
  369. chance of {@wmsz6}%:
  370. set {ms.%player%} to true
  371. if {ms.%player%} is true:
  372. if player's tool is wooden sword:
  373. if name of player's tool is "&0Drewniany miecz +5":
  374. if player's balance is more than or equal to {@wmszc6}:
  375. remove {@wmszc6} from player's balance
  376. send "{@tag} &aUlepszanie zakonczone porazka!!!"
  377. remove wooden sword named "&0Drewniany miecz +5" from player
  378. else:
  379. send "&aNie posiadasz tyle pieniedzy!!!"
  380. stop
  381. else:
  382. send "{@tag} &aNie posiadasz tego miecza!!!"
  383. stop
  384. if {ms.%player%} is false:
  385. if player's tool is wooden sword:
  386. if name of player's tool is "&0Drewniany miecz +5":
  387. if player's balance is more than or equal to {@wmszc6}:
  388. remove {@wmszc6} from player's balance
  389. set {ms.%player%} to false
  390. remove wooden sword named "&0Drewniany miecz +5" from player
  391. wait 1 tick
  392. give wooden sword named "&0Drewniany miecz +6" to player
  393. send "{@tag} &aUlepszanie zakonczone sukcesem!!!"
  394. else:
  395. send "&aNie posiadasz tyle pieniedzy!!!"
  396. stop
  397. else:
  398. send "{@tag} &aNie posiadasz tego miecza!!!"
  399. stop
  400. if arg 3 is "+7":
  401. if arg 4 is set:
  402. set {ms.%player%} to false
  403. wait 1 tick
  404. chance of {@wmsz7}%:
  405. set {ms.%player%} to true
  406. if {ms.%player%} is true:
  407. if player's tool is wooden sword:
  408. if name of player's tool is "&0Drewniany miecz +6":
  409. if player's balance is more than or equal to {@wmszc7}:
  410. remove {@wmszc7} from player's balance
  411. send "{@tag} &aUlepszanie zakonczone porazka!!!"
  412. remove wooden sword named "&0Drewniany miecz +6" from player
  413. else:
  414. send "&aNie posiadasz tyle pieniedzy!!!"
  415. stop
  416. else:
  417. send "{@tag} &aNie posiadasz tego miecza!!!"
  418. stop
  419. if {ms.%player%} is false:
  420. if player's tool is wooden sword:
  421. if name of player's tool is "&0Drewniany miecz +6":
  422. if player's balance is more than or equal to {@wmszc7}:
  423. remove {@wmszc7} from player's balance
  424. set {ms.%player%} to false
  425. remove wooden sword named "&0Drewniany miecz +6" from player
  426. wait 1 tick
  427. give stone sword named "&8Kamienny miecz +1" to player
  428. send "{@tag} &aUlepszanie zakonczone sukcesem!!!"
  429. else:
  430. send "&aNie posiadasz tyle pieniedzy!!!"
  431. stop
  432. else:
  433. send "{@tag} &aNie posiadasz tego miecza!!!"
  434. stop
  435. if arg 2 is "k":
  436. if arg 3 is "+1":
  437. if arg 4 is set:
  438. set {ms.%player%} to false
  439. wait 1 tick
  440. chance of {@kmsz1}%:
  441. set {ms.%player%} to true
  442. if {ms.%player%} is true:
  443. if player's tool is stone sword:
  444. if player's balance is more than or equal to {@kmszc1}:
  445. remove {@kmszc1} from player's balance
  446. send "{@tag} &aUlepszanie zakonczone porazka!!!"
  447. remove stone sword from player
  448. else:
  449. send "&aNie posiadasz tyle pieniedzy!!!"
  450. stop
  451. else:
  452. send "{@tag} &aNie posiadasz tego miecza!!!"
  453. stop
  454. if {ms.%player%} is false:
  455. if player's tool is stone sword:
  456. if player's balance is more than or equal to {@kmszc1}:
  457. remove {@kmszc1} from player's balance
  458. set {ms.%player%} to false
  459. remove stone sword from player
  460. wait 1 tick
  461. give stone sword named "&8Kamienny miecz +1" to player
  462. send "{@tag} &aUlepszanie zakonczone sukcesem!!!"
  463. else:
  464. send "&aNie posiadasz tyle pieniedzy!!!"
  465. stop
  466. if arg 3 is "+2":
  467. if arg 4 is set:
  468. set {ms.%player%} to false
  469. wait 1 tick
  470. chance of {@kmsz2}%:
  471. set {ms.%player%} to true
  472. if {ms.%player%} is true:
  473. if player's tool is stone sword:
  474. if name of player's tool is "&8Kamienny miecz +1":
  475. if player's balance is more than or equal to {@kmszc2}:
  476. remove {@kmszc2} from player's balance
  477. send "{@tag} &aUlepszanie zakonczone porazka!!!"
  478. remove stone sword named "&8Kamienny miecz +1" from player
  479. else:
  480. send "&aNie posiadasz tyle pieniedzy!!!"
  481. stop
  482. else:
  483. send "{@tag} &aNie posiadasz tego miecza!!!"
  484. stop
  485. if {ms.%player%} is false:
  486. if player's tool is stone sword:
  487. if name of player's tool is "&8Kamienny miecz +1":
  488. if player's balance is more than or equal to {@kmszc2}:
  489. remove {@kmszc2} from player's balance
  490. set {ms.%player%} to false
  491. remove stone sword named "&8Kamienny miecz +1" from player
  492. wait 1 tick
  493. give stone sword named "&8Kamienny miecz +2" to player
  494. send "{@tag} &aUlepszanie zakonczone sukcesem!!!"
  495. else:
  496. send "&aNie posiadasz tyle pieniedzy!!!"
  497. stop
  498. else:
  499. send "{@tag} &aNie posiadasz tego miecza!!!"
  500. stop
  501. if arg 3 is "+3":
  502. if arg 4 is set:
  503. set {ms.%player%} to false
  504. wait 1 tick
  505. chance of {@kmsz3}%:
  506. set {ms.%player%} to true
  507. if {ms.%player%} is true:
  508. if player's tool is stone sword:
  509. if name of player's tool is "&8Kamienny miecz +2":
  510. if player's balance is more than or equal to {@kmszc3}:
  511. remove {@kmszc3} from player's balance
  512. send "{@tag} &aUlepszanie zakonczone porazka!!!"
  513. remove stone sword named "&8Kamienny miecz +2" from player
  514. else:
  515. send "&aNie posiadasz tyle pieniedzy!!!"
  516. stop
  517. else:
  518. send "{@tag} &aNie posiadasz tego miecza!!!"
  519. stop
  520. if {ms.%player%} is false:
  521. if player's tool is stone sword:
  522. if name of player's tool is "&8Kamienny miecz +2":
  523. if player's balance is more than or equal to {@kmszc3}:
  524. remove {@kmszc3} from player's balance
  525. set {ms.%player%} to false
  526. remove stone sword named "&8Kamienny miecz +2" from player
  527. wait 1 tick
  528. give stone sword named "&8Kamienny miecz +3" to player
  529. send "{@tag} &aUlepszanie zakonczone sukcesem!!!"
  530. else:
  531. send "&aNie posiadasz tyle pieniedzy!!!"
  532. stop
  533. else:
  534. send "{@tag} &aNie posiadasz tego miecza!!!"
  535. stop
  536. if arg 3 is "+4":
  537. if arg 4 is set:
  538. set {ms.%player%} to false
  539. wait 1 tick
  540. chance of {@kmsz4}%:
  541. set {ms.%player%} to true
  542. if {ms.%player%} is true:
  543. if player's tool is stone sword:
  544. if name of player's tool is "&8Kamienny miecz +3":
  545. if player's balance is more than or equal to {@kmszc4}:
  546. remove {@kmszc4} from player's balance
  547. send "{@tag} &aUlepszanie zakonczone porazka!!!"
  548. remove stone sword named "&8Kamienny miecz +3" from player
  549. else:
  550. send "&aNie posiadasz tyle pieniedzy!!!"
  551. stop
  552. else:
  553. send "{@tag} &aNie posiadasz tego miecza!!!"
  554. stop
  555. if {ms.%player%} is false:
  556. if player's tool is stone sword:
  557. if name of player's tool is "&8Kamienny miecz +3":
  558. if player's balance is more than or equal to {@kmszc4}:
  559. remove {@kmszc4} from player's balance
  560. set {ms.%player%} to false
  561. remove stone sword named "&8Kamienny miecz +3" from player
  562. wait 1 tick
  563. give stone sword named "&8Kamienny miecz +4" to player
  564. send "{@tag} &aUlepszanie zakonczone sukcesem!!!"
  565. else:
  566. send "&aNie posiadasz tyle pieniedzy!!!"
  567. stop
  568. else:
  569. send "{@tag} &aNie posiadasz tego miecza!!!"
  570. stop
  571. if arg 3 is "+5":
  572. if arg 4 is set:
  573. set {ms.%player%} to false
  574. wait 1 tick
  575. chance of {@kmsz5}%:
  576. set {ms.%player%} to true
  577. if {ms.%player%} is true:
  578. if player's tool is stone sword:
  579. if name of player's tool is "&8Kamienny miecz +4":
  580. if player's balance is more than or equal to {@kmszc5}:
  581. remove {@kmszc5} from player's balance
  582. send "{@tag} &aUlepszanie zakonczone porazka!!!"
  583. remove stone sword named "&8Kamienny miecz +4" from player
  584. else:
  585. send "&aNie posiadasz tyle pieniedzy!!!"
  586. stop
  587. else:
  588. send "{@tag} &aNie posiadasz tego miecza!!!"
  589. stop
  590. if {ms.%player%} is false:
  591. if player's tool is stone sword:
  592. if name of player's tool is "&8Kamienny miecz +4":
  593. if player's balance is more than or equal to {@kmszc5}:
  594. remove {@kmszc5} from player's balance
  595. set {ms.%player%} to false
  596. remove stone sword named "&8Kamienny miecz +4" from player
  597. wait 1 tick
  598. give stone sword named "&8Kamienny miecz +5" to player
  599. send "{@tag} &aUlepszanie zakonczone sukcesem!!!"
  600. else:
  601. send "&aNie posiadasz tyle pieniedzy!!!"
  602. stop
  603. else:
  604. send "{@tag} &aNie posiadasz tego miecza!!!"
  605. stop
  606. if arg 3 is "+6":
  607. if arg 4 is set:
  608. set {ms.%player%} to false
  609. wait 1 tick
  610. chance of {@kmsz6}%:
  611. set {ms.%player%} to true
  612. if {ms.%player%} is true:
  613. if player's tool is stone sword:
  614. if name of player's tool is "&8Kamienny miecz +5":
  615. if player's balance is more than or equal to {@kmszc6}:
  616. remove {@kmszc6} from player's balance
  617. send "{@tag} &aUlepszanie zakonczone porazka!!!"
  618. remove stone sword named "&8Kamienny miecz +5" from player
  619. else:
  620. send "&aNie posiadasz tyle pieniedzy!!!"
  621. stop
  622. else:
  623. send "{@tag} &aNie posiadasz tego miecza!!!"
  624. stop
  625. if {ms.%player%} is false:
  626. if player's tool is stone sword:
  627. if name of player's tool is "&8Kamienny miecz +5":
  628. if player's balance is more than or equal to {@kmszc6}:
  629. remove {@kmszc6} from player's balance
  630. set {ms.%player%} to false
  631. remove stone sword named "&8Kamienny miecz +5" from player
  632. wait 1 tick
  633. give stone sword named "&8Kamienny miecz +6" to player
  634. send "{@tag} &aUlepszanie zakonczone sukcesem!!!"
  635. else:
  636. send "&aNie posiadasz tyle pieniedzy!!!"
  637. stop
  638. else:
  639. send "{@tag} &aNie posiadasz tego miecza!!!"
  640. stop
  641. if arg 3 is "+7":
  642. if arg 4 is set:
  643. set {ms.%player%} to false
  644. wait 1 tick
  645. chance of {@kmsz7}%:
  646. set {ms.%player%} to true
  647. if {ms.%player%} is true:
  648. if player's tool is stone sword:
  649. if name of player's tool is "&8Kamienny miecz +6":
  650. if player's balance is more than or equal to {@kmszc7}:
  651. remove {@kmszc7} from player's balance
  652. send "{@tag} &aUlepszanie zakonczone porazka!!!"
  653. remove stone sword named "&8Kamienny miecz +6" from player
  654. else:
  655. send "&aNie posiadasz tyle pieniedzy!!!"
  656. stop
  657. else:
  658. send "{@tag} &aNie posiadasz tego miecza!!!"
  659. stop
  660. if {ms.%player%} is false:
  661. if player's tool is stone sword:
  662. if name of player's tool is "&8Kamienny miecz +6":
  663. if player's balance is more than or equal to {@kmszc7}:
  664. remove {@kmszc7} from player's balance
  665. set {ms.%player%} to false
  666. remove stone sword named "&8Kamienny miecz +6" from player
  667. wait 1 tick
  668. give iron sword named "&7Zelazny miecz +1" to player
  669. send "{@tag} &aUlepszanie zakonczone sukcesem!!!"
  670. else:
  671. send "&aNie posiadasz tyle pieniedzy!!!"
  672. stop
  673. else:
  674. send "{@tag} &aNie posiadasz tego miecza!!!"
  675. stop
  676. if arg 2 is "z":
  677. if arg 3 is "+1":
  678. if arg 4 is set:
  679. set {ms.%player%} to false
  680. wait 1 tick
  681. chance of {@zmsz1}%:
  682. set {ms.%player%} to true
  683. if {ms.%player%} is true:
  684. if player's tool is iron sword:
  685. if player's balance is more than or equal to {@zmszc1}:
  686. remove {@zmszc1} from player's balance
  687. send "{@tag} &aUlepszanie zakonczone porazka!!!"
  688. remove iron sword from player
  689. else:
  690. send "&aNie posiadasz tyle pieniedzy!!!"
  691. stop
  692. else:
  693. send "{@tag} &aNie posiadasz tego miecza!!!"
  694. stop
  695. if {ms.%player%} is false:
  696. if player's tool is iron sword:
  697. if player's balance is more than or equal to {@zmszc1}:
  698. remove {@zmszc1} from player's balance
  699. set {ms.%player%} to false
  700. remove iron sword from player
  701. wait 1 tick
  702. give iron sword named "&7Zelazny miecz +1" to player
  703. send "{@tag} &aUlepszanie zakonczone sukcesem!!!"
  704. else:
  705. send "&aNie posiadasz tyle pieniedzy!!!"
  706. stop
  707. if arg 3 is "+2":
  708. if arg 4 is set:
  709. set {ms.%player%} to false
  710. wait 1 tick
  711. chance of {@zmsz2}%:
  712. set {ms.%player%} to true
  713. if {ms.%player%} is true:
  714. if player's tool is iron sword:
  715. if name of player's tool is "&7Zelazny miecz +1":
  716. if player's balance is more than or equal to {@zmszc2}:
  717. remove {@zmszc2} from player's balance
  718. send "{@tag} &aUlepszanie zakonczone porazka!!!"
  719. remove iron sword named "&7Zelazny miecz +1" from player
  720. else:
  721. send "&aNie posiadasz tyle pieniedzy!!!"
  722. stop
  723. else:
  724. send "{@tag} &aNie posiadasz tego miecza!!!"
  725. stop
  726. if {ms.%player%} is false:
  727. if player's tool is iron sword:
  728. if name of player's tool is "&7Zelazny miecz +1":
  729. if player's balance is more than or equal to {@zmszc2}:
  730. remove {@zmszc2} from player's balance
  731. set {ms.%player%} to false
  732. remove iron sword named "&7Zelazny miecz +1" from player
  733. wait 1 tick
  734. give iron sword named "&7Zelazny miecz +2" to player
  735. send "{@tag} &aUlepszanie zakonczone sukcesem!!!"
  736. else:
  737. send "&aNie posiadasz tyle pieniedzy!!!"
  738. stop
  739. else:
  740. send "{@tag} &aNie posiadasz tego miecza!!!"
  741. stop
  742. if arg 3 is "+3":
  743. if arg 4 is set:
  744. set {ms.%player%} to false
  745. wait 1 tick
  746. chance of {@zmsz3}%:
  747. set {ms.%player%} to true
  748. if {ms.%player%} is true:
  749. if player's tool is iron sword:
  750. if name of player's tool is "&7Zelazny miecz +2":
  751. if player's balance is more than or equal to {@zmszc3}:
  752. remove {@zmszc3} from player's balance
  753. send "{@tag} &aUlepszanie zakonczone porazka!!!"
  754. remove iron sword named "&7Zelazny miecz +2" from player
  755. else:
  756. send "&aNie posiadasz tyle pieniedzy!!!"
  757. stop
  758. else:
  759. send "{@tag} &aNie posiadasz tego miecza!!!"
  760. stop
  761. if {ms.%player%} is false:
  762. if player's tool is iron sword:
  763. if name of player's tool is "&7Zelazny miecz +2":
  764. if player's balance is more than or equal to {@zmszc3}:
  765. remove {@zmszc3} from player's balance
  766. set {ms.%player%} to false
  767. remove iron sword named "&7Zelazny miecz +2" from player
  768. wait 1 tick
  769. give iron sword named "&7Zelazny miecz +3" to player
  770. send "{@tag} &aUlepszanie zakonczone sukcesem!!!"
  771. else:
  772. send "&aNie posiadasz tyle pieniedzy!!!"
  773. stop
  774. else:
  775. send "{@tag} &aNie posiadasz tego miecza!!!"
  776. stop
  777. if arg 3 is "+4":
  778. if arg 4 is set:
  779. set {ms.%player%} to false
  780. wait 1 tick
  781. chance of {@zmsz4}%:
  782. set {ms.%player%} to true
  783. if {ms.%player%} is true:
  784. if player's tool is iron sword:
  785. if name of player's tool is "&7Zelazny miecz +3":
  786. if player's balance is more than or equal to {@zmszc4}:
  787. remove {@zmszc4} from player's balance
  788. send "{@tag} &aUlepszanie zakonczone porazka!!!"
  789. remove iron sword named "&7Zelazny miecz +3" from player
  790. else:
  791. send "&aNie posiadasz tyle pieniedzy!!!"
  792. stop
  793. else:
  794. send "{@tag} &aNie posiadasz tego miecza!!!"
  795. stop
  796. if {ms.%player%} is false:
  797. if player's tool is iron sword:
  798. if name of player's tool is "&7Zelazny miecz +3":
  799. if player's balance is more than or equal to {@zmszc4}:
  800. remove {@zmszc4} from player's balance
  801. set {ms.%player%} to false
  802. remove iron sword named "&7Zelazny miecz +3" from player
  803. wait 1 tick
  804. give iron sword named "&7Zelazny miecz +4" to player
  805. send "{@tag} &aUlepszanie zakonczone sukcesem!!!"
  806. else:
  807. send "&aNie posiadasz tyle pieniedzy!!!"
  808. stop
  809. else:
  810. send "{@tag} &aNie posiadasz tego miecza!!!"
  811. stop
  812. if arg 3 is "+5":
  813. if arg 4 is set:
  814. set {ms.%player%} to false
  815. wait 1 tick
  816. chance of {@zmsz5}%:
  817. set {ms.%player%} to true
  818. if {ms.%player%} is true:
  819. if player's tool is iron sword:
  820. if name of player's tool is "&7Zelazny miecz +4":
  821. if player's balance is more than or equal to {@zmszc5}:
  822. remove {@zmszc5} from player's balance
  823. send "{@tag} &aUlepszanie zakonczone porazka!!!"
  824. remove iron sword named "&7Zelazny miecz +4" from player
  825. else:
  826. send "&aNie posiadasz tyle pieniedzy!!!"
  827. stop
  828. else:
  829. send "{@tag} &aNie posiadasz tego miecza!!!"
  830. stop
  831. if {ms.%player%} is false:
  832. if player's tool is iron sword:
  833. if name of player's tool is "&7Zelazny miecz +4":
  834. if player's balance is more than or equal to {@zmszc5}:
  835. remove {@zmszc5} from player's balance
  836. set {ms.%player%} to false
  837. remove iron sword named "&7Zelazny miecz +4" from player
  838. wait 1 tick
  839. give iron sword named "&7Zelazny miecz +5" to player
  840. send "{@tag} &aUlepszanie zakonczone sukcesem!!!"
  841. else:
  842. send "&aNie posiadasz tyle pieniedzy!!!"
  843. stop
  844. else:
  845. send "{@tag} &aNie posiadasz tego miecza!!!"
  846. stop
  847. if arg 3 is "+6":
  848. if arg 4 is set:
  849. set {ms.%player%} to false
  850. wait 1 tick
  851. chance of {@zmsz6}%:
  852. set {ms.%player%} to true
  853. if {ms.%player%} is true:
  854. if player's tool is iron sword:
  855. if name of player's tool is "&7Zelazny miecz +5":
  856. if player's balance is more than or equal to {@zmszc6}:
  857. remove {@zmszc6} from player's balance
  858. send "{@tag} &aUlepszanie zakonczone porazka!!!"
  859. remove iron sword named "&7Zelazny miecz +5" from player
  860. else:
  861. send "&aNie posiadasz tyle pieniedzy!!!"
  862. stop
  863. else:
  864. send "{@tag} &aNie posiadasz tego miecza!!!"
  865. stop
  866. if {ms.%player%} is false:
  867. if player's tool is iron sword:
  868. if name of player's tool is "&7Zelazny miecz +5":
  869. if player's balance is more than or equal to {@zmszc6}:
  870. remove {@zmszc6} from player's balance
  871. set {ms.%player%} to false
  872. remove iron sword named "&7Zelazny miecz +5" from player
  873. wait 1 tick
  874. give iron sword named "&7Zelazny miecz +6" to player
  875. send "{@tag} &aUlepszanie zakonczone sukcesem!!!"
  876. else:
  877. send "&aNie posiadasz tyle pieniedzy!!!"
  878. stop
  879. else:
  880. send "{@tag} &aNie posiadasz tego miecza!!!"
  881. stop
  882. if arg 3 is "+7":
  883. if arg 4 is set:
  884. set {ms.%player%} to false
  885. wait 1 tick
  886. chance of {@zmsz7}%:
  887. set {ms.%player%} to true
  888. if {ms.%player%} is true:
  889. if player's tool is iron sword:
  890. if name of player's tool is "&7Zelazny miecz +6":
  891. if player's balance is more than or equal to {@zmszc7}:
  892. remove {@zmszc7} from player's balance
  893. send "{@tag} &aUlepszanie zakonczone porazka!!!"
  894. remove iron sword named "&7Zelazny miecz +6" from player
  895. else:
  896. send "&aNie posiadasz tyle pieniedzy!!!"
  897. stop
  898. else:
  899. send "{@tag} &aNie posiadasz tego miecza!!!"
  900. stop
  901. if {ms.%player%} is false:
  902. if player's tool is iron sword:
  903. if name of player's tool is "&7Zelazny miecz +6":
  904. if player's balance is more than or equal to {@zmszc7}:
  905. remove {@zmszc7} from player's balance
  906. set {ms.%player%} to false
  907. remove iron sword named "&7Zelazny miecz +6" from player
  908. wait 1 tick
  909. give diamond sword named "&bDiamentowy miecz +1" to player
  910. send "{@tag} &aUlepszanie zakonczone sukcesem!!!"
  911. else:
  912. send "&aNie posiadasz tyle pieniedzy!!!"
  913. stop
  914. else:
  915. send "{@tag} &aNie posiadasz tego miecza!!!"
  916. stop
  917. if arg 2 is "d":
  918. if arg 3 is "+1":
  919. if arg 4 is set:
  920. set {ms.%player%} to false
  921. wait 1 tick
  922. chance of {@dmsz1}%:
  923. set {ms.%player%} to true
  924. if {ms.%player%} is true:
  925. if player's tool is diamond sword:
  926. if player's balance is more than or equal to {@dmszc1}:
  927. remove {@dmszc1} from player's balance
  928. send "{@tag} &aUlepszanie zakonczone porazka!!!"
  929. remove diamond sword from player
  930. else:
  931. send "&aNie posiadasz tyle pieniedzy!!!"
  932. stop
  933. else:
  934. send "{@tag} &aNie posiadasz tego miecza!!!"
  935. stop
  936. if {ms.%player%} is false:
  937. if player's tool is diamond sword:
  938. if player's balance is more than or equal to {@dmszc1}:
  939. remove {@dmszc1} from player's balance
  940. set {ms.%player%} to false
  941. remove diamond sword from player
  942. wait 1 tick
  943. give diamond sword named "&bDiamentowy miecz +1" to player
  944. send "{@tag} &aUlepszanie zakonczone sukcesem!!!"
  945. else:
  946. send "&aNie posiadasz tyle pieniedzy!!!"
  947. stop
  948. if arg 3 is "+2":
  949. if arg 4 is set:
  950. set {ms.%player%} to false
  951. wait 1 tick
  952. chance of {@dmsz2}%:
  953. set {ms.%player%} to true
  954. if {ms.%player%} is true:
  955. if player's tool is diamond sword:
  956. if name of player's tool is "&bDiamentowy miecz +1":
  957. if player's balance is more than or equal to {@dmszc1}:
  958. remove {@dmszc1} from player's balance
  959. send "{@tag} &aUlepszanie zakonczone porazka!!!"
  960. remove diamond sword named "&bDiamentowy miecz +1" from player
  961. else:
  962. send "&aNie posiadasz tyle pieniedzy!!!"
  963. stop
  964. else:
  965. send "{@tag} &aNie posiadasz tego miecza!!!"
  966. stop
  967. if {ms.%player%} is false:
  968. if player's tool is diamond sword:
  969. if name of player's tool is "&bDiamentowy miecz +1":
  970. if player's balance is more than or equal to {@dmszc2}:
  971. remove {@dmszc2} from player's balance
  972. set {ms.%player%} to false
  973. remove diamond sword named "&bDiamentowy miecz +1" from player
  974. wait 1 tick
  975. give diamond sword named "&bDiamentowy miecz +2" to player
  976. send "{@tag} &aUlepszanie zakonczone sukcesem!!!"
  977. else:
  978. send "&aNie posiadasz tyle pieniedzy!!!"
  979. stop
  980. else:
  981. send "{@tag} &aNie posiadasz tego miecza!!!"
  982. stop
  983. if arg 3 is "+3":
  984. if arg 4 is set:
  985. set {ms.%player%} to false
  986. wait 1 tick
  987. chance of {@dmsz3}%:
  988. set {ms.%player%} to true
  989. if {ms.%player%} is true:
  990. if player's tool is diamond sword:
  991. if name of player's tool is "&bDiamentowy miecz +2":
  992. if player's balance is more than or equal to {@dmszc3}:
  993. remove {@dmszc3} from player's balance
  994. send "{@tag} &aUlepszanie zakonczone porazka!!!"
  995. remove diamond sword named "&bDiamentowy miecz +2" from player
  996. else:
  997. send "&aNie posiadasz tyle pieniedzy!!!"
  998. stop
  999. else:
  1000. send "{@tag} &aNie posiadasz tego miecza!!!"
  1001. stop
  1002. if {ms.%player%} is false:
  1003. if player's tool is diamond sword:
  1004. if name of player's tool is "&bDiamentowy miecz +2":
  1005. if player's balance is more than or equal to {@dmszc3}:
  1006. remove {@dmsz3} from player's balance
  1007. set {ms.%player%} to false
  1008. remove diamond sword named "&bDiamentowy miecz +2" from player
  1009. wait 1 tick
  1010. give diamond sword named "&bDiamentowy miecz +3" to player
  1011. send "{@tag} &aUlepszanie zakonczone sukcesem!!!"
  1012. else:
  1013. send "&aNie posiadasz tyle pieniedzy!!!"
  1014. stop
  1015. else:
  1016. send "{@tag} &aNie posiadasz tego miecza!!!"
  1017. stop
  1018. if arg 3 is "+4":
  1019. if arg 4 is set:
  1020. set {ms.%player%} to false
  1021. wait 1 tick
  1022. chance of {@dmsz4}%:
  1023. set {ms.%player%} to true
  1024. if {ms.%player%} is true:
  1025. if player's tool is diamond sword:
  1026. if name of player's tool is "&bDiamentowy miecz +3":
  1027. if player's balance is more than or equal to {@dmszc4}:
  1028. remove {@dmszc4} from player's balance
  1029. send "{@tag} &aUlepszanie zakonczone porazka!!!"
  1030. remove diamond sword named "&bDiamentowy miecz +3" from player
  1031. else:
  1032. send "&aNie posiadasz tyle pieniedzy!!!"
  1033. stop
  1034. else:
  1035. send "{@tag} &aNie posiadasz tego miecza!!!"
  1036. stop
  1037. if {ms.%player%} is false:
  1038. if player's tool is diamond sword:
  1039. if name of player's tool is "&bDiamentowy miecz +3":
  1040. if player's balance is more than or equal to {@dmszc4}:
  1041. remove {@dmszc4} from player's balance
  1042. set {ms.%player%} to false
  1043. remove diamond sword named "&bDiamentowy miecz +3" from player
  1044. wait 1 tick
  1045. give diamond sword named "&bDiamentowy miecz +4" to player
  1046. send "{@tag} &aUlepszanie zakonczone sukcesem!!!"
  1047. else:
  1048. send "&aNie posiadasz tyle pieniedzy!!!"
  1049. stop
  1050. else:
  1051. send "{@tag} &aNie posiadasz tego miecza!!!"
  1052. stop
  1053. if arg 3 is "+5":
  1054. if arg 4 is set:
  1055. set {ms.%player%} to false
  1056. wait 1 tick
  1057. chance of {@dmsz5}%:
  1058. set {ms.%player%} to true
  1059. if {ms.%player%} is true:
  1060. if player's tool is diamond sword:
  1061. if name of player's tool is "&bDiamentowy miecz +4":
  1062. if player's balance is more than or equal to {@dmszc5}:
  1063. remove {@dmszc5} from player's balance
  1064. send "{@tag} &aUlepszanie zakonczone porazka!!!"
  1065. remove diamond sword named "&bDiamentowy miecz +4" from player
  1066. else:
  1067. send "&aNie posiadasz tyle pieniedzy!!!"
  1068. stop
  1069. else:
  1070. send "{@tag} &aNie posiadasz tego miecza!!!"
  1071. stop
  1072. if {ms.%player%} is false:
  1073. if player's tool is diamond sword:
  1074. if name of player's tool is "&bDiamentowy miecz +4":
  1075. if player's balance is more than or equal to {@dmszc5}:
  1076. remove {@dmszc5} from player's balance
  1077. set {ms.%player%} to false
  1078. remove diamond sword named "&bDiamentowy miecz +4" from player
  1079. wait 1 tick
  1080. give diamond sword named "&bDiamentowy miecz +5" to player
  1081. send "{@tag} &aUlepszanie zakonczone sukcesem!!!"
  1082. else:
  1083. send "&aNie posiadasz tyle pieniedzy!!!"
  1084. stop
  1085. else:
  1086. send "{@tag} &aNie posiadasz tego miecza!!!"
  1087. stop
  1088. if arg 3 is "+6":
  1089. if arg 4 is set:
  1090. set {ms.%player%} to false
  1091. wait 1 tick
  1092. chance of {@dmsz6}%:
  1093. set {ms.%player%} to true
  1094. if {ms.%player%} is true:
  1095. if player's tool is diamond sword:
  1096. if name of player's tool is "&bDiamentowy miecz +5":
  1097. if player's balance is more than or equal to {@dmszc6}:
  1098. remove {@dmszc6} from player's balance
  1099. send "{@tag} &aUlepszanie zakonczone porazka!!!"
  1100. remove diamond sword named "&bDiamentowy miecz +5" from player
  1101. else:
  1102. send "&aNie posiadasz tyle pieniedzy!!!"
  1103. stop
  1104. else:
  1105. send "{@tag} &aNie posiadasz tego miecza!!!"
  1106. stop
  1107. if {ms.%player%} is false:
  1108. if player's tool is diamond sword:
  1109. if name of player's tool is "&bDiamentowy miecz +5":
  1110. if player's balance is more than or equal to {@dmszc6}:
  1111. remove {@dmszc6} from player's balance
  1112. set {ms.%player%} to false
  1113. remove diamond sword named "&bDiamentowy miecz +5" from player
  1114. wait 1 tick
  1115. give diamond sword named "&bDiamentowy miecz +6" to player
  1116. send "{@tag} &aUlepszanie zakonczone sukcesem!!!"
  1117. else:
  1118. send "&aNie posiadasz tyle pieniedzy!!!"
  1119. stop
  1120. else:
  1121. send "{@tag} &aNie posiadasz tego miecza!!!"
  1122. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement