Facebook
From Mammoth Owl, 4 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 244
  1. #--------------------------------
  2.  
  3. #Fortune
  4.  
  5. #--------------------------------
  6.  
  7. command /fortuneadd:
  8.         trigger:
  9.                 if {fortune::%player%} < 30000:
  10.                         if {tokens::%player%} >= 5000:
  11.                                 remove 5000 from {tokens::%player%}
  12.                                 add 1 to {fortune::%player%}
  13.                                 send "&2&LEnchant &f» &7+1 Fortune"
  14.                         else:
  15.                                 send "&2&LEnchant &f» &7You Need 5k &7Tokens For Upgrade Fortune!"
  16.                 else:
  17.                         send "&2&LEnchant &f» &7Max Level"
  18.  
  19. command /fortuneadd10:
  20.         trigger:
  21.                 if {fortune::%player%} < 30000:
  22.                         if {tokens::%player%} >= 50000:
  23.                                 remove 50000 from {tokens::%player%}
  24.                                 add 10 to {fortune::%player%}
  25.                                 send "&2&LEnchant &f» &7+10 Fortune"
  26.                         else:
  27.                                 send "&2&LEnchant &f» &7You Need 50K &7Tokens For Upgrade Fortune 10 Times !"
  28.                 else:
  29.                         send "&2&LEnchant &f» &7Max Level"
  30.                        
  31. #--------------------------------
  32.  
  33. #Greed
  34.  
  35. #--------------------------------
  36.  
  37. command /greedadd:
  38.         trigger:
  39.                 if {greed::%player%} < 5000:
  40.                         if {tokens::%player%} >= 50000:
  41.                                 remove 50000 from {tokens::%player%}
  42.                                 add 1 to {greed::%player%}
  43.                                 add 0.003 to {greedmultis::%player%}
  44.                                 send "&2&LEnchant &f» &7+1 Greed"
  45.                         else:
  46.                                 send "&2&LEnchant &f» &7You Need 50K &7Tokens For Upgrade Greed!"
  47.                 else:
  48.                         send "&2&LEnchant &f» &7Max Level"
  49.                                
  50. command /greedadd10:
  51.         trigger:
  52.                 if {greed::%player%} < 5000:
  53.                         if {tokens::%player%} >= 500000:
  54.                                 remove 500000 from {tokens::%player%}
  55.                                 add 10 to {greed::%player%}
  56.                                 add 0.03 to {greedmultis::%player%}
  57.                                 send "&2&LEnchant &f» &7+10 Greed"
  58.                         else:
  59.                                 send "&2&LEnchant &f» &7You Need 500K &7Tokens For Upgrade Greed 10 Times !"
  60.                 else:
  61.                         send "&2&LEnchant &f» &7Max Level"
  62.                        
  63. #------------------
  64.  
  65. #Enchant Menu
  66.  
  67. #-------------------
  68.  
  69. command /upgrade:
  70.         trigger:
  71.                 open chest with 6 rows named "&3&LEnchants Menu" to player
  72.                 wait 3 ticks
  73.                 set {_slot} to -1
  74.                 loop 54 times:
  75.                         add 1 to {_slot}
  76.                         format gui slot {_slot} of player with black stained glass pane named "&3&LEnchants Menu" to do nothing
  77.                 format gui slot 13 of player with player's tool named "&3&LSays&f&lMC" to do nothing
  78.                 if {fortune::%player%} < 30000:
  79.                         format gui slot 28 of player with emerald named "&AFortune" with lore "" and "&7Give You More &bBlock &7Every Block Break" and "" and "&bCost »" and "" and "&3x1 &7» &b5K Tokens" and "&3x10 &7» &b50K Tokens" and "&3x100 &7» &b500K Tokens" and "" and "&bMax Level &7» &b30K" to do nothing
  80.                 else:
  81.                         format gui slot 28 of player with emerald named "&AFortune" with lore "" and "&4Maxed Enchant" to do nothing
  82.                 if {greed::%player%} < 5000:
  83.                         format gui slot 29 of player with paper named "&AGreed" with lore "" and "&7Give You &b+0.003x Multis &7Every Level" and "" and "&bCost »" and "" and "&3x1 &7» &b50K Tokens" and "&3x10 &7» &b500K Tokens" and "&3x100 &7» &b5M Tokens" and "" and "&bMax Level &7» &b5K" to do nothing
  84.                 else:
  85.                         format gui slot 29 of player with paper named "&AGreed" with lore "" and "&4Maxed Enchant" to do nothing
  86.                 if {lucky::%player%} < 300:
  87.                         format gui slot 30 of player with sponge named "&eLucky" with lore "" and "&7Got More Chance To Activate &bLucky &7Event While Mining !" and "" and "&bCost »" and "" and "&3x1 &7» &b50K Tokens" and "&3x10 &7» &b500K Tokens" and "" and "&bMax Level &7» &b300" to do nothing
  88.                 else:
  89.                         format gui slot 30 of player with sponge named "&eLucky" with lore "" and "&4Maxed Enchant" to do nothing
  90.                 if {tokengreed::%player%} < 3000:
  91.                         format gui slot 31 of player with magma cream  named "&6TokenGreed" with lore "" and "&7Give You More &bTokens &7Every &bLucky &7Event !" and "" and "&bCost »" and "" and "&3x1 &7» &b100K Tokens" and "&3x10 &7» &b1M Tokens" and "&3x100 &7» &b10M Tokens" and "" and "&bMax Level &7» &b3K" to do nothing
  92.                 else:
  93.                         format gui slot 31 of player with magma cream named "&6TokenGreed" with lore "" and "&4Maxed Enchant" to do nothing
  94.                 if {combo::%player%} < 100:
  95.                         format gui slot 32 of player with iron bar  named "&6Combo" with lore "" and "&7Chance Of Getting Double The &bTokens &7From &bLucky &7Event !" and "" and "&bCost »" and "" and "&3x1 &7» &b100K Tokens" and "&3x10 &7» &b1M Tokens" and "" and "&bMax Level &7» &b100" to do nothing
  96.                 else:
  97.                         format gui slot 32 of player with iron bar named "&6Combo" with lore "" and "&4Maxed Enchant" to do nothing
  98.                 if {keygreed::%player%} < 10:
  99.                         format gui slot 33 of player with tripwire hook  named "&bKeyGreed" with lore "" and "&7Give You More &bKeys &7Every Lucky Event" and "" and "&bCost »" and "" and "&3x1 &7» &b1M Tokens" and "&3x10 &7» &b10M Tokens" and "" and "&bMax Level &7» &b10" to do nothing
  100.                 else:
  101.                         format gui slot 33 of player with tripwire hook named "&bKeyGreed" with lore "" and "&4Maxed Enchant" to do nothing
  102.                 if {fly::%player%} < 1:
  103.                         format gui slot 34 of player with Feather named "&fFly" with lore "" and "&7Allow You To &fFly &7When You Holding Your Pickaxe" and "" and "&bCost »" and "" and "&3x1 &7» &b100K Tokens" and "" and "&bMax Level &7» &b1" to do nothing
  104.                 else:
  105.                         format gui slot 34 of player with Feather named "&fFly" with lore "" and "&4Maxed Enchant" to do nothing
  106.                 if {charity::%player%} < 500:
  107.                         format gui slot 37 of player with gold ingot named "&5Charity" with lore "" and "&7Chance Of Receive A Lot Of &5Tokens &7While Mining !" and "" and "&bCost »" and "" and "&3x1 &7» &b1M Tokens" and "&3x10 &7» &b10M Tokens" and "" and "&bMax Level &7» &b500" to do nothing
  108.                 else:
  109.                         format gui slot 37 of player with gold ingot named "&5Charity" with lore "" and "&4Maxed Enchant" to do nothing
  110.                 if {event::%player%} < 500:
  111.                         format gui slot 38 of player with golden nugget named "&5Event" with lore "" and "&7Chance Of Receive A Lot Of &5Keys &7And &5Tokens &7While Mining !" and "" and "&bCost »" and "&3x1 &7» &b1M Tokens" and "" and "&3x10 &7» &b10M Tokens" and "" and "&bMax Level &7» &b500" to do nothing
  112.                 else:
  113.                         format gui slot 38 of player with golden nugget named "&5Event" with lore "" and "&4Maxed Enchant" to do nothing
  114.                 if {Gems::%player%} < 100:
  115.                         format gui slot 39 of player with emerald named "&AGemsFinder" with lore "" and "&7Give You More Chance Of Getting &AGems &7WHile Mining !" and "" and "&bCost »" and "&3x1 &7» &b10M Tokens" and "" and "&3x10 &7» &b100M Tokens" and "" and "&bMax Level &7» &b100" to do nothing
  116.                 else:
  117.                         format gui slot 39 of player with emerald named "&aGemsFinder" with lore "" and "&4Maxed Enchant" to do nothing
  118.                 if {JackHammer::%player%} < 10000:
  119.                         format gui slot 40 of player with hopper named "&4JackHammer" with lore "" and "&7Chance of destroy a all layer by mining !" and "" and "&bCost »" and "&3x1 &7» &b100K Tokens" and "" and "&3x10 &7» &b1M Tokens" and "&3x100 &7» &b10M Tokens" and "" and "&bMax Level &7» &b10K" to do nothing
  120.                 else:
  121.                         format gui slot 40 of player with hopper named "&4JackHammer" with lore "" and "&4Maxed Enchant" to do nothing
  122.                 if {autosell::%player%} < 1:
  123.                         format gui slot 41 of player with chest named "&AAutosell" with lore "" and "&7Sell Automatly The Content of your backpack when its full !" and "" and "&bCost »" and "&3x1 &7» &b10M Tokens" and "" and "&bMax Level &7» &b1" to do nothing
  124.                 else:
  125.                         format gui slot 41 of player with chest named "&AAutosell" with lore "" and "&4Maxed Enchant" to do nothing
  126.                 if {jackpot::%player%} < 100:
  127.                         format gui slot 42 of player with beacon named "&CJackPot" with lore "" and "&7A Little Chance of getting a donator keys while mining !" and "" and "&bCost »" and "&3x1 &7» &b10M Tokens" and "" and "&3x10 &7» &b100M Tokens" and "" and "&bMax Level &7» &b100" to do nothing
  128.                 else:
  129.                         format gui slot 42 of player with beacon named "&CJackPot" with lore "" and "&4Maxed Enchant" to do nothing
  130.                 if {global::%player%} < 100:
  131.                         format gui slot 43 of player with nether star named "&2Global" with lore "" and "&7Chance of Activate a global booster" and "" and "&bCost »" and "&3x1 &7» &b10M Tokens" and "" and "&3x10 &7» &b100M Tokens" and "" and "&bMax Level &7» &b100" to do nothing
  132.                 else:
  133.                         format gui slot 43 of player with nether star named "&2Global" with lore "" and "&4Maxed Enchant" to do nothing
  134.                                
  135. on inventory click:
  136.         if inventory name of player's current inventory is "&3&LEnchants Menu":
  137.                 cancel event
  138.                 if clicked slot is 28:
  139.                         if clicked type is right mouse button:
  140.                                 make player execute command "fortuneadd10"
  141.                         if clicked type is left mouse button:
  142.                                 make player execute command "fortuneadd"
  143.                         if clicked type is middle mouse button:
  144.                                 make player execute command "fortuneadd100"
  145.                 if clicked slot is 29:
  146.                         if clicked type is right mouse button:
  147.                                 make player execute command "greedadd10"
  148.                         if clicked type is left mouse button:
  149.                                 make player execute command "greedadd"
  150.                         if clicked type is middle mouse button:
  151.                                 make player execute command "greedadd100"
  152.                 if clicked slot is 31:
  153.                         if clicked type is right mouse button:
  154.                                 make player execute command "tokengreedadd10"
  155.                         if clicked type is left mouse button:
  156.                                 make player execute command "tokengreedadd"
  157.                         if clicked type is middle mouse button:
  158.                                 make player execute command "tokengreedadd100"
  159.                 if clicked slot is 30:
  160.                         if clicked type is right mouse button:
  161.                                 make player execute command "luckyadd10"
  162.                         if clicked type is left mouse button:
  163.                                 make player execute command "luckyadd"
  164.                 if clicked slot is 32:
  165.                         if clicked type is right mouse button:
  166.                                 make player execute command "comboadd10"
  167.                         if clicked type is left mouse button:
  168.                                 make player execute command "comboadd"
  169.                 if clicked slot is 33:
  170.                         if clicked type is right mouse button:
  171.                                 make player execute command "keygreedadd10"
  172.                         if clicked type is left mouse button:
  173.                                 make player execute command "keygreedadd"
  174.                 if clicked slot is 34:
  175.                         if clicked type is left mouse button:
  176.                                 make player execute command "flyadd"
  177.                 if clicked slot is 37:
  178.                         if clicked type is right mouse button:
  179.                                 make player execute command "charityadd10"
  180.                         if clicked type is left mouse button:
  181.                                 make player execute command "charityadd"
  182.                 if clicked slot is 38:
  183.                         if clicked type is right mouse button:
  184.                                 make player execute command "eventadd10"
  185.                         if clicked type is left mouse button:
  186.                                 make player execute command "eventadd"
  187.                 if clicked slot is 39:
  188.                         if clicked type is right mouse button:
  189.                                 make player execute command "GemsFinderAdd10"
  190.                         if clicked type is left mouse button:
  191.                                 make player execute command "GemsFinderAdd"
  192.                 if clicked slot is 40:
  193.                         if clicked type is right mouse button:
  194.                                 make player execute command "jackhammeradd10"
  195.                         if clicked type is left mouse button:
  196.                                 make player execute command "jackhammeradd"
  197.                         if clicked type is middle mouse button:
  198.                                 make player execute command "jackhammeradd100"
  199.                 if clicked slot is 41:
  200.                         if clicked type is left mouse button:
  201.                                 make player execute command "autoselladd"
  202.                 if clicked slot is 42:
  203.                         if clicked type is right mouse button:
  204.                                 make player execute command "jackpotadd10"
  205.                         if clicked type is left mouse button:
  206.                                 make player execute command "jackpotadd"
  207.                 if clicked slot is 43:
  208.                         if clicked type is right mouse button:
  209.                                 make player execute command "globaladd10"
  210.                         if clicked type is left mouse button:
  211.                                 make player execute command "globaladd"
  212.                                
  213. #---------
  214.  
  215. #EXTRA
  216.  
  217. #---------
  218.  
  219. on break:
  220.         if player's inventory contains chest:
  221.                 if name of chest is "&3&LBackPack":
  222.                         set lore of chest to "||&3Bp Slots &7- &3%{bpslots::%player%}% ||&3Bp Capacity &7- &3%{bpcapicity::%player%}% Items ||&3Max Capacity &7- &3%{maxbpcapicity::%player%}%"
  223.                        
  224. #---------------
  225.  
  226. #Reset
  227.  
  228. #---------------
  229.  
  230. command /reset <player> [<text>]:
  231.         executable by: console and player
  232.         trigger:
  233.                 if player is op:
  234.                         set {tokens::%arg 1%} to 0            
  235.                         set {ranks::%arg 1%} to 0
  236.                         set {prestiges::%arg 1%} to 0
  237.                         set {commonkeys::%arg 1%} to 0
  238.                         set {rarekeys::%arg 1%} to 0  
  239.                         set {LegendaryKeys::%arg 1%} to 0
  240.                         set {multis::%arg 1%} to 1
  241.                         set {greedmultis::%arg 1%} to 1
  242.                         set {Fortune::%arg 1%} to 1
  243.                         set {Greed::%arg 1%} to 0
  244.                         set {Jackhammer::%arg 1%} to 0
  245.                         set {Lucky::%arg 1%} to 0
  246.                         set {TokenGreed::%arg 1%} to 0
  247.                         set {KeyGreed::%arg 1%} to 0
  248.                         set {Gems::%arg 1%} to 0
  249.                         set {Combo::%arg 1%} to 0
  250.                         set {Jackpot::%arg 1%} to 0
  251.                         set {charity::%arg 1%} to 0
  252.                         set {Global::%arg 1%} to 0
  253.                         set {AutoSell::%arg 1%} to 0
  254.                         set {Event::%arg 1%} to 0
  255.                         set {bpslots::%arg 1%} to 1
  256.                         set {bpcapicity::%arg 1%} to 0
  257.                         set {maxbpcapicity::%arg 1%} to 64
  258.                         set {fly::%arg 1%} to 0
  259.                         set {rankscost::%arg 1%} to 100000
  260.                         if arg 2 is "-s":
  261.                                 broadcast ""
  262.                         if arg 2 is not set:
  263.                                 broadcast "&7----- &3&LRe&b&lSet &7-----"
  264.                                 broadcast ""
  265.                                 broadcast "&b%player% &3Just Reset &b%arg 1%!"
  266.                                 broadcast ""
  267.                                 broadcast "&bReason &7- &bThere Is No Reason"
  268.                                 broadcast ""
  269.                                 broadcast "&7----- &3&LRe&b&lSet &7-----"
  270.                         else:
  271.                                 broadcast "&7----- &3&LRe&b&lSet &7-----"
  272.                                 broadcast ""
  273.                                 broadcast "&b%player% &3Just Reset &b%arg 1%!"
  274.                                 broadcast ""
  275.                                 broadcast "&bReason &7- &b%arg 2%"
  276.                                 broadcast ""
  277.                                 broadcast "&7----- &3&LRe&b&lSet &7-----"
  278.                 else:
  279.                         send "&3&LRe&b&lSet &7» &3You Don't Have Permission , Sorry"  
  280.  
  281. command /offreset <offlineplayer> [<text>]:
  282.         trigger:
  283.                 if player is op:
  284.                         set {tokens::%arg 1%} to 0            
  285.                         set {ranks::%arg 1%} to 0
  286.                         set {prestiges::%arg 1%} to 0
  287.                         set {commonkeys::%arg 1%} to 0
  288.                         set {rarekeys::%arg 1%} to 0  
  289.                         set {LegendaryKeys::%arg 1%} to 0
  290.                         set {multis::%arg 1%} to 1
  291.                         set {greedmultis::%arg 1%} to 1
  292.                         set {Fortune::%arg 1%} to 1
  293.                         set {Greed::%arg 1%} to 0
  294.                         set {Jackhammer::%arg 1%} to 0
  295.                         set {Lucky::%arg 1%} to 0
  296.                         set {TokenGreed::%arg 1%} to 0
  297.                         set {KeyGreed::%arg 1%} to 0
  298.                         set {Gems::%arg 1%} to 0
  299.                         set {Combo::%arg 1%} to 0
  300.                         set {Jackpot::%arg 1%} to 0
  301.                         set {charity::%arg 1%} to 0
  302.                         set {Global::%arg 1%} to 0
  303.                         set {AutoSell::%arg 1%} to 0
  304.                         set {Event::%arg 1%} to 0
  305.                         set {bpslots::%arg 1%} to 1
  306.                         set {bpcapicity::%arg 1%} to 0
  307.                         set {maxbpcapicity::%arg 1%} to 64
  308.                         set {fly::%arg 1%} to 0
  309.                         set {rankscost::%arg 1%} to 100000
  310.                         if arg 2 is "-s":
  311.                                 broadcast ""
  312.                         if arg 2 is not set:
  313.                                 broadcast "&7----- &3&LRe&b&lSet &7-----"
  314.                                 broadcast ""
  315.                                 broadcast "&b%player% &3Just Reset &b%arg 1%!"
  316.                                 broadcast ""
  317.                                 broadcast "&bReason &7- &bThere Is No Reason"
  318.                                 broadcast ""
  319.                                 broadcast "&7----- &3&LRe&b&lSet &7-----"
  320.                         else:
  321.                                 broadcast "&7----- &3&LRe&b&lSet &7-----"
  322.                                 broadcast ""
  323.                                 broadcast "&b%player% &3Just Reset &b%arg 1%!"
  324.                                 broadcast ""
  325.                                 broadcast "&bReason &7- &b%arg 2%"
  326.                                 broadcast ""
  327.                                 broadcast "&7----- &3&LRe&b&lSet &7-----"
  328.                 else:
  329.                         send "&3&LRe&b&lSet &7» &3You Don't Have Permission , Sorry"  
  330.  
  331. every 10 ticks in "SaysMCS":
  332.         loop all players:
  333.                 if {greedmultis::%loop-player%} is not set:
  334.                         set {greedmultis::%loop-player%} to 1
  335.                 if {GemsChance::%loop-player%} is not set:
  336.                         set {GemsChance::%loop-player%} to 0.0001
  337.                 if {teboost::%loop-player%} is not set:
  338.                         set {teboost::%loop-player%} to 1
  339.  
  340. #---------------
  341.  
  342. #Fly
  343.  
  344. #---------------
  345.  
  346. command /flyadd:
  347.         trigger:
  348.                 if {fly::%player%} < 1:
  349.                         if {tokens::%player%} >= 100000:
  350.                                 remove 100000 from {tokens::%player%}
  351.                                 add 1 to {fly::%player%}
  352.                                 send "&2&LEnchant &f» &7+1 Fly"
  353.                         else:
  354.                                 send "&2&LEnchant &f» &7You Need 100K Tokens For Upgrade Fly"
  355.                 else:
  356.                         send "&2&LEnchant &f» &7Maxed Enchant"
  357.                        
  358. on jump:
  359.         if player's tool is a pickaxe:
  360.                 if {fly::%player%} >= 1:
  361.                         set player's flight mode to true
  362.                 else:
  363.                         set player's flight mode to false
  364.                        
  365. command /refresh:
  366.         trigger:
  367.                 if player's tool is pickaxe:
  368.                         set lore of player's tool to "||&7Right click on your &2pickaxe &7for &2enchant&7 GUI||||&2Fortune &f» &7%{Fortune::%player%}%||&2Greed &f» &7%{Greed::%player%}%||&2Explosive &f» &7%{Explosive::%player%}%||&2JackHammer &f» &7%{JackHammer::%player%}%||&2Lucky &f» &7%{Lucky::%player%}%||&2TokenGreed &f» &7%{TokenGreed::%player%}%||&2GemFinder &f» &7%{Gems::%player%}%||&2KeyGreed &f» &7%{KeyGreed::%player%}%||&2Combo &f» &7%{Combo::%player%}%||&2Experienced &f» &7%{Experienced::%player%}%||&2Charity &f» &7%{Charity::%player%}%||&2Global &f» &7%{Global::%player%}%||&2AutoSell &f» &7%{AutoSell::%player%}%||&2Event &f» &7%{Event::%player%}%"
  369.                        
  370. #---------------
  371.  
  372. #Gems
  373.  
  374. #---------------
  375.  
  376. every 1 second in "SaysMCS":
  377.         loop all players:
  378.                 if {GemsChance::%loop-player%} is not set:
  379.                         set {GemsChance::%loop-player%} to 0.0001
  380.                 if {teboost::%loop-player%} is not set:
  381.                         set {teboost::%loop-player%} to 1
  382.  
  383. On break:
  384.         chance of {GemsChance::%player%}:
  385.                 chance of 100%:
  386.                         set {_teboost} to a random integer between 1 and 3
  387.                         give 1 emerald named "&A&LGems" with lore "&ATokens Boost &f» &a%{_teboost}%" to player
  388.                         send "&A&LGems &f» &AYou Find A %{_teboost}% &aTokens Boost Gems !"
  389.                        
  390. command /fakegems <text> <number>:
  391.         trigger:
  392.                 if arg 1 is "tokens":
  393.                         give 1 emerald named "&A&LGems" with lore "&ATokens Boost &f» &a%arg 2%" to player
  394.                         send "&A&LGems &f» &AYou Received A &aTokens Gems Of %arg 2% Pourcent Boost !"
  395.                        
  396. on rightclick with emerald:
  397.         if name of player's tool is "&a&lGems":
  398.                 if lore of player's tool contains "&ATokens Boost":
  399.                         if lore of player's tool contains "&a1":
  400.                                 add 0.01 to {teboost::%player%}
  401.                                 send "&A+1 Pourcent &ATokens Boost"
  402.                         if lore of player's tool contains "&a2":
  403.                                 add 0.02 to {teboost::%player%}
  404.                                 send "&A+2 Pourcent &ATokens Boost"
  405.                         if lore of player's tool contains "&a3":
  406.                                 add 0.03 to {teboost::%player%}
  407.                                 send "&A+3 Pourcent &ATokens Boost"
  408.                 remove 1 emerald from player's tool
  409.                                
  410. command /GemsFinderAdd:
  411.         trigger:
  412.                 if {Gems::%player%} < 100:
  413.                         if {tokens::%player%} >= 10000000:
  414.                                 remove 10000000 from {tokens::%player%}
  415.                                 add 1 to {Gems::%player%}
  416.                                 add 0.0001 to {GemsChance::%player%}
  417.                                 send "&2&LEnchanr &f» &7+1 GemsFinder"
  418.                         else:
  419.                                 send "&2&LEnchant &f» &7You Need 7.5M Tokens For Upgrade GemsFinder !"
  420.                 else:
  421.                         send "&2&LEnchant &f» &7Maxed Enchant !"
  422.                        
  423. command /GemsFinderAdd10:
  424.         trigger:
  425.                 if {Gems::%player%} < 100:
  426.                         if {tokens::%player%} >= 100000000:
  427.                                 remove 100000000 from {tokens::%player%}
  428.                                 add 10 to {Gems::%player%}
  429.                                 add 0.001 to {GemsChance::%player%}
  430.                                 send "&2&LEnchanr &f» &7+10 GemsFinder"
  431.                         else:
  432.                                 send "&2&LEnchant &f» &7You Need 75M Tokens For Upgrade GemsFinder 10 Times !"
  433.                 else:
  434.                         send "&2&LEnchant &f» &7Maxed Enchant !"
  435.                        
  436. command /boostcheck:
  437.         trigger:
  438.                 send "&ATokens Boost &f» &a%{teboost::%player%}%"
  439.        
  440. command /GemsReset [<player>]:
  441.         trigger:
  442.                 if arg 1 is not set:
  443.                         set {teboost::%player%} to 1
  444.                         set {GemsChance::%player%} to 0.0001
  445.                         set {Gems::%player%} to 0
  446.                 else:
  447.                         set {teboost::%arg 1%} to 1
  448.                         set {GemsChance::%arg 1%} to 0.0001
  449.                         set {Gems::%arg 1%} to 0
  450.                        
  451. command /tokensreset:
  452.         trigger:
  453.                 set {tokens::%Player%} to 0
  454.                
  455. command /bp:
  456.         trigger:
  457.                 open chest with 3 rows named "&3&LBack&b&lPack" to player
  458.                 wait 3 ticks
  459.                 set {_bpprice} to 1000
  460.                 set {_bpprice2} to 10000
  461.                 set {_bpprice3} to 100000
  462.                 set {_bpprice4} to 1000000
  463.                 format slot 4 of player with ender chest named "&7Your &3&LBack&b&lPack" with lore "" and "&7Info &7» &71 Slot = 64 Items" and "" and "&3&LSlots &7» &B&L%{bpslots::%player%}%" and "&3&LItems &7» &B&L%{bpcapicity::%player%}%" to be unstealable
  464.                 format slot 10 of player with chest named "&3+1 Slot" with lore "" and "&3Cost &7» &b%{_bpprice}% Tokens" to run [make player execute command "bpup1"]
  465.                 format slot 12 of player with chest named "&3+10 Slot" with lore "" and "&3Cost &7» &b%{_bpprice2}% Tokens" to run [make player execute command "bpup2"]
  466.                 format slot 14 of player with chest named "&3+100 Slot" with lore "" and "&3Cost &7» &b%{_bpprice3}% Tokens" to run [make player execute command "bpup3"]
  467.                 format slot 16 of player with chest named "&3+1000 Slot" with lore "" and "&3Cost &7» &b%{_bpprice4}% Tokens" to run [make player execute command "bpup4"]
  468.                  
  469. command /bpup1:
  470.         trigger:
  471.                 if {tokens::%player%} >= 1000:
  472.                         remove 1000 from {tokens::%player%}
  473.                         add 1 to {bpslots::%player%}
  474.                         add 64 to {maxbpcapicity::%player%}
  475.                 else:
  476.                         send "&3BackPack &7» &bYou Need &31K &bTokens &bFor Upgrade Your BackPack By &31 &BSlots !"          
  477.        
  478. command /bpup2:
  479.         trigger:
  480.                 if {tokens::%player%} >= 10000:
  481.                         remove 10000 from {tokens::%player%}
  482.                         add 10 to {bpslots::%player%}
  483.                         add 640 to {maxbpcapicity::%player%}
  484.                 else:
  485.                         send "&3BackPack &7» &bYou Need &310K &bTokens &bFor Upgrade Your BackPack By &310 &BSlots !"        
  486.                        
  487. command /bpup3:
  488.         trigger:
  489.                 if {tokens::%player%} >= 100000:
  490.                         remove 100000 from {tokens::%player%}
  491.                         add 100 to {bpslots::%player%}
  492.                         add 6400 to {maxbpcapicity::%player%}
  493.                 else:
  494.                         send "&3BackPack &7» &bYou Need &3100K &bTokens &bFor Upgrade Your BackPack By &3100 &BSlots !"              
  495.                        
  496. on rightclick with chest:
  497.         make player execute command "bp"
  498.                        
  499.                        
  500. on break:
  501.         if player's inventory contains chest:
  502.                 if name of chest is "&3&LBackPack":
  503.                         set lore of chest to "||&3Bp Slots &7- &3%{bpslots::%player%}% ||&3Bp Capacity &7- &3%{bpcapicity::%player%}% Items ||&3Max Capacity &7- &3%{maxbpcapicity::%player%}%"                
  504.                        
  505.                        
  506. command /bpup4:
  507.         trigger:
  508.                 if {tokens::%player%} >= 1000000:
  509.                         remove 1000000 from {tokens::%player%}
  510.                         add 1000 to {bpslots::%player%}
  511.                         add 64000 to {maxbpcapicity::%player%}
  512.                 else:
  513.                         send "&3BackPack &7» &bYou Need &31M &bTokens &bFor Upgrade Your BackPack By &31000 &BSlots !"                        
  514.                        
  515.                        
  516. command /autosell:
  517.         aliases: as
  518.         permission: essentials.autosell
  519.         trigger:
  520.                 if {AutoSell::%player%} is not set:
  521.                         set {AutoSell::%player%} to 1
  522.                         send "&aAutoSell &f» &7Activate"
  523.                         stop
  524.                 if {AutoSell::%player%} = 0:
  525.                         set {AutoSell::%player%} to 1
  526.                         send "&aAutoSell &f» &7Activate"
  527.                         stop
  528.                 if {AutoSell::%player%} = 1:
  529.                         set {AutoSell::%player%} to 0
  530.                         send "&aAutoSell &f» &7Disable"
  531.                         stop
  532.                        
  533.                        
  534.                        
  535. on break:
  536.         cancel event
  537.         delete event-block    
  538.         if {AutoSell::%player%} = 1:
  539.                 set {_tokens} to 1 * {fortune::%player%} * {greedmultis::%player%} * {teboost::%player%} * {multis::%player%}
  540.                 add {_tokens} to {Tokens::%player%}
  541.                 stop
  542.         if {AutoSellEnchant::%player%} = 1:
  543.                 if {bpcapicity::%player%} < {maxbpcapicity::%player%}:        
  544.                         add {Fortune::%player%} to {bpcapicity::%player%}
  545.                         stop
  546.        
  547.        
  548.                 else:
  549.                         cancel event
  550.                         delete event-block
  551.                         set {_tokens} to 1 * {bpcapicity::%player%} * {greedmultis::%player%} * {multis::%player%}
  552.                         add {_tokens} to {tokens::%player%}
  553.                         set {_multis} to {multis::%player%}
  554.                         set {bpcapicity::%player%} to 0
  555.                         stop
  556.                        
  557.         else:
  558.                 cancel event
  559.                 delete event-block
  560.                 if {bpcapicity::%Player%} < {maxbpcapicity::%player%}:
  561.                         add {fortune::%Player%} to {bpcapicity::%player%}
  562.                 else:
  563.                         send "&7[&6SellAll&7] &7BackPack full , please &eSell &7The Content By Using &e/sell"
  564.                         cancel event
  565.                
  566.                
  567.                
  568. command /autoselladd:
  569.         trigger:
  570.                 if {AutoSellEnchant::%player%} = 1:
  571.                         if {Tokens::%player%} >= 10000000:
  572.                                 set {AutoSellEnchant::%player%} to 1
  573.                                 send "&2&lEnchant &f» &7+1 AutoSell!"
  574.                                 stop
  575.                                
  576.                         else:
  577.                                 send "&2&lEnchant &f» &7You don't have enough tokens!"
  578.                 else:
  579.                         send "&2&lEnchant &f» &7MAX LEVEL"
  580.                        
  581. command /asench <offlineplayer>:
  582.         trigger:
  583.                 send "&A%arg 1% got As Ench %{AutoSellEnchant::%player%}%" to player
  584.                
  585.                
  586. command /sell:
  587.         trigger:
  588.                 if {bpcapicity::%player%} >= 1:
  589.                         set {_tokens} to 1 * {bpcapicity::%player%} * {greedmultis::%player%} * {multis::%player%}
  590.                         add {_tokens} to {tokens::%player%}
  591.                         set {_multis} to {multis::%player%}
  592.                         send "&ASell &7» &7You Gain &a%{_tokens}% &7Tokens By Selling &a%{bpcapicity::%player%}% &7Items &7(x%{_multis}%&7)"
  593.                         set {bpcapicity::%player%} to 0
  594.                 else:
  595.                         send "&ASell &7» &7You Need Altleast &a1 &7Items In Your &aBackPack &7For Sell The Content !"
  596.  
  597. command /keyall <text> <number>:
  598.         trigger:
  599.                 if player is op:
  600.                         if player has permission "*":
  601.                                 if arg 1 is "common":
  602.                                         loop all players:
  603.                                                 add arg-2 to {commonkeys::%loop-player%}
  604.                                 if arg 1 is "rare":
  605.                                         loop all players:
  606.                                                 add arg-2 to {rarekeys::%loop-player%}
  607.                                 if arg 1 is "legendary":
  608.                                         loop all players:
  609.                                                 add arg-2 to {legendarykeys::%loop-player%}
  610.                                 if arg 1 is "prestige":
  611.                                         give tripwire hook named "&3Prestige &bKeys" to all players
  612.                                 broadcast "&A&LKeyAll &7» &A%player% Give To Everyone %arg 2% &a&l%arg 1%!"
  613.                                        
  614. on break:
  615.         if {blocksr::%Player%} >= 100:
  616.                 remove 100 from {blockr::%player%}
  617.                 add 25 to {commonkeys::%Player%}
  618.                 add 5000 to {tokens::%player%}
  619.                
  620. on break:
  621.         add 1 to {blockr::%player%}
  622.                        
  623. command /teadd <player> <number>:
  624.         trigger:
  625.                 if player is op:
  626.                         if player has permission "*":
  627.                                 add arg 2 to {tokens::%arg 1%}
  628.        
  629.         on break:
  630.         if {blocksr::%Player%} >= 100:
  631.                 remove 100 from {blockr::%player%}
  632.                 add 25 to {commonkeys::%Player%}
  633.                 add 5000 to {tokens::%player%}
  634.                
  635. on break:
  636.         add 1 to {blockr::%player%}
  637.        
  638. command /cbc [<arg 1>]:
  639.     permission: bc.use #or custom perm node
  640.     aliases: /broadcast
  641.     trigger:
  642.         if arg-1 is not set:
  643.             send "&cCorrect usage: /bc"
  644.             stop
  645.         if arg-1 is set:
  646.             broadcast "#YOUR BROADCAST"
  647.             stop
  648.                        
  649. command /teadd <player> <number>:
  650.         trigger:
  651.                 if player is op:
  652.                         if player has permission "*":
  653.                                 add arg 2 to {tokens::%arg 1%}
  654.                                
  655. #----------
  656.  
  657. #Charity
  658.  
  659. #-----------
  660.  
  661.  
  662.                        
  663. every 5 minute:
  664.         loop all players:
  665.                 send "&4&lSALES !! 50% REDUCTION http://saysmc.craftingstore.net/" to loop-player
  666.                 send "&4&lSALES !! 50% REDUCTION http://saysmc.craftingstore.net/" to loop-player
  667.  
  668.                                
  669. command /fakecharity:
  670.         trigger:
  671.                 if player has permission "fakecharity":
  672.                         set {_player} to player
  673.                         set {_char} to a random integer between 1000000 and 10000000
  674.                         set {_char} to round({_char} * (1 + {Boost::%player%}))
  675.                         set {_charall} to {_char} / 100  
  676.                         set {_charall} to round({_charall})
  677.                         add {_char} to {Tokens::%player%}
  678.                         remove {_charall} from {Tokens::%player%}
  679.                         loop all players:
  680.                                 add {_charall} to {Tokens::%loop-player%}
  681.                                 loop all players:
  682.                                         if loop-player is {_player}:
  683.                                                 send "&3&lCHARITY &8» &bYou have received &3%{_char}% &3Tokens &bfrom your &3Charity &b!" to loop-player
  684.                                         else:
  685.                                                 send "&3&lCHARITY &8» &bYou have received &3%{_charall}% &3Tokens &bfrom &3%{_player}%&3's Charity &b!" to loop-player
  686.                
  687.                                                                
  688.                        
  689. command /charityadd:
  690.         trigger:
  691.                 if {Tokens::%player%} >= 1000000:
  692.                         if {Charity::%player%} = 0:
  693.                                 set {Charity::%player%} to 1
  694.                                 set {CharityChance::%player%} to 0.00001
  695.                                 send "&2&lEnchant &f» &7+1 Charity"
  696.                                 remove 1000000 from {Tokens::%player%}
  697.                                 set {CharityCost::%player%} to 1000000
  698.                                 stop
  699.                 else:
  700.                         send "&2&lEnchant &f» &7You not have enough tokens!"
  701.                 if {Tokens::%player%} >= {CharityCost::%player%}:
  702.                         if {Charity::%player%} < 500:
  703.                                 add 1 to {Charity::%player%}
  704.                                 send "&2&lEnchant &f» &7+1 Charity"
  705.                                 remove {CharityCost::%player%} from {Tokens::%player%}
  706.                                 stop
  707.                         else:
  708.                                 send "&2alEnchant &f» &7Max Level"
  709.                 else:
  710.                         send "&2&lEnchant &f» &7You not have enough tokens!"
  711.                        
  712. command /charityadd10:
  713.         trigger:
  714.                 loop 10 times:
  715.                         make player execute command "charityadd"
  716.        
  717.                        
  718.  
  719.  
  720.  
  721. on break:
  722.         chance of {Charitychance::%player%} * {charity::%player%}:
  723.                 set {_player} to player
  724.                 if {Charity::%player%} is greater than 1:
  725.                         set {_char} to a random integer between 1000000 and 10000000
  726.                         set {_char} to round({_char} * (1 + {Boost::%player%}))
  727.                         set {_charall} to {_char} / 100  
  728.                         set {_charall} to round({_charall})
  729.                         add {_char} to {Tokens::%player%}
  730.                         remove {_charall} from {Tokens::%player%}
  731.                         loop all players:
  732.                                 add {_charall} to {Tokens::%loop-player%}
  733.                                 loop all players:
  734.                                         if loop-player is {_player}:
  735.                                                 send "&3&lCHARITY &8» &bYou have received &3%{_char}% &3Tokens &bfrom your &3Charity &b!" to loop-player
  736.                                         else:
  737.                                                 send "&3&lCHARITY &8» &bYou have received &3%{_charall}% &3Tokens &bfrom &3%{_player}%&3's Charity &b!" to loop-player
  738.                        
  739. #--------------
  740.  
  741. #DONORCRATES
  742.  
  743. #----------------
  744.  
  745. on rightclick on enchanting table:
  746.         if name of player's tool is "&2&lDonator":
  747.                 chance of 65%:
  748.                         set {TokenSee::%player%} to a random integer between 10000000 and 50000000
  749.                         add {TokenSee::%player%} to {Tokens::%player%}
  750.                         set {TokenSee::%player%} to format({TokenSee::%player%})              
  751.                         broadcast "&2&lDonator Crates &8&l» &a&l%player% has opened Donator Crates and gain %{TokenSee::%player%}% Tokens!"
  752.                         remove 1 tripwire hook from player's tool                      
  753.                         set {TokenSee::%player%} to 0
  754.                         cancel event
  755.                         stop
  756.                 chance of 30%:
  757.                         chance of 50%:
  758.                                 give tripwire hook named "&2&lDonator Keys" to player  
  759.                                 broadcast "&2&lDonator Crates &8&l» &a&l%player% has opened Donator Crates and gain 1 Donator Keys!"
  760.                                 remove 1 tripwire hook from player's tool                              
  761.                                 cancel event          
  762.                                 stop
  763.                         else:
  764.                                 set {KeysSee::%player%} to a random integer between 10000 and 250000
  765.                                 add {KeysSee::%player%} to {LegendaryKeys::%player%}
  766.                                 set {KeysSee::%player%} to format({KeysSee::%player%})
  767.                                 broadcast "&2&lDonator Crates &8&l» &a&l%player% has opened Donator Crates and gain %{KeysSee::%player%}% Legendary Keys!"
  768.                                 remove 1 tripwire hook from player's tool
  769.                                 cancel event                          
  770.                                 stop
  771.                 chance of 5%:
  772.                         chance of 80%:
  773.                                 broadcast "&2&lDonator Crates &8&l» &a&l%player% has opened Donator Crates and gain &8&lCoal Ranks!!"
  774.                                 remove 1 tripwire hook from player's tool              
  775.                         chance of 10%:
  776.                                 broadcast "&2&lDonator Crates &8&l» &a&l%player% has opened Donator Crates and gain &f&lIron Ranks!!"
  777.                                 remove 1 tripwire hook from player's tool                              
  778.                         chance of 7.5%:
  779.                                 broadcast "&2&lDonator Crates &8&l» &a&l%player% has opened Donator Crates and gain &e&lGold Ranks!!"
  780.                                 remove 1 tripwire hook from player's tool                              
  781.                         chance of 2.5%:
  782.                                 broadcast "&2&lDonator Crates &8&l» &a&l%player% has opened Donator Crates and gain &b&lDiamond Ranks!!"
  783.                                 remove 1 tripwire hook from player's tool
  784.                                
  785.                        
  786.                
  787. on leftclick on enchanting table:
  788.         open chest with 3 rows named "&2&lDonator View!" to player
  789.         wait 2 tick
  790.         format slot 0 of player with black stained glass pane named "" to be unstealable      
  791.         format slot 1 of player with black stained glass pane named "" to be unstealable
  792.         format slot 2 of player with black stained glass pane named "" to be unstealable
  793.         format slot 3 of player with black stained glass pane named "" to be unstealable
  794.         format slot 4 of player with diamond named "&a&lReward :" to be unstealable    
  795.         format slot 5 of player with black stained glass pane named "" to be unstealable      
  796.         format slot 6 of player with black stained glass pane named "" to be unstealable      
  797.         format slot 7 of player with black stained glass pane named "" to be unstealable      
  798.         format slot 8 of player with black stained glass pane named "" to be unstealable      
  799.         format slot 9 of player with black stained glass pane named "" to be unstealable      
  800.         format slot 10 of player with magma cream named "&6Tokens!" to be unstealable  
  801.         format slot 11 of player with tripwire hook named "&bKeys!" to be unstealable  
  802.         format slot 12 of player with coal block named "&8Coal Ranks!" to be unstealable      
  803.         format slot 13 of player with iron block named "&fIron Ranks!" to be unstealable      
  804.         format slot 14 of player with gold block named "&6Gold Ranks!" to be unstealable
  805.         format slot 15 of player with diamond block named "&bDiamond Ranks!" to be unstealable
  806.         format slot 16 of player with black stained glass pane named "" to be unstealable      
  807.         format slot 17 of player with black stained glass pane named "" to be unstealable      
  808.         format slot 18 of player with black stained glass pane named "" to be unstealable      
  809.         format slot 19 of player with black stained glass pane named "" to be unstealable      
  810.         format slot 20 of player with black stained glass pane named "" to be unstealable      
  811.         format slot 21 of player with black stained glass pane named "" to be unstealable      
  812.         format slot 22 of player with black stained glass pane named "" to be unstealable      
  813.         format slot 23 of player with black stained glass pane named "" to be unstealable      
  814.         format slot 24 of player with black stained glass pane named "" to be unstealable      
  815.         format slot 25 of player with black stained glass pane named "" to be unstealable      
  816.         format slot 26 of player with black stained glass pane named "" to be unstealable      
  817.        
  818. #-----------------
  819.  
  820. #Event
  821.  
  822. #--------------
  823.  
  824. on break:
  825.         chance of {eventchance::%player%} * {event::%player%}:
  826.                 loop all players:
  827.                         if loop-player is player:
  828.                                 chance of 50%:
  829.                                         chance of 10%:
  830.                                                 set {EventKeysReceived::%loop-player%} to random integer between 10 and 1000    * 7                    
  831.                                                 send "&aEvent &f» &7%player% &7Start a event, you received &a%{EventKeysReceived::%loop-player%}% &7Legendary Keys!" to loop-player
  832.                                                 add {EventKeysReceived::%loop-player%} to {LegendaryKeys::%loop-player%}
  833.                                                 stop
  834.                                         chance of 25%:
  835.                                                 set {EventKeysReceived::%loop-player%} to random integer between 10 and 1000    * 7            
  836.                                                 send "&aEvent &f» &7%player% &7Start a event, you received &a%{EventKeysReceived::%loop-player%}% &7Rare Keys!" to loop-player
  837.                                                 add {EventKeysReceived::%loop-player%} to {Rarekeys::%loop-player%}
  838.                                                 stop          
  839.                                         chance of 65%:
  840.                                                 set {EventKeysReceived::%loop-player%} to random integer between 10 and 1000 * 7
  841.                                                 send "&aEvent &f» &7%player% &7Start a event, you received &a%{EventKeysReceived::%loop-player%}% &7Common Keys!" to loop-player
  842.                                                 add {EventKeysReceived::%loop-player%} to {CommonKeys::%loop-player%}  
  843.                                                 stop  
  844.                                 chance of 50%:
  845.                                         set {EventTokensReceived::%loop-player%} to random integer between 1000 and 100000 * 7        
  846.                                         send "&aEvent &f» &7%player% &7Start a event, you received &a%{EventTokensReceived::%loop-player%}% &7Tokens!" to loop-player                        
  847.                                         add {EventTokensReceived::%loop-player%} to {Tokens::%loop-player%}
  848.                                         stop  
  849.                                        
  850. command /fakeevent:
  851.         trigger:
  852.                 loop all players:
  853.                         chance of 50%:
  854.                                 chance of 10%:
  855.                                         set {EventKeysReceived::%loop-player%} to random integer between 10 and 1000    * 7                    
  856.                                         send "&aEvent &f» &7%player% &7Start a event, you received &a%{EventKeysReceived::%loop-player%}% &7Legendary Keys!" to loop-player
  857.                                         add {EventKeysReceived::%loop-player%} to {LegendaryKeys::%loop-player%}
  858.                                         stop
  859.                                 chance of 25%:
  860.                                         set {EventKeysReceived::%loop-player%} to random integer between 10 and 1000    * 7            
  861.                                         send "&aEvent &f» &7%player% &7Start a event, you received &a%{EventKeysReceived::%loop-player%}% &7Rare Keys!" to loop-player
  862.                                         add {EventKeysReceived::%loop-player%} to {Rarekeys::%loop-player%}
  863.                                         stop          
  864.                                 chance of 65%:
  865.                                         set {EventKeysReceived::%loop-player%} to random integer between 10 and 1000 * 7
  866.                                         send "&aEvent &f» &7%player% &7Start a event, you received &a%{EventKeysReceived::%loop-player%}% &7Common Keys!" to loop-player
  867.                                         add {EventKeysReceived::%loop-player%} to {CommonKeys::%loop-player%}  
  868.                                         stop  
  869.                         chance of 50%:
  870.                                 set {EventTokensReceived::%loop-player%} to random integer between 1000 and 100000 * 7        
  871.                                 send "&aEvent &f» &7%player% &7Start a event, you received &a%{EventTokensReceived::%loop-player%}% &7Tokens!" to loop-player                        
  872.                                 add {EventTokensReceived::%loop-player%} to {Tokens::%loop-player%}
  873.                                 stop                                                                                  
  874.                                        
  875.                                        
  876.                                        
  877.  
  878.                                        
  879.                                        
  880.                                        
  881.                                        
  882. command /eventadd:
  883.         trigger:
  884.                 if {Event::%player%} = 0:
  885.                         if {Tokens::%player%} >= 1000000:
  886.                                 set {Event::%player%} to 1
  887.                                 set {EventChance::%player%} to 0.000001
  888.                                 set {eventcost::%player%} to 10000000
  889.                                 send "&2&lEnchant &f» &7+1 Event"
  890.                                 remove 1000000 from {Tokens::%player%}
  891.                                 stop
  892.                         else:
  893.                                 send "&2&lEnchant &f» &7You not have enough tokens!"
  894.                 if {Event::%player%} < 1000:
  895.                         if {Tokens::%player%} >= {eventcost::%player%}:
  896.                                 add 1 to {Event::%player%}
  897.                                 remove {eventcost::%player%} from {Tokens::%player%}
  898.                                 send "&2&lEnchant &f» &7+1 Event"
  899.                                 stop
  900.                         else:
  901.                                 send "&2&lEnchant &f» &7You not have enough tokens!"
  902.                 else:
  903.                         send "&2&lEnchant &f» &7Max Level"
  904.                                
  905.                                
  906. command /eventadd10:
  907.         trigger:
  908.                 loop 10 times:
  909.                         make player execute command "eventadd"
  910.                                
  911. -----------
  912. #JackHammer
  913.  
  914. #--------------
  915.  
  916.  
  917.                
  918.                
  919. every second:
  920.         loop all players:
  921.                 make loop-player execute command "/refresh"
  922.                
  923.                
  924. command /refresh:
  925.         trigger:
  926.                 if player's tool is pickaxe:
  927.                         set lore of player's tool to "||&7Right click on your &2pickaxe &7for &2enchant&7 GUI||||&2Fortune &f» &7%{Fortune::%player%}%||&2Greed &f» &7%{Greed::%player%}%||&2JackHammer &f» &7%{JackHammer::%player%}%||&2Lucky &f» &7%{Lucky::%player%}%||&2TokenGreed &f» &7%{TokenGreed::%player%}%||&2GemFinder &f» &7%{GemFinder::%player%}%||&2KeyGreed &f» &7%{KeyGreed::%player%}%||&2Combo &f» &7%{Combo::%player%}%||&2JackPot &f» &7%{JackPot::%player%}%||&2Charity &f» &7%{Charity::%player%}%||&2Global &f» &7%{Global::%player%}%||&2AutoSell &f» &7%{AutoSellEnchant::%player%}%||&2Event &f» &7%{Event::%player%}%"
  928.  
  929. every 10 tick:
  930.         loop all players:
  931.                 if {Jackhammer::%loop-player%} is not set:
  932.                         set {Jackhammer::%loop-player%} to 0
  933.                 if {Explosive::%loop-player%} is not set:
  934.                         set {Explosive::%loop-player%} to 0    
  935.                 if {Experienced::%loop-player%} is not set:
  936.                         set {Experienced::%loop-player%} to 0                  
  937.                 if {Lucky::%loop-player%} is not set:
  938.                         set {Lucky::%loop-player%} to 0                
  939.                 if {TokenGreed::%loop-player%} is not set:
  940.                         set {TokenGreed::%loop-player%} to 0                  
  941.                 if {GemFinder::%loop-player%} is not set:
  942.                         set {GemFinder::%loop-player%} to 0            
  943.                 if {KeyGreed::%loop-player%} is not set:
  944.                         set {KeyGreed::%loop-player%} to 0
  945.                 if {Event::%loop-player%} is not set:
  946.                         set {Event::%loop-player%} to 0
  947.                 if {Combo::%loop-player%} is not set:
  948.                         set {Combo::%loop-player%} to 0
  949.                 if {Charity::%loop-player%} is not set:
  950.                         set {Charity::%loop-player%} to 0
  951.                 if {JhSend::%loop-player%} is not set:
  952.                         set {JhSend::%loop-player%} to 0
  953.                 if {Global::%loop-player%} is not set:
  954.                         set {Global::%loop-player%} to 0
  955.                 if {AutoSell::%loop-player%} is not set:
  956.                         set {AutoSell::%loop-player%} to 0
  957.                 if {Fortune::%loop-player%} is not set:
  958.                         set {Fortune::%loop-player%} to 0
  959.                 if {Greed::%loop-player%} is not set:
  960.                         set {Greed::%loop-player%} to 0        
  961.                 if {TokenGreedInteger1::%loop-player%} is not set:
  962.                         set {TokenGreedInteger1::%loop-player%} to 100
  963.                 if {TokenGreedInteger2::%loop-player%} is not set:
  964.                         set {TokenGreedInteger2::%loop-player%} to 1000        
  965.                 if {KeyGreedSend::%loop-player%} is not set:
  966.                         set {KeyGreedSend::%loop-player%} to 1
  967.                 if {Blocks::%loop-player%} is not set:
  968.                         set {Blocks::%loop-player%} to 1              
  969.                 if {LuckyMessage::%loop-player%} is not set:
  970.                         set {LuckyMessage::%loop-player} to 0
  971.                 if {CharityCondition::%loop-player%} is not set:
  972.                         set {CharityCondition::%loop-player} to 0
  973.                 if {Prestiges::%loop-player%} is not set:
  974.                         set {Prestiges::%loop-player%} to 0
  975.                 if {PrestigeCost::%loop-player%} is not set:
  976.                         set {PrestigeCost::%loop-player%} to 500000
  977.                 if {PrestigeView1::%loop-player%} is not set:                  
  978.                         set {PrestigeView1::%loop-player%} to 1000000
  979.                 if {PrestigeView2::%loop-player%} is not set:                  
  980.                         set {PrestigeView2::%loop-player%} to 1500000
  981.                 if {PrestigeView3::%loop-player%} is not set:                          
  982.                         set {PrestigeView3::%loop-player%} to 3000000
  983.                 if {PrestigeView4::%loop-player%} is not set:                          
  984.                         set {PrestigeView4::%loop-player%} to 6500000
  985.                 if {PrestigeView5::%loop-player%} is not set:                          
  986.                         set {PrestigeView5::%loop-player%} to 13500000
  987.                 if {PrestigeView6::%loop-player%} is not set:                          
  988.                         set {PrestigeView6::%loop-player%} to 27500000
  989.                 if {PrestigeView7::%loop-player%} is not set:                          
  990.                         set {PrestigeView7::%loop-player%} to 55500000
  991.                 if {PrestigeView8::%loop-player%} is not set:                          
  992.                         set {PrestigeView8::%loop-player%} to 111500000
  993.                 if {PrestigeView9::%loop-player%} is not set:                          
  994.                         set {PrestigeView9::%loop-player%} to 223500000
  995.                 if {PrestigeView10::%loop-player%} is not set:                        
  996.                         set {PrestigeView10::%loop-player%} to 447500000
  997.                 if {Blocks::%loop-player%} is not set:
  998.                         set {Blocks::%loop-player%} to 0
  999.                 if {Tokens::%loop-player%} is not set:
  1000.                         set {Tokens::%loop-player%} to 0
  1001.                 if {Ranks::%loop-player%} is not set:
  1002.                         set {Ranks::%loop-player%} to 0
  1003.                 if {TokenSee::%loop-player%} is not set:
  1004.                         set {TokenSee::%loop-player%} to 0                    
  1005.                 if {KeysSee::%loop-player%} is not set:
  1006.                         set {TokenSee::%loop-player%} to 0                    
  1007.                
  1008.                
  1009. command /jackhammeradd:
  1010.         trigger:
  1011.                 if {Jackhammer::%player%} = 0:
  1012.                         if {Tokens::%player%} >= 100000:
  1013.                                 set {Jackhammer::%player%} to 19
  1014.                                 set {JackhammerCost::%player%} to 100000
  1015.                                 remove 100000 from {Tokens::%player%}
  1016.                                 set {Jackhammerchance::%player%} to 0.00001
  1017.                                 send "&2&lEnchant &f» &7+1 JackHammer"
  1018.                                 stop
  1019.                         else:
  1020.                                 send "&2&lEnchant &f» &7You not have enought tokens!"
  1021.                 if {Jackhammer::%player%} < 10000:
  1022.                         if {Tokens::%player%} >= {JackHammerCost::%player%}:
  1023.                                 add 1 to {Jackhammer::%player%}
  1024.                                 send "&2&lEnchant &f» &7+1 JackHammer"
  1025.                                 remove {JackHammerCost::%player%} from {Tokens::%player%}
  1026.                                 stop
  1027.                         else:
  1028.                                 send "&2&lEnchant &f» &7You not have enought tokens!"
  1029.                 else:
  1030.                         send "&2&lEnchant &f» &7MAX LEVEL"
  1031.                        
  1032. command /jackhammeradd10:
  1033.         trigger:
  1034.                 loop 10 times:
  1035.                         make player execute command "/jackhammeradd"
  1036.                
  1037.                
  1038. on break:
  1039.         if {AutoSell::%player%} = 1:
  1040.                 chance of {JackHammerchance::%player%} * {JackHammer::%player%}:
  1041.                         set {yjh.%player%} to y-coordinate of block
  1042.                         loop blocks in radius 40 around the block:
  1043.                                 if loop-block is air:          
  1044.                                         if y-coordinate of loop-block is {yjh.%player%}:
  1045.                                                 cancel event
  1046.                                 if loop-block is not bedrock:          
  1047.                                         if y-coordinate of loop-block is {yjh.%player%}:
  1048.                                                 set {JhSendPast::%player%} to {Fortune::%player%} * {greedmultis::%player%} * {teboost::%player%} * {Multis::%player%} / 10
  1049.                                                 add {JhSendPast::%player%} to {_jhsend}
  1050.                                                 set loop-block to air
  1051.                                 else:
  1052.                                         cancel event
  1053.                         wait 1 tick
  1054.                         if {JhMessage::%player%} = 0:
  1055.                                 set {_jhsend} to format({Jhsend::%player%})            
  1056.                                 send "&c&lJackhammer &f» &7You received &c%{JhSend::%player%}% &7with your jackhammer!"
  1057.                                 add {_jhsend} to {Tokens::%player%}
  1058.                                 stop
  1059.                         else:
  1060.                                 add {_jhsend} to {Tokens::%player%}
  1061.         else:
  1062.                 chance of {JackHammerchance::%player%} * {JackHammer::%player%}:
  1063.                         set {yjh.%player%} to y-coordinate of block
  1064.                         loop blocks in radius 40 around the block:
  1065.                                 if loop-block is air:          
  1066.                                         if y-coordinate of loop-block is {yjh.%player%}:
  1067.                                                 set loop-block to air
  1068.                                                 stop
  1069.                                 if loop-block is not bedrock:          
  1070.                                         if y-coordinate of loop-block is {yjh.%player%}:
  1071.                                                 set loop-block to air
  1072.                                                 set {JhSendPast::%player%} to {Fortune::%player%}
  1073.                                                 add {JhSendPast::%player%} to {bpcapicity::%player%}
  1074.                                                 if {bpcapicity::%player%} >= {maxbpcapicity::%player%}:
  1075.                                                         set {bpcapicity::%player%} to {maxbpcapicity::%player%}
  1076.                                                         stop
  1077.                                 if loop-block is quartz block:
  1078.                                         cancel event
  1079.                                 else:
  1080.                                         cancel event
  1081.                        
  1082.                        
  1083. command /jhmessage:
  1084.         trigger:
  1085.                 if {jhmessage::%player%} is not set:
  1086.                         set {jhmessage::%player%} to 1
  1087.                         send "&c&lJackHammer &f» &7You &cdisable your Jackhammer's message!"
  1088.                         stop
  1089.                 if {jhmessage::%player%} = 1:
  1090.                         set {JhMessage::%player%} to 0
  1091.                         send "&c&lJackHammer &f» &7You &cenable your Jackhammer's message!"
  1092.                         stop
  1093.                 if {jhmessage::%player%} = 0:
  1094.                         set {JhMessage::%player%} to 1
  1095.                         send "&c&lJackHammer &f» &7You disable your Jackhammer's message!"
  1096.                         stop
  1097.                                
  1098.                                
  1099. #--------
  1100.  
  1101. #RankUp
  1102.  
  1103. #--------      
  1104.                                        
  1105. plugins/Skript/scripts/RankUP.sk
  1106. command /rankup:
  1107.         trigger:
  1108.                 if {Ranks::%player%} = 1:
  1109.                         if {Tokens::%player%} >= 50000:
  1110.                                 set {Ranks::%player%} to 2
  1111.                                 set {RanksCost::%player%} to 100000
  1112.                                 remove 50000 from {Tokens::%player%}
  1113.                                 send "&6Ranks &f» &7You have Rankup to %{Ranks::%player%}%"
  1114.                                 stop
  1115.                         else:
  1116.                                 send "&6Ranks &f» &7You don't have enough tokens!"
  1117.                                 stop
  1118.                 if {Ranks::%player%} < 100:
  1119.                         if {Tokens::%player%} >= {RanksCost::%player%}:
  1120.                                 add 1 to {Ranks::%player%}
  1121.                                 add 100000 to {RanksCost::%player%}
  1122.                                 remove {RanksCost::%player%} from {Tokens::%player%}
  1123.                                 send "&6Ranks &f» &7You have Rankup to %{Ranks::%player%}%"
  1124.                                 stop
  1125.                         else:
  1126.                                 send "&6Ranks &f» &7You don't have enough tokens!"
  1127.                                 stop
  1128.                 else:
  1129.                         send "&6Ranks &f» &7You cannot rankup because you must /prestige!"
  1130.                        
  1131.                        
  1132.                        
  1133. command /prestigeadd:
  1134.         trigger:
  1135.                 if {Ranks::%player%} = 100:
  1136.                         if {Prestige::%player%} = 0:
  1137.                                 if {Tokens::%player%} >= 50000:
  1138.                                         set {Prestige::%player%} to 2
  1139.                                         set {PrestigeCost::%player%} to 500000
  1140.                                         give 1 tripwire hook named "&3Prestige &bKeys" to player
  1141.                                         remove 50000 from {Tokens::%player%}
  1142.                                         send "&ePrestige &f» &7Succes you prestige to &e%{Prestige::%player%}%!"
  1143.                                         stop
  1144.                                 else:
  1145.                                         send "&ePrestige &f» &7You don't have enough tokens!"
  1146.                                         stop
  1147.                         else:
  1148.                                 if {Tokens::%player%} >= {PrestigeCost::%player%}:
  1149.                                         add 1 to {Prestige::%player%}
  1150.                                         add 1000000 to {PrestigeView1::%player%}
  1151.                                         add 1500000 to {PrestigeView2::%player%}
  1152.                                         add 3000000 to {PrestigeView3::%player%}      
  1153.                                         give 1 tripwire hook named "&3Prestige &bKeys" to player
  1154.                                         add 6500000 to {PrestigeView4::%player%}
  1155.                                         add 13500000 to {PrestigeView5::%player%}
  1156.                                         add 27500000 to {PrestigeView6::%player%}
  1157.                                         add 55500000 to {PrestigeView7::%player%}
  1158.                                         add 111500000 to {PrestigeView8::%player%}
  1159.                                         add 223500000 to {PrestigeView9::%player%}            
  1160.                                         add 447500000 to {PrestigeView10::%player%}                            
  1161.                                         add 500000 to {PrestigeCost::%player%}
  1162.                                         remove {PrestigeCost::%player%} from {Tokens::%player%}
  1163.                                         send "&ePrestige &f» &7Succes you prestige to &e%{Prestige::%player%}%!"
  1164.                                         stop
  1165.                                 else:
  1166.                                         send "&ePrestige &f» &7You don't have enough tokens!"
  1167.                                         stop  
  1168.                 else:
  1169.                         send "&eYou cannot prestige because you must Ranks 100 !"
  1170.                        
  1171.                        
  1172.                        
  1173. command /maxrankup:
  1174.         trigger:
  1175.                 loop 100 times:
  1176.                         if {Ranks::%player%} = 1:
  1177.                                 if {Tokens::%player%} >= 50000:
  1178.                                         set {Ranks::%player%} to 2
  1179.                                         set {RanksCost::%player%} to 100000
  1180.                                         remove 50000 from {Tokens::%player%}
  1181.                                 else:
  1182.                                         stop
  1183.                         if {Ranks::%player%} < 100:
  1184.                                 if {Tokens::%player%} >= {RanksCost::%player%}:
  1185.                                         add 1 to {Ranks::%player%}
  1186.                                         add 100000 to {RanksCost::%player%}
  1187.                                         remove {RanksCost::%player%} from {Tokens::%player%}
  1188.                                 else:
  1189.                                         send "&6Ranks &f» &7You don't have enough tokens!"
  1190.                                         stop
  1191.                 if {Ranks::%player%} = 100:
  1192.                         send "&6Ranks &f» &7You cannot &eRankup &7because you must &e/prestige!"
  1193.        
  1194.        
  1195.        
  1196.        
  1197. command /prestige:
  1198.         trigger:
  1199.                 open chest with 6 rows named "&9&lKEYS" to player
  1200.                 format slot 0 of player with black stained glass pane named "" to be unstealable
  1201.                 format slot 1 of player with black stained glass pane named "" to be unstealable
  1202.                 format slot 2 of player with black stained glass pane named "" to be unstealable                      
  1203.                 format slot 3 of player with black stained glass pane named "" to be unstealable              
  1204.                 format slot 4 of player with black stained glass pane named "" to be unstealable              
  1205.                 format slot 5 of player with black stained glass pane named "" to be unstealable              
  1206.                 format slot 6 of player with black stained glass pane named "" to be unstealable
  1207.                 format slot 7 of player with black stained glass pane named "" to be unstealable
  1208.                 format slot 8 of player with black stained glass pane named "" to be unstealable
  1209.                 format slot 9 of player with black stained glass pane named "" to be unstealable
  1210.                 format slot 11 of player with black stained glass pane named "" to be unstealable              
  1211.                 format slot 10 of player with black stained glass pane named "" to be unstealable              
  1212.                 format slot 13 of player with diamond named "&a&lPrestige" with lore "&aCost &f» &7%{PrestigeCost::%player%}% " and "&7on &aPrestige &7you obtein :" and "&7x0.01 &amultiplier&7," and "&7and &a1&7 keys &aPrestige." and "" and "&7click for &aPrestige&7 !" to run [make player execute command "/prestigeadd"]            
  1213.                 format slot 12 of player with black stained glass pane named "" to be unstealable              
  1214.                 format slot 15 of player with black stained glass pane named "" to be unstealable              
  1215.                 format slot 14 of player with black stained glass pane named "" to be unstealable
  1216.                 format slot 16 of player with black stained glass pane named "" to be unstealable
  1217.                 format slot 17 of player with black stained glass pane named "" to be unstealable
  1218.                 format slot 18 of player with black stained glass pane named "" to be unstealable
  1219.                 format slot 19 of player with black stained glass pane named "" to be unstealable
  1220.                 format slot 20 of player with black stained glass pane named "" to be unstealable
  1221.                 format slot 21 of player with black stained glass pane named "" to be unstealable
  1222.                 format slot 22 of player with black stained glass pane named "" to be unstealable
  1223.                 format slot 23 of player with black stained glass pane named "" to be unstealable
  1224.                 format slot 24 of player with black stained glass pane named "" to be unstealable
  1225.                 format slot 25 of player with black stained glass pane named "" to be unstealable
  1226.                 format slot 26 of player with black stained glass pane named "" to be unstealable
  1227.                 format slot 27 of player with black stained glass pane named "" to be unstealable      
  1228.                 format slot 28 of player with black stained glass pane named "" to be unstealable              
  1229.                 if {Tokens::%player%} >= {PrestigeView1::%player%} * {Prestige::%player%}:
  1230.                         format slot 29 of player with green stained hardened clay named "&aYou can Prestige!" with lore "&7Cost &f»&7 %{PrestigeView1::%player%}%" to be unstealable                          
  1231.                 else:
  1232.                         format slot 29 of player with red stained hardened clay named "&cYou cannot Prestige!" with lore "&7Cost &f»&7 %{PrestigeView1::%player%}%" to be unstealable
  1233.                 if {Tokens::%player%} >= {PrestigeView2::%player%}:
  1234.                         format slot 30 of player with green stained hardened clay named "&aYou can Prestige!" with lore "&7Cost &f»&7 %{PrestigeView2::%player%}%" to be unstealable                          
  1235.                 else:
  1236.                         format slot 30 of player with red stained hardened clay named "&cYou cannot Prestige!" with lore "&7Cost &f»&7 %{PrestigeView2::%player%}%" to be unstealable
  1237.                 if {Tokens::%player%} >= {PrestigeView3::%player%}:
  1238.                         format slot 31 of player with green stained hardened clay named "&aYou can Prestige!" with lore "&7Cost &f»&7 %{PrestigeView3::%player%}%" to be unstealable                          
  1239.                 else:
  1240.                         format slot 31 of player with red stained hardened clay named "&cYou cannot Prestige!" with lore "&7Cost &f»&7 %{PrestigeView3::%player%}%" to be unstealable
  1241.                 if {Tokens::%player%} >= {PrestigeView4::%player%}:
  1242.                         format slot 32 of player with green stained hardened clay named "&aYou can Prestige!" with lore "&7Cost &f»&7 %{PrestigeView4::%player%}%" to be unstealable                          
  1243.                 else:
  1244.                         format slot 32 of player with red stained hardened clay named "&cYou cannot Prestige!" with lore "&7Cost &f»&7 %{PrestigeView4::%player%}%" to be unstealable                
  1245.                 if {Tokens::%player%} >= {PrestigeView5::%player%}:
  1246.                         format slot 33 of player with green stained hardened clay named "&aYou can Prestige!" with lore "&7Cost &f»&7 %{PrestigeView5::%player%}%" to be unstealable                          
  1247.                 else:
  1248.                         format slot 33 of player with red stained hardened clay named "&cYou cannot Prestige!" with lore "&7Cost &f»&7 %{PrestigeView5::%player%}%" to be unstealable
  1249.                 format slot 34 of player with black stained glass pane named "" to be unstealable              
  1250.                 format slot 35 of player with black stained glass pane named "" to be unstealable
  1251.                 format slot 36 of player with black stained glass pane named "" to be unstealable              
  1252.                 format slot 37 of player with black stained glass pane named "" to be unstealable              
  1253.                
  1254.                 if {Tokens::%player%} >= {PrestigeView6::%player%}:
  1255.                         format slot 38 of player with green stained hardened clay named "&aYou can Prestige!" with lore "&7Cost &f»&7 %{PrestigeView6::%player%}%" to be unstealable                          
  1256.                 else:
  1257.                         format slot 38 of player with red stained hardened clay named "&cYou cannot Prestige!" with lore "&7Cost &f»&7 %{PrestigeView6::%player%}%" to be unstealable        
  1258.                 if {Tokens::%player%} >= {PrestigeView7::%player%}:
  1259.                         format slot 39 of player with green stained hardened clay named "&aYou can Prestige!" with lore "&7Cost &f»&7 %{PrestigeView7::%player%}%" to be unstealable                          
  1260.                 else:
  1261.                         format slot 39 of player with red stained hardened clay named "&cYou cannot Prestige!" with lore "&7Cost &f»&7 %{PrestigeView7::%player%}%" to be unstealable                
  1262.                 if {Tokens::%player%} >= {PrestigeView8::%player%}:
  1263.                         format slot 40 of player with green stained hardened clay named "&aYou can Prestige!" with lore "&7Cost &f»&7 %{PrestigeView8::%player%}%" to be unstealable                          
  1264.                 else:
  1265.                         format slot 40 of player with red stained hardened clay named "&cYou cannot Prestige!" with lore "&7Cost &f»&7 %{PrestigeView8::%player%}%" to be unstealable
  1266.                 if {Tokens::%player%} >= {PrestigeView9::%player%}:
  1267.                         format slot 41 of player with green stained hardened clay named "&aYou can Prestige!" with lore "&7Cost &f»&7 %{PrestigeView9::%player%}%" to be unstealable                          
  1268.                 else:
  1269.                         format slot 41 of player with red stained hardened clay named "&cYou cannot Prestige!" with lore "&7Cost &f»&7 %{PrestigeView9::%player%}%" to be unstealable
  1270.                 if {Tokens::%player%} >= {PrestigeView10::%player%}:
  1271.                         format slot 42 of player with green stained hardened clay named "&aYou can Prestige!" with lore "&7Cost &f»&7 %{PrestigeView10::%player%}%"  to be unstealable                        
  1272.                 else:
  1273.                         format slot 42 of player with red stained hardened clay named "&cYou cannot Prestige!" with lore "&7Cost &f»&7 %{PrestigeView10::%player%}%" to be unstealable
  1274.                 format slot 43 of player with black stained glass pane named "" to be unstealable
  1275.                 format slot 44 of player with black stained glass pane named "" to be unstealable
  1276.                 format slot 45 of player with black stained glass pane named "" to be unstealable
  1277.                 format slot 46 of player with black stained glass pane named "" to be unstealable
  1278.                 format slot 47 of player with black stained glass pane named "" to be unstealable
  1279.                 format slot 48 of player with black stained glass pane named "" to be unstealable
  1280.                 format slot 49 of player with black stained glass pane named "" to be unstealable
  1281.                 format slot 50 of player with black stained glass pane named "" to be unstealable
  1282.                 format slot 51 of player with black stained glass pane named "" to be unstealable
  1283.                 format slot 52 of player with black stained glass pane named "" to be unstealable
  1284.                 format slot 53 of player with black stained glass pane named "" to be unstealable