Advertisement
fleft17

Untitled

Jul 7th, 2014
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.25 KB | None | 0 0
  1.  
  2. on login:
  3. if player is in world "1v1":
  4. if "%region at player%" contains "0-1":
  5. wait 2 seconds
  6. set {0-1} to true
  7. wait 2.5 minutes
  8. loop all players:
  9. loop-player is in world "1v1":
  10. if "%region at loop-player%" contains "0-1":
  11. stop trigger
  12. loop all players:
  13. if "%region at loop-player%" does not contain "0-1":
  14. set {0-1} to false
  15.  
  16.  
  17. on login:
  18. if player is in world "1v1":
  19. if "%region at player%" contains "0-2":
  20. wait 2 seconds
  21. set {0-2} to true
  22. wait 2.5 minutes
  23. loop all players:
  24. loop-player is in world "1v1":
  25. if "%region at loop-player%" contains "0-2":
  26. stop trigger
  27. loop all players:
  28. if "%region at loop-player%" does not contain "0-2":
  29. set {0-2} to false
  30. on login:
  31. if player is in world "1v1":
  32. if "%region at player%" contains "0-3":
  33. wait 2 seconds
  34. set {0-3} to true
  35. wait 2.5 minutes
  36. loop all players:
  37. loop-player is in world "1v1":
  38. if "%region at loop-player%" contains "0-3":
  39. stop trigger
  40. loop all players:
  41. if "%region at loop-player%" does not contain "0-3":
  42. set {0-1} to false
  43.  
  44. on login:
  45. if player is in world "1v1":
  46. if "%region at player%" contains "0-4":
  47. wait 2 seconds
  48. set {0-4} to true
  49. wait 2.5 minutes
  50. loop all players:
  51. loop-player is in world "1v1":
  52. if "%region at loop-player%" contains "0-4":
  53. stop trigger
  54. loop all players:
  55. if "%region at loop-player%" does not contain "0-4":
  56. set {0-4} to false
  57.  
  58. on login:
  59. if player is in world "1v1":
  60. if "%region at player%" contains "0-5":
  61. wait 2 seconds
  62. set {0-5} to true
  63. wait 2.5 minutes
  64. loop all players:
  65. loop-player is in world "1v1":
  66. if "%region at loop-player%" contains "0-5":
  67. stop trigger
  68. loop all players:
  69. if "%region at loop-player%" does not contain "0-5":
  70. set {0-5} to false
  71.  
  72. on login:
  73. if player is in world "1v1":
  74. if "%region at player%" contains "0-6":
  75. wait 2 seconds
  76. set {0-6} to true
  77. wait 2.5 minutes
  78. loop all players:
  79. loop-player is in world "1v1":
  80. if "%region at loop-player%" contains "0-6":
  81. stop trigger
  82. loop all players:
  83. if "%region at loop-player%" does not contain "0-6":
  84. set {0-6} to false
  85.  
  86. on login:
  87. if player is in world "1v1":
  88. if "%region at player%" contains "0-7":
  89. wait 2 seconds
  90. set {0-7} to true
  91. wait 2.5 minutes
  92. loop all players:
  93. loop-player is in world "1v1":
  94. if "%region at loop-player%" contains "0-7":
  95. stop trigger
  96. loop all players:
  97. if "%region at loop-player%" does not contain "0-7":
  98. set {0-7} to false
  99.  
  100. on login:
  101. if player is in world "1v1":
  102. if "%region at player%" contains "0-8":
  103. wait 2 seconds
  104. set {0-8} to true
  105. wait 2.5 minutes
  106. loop all players:
  107. loop-player is in world "1v1":
  108. if "%region at loop-player%" contains "0-8":
  109. stop trigger
  110. loop all players:
  111. if "%region at loop-player%" does not contain "0-8":
  112. set {0-8} to false
  113.  
  114. on login:
  115. if player is in world "1v1":
  116. if "%region at player%" contains "0-9":
  117. wait 2 seconds
  118. set {0-9} to true
  119. wait 2.5 minutes
  120. loop all players:
  121. loop-player is in world "1v1":
  122. if "%region at loop-player%" contains "0-9":
  123. stop trigger
  124. loop all players:
  125. if "%region at loop-player%" does not contain "0-9":
  126. set {0-9} to false
  127.  
  128. on login:
  129. if player is in world "1v1":
  130. if "%region at player%" contains "1-0":
  131. wait 2 seconds
  132. set {1-0} to true
  133. wait 2.5 minutes
  134. loop all players:
  135. loop-player is in world "1v1":
  136. if "%region at loop-player%" contains "1-0":
  137. stop trigger
  138. loop all players:
  139. if "%region at loop-player%" does not contain "1-0":
  140. set {1-0} to false
  141.  
  142. on login:
  143. if player is in world "1v1":
  144. if "%region at player%" contains "1-1":
  145. wait 2 seconds
  146. set {1-1} to true
  147. wait 2.5 minutes
  148. loop all players:
  149. loop-player is in world "1v1":
  150. if "%region at loop-player%" contains "1-1":
  151. stop trigger
  152. loop all players:
  153. if "%region at loop-player%" does not contain "1-1":
  154. set {1-1} to false
  155.  
  156. on login:
  157. if player is in world "1v1":
  158. if "%region at player%" contains "1-2":
  159. wait 2 seconds
  160. set {1-2} to true
  161. wait 2.5 minutes
  162. loop all players:
  163. loop-player is in world "1v1":
  164. if "%region at loop-player%" contains "1-2":
  165. stop trigger
  166. loop all players:
  167. if "%region at loop-player%" does not contain "1-2":
  168. set {1-2} to false
  169.  
  170. on login:
  171. if player is in world "1v1":
  172. if "%region at player%" contains "1-3":
  173. wait 2 seconds
  174. set {1-3} to true
  175. wait 2.5 minutes
  176. loop all players:
  177. loop-player is in world "1v1":
  178. if "%region at loop-player%" contains "1-3":
  179. stop trigger
  180. loop all players:
  181. if "%region at loop-player%" does not contain "1-3":
  182. set {1-3} to false
  183.  
  184. on login:
  185. if player is in world "1v1":
  186. if "%region at player%" contains "1-4":
  187. wait 2 seconds
  188. set {1-4} to true
  189. wait 2.5 minutes
  190. loop all players:
  191. loop-player is in world "1v1":
  192. if "%region at loop-player%" contains "1-4":
  193. stop trigger
  194. loop all players:
  195. if "%region at loop-player%" does not contain "1-4":
  196. set {1-4} to false
  197.  
  198. on login:
  199. if player is in world "1v1":
  200. if "%region at player%" contains "1-5":
  201. wait 2 seconds
  202. set {1-5} to true
  203. wait 2.5 minutes
  204. loop all players:
  205. loop-player is in world "1v1":
  206. if "%region at loop-player%" contains "1-5":
  207. stop trigger
  208. loop all players:
  209. if "%region at loop-player%" does not contain "1-5":
  210. set {1-5} to false
  211.  
  212.  
  213. on login:
  214. if player is in world "1v1":
  215. if "%region at player%" contains "1-6":
  216. wait 2 seconds
  217. set {1-6} to true
  218. wait 2.5 minutes
  219. loop all players:
  220. loop-player is in world "1v1":
  221. if "%region at loop-player%" contains "1-6":
  222. stop trigger
  223. loop all players:
  224. if "%region at loop-player%" does not contain "1-6":
  225. set {1-6} to false
  226. on login:
  227. if player is in world "1v1":
  228. if "%region at player%" contains "1-7":
  229. wait 2 seconds
  230. set {1-7} to true
  231. wait 2.5 minutes
  232. loop all players:
  233. loop-player is in world "1v1":
  234. if "%region at loop-player%" contains "1-7":
  235. stop trigger
  236. loop all players:
  237. if "%region at loop-player%" does not contain "1-7":
  238. set {1-7} to false
  239.  
  240. on login:
  241. if player is in world "1v1":
  242. if "%region at player%" contains "1-8":
  243. wait 2 seconds
  244. set {1-8} to true
  245. wait 2.5 minutes
  246. loop all players:
  247. loop-player is in world "1v1":
  248. if "%region at loop-player%" contains "1-8":
  249. stop trigger
  250. loop all players:
  251. if "%region at loop-player%" does not contain "1-8":
  252. set {1-8} to false
  253.  
  254.  
  255. on hunger bar change:
  256. player is in world "1v1":
  257. cancel the event
  258.  
  259. on damage:
  260. damage was caused by fall:
  261. victim is in world "1v1":
  262. cancel the event
  263.  
  264. on damage:
  265. damage was caused by lava:
  266. victim is in world "1v1":
  267. cancel the event
  268.  
  269. on command "/pl":
  270. player is not op:
  271. cancel the event
  272.  
  273.  
  274. on command "/plugins":
  275. player is not op:
  276. cancel the event
  277.  
  278.  
  279. on skript start:
  280. set {0-1} to false
  281. set {0-2} to false
  282. set {0-3} to false
  283. set {0-4} to false
  284. set {0-5} to false
  285. set {0-6} to false
  286. set {0-7} to false
  287. set {0-8} to false
  288. set {0-9} to false
  289. set {1-0} to false
  290. set {1-1} to false
  291. set {1-2} to false
  292. set {1-3} to false
  293. set {1-4} to false
  294. set {1-5} to false
  295. set {1-6} to false
  296. set {1-7} to false
  297. set {1-8} to false
  298.  
  299.  
  300. command /1v1reset:
  301. permission: skript.op
  302. trigger:
  303. set {0-1} to false
  304. set {0-2} to false
  305. set {0-3} to false
  306. set {0-4} to false
  307. set {0-5} to false
  308. set {0-6} to false
  309. set {0-7} to false
  310. set {0-8} to false
  311. set {0-9} to false
  312. set {1-0} to false
  313. set {1-1} to false
  314. set {1-2} to false
  315. set {1-3} to false
  316. set {1-4} to false
  317. set {1-5} to false
  318. set {1-6} to false
  319. set {1-7} to false
  320. set {1-8} to false
  321.  
  322. on death of player:
  323. attacker is in world "1v1":
  324. message "%{Fprefix}% You killed %victim%&7!"
  325. clear the player's inventory
  326. clear the attacker's inventory
  327. teleport attacker to spawn point of "FleftSpawn"
  328. teleport victim to spawn point of "FleftSpawn"
  329. heal the attacker
  330. set death message to ""
  331. wait 0.1 second
  332. clear the player's inventory
  333. clear the attacker's inventory
  334. wait 0.1 second
  335. give 1 compass named "&c&lRight click for PvP menu" to the attacker
  336.  
  337.  
  338.  
  339.  
  340.  
  341. command /1v1arena <text>:
  342. permission: skript.op
  343. trigger:
  344. if arg is "on":
  345. set {1v1} to true
  346. if arg is "off":
  347. set {1v1} to false
  348.  
  349.  
  350. command /1v1leave:
  351. trigger:
  352. {1v1} is true:
  353. command sender is in world "1v1":
  354. message "%{Fprefix}% Leaving 1v1 in 10 seconds&7!"
  355. set {1v1damage.%command sender%} to true
  356. wait 10 seconds
  357. if {1v1damage.%command sender%} is false:
  358. stop trigger
  359. message "%{Fprefix}% You took damage&7!"
  360. if {1v1damage.%command sender%} is true:
  361. clear the player's inventory
  362. teleport player to spawn point of "FleftSpawn"
  363. clear the player's inventory
  364. heal the player
  365. message "%{Fprefix}% You left 1v1!"
  366. give 1 compass named "&c&lRight click for PvP menu" to the player
  367.  
  368.  
  369. on drop of compass:
  370. player is in world "FleftSpawn":
  371. cancel the event
  372.  
  373. on damage:
  374. {1v1damage.%command sender%} is true:
  375. set {1v1damage.%command sender%} to false
  376.  
  377.  
  378. on login:
  379. {1v1} is true:
  380. wait 0.1 second
  381. clear the player's inventory
  382. wait 0.25 seconds
  383. give 1 compass named "&c&lRight click for PvP menu" to the player
  384.  
  385. on respawn:
  386. {1v1} is true:
  387. wait 1 second
  388. give 1 compass named "&c&lRight click for PvP menu" to the player
  389.  
  390. #---------------------------------------------------------------------------------------------------
  391. #This section handles players navigating the GUI menus without permissions
  392.  
  393. command /1v1matchmenu:
  394. trigger:
  395. execute console command "/chc open 1v1matches.yml %player%"
  396.  
  397. command /guimainmenu:
  398. trigger:
  399. execute console command "/chc open main-menu.yml %player%"
  400.  
  401. on right click:
  402. {1v1} is true:
  403. player is holding compass:
  404. execute console command "/chc open main-menu.yml %player%"
  405.  
  406. #---------------------------------------------------------------------------------------------------
  407. #This section handles players entering and exiting arena regions
  408.  
  409. on region enter:
  410. if "%region%" contains "0-1":
  411. set {0-1} to true
  412. if "%region%" contains "0-2":
  413. set {0-2} to true
  414. if "%region%" contains "0-3":
  415. set {0-3} to true
  416. if "%region%" contains "0-4":
  417. set {0-4} to true
  418. if "%region%" contains "0-5":
  419. set {0-5} to true
  420. if "%region%" contains "0-6":
  421. set {0-6} to true
  422. if "%region%" contains "0-7":
  423. set {0-7} to true
  424. if "%region%" contains "0-8":
  425. set {0-8} to true
  426. if "%region%" contains "0-9":
  427. set {0-9} to true
  428. if "%region%" contains "1-0":
  429. set {1-0} to true
  430. if "%region%" contains "1-1":
  431. set {1-1} to true
  432. if "%region%" contains "1-2":
  433. set {1-2} to true
  434. if "%region%" contains "1-3":
  435. set {1-3} to true
  436. if "%region%" contains "1-4":
  437. set {1-4} to true
  438. if "%region%" contains "1-5":
  439. set {1-5} to true
  440. if "%region%" contains "1-6":
  441. set {1-6} to true
  442. if "%region%" contains "1-7":
  443. set {1-7} to true
  444. if "%region%" contains "1-8":
  445. set {1-8} to true
  446.  
  447. on region leave:
  448. if "%region%" contains "0-1":
  449. set {0-1} to false
  450. if "%region%" contains "0-2":
  451. set {0-2} to false
  452. if "%region%" contains "0-3":
  453. set {0-3} to false
  454. if "%region%" contains "0-4":
  455. set {0-4} to false
  456. if "%region%" contains "0-5":
  457. set {0-5} to false
  458. if "%region%" contains "0-6":
  459. set {0-6} to false
  460. if "%region%" contains "0-7":
  461. set {0-7} to false
  462. if "%region%" contains "0-8":
  463. set {0-8} to false
  464. if "%region%" contains "0-9":
  465. set {0-9} to false
  466. if "%region%" contains "1-0":
  467. set {1-0} to false
  468. if "%region%" contains "1-1":
  469. set {1-1} to false
  470. if "%region%" contains "1-2":
  471. set {1-2} to false
  472. if "%region%" contains "1-3":
  473. set {1-3} to false
  474. if "%region%" contains "1-4":
  475. set {1-4} to false
  476. if "%region%" contains "1-5":
  477. set {1-5} to false
  478. if "%region%" contains "1-6":
  479. set {1-6} to false
  480. if "%region%" contains "1-7":
  481. set {1-7} to false
  482. if "%region%" contains "1-8":
  483. set {1-8} to false
  484.  
  485. #---------------------------------------------------------------------------------------------------
  486. #This section handles keeping track of what arenas are full
  487.  
  488. #0-1
  489. on command "/qadd 0-1":
  490. if {0-1} is true:
  491. cancel the event
  492. execute console command "/playsound note.bass %command sender% ~ ~ ~ 1 1 1"
  493. message "%{Fprefix}% &cSomeone is in that arena&7!"
  494. else:
  495. execute console command "/playsound note.pling %command sender% ~ ~ ~ 1 1 1"
  496.  
  497. #0-2
  498. on command "/qadd 0-2":
  499. if {0-2} is true:
  500. cancel the event
  501. execute console command "/playsound note.bass %command sender% ~ ~ ~ 1 1 1"
  502. message "%{Fprefix}% &cSomeone is in that arena&7!"
  503. else:
  504. execute console command "/playsound note.pling %command sender% ~ ~ ~ 1 1 1"
  505.  
  506. #0-3
  507. on command "/qadd 0-3":
  508. if {0-3} is true:
  509. cancel the event
  510. execute console command "/playsound note.bass %command sender% ~ ~ ~ 1 1 1"
  511. message "%{Fprefix}% &cSomeone is in that arena&7!"
  512. else:
  513. execute console command "/playsound note.pling %command sender% ~ ~ ~ 1 1 1"
  514.  
  515. #0-4
  516. on command "/qadd 0-4":
  517. if {0-4} is true:
  518. cancel the event
  519. execute console command "/playsound note.bass %command sender% ~ ~ ~ 1 1 1"
  520. message "%{Fprefix}% &cSomeone is in that arena&7!"
  521. else:
  522. execute console command "/playsound note.pling %command sender% ~ ~ ~ 1 1 1"
  523.  
  524. #0-5
  525. on command "/qadd 0-5":
  526. if {0-5} is true:
  527. cancel the event
  528. execute console command "/playsound note.bass %command sender% ~ ~ ~ 1 1 1"
  529. message "%{Fprefix}% &cSomeone is in that arena&7!"
  530. else:
  531. execute console command "/playsound note.pling %command sender% ~ ~ ~ 1 1 1"
  532.  
  533. #0-6
  534. on command "/qadd 0-6":
  535. if {0-6} is true:
  536. cancel the event
  537. execute console command "/playsound note.bass %command sender% ~ ~ ~ 1 1 1"
  538. message "%{Fprefix}% &cSomeone is in that arena&7!"
  539. else:
  540. execute console command "/playsound note.pling %command sender% ~ ~ ~ 1 1 1"
  541.  
  542. #0-7
  543. on command "/qadd 0-7":
  544. if {0-7} is true:
  545. cancel the event
  546. execute console command "/playsound note.bass %command sender% ~ ~ ~ 1 1 1"
  547. message "%{Fprefix}% &cSomeone is in that arena&7!"
  548. else:
  549. execute console command "/playsound note.pling %command sender% ~ ~ ~ 1 1 1"
  550.  
  551. #0-8
  552. on command "/qadd 0-8":
  553. if {0-8} is true:
  554. cancel the event
  555. execute console command "/playsound note.bass %command sender% ~ ~ ~ 1 1 1"
  556. message "%{Fprefix}% &cSomeone is in that arena&7!"
  557. else:
  558. execute console command "/playsound note.pling %command sender% ~ ~ ~ 1 1 1"
  559.  
  560. #0-9
  561. on command "/qadd 0-9":
  562. if {0-9} is true:
  563. cancel the event
  564. execute console command "/playsound note.bass %command sender% ~ ~ ~ 1 1 1"
  565. message "%{Fprefix}% &cSomeone is in that arena&7!"
  566. else:
  567. execute console command "/playsound note.pling %command sender% ~ ~ ~ 1 1 1"
  568.  
  569. #1-0
  570. on command "/qadd 1-0":
  571. if {1-0} is true:
  572. cancel the event
  573. execute console command "/playsound note.bass %command sender% ~ ~ ~ 1 1 1"
  574. message "%{Fprefix}% &cSomeone is in that arena&7!"
  575. else:
  576. execute console command "/playsound note.pling %command sender% ~ ~ ~ 1 1 1"
  577.  
  578. #1-1
  579. on command "/qadd 1-1":
  580. if {1-1} is true:
  581. cancel the event
  582. execute console command "/playsound note.bass %command sender% ~ ~ ~ 1 1 1"
  583. message "%{Fprefix}% &cSomeone is in that arena&7!"
  584. else:
  585. execute console command "/playsound note.pling %command sender% ~ ~ ~ 1 1 1"
  586.  
  587. #1-2
  588. on command "/qadd 1-2":
  589. if {1-2} is true:
  590. cancel the event
  591. execute console command "/playsound note.bass %command sender% ~ ~ ~ 1 1 1"
  592. message "%{Fprefix}% &cSomeone is in that arena&7!"
  593. else:
  594. execute console command "/playsound note.pling %command sender% ~ ~ ~ 1 1 1"
  595.  
  596. #1-3
  597. on command "/qadd 1-3":
  598. if {1-3} is true:
  599. cancel the event
  600. execute console command "/playsound note.bass %command sender% ~ ~ ~ 1 1 1"
  601. message "%{Fprefix}% &cSomeone is in that arena&7!"
  602. else:
  603. execute console command "/playsound note.pling %command sender% ~ ~ ~ 1 1 1"
  604.  
  605. #1-4
  606. on command "/qadd 1-4":
  607. if {1-4} is true:
  608. cancel the event
  609. execute console command "/playsound note.bass %command sender% ~ ~ ~ 1 1 1"
  610. message "%{Fprefix}% &cSomeone is in that arena&7!"
  611. else:
  612. execute console command "/playsound note.pling %command sender% ~ ~ ~ 1 1 1"
  613.  
  614. #1-5
  615. on command "/qadd 1-5":
  616. if {1-5} is true:
  617. cancel the event
  618. execute console command "/playsound note.bass %command sender% ~ ~ ~ 1 1 1"
  619. message "%{Fprefix}% &cSomeone is in that arena&7!"
  620. else:
  621. execute console command "/playsound note.pling %command sender% ~ ~ ~ 1 1 1"
  622.  
  623. #1-6
  624. on command "/qadd 1-6":
  625. if {1-6} is true:
  626. cancel the event
  627. execute console command "/playsound note.bass %command sender% ~ ~ ~ 1 1 1"
  628. message "%{Fprefix}% &cSomeone is in that arena&7!"
  629. else:
  630. execute console command "/playsound note.pling %command sender% ~ ~ ~ 1 1 1"
  631.  
  632. #1-7
  633. on command "/qadd 1-7":
  634. if {1-7} is true:
  635. cancel the event
  636. execute console command "/playsound note.bass %command sender% ~ ~ ~ 1 1 1"
  637. message "%{Fprefix}% &cSomeone is in that arena&7!"
  638. else:
  639. execute console command "/playsound note.pling %command sender% ~ ~ ~ 1 1 1"
  640.  
  641. #1-8
  642. on command "/qadd 1-8":
  643. if {1-8} is true:
  644. cancel the event
  645. execute console command "/playsound note.bass %command sender% ~ ~ ~ 1 1 1"
  646. message "%{Fprefix}% &cSomeone is in that arena&7!"
  647. else:
  648. execute console command "/playsound note.pling %command sender% ~ ~ ~ 1 1 1"
  649. #---------------------------------------------------------------------------------------------------
  650. #This section handles what happens to players once they enter the arena
  651. on region enter:
  652. player is in world "1v1":
  653. if player's gamemode is not survival:
  654. set the player's gamemode to survival
  655. apply resistance 5 to the player for 10.5 seconds
  656. heal the player
  657. clear the player's inventory
  658. equip player with all iron armor
  659. give iron sword to the player
  660. give bow of infinity 1 to the player
  661. give arrow to the player
  662. message "&7[&bFavonius&7]&r You have 10 seconds to spread out." to the player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement