Advertisement
pasteail

Untitled

Feb 16th, 2020
463
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.87 KB | None | 0 0
  1. on join:<ind>
  2. wait 2 second<ind>
  3. if {%player%::aucitem} is set:<ind>
  4. send "&6‡&7==============================&6&lAuction&7==============================&6‡" <ind>
  5. send "&6オークション中にログアウトしたため %{%player%::aucmel}%メルを支払いました"<ind>
  6. remove {%player%::aucmel} from {%player%::mel}<ind>
  7. send "&6‡&7====================================================================&6‡"<ind>
  8. send "&6オークション中にログアウトしたためアイテムを戻しました。"<ind>
  9. loop 36 times: <ind>
  10. if slot (loop-number - 1) of player's inventory is air: <ind>
  11. give {%player%::aucitem} to player<ind>
  12. delete {%player%::aucitem}<ind>
  13. send "&6‡&7====================================================================&6‡" <ind>
  14. stop <ind>
  15. drop {aucsys::itembase} at location of {aucsys::buyr}<ind>
  16. send "&6‡インベントリに空きが無かった為足元にアイテムをドロップしました"<ind>
  17. send "&6‡&7====================================================================&6‡"<ind>
  18. delete {%player%::aucitem}<ind>
  19. delete {%player%::aucmel}<ind>
  20. <ind>
  21. command /deleteauc [<text>]:<ind>
  22. permission: sk.admin<ind>
  23. trigger:<ind>
  24. if arg-1 is not set:<ind>
  25. send "&6‡&7==============================&6&lAuction&7==============================&6‡" <ind>
  26. send "&c今行っているAuction関係をすべて消去します!!!"<ind>
  27. send "&cそれでもいいなら/deleteauc confirm"<ind>
  28. send "&6‡&7====================================================================&6‡" <ind>
  29. if arg-1 is not "confirm":<ind>
  30. send "&6‡&7==============================&6&lAuction&7==============================&6‡" <ind>
  31. send "&c今行っているAuction関係をすべて消去します!!!"<ind>
  32. send "&cそれでもいいなら/deleteauc confirm"<ind>
  33. send "&6‡&7====================================================================&6‡" <ind>
  34. else if arg-1 is "confirm":<ind>
  35. delete {aucsys::*}<ind>
  36. <ind>
  37. command /auchelp: <ind>
  38. aliases: /auctionhelp <ind>
  39. trigger: <ind>
  40. send "&6‡&7==============================&6&lAuction&7==============================&6‡" <ind>
  41. send "&c/auction <開始金額> [<即決金額(任意)>]&4: &6手に持っているアイテムをオークションに出します" <ind>
  42. send "&c/auctionstop &4: &6自分が開催しているオークションを中止します" <ind>
  43. send "&c/auctionbuy <金額>&4: &6開催しているオークションに入札します" <ind>
  44. send "&c/auctiondisplay &4: &6出品された品を確認します" <ind>
  45. send "&6‡&7====================================================================&6‡" <ind>
  46. <ind>
  47. command /auc <integer> [<integer>]: <ind>
  48. aliases: /auction <ind>
  49. usage: /auction <開始金額> [<即決金額(任意)>] <ind>
  50. permission: auction.start <ind>
  51. trigger: <ind>
  52. if {aucsys::cond} is 1: <ind>
  53. send "&6‡&7==============================&6&lAuction&7==============================&6‡" <ind>
  54. send "&c今は他の誰かがオークションをしています" <ind>
  55. send "&6‡&7====================================================================&6‡" <ind>
  56. else: <ind>
  57. if player's tool is air: <ind>
  58. send "&6‡&7==============================&6&lAuction&7==============================&6‡" <ind>
  59. send "&c無は出品できません" <ind>
  60. send "&6‡&7====================================================================&6‡" <ind>
  61. else: <ind>
  62. if arg 1 is less than 1: <ind>
  63. send "&6‡&7==============================&6&lAuction&7==============================&6‡" <ind>
  64. send "&c開始金額は1メル以上にしてください" <ind>
  65. send "&6‡&7====================================================================&6‡" <ind>
  66. else: <ind>
  67. if arg 2 is set: <ind>
  68. if arg 2 is less than arg 1: <ind>
  69. send "&6‡&7==============================&6&lAuction&7==============================&6‡" <ind>
  70. send "&c即決金額は開始金額より高くしてください" <ind>
  71. send "&6‡&7====================================================================&6‡" <ind>
  72. else: <ind>
  73. set {aucsys::selr} to player <ind>
  74. set {aucsys::cond} to 1 <ind>
  75. set {aucsys::valu} to arg 1 <ind>
  76. set {aucsys::itembase} to player's tool<ind>
  77. set {aucsys::time} to 120<ind>
  78. set {aucsys::dire} to arg 2 <ind>
  79. delete player's tool <ind>
  80. broadcast "&6‡&7==============================&6&lAuction&7==============================&6‡" <ind>
  81. broadcast "&f&l%player%&6さんがオークションを始めました" <ind>
  82. broadcast "&6開始金額は&c%arg 1%メル" <ind>
  83. broadcast "&6即決金額は&4%arg 2%メル&6です" <ind>
  84. broadcast "&a/aucd&6で出品された品を確認できます" <ind>
  85. broadcast "&6‡&7====================================================================&6‡" <ind>
  86. while {aucsys::time} is more than 0: <ind>
  87. if {aucsys::selr} is offline:<ind>
  88. set {%{aucsys::selr}%::aucitem} to {aucsys::itembase}<ind>
  89. broadcast "&6‡&7==============================&6&lAuction&7==============================&6‡" <ind>
  90. broadcast "&c売っている人がオフラインになったのでオークションを終了します..."<ind>
  91. broadcast "&6‡&7====================================================================&6‡" <ind>
  92. delete {aucsys::*}<ind>
  93. stop<ind>
  94. else if {aucsys::stop} is 1: <ind>
  95. delete {aucsys::*} <ind>
  96. stop <ind>
  97. else: <ind>
  98. remove 1 from {aucsys::time} <ind>
  99. if {aucsys::time} is 5, 10, 30, 60 or 120: <ind>
  100. broadcast "&7[&6Auction&7] &6%player%さんのオークションはあと%{aucsys::time}%秒で終わります" <ind>
  101. if {aucsys::time} is 0: <ind>
  102. if {aucsys::buyr} is set: <ind>
  103. broadcast "&6‡&7==============================&6&lAuction&7==============================&6‡" <ind>
  104. broadcast "&f%player%&6さんのオークションが終了しました" <ind>
  105. broadcast "&f&l%{aucsys::buyr}%&6さんが&6&l%{aucsys::valu}%メル&6で落札しました" <ind>
  106. broadcast "&6‡&7====================================================================&6‡" <ind>
  107. send "&6‡&6%{aucsys::valu}%メルを%{aucsys::selr}%に送りました" to {aucsys::buyr} <ind>
  108. send "&6‡&6%{aucsys::valu}%メルを%{aucsys::buyr}%から受け取りました" <ind>
  109. send "&6‡&7====================================================================&6‡" to {aucsys::buyr} <ind>
  110. send "&6‡&7====================================================================&6‡" to {aucsys::selr} <ind>
  111. aucend() <ind>
  112. stop <ind>
  113. else: <ind>
  114. broadcast "&6‡&7==============================&6&lAuction&7==============================&6‡" <ind>
  115. broadcast "&f%player%&6さんのオークションが終了しました" <ind>
  116. broadcast "&6入札者は誰も居ませんでした" <ind>
  117. broadcast "&6‡&7====================================================================&6‡" <ind>
  118. aucdead() <ind>
  119. wait 1 second <ind>
  120. else: <ind>
  121. set {aucsys::selr} to player <ind>
  122. set {aucsys::cond} to 1 <ind>
  123. set {aucsys::itembase} to player's tool<ind>
  124. set {aucsys::time} to 120 <ind>
  125. set {aucsys::valu} to arg 1 <ind>
  126. delete player's tool <ind>
  127. broadcast "&6‡&7==============================&6&lAuction&7==============================&6‡" <ind>
  128. broadcast "&f&l%player%&6さんがオークションを始めました" <ind>
  129. broadcast "&6開始金額は&c%arg 1%メル&6です" <ind>
  130. broadcast "&a/aucd&6で出品された品を確認できます" <ind>
  131. broadcast "&6‡&7====================================================================&6‡" <ind>
  132. while {aucsys::time} is more than 0: <ind>
  133. if {aucsys::selr} is offline:<ind>
  134. set {%{aucsys::selr}%::aucitem} to {aucsys::itembase}<ind>
  135. broadcast "&6‡&7==============================&6&lAuction&7==============================&6‡"<ind>
  136. broadcast "&c売っている人がオフラインになったのでオークションを終了します..."<ind>
  137. broadcast "&6‡&7====================================================================&6‡" <ind>
  138. delete {aucsys::*}<ind>
  139. stop<ind>
  140. else if {aucsys::stop} is 1: <ind>
  141. delete {aucsys::*} <ind>
  142. stop <ind>
  143. else: <ind>
  144. remove 1 from {aucsys::time} <ind>
  145. if {aucsys::time} is 5, 10, 20, 30, 60 or 120: <ind>
  146. broadcast "&7[&6Auction&7] &6%player%さんのオークションはあと%{aucsys::time}%秒で終わります" <ind>
  147. if {aucsys::time} is 0: <ind>
  148. if {aucsys::buyr} is set: <ind>
  149. broadcast "&6‡&7==============================&6&lAuction&7==============================&6‡" <ind>
  150. broadcast "&f%player%&6さんのオークションが終了しました" <ind>
  151. broadcast "&f&l%{aucsys::buyr}%&6さんが&6&l%{aucsys::valu}%メル&6で落札しました" <ind>
  152. broadcast "&6‡&7====================================================================&6‡" <ind>
  153. <ind>
  154. <ind>
  155. send "&6‡&6%{aucsys::valu}%メルを%{aucsys::selr}%に送りました" to {aucsys::buyr} <ind>
  156. send "&6‡&6%{aucsys::valu}%メルを%{aucsys::buyr}%から受け取りました" <ind>
  157. send "&6‡&7====================================================================&6‡" to {aucsys::buyr} <ind>
  158. send "&6‡&7====================================================================&6‡"<ind>
  159. aucend() <ind>
  160. stop <ind>
  161. else: <ind>
  162. broadcast "&6‡&7==============================&6&lAuction&7==============================&6‡" <ind>
  163. broadcast "&f%player%&6さんのオークションが終了しました" <ind>
  164. broadcast "&6入札者は誰も居ませんでした" <ind>
  165. broadcast "&6‡&7====================================================================&6‡" <ind>
  166. aucdead() <ind>
  167. stop <ind>
  168. wait 1 second <ind>
  169. <ind>
  170. command /auctionstop: <ind>
  171. aliases: /aucs <ind>
  172. permission: auction.start <ind>
  173. trigger: <ind>
  174. if {aucsys::cond} is 1: <ind>
  175. if {aucsys::selr} is player: <ind>
  176. set {aucsys::stop} to 1 <ind>
  177. broadcast "&6‡&7==============================&6&lAuction&7==============================&6‡" <ind>
  178. broadcast "&f%player%&6さんのオークションが中止されました" <ind>
  179. broadcast "&6‡&7====================================================================&6‡" <ind>
  180. aucdead() <ind>
  181. else if player has the permission "sk.admin": <ind>
  182. set {aucsys::stop} to 1 <ind>
  183. broadcast "&6‡&7==============================&6&lAuction&7==============================&6‡" <ind>
  184. broadcast "&f%{aucsys::selr}%&6さんのオークションは管理者によって中止されました" <ind>
  185. broadcast "&6‡&7====================================================================&6‡" <ind>
  186. aucdead() <ind>
  187. else: <ind>
  188. send "&6‡&7==============================&6&lAuction&7==============================&6‡" <ind>
  189. send "&cオークションの出品者以外は中止できません" <ind>
  190. send "&6‡&7====================================================================&6‡" <ind>
  191. else: <ind>
  192. send "&6‡&7==============================&6&lAuction&7==============================&6‡" <ind>
  193. send "&c今は誰もオークションをしていません" <ind>
  194. send "&6‡&7====================================================================&6‡" <ind>
  195. <ind>
  196. command /auctionbuy <integer>: <ind>
  197. aliases: /aucb<ind>
  198. permission: auction.bid <ind>
  199. usage: /auctionbuy <入札額(整数)> <ind>
  200. trigger: <ind>
  201. if player is not {aucsys::selr}: <ind>
  202. if {aucsys::cond} is not 1: <ind>
  203. send "&6‡&7==============================&6&lAuction&7==============================&6‡" <ind>
  204. send "&c今は誰もオークションをしていません" <ind>
  205. send "&6‡&7====================================================================&6‡" <ind>
  206. else: <ind>
  207. if arg is less than or equal to {aucsys::valu}: <ind>
  208. send "&6‡&7==============================&6&lAuction&7==============================&6‡" <ind>
  209. send "&c最高入札額より高く設定してください" <ind>
  210. send "&6‡&7====================================================================&6‡" <ind>
  211. else: <ind>
  212. if {%player%::mel} is less than arg: <ind>
  213. send "&6‡&7==============================&6&lAuction&7==============================&6‡" <ind>
  214. send "&c所持金が足りません" <ind>
  215. send "&6‡&7====================================================================&6‡" <ind>
  216. else: <ind>
  217. if {aucsys::dire} is set: <ind>
  218. if arg is more than or equal to {aucsys::dire}: <ind>
  219. broadcast "&6‡&7==============================&6&lAuction&7==============================&6‡" <ind>
  220. broadcast "&f%{aucsys::selr}%&6さんのオークションが終了しました" <ind>
  221. broadcast "&f&l%player%&6さんが&6&l%{aucsys::dire}%メル&6即決で落札しました" <ind>
  222. broadcast "&6‡&7====================================================================&6‡" <ind>
  223. set {aucsys::buyr} to player <ind>
  224. set {aucsys::stop} to 1 <ind>
  225. set {aucsys::valu} to {aucsys::dire}<ind>
  226. <ind>
  227. send "&6‡&7==============================&6&lAuction&7==============================&6‡" <ind>
  228. send "&6‡&6%{aucsys::valu}%メルを%{aucsys::selr}%に送りました"<ind>
  229. send "&6‡&6%{aucsys::valu}%メルを%{aucsys::buyr}%から受け取りました" to {aucsys::selr}<ind>
  230. send "&6‡&7====================================================================&6‡"<ind>
  231. send "&6‡&7====================================================================&6‡" to {aucsys::selr} <ind>
  232. aucend() <ind>
  233. stop <ind>
  234. else: <ind>
  235. set {aucsys::valu} to arg <ind>
  236. set {aucsys::buyr} to player <ind>
  237. broadcast "&6‡&7==============================&6&lAuction&7==============================&6‡" <ind>
  238. broadcast "&7[&6Auction&7] &6%player%さんが%arg%メルで入札" <ind>
  239. if {aucsys::time} is less than 10: <ind>
  240. broadcast "&7残り時間が10秒延長されます"<ind>
  241. add 10 to {aucsys::time} <ind>
  242. broadcast "&6‡&7====================================================================&6‡" <ind>
  243. else: <ind>
  244. set {aucsys::valu} to arg <ind>
  245. set {aucsys::buyr} to player <ind>
  246. broadcast "&6‡&7==============================&6&lAuction&7==============================&6‡" <ind>
  247. broadcast "&7[&6Auction&7] &6%player%さんが%arg%メルで入札" <ind>
  248. if {aucsys::time} is less than 10: <ind>
  249. broadcast "&7残り時間が10秒延長されます"<ind>
  250. add 10 to {aucsys::time} <ind>
  251. broadcast "&6‡&7====================================================================&6‡" <ind>
  252. else: <ind>
  253. send "&6‡&7==============================&6&lAuction&7==============================&6‡" <ind>
  254. send "&4&l!!!出品者は入札できません!!!" <ind>
  255. send "&6‡&7====================================================================&6‡" <ind>
  256. <ind>
  257. function aucend(): <ind>
  258. if {aucsys::buyr} is online:<ind>
  259. add {aucsys::valu} to {%{aucsys::selr}%::mel}<ind>
  260. loop 36 times: <ind>
  261. if slot (loop-number - 1) of {aucsys::buyr}'s inventory is air: <ind>
  262. give {aucsys::itembase} to {aucsys::buyr}<ind>
  263. remove {aucsys::valu} from {%{aucsys::buyr}%::mel}<ind>
  264. delete {aucsys::*} <ind>
  265. stop <ind>
  266. drop {aucsys::itembase} at location of {aucsys::buyr}<ind>
  267. send "&6‡&7==============================&6&lAuction&7==============================&6‡" to {aucsys::buyr}<ind>
  268. send "&6‡インベントリに空きが無かった為足元にアイテムをドロップしました" to {aucsys::buyr}<ind>
  269. send "&6‡&7====================================================================&6‡" to {aucsys::buyr}<ind>
  270. else:<ind>
  271. add {aucsys::valu} to {%{aucsys::selr}%::mel}<ind>
  272. set {%{aucsys::buyr}%::aucitem} to {aucsys::itembase}<ind>
  273. set {%{aucsys::buyr}%::aucmel} to {aucsys::valu}<ind>
  274. delete {aucsys::*} <ind>
  275. <ind>
  276. function aucdead(): <ind>
  277. loop 36 times: <ind>
  278. if slot (loop-number - 1) of {aucsys::selr}'s inventory is air: <ind>
  279. give {aucsys::itembase} to {aucsys::selr}<ind>
  280. delete {aucsys::*} <ind>
  281. stop <ind>
  282. drop {aucsys::itembase} at location of {aucsys::selr} <ind>
  283. send "&6‡&7==============================&6&lAuction&7==============================&6‡" to {aucsys::selr}<ind>
  284. send "&6‡インベントリに空きが無かった為足元にアイテムをドロップしました" to {aucsys::selr}<ind>
  285. send "&6‡&7====================================================================&6‡" to {aucsys::selr}<ind>
  286. delete {aucsys::*} <ind>
  287. <ind>
  288. command /aucd: <ind>
  289. aliases: /auctiondisplay<ind>
  290. trigger: <ind>
  291. if {aucsys::cond} is 1: <ind>
  292. open chest with 1 row named "&6Auction Display" to player <ind>
  293. wait 1 tick <ind>
  294. set {_q} to iron bars named "&b値札" <ind>
  295. if {aucsys::dire} is set: <ind>
  296. set line 1 of lore of {_q} to "&a現在&8: &6%{aucsys::valu}%メル" <ind>
  297. set line 2 of lore of {_q} to "&c即決&8: &6%{aucsys::dire}%メル" <ind>
  298. set line 3 of lore of {_q} to "&b最高入札者&8: &6%{aucsys::buyr}%" <ind>
  299. else: <ind>
  300. set line 1 of lore of {_q} to "&a現在&8: &6%{aucsys::valu}%メル" <ind>
  301. set line 2 of lore of {_q} to "&c即決&8: &6未設定" <ind>
  302. set line 3 of lore of {_q} to "&b最高入札者&8: &6%{aucsys::buyr}%" <ind>
  303. loop 9 times: <ind>
  304. set {_a} to loop-number - 1 <ind>
  305. set slot {_a} of player's current inventory to {_q} <ind>
  306. delete slot 4 of player's current inventory <ind>
  307. wait 1 tick <ind>
  308. set slot 4 of player's current inventory to {aucsys::itembase} <ind>
  309. else:<ind>
  310. send "&6‡&7==============================&6&lAuction&7==============================&6‡" <ind>
  311. send "&c今は誰もオークションをしていません" <ind>
  312. send "&6‡&7====================================================================&6‡" <ind>
  313. <ind>
  314. on inventory click: <ind>
  315. name of player's current inventory is "&6Auction Display" <ind>
  316. cancel event <ind>
  317. close player's inventory
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement