Guest User

Moneygen.sk

a guest
Mar 29th, 2019
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 4.13 KB | None | 0 0
  1. every 15 seconds in "ASkyBlock":
  2.     loop all players:
  3.         {mg1::%uuid of loop-player%} is set:
  4.             {gmactive.%uuid of loop-player%} is true:
  5.                 add 750 * {mgl.%uuid of loop-player%} to {bank.%{isb.%loop-player%}%}
  6.            
  7.    
  8. on place:
  9.     block is a end portal frame:
  10.         name of player's tool is "&a&lMoney Generator Tier1":
  11.             set {_loc} to block's location
  12.             if {mg1::%uuid of player%} is not set:
  13.                 set {mg1::%uuid of player%} to {_loc}
  14.                 send "&aPlacing &a&LMoney Generator&a!"
  15.                 set {mgl.%uuid of player%} to 1
  16.                 create holo object "&a&lMoney Generator;&a&LLevel: %{mgl.%uuid of player%}%;&a&LMoney Per Minute:%750 * {mgl.%uuid of player%} * 4%" with id "test.%player%" at location 1 meter above {mg1::%uuid of player%}
  17.                 set {mgc.%uuid of player%} to true
  18.             else if {mgc.%uuid of player%} is true:
  19.                 set {_block} to block at {mg1::%uuid of player%}
  20.                 break {_block}
  21.                 set {mg1::%uuid of player%} to {_loc}
  22.                 delete {mgc.%uuid of player%}
  23.                 send "&aPlacing &a&LMoney Generator&a!"
  24.                 delete holo object "test.%player%"
  25.                 create holo object "&a&lMoney Generator;&a&LLevel: %{mgl.%uuid of player%}%;&a&LMoney Per Minute:%750 * {mgl.%uuid of player%} * 4%" with id "test.%player%" at location 1 meter above {mg1::%uuid of player%}
  26.                 set {gmactive.%uuid of player%} to true
  27.                 set the block at {_loc} to end portal frame
  28.             else if {mg1::%uuid of player%} is set:
  29.                 if {mgc.%uuid of player%} is not set:
  30.                     cancel event
  31.                     send "&c&L(!) Placing this generator will update the gen location to here and the old gen wont work!"
  32.                     send "&cplace it in the next 30 seconds to place the generator"
  33.                     set {mgc.%uuid of player%} to true
  34.                     wait 30 seconds
  35.                     delete {mgc.%uuid of player%}
  36.                 else if {mgc.%uuid of player%} is true:
  37.                     cancel event
  38.                     delete {mgc.%uuid of player%}
  39.                     send "&c&L(!) Placing this generator will update the gen location to here and the old gen wont work!"
  40.                     send "&cplace it in the next 30 seconds to place the generator"
  41.         name of player's tool is "&a&lMoney Generator &b&LUpgrade":
  42.             cancel event
  43.             set {mg2.%uuid of player%} to true
  44.             set {gmactive.%uuid of player%} to true
  45.             if block at location of event-block is event-block:
  46.                 set event-block to air
  47.    
  48. on click on end portal frame with end portal frame:
  49.     name of player's tool is "&a&lMoney Generator &b&LUpgrade":
  50.         clicked block's location = {mg1::%uuid of player%}:
  51.             {mg2.%uuid of player%} is true:
  52.                 delete holo object "test.%player%"
  53.                 set {mgp.%uuid of player%} to true
  54.                 if {mgl.%uuid of player%} is 0:
  55.                     set {mgl.%uuid of player%} to 2
  56.                 {mgl.%uuid of player%} is not set:
  57.                     set {mgl.%uuid of player%} to 2
  58.                 else if {mgl.%uuid of player%} is not 0:
  59.                     set {mgl.%uuid of player%} to {mgl.%uuid of player%} + 1
  60.                 edit holo object "test.%player%" line 2 to "&a&LLevel: %{mgl.%uuid of player%}%"
  61.                 create holo object "&a&lMoney Generator;&a&LLevel: %{mgl.%uuid of player%}%;&a&LMoney Per Minute: %750 * {mgl.%uuid of player%} *4%" with id "test.%player%" at location 1 meter above {mg1::%uuid of player%}
  62.                 send "&a&LUpgraded Money Generator to Level %{mgl.%uuid of player%}%!"
  63.                 set {mg2.%uuid of player%} to false
  64.                 set {gmactive.%uuid of player%} to true
  65.                 remove 1 end portal frame named "&a&LMoney Generator &b&LUpgrade" with lore "&7Place this on &aMoney Generator &7to &b&LUpgrade it||&7This will &b&LUpgrade &7it by &7&l750$||&5&l&nMEANING &7it will add 750$ each time||&7Upgraded" from player
Add Comment
Please, Sign In to add comment