Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {globalbooster} = 0
- options:
- p: &3&lInspired &8::&r
- command /sell:
- trigger:
- set {_dirtWorth} to 1
- set {_cobbleWorth} to 2.5
- set {_stoneWorth} to 5
- set {_coalWorth} to 5
- set {_ironWorth} to 25
- set {_goldWorth} to 75
- set {_diamondWorth} to 250
- set {_emeraldWorth} to 500
- if player's held item is dirt:
- set {_item1} to amount of player's item in player's inventory * {_dirtWorth}
- set {_dirtCount} to amount of dirt in player's inventory
- remove all dirt from the player's inventory
- if player's held item is cobble stone:
- set {_item2} to amount of player's item in player's inventory * {_cobbleWorth}
- set {_cobbleCount} to amount of cobble stone in player's inventory
- remove all cobble stone from the player's inventory
- if player's held item is stone item:
- set {_item3} to amount of player's item in player's inventory * {_stoneWorth}
- set {_stoneCount} to amount of stone in player's inventory
- remove all stone from the player's inventory
- if player's held item is coal:
- set {_item4} to amount of player's item in player's inventory * {_coalWorth}
- set {_coalCount} to amount of coal in player's inventory
- remove all coal from the player's inventory
- if player's held item is iron ingot:
- set {_item5} to amount of player's item in player's inventory * {_ironWorth}
- set {_ironCount} to amount of iron ingot in player's inventory
- remove all iron ingot from the player's inventory
- if player's held item is gold ingot:
- set {_item6} to amount of player's item in player's inventory * {_goldWorth}
- set {_goldCount} to amount of gold ingot in player's inventory
- remove all gold from the player's inventory
- if player's held item is diamond:
- set {_item7} to amount of player's item in player's inventory * {_diamondWorth}
- set {_diamondCount} to amount of diamond in player's inventory
- remove all diamond from the player's inventory
- if player's held item is emerald:
- set {_item8} to amount of player's item in player's inventory * {_emeraldWorth}
- set {_emeraldCount} to amount of emerald in player's inventory
- remove all emerald from the player's inventory
- set {_totalCount} to {_dirtCount} + {_cobbleCount} + {_stoneCount} + {_coalCount} + {_ironCount} + {_goldCount} + {_diamondCount} + {_emeraldCount}
- set {_totalProfit} to {_item1} + {_item2} + {_item3} + {_item4} + {_item5} + {_item6} + {_item7} + {_item8}
- set {_totalProfit} to {_totalProfit} * {booster::%player%}
- set {_totalBooster} to {_totalProfit} * {globalbooster}
- set {_afterSell} to {_totalProfit} + {_totalBooster}
- if {booster::%player%} is set:
- send "&3&m*-------------*------------*-------------*"
- send "&r"
- send "&7* &3COUNT: &7&nx%{_totalCount}%&r"
- send "&7* &3BOOSTER: &7x%{booster::%player%}%"
- send "&7* &3GLOBALBOOSTER: &7x%{globalbooster}%"
- send "&7* &3PROFIT: &a$%{_totalProfit}%"
- send "&7* &3TOTAL: &a$%{_afterSell}%"
- send "&r"
- send "&3&m*-------------*------------*-------------*"
- add {_afterSell} to player's balance
- else:
- send "&cError: &7/sell hand"
- command /gb [<number>]:
- permission: admin
- trigger:
- if arg-1 is set:
- set {globalbooster} to arg-1
- broadcast "&c&lGLOBAL &8:: &3&l%player% &7&lSet the GlobalBooster to &c&lx%arg-1%"
- else:
- send "&c/globalbooster [number]"
- command /autosell
- permission: auto.sell
- trigger:
- if {autosell::%player%} is not set:
- set {autosell::%player%} to true
- else:
- delete {autosell::%player%}
- every 1 second in “World”:
- if {autosell::%player%} is true:
- make player execute "/sell all"
Advertisement
Add Comment
Please, Sign In to add comment