Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {globalbooster} = 0
- options:
- p: &3&lCowSells &8::&r
- command /sell [<text>]:
- trigger:
- if arg-1 is "hand":
- set {_rottenWorth} to 2.5
- set {_wheatWorth} to 2.5
- set {_boneWorth} to 2.5
- set {_arrowWorth} to 2.5
- set {_blazeWorth} to 2.5
- set {_porkWorth} to 2.5
- set {_beefWorth} to 2.5
- set {_leatherWorth} to 2.5
- set {_wartWorth} to 15
- set {_cactusWorth} to 10
- set {_sugarcaneWorth} to 5
- set {_pumpkinWorth} to 4.0
- set {_seedsWorth} to 0.01
- set {_cobblestoneWorth} to .25
- set {_stoneWorth} to .25
- set {_dirtWorth} to .25
- if player's held item is sugar cane:
- set {_item1} to amount of player's held item in player's inventory * {_sugarcaneWorth}
- set {_sugarcaneCount} to amount of sugar_cane in player's inventory
- remove all sugar_cane from the player's inventory
- if player's held item is cactus:
- set {_item2} to amount of player's held item in player's inventory * {_cactusWorth}
- set {_cactusCount} to amount of cactus in player's inventory
- remove all cactus from the player's inventory
- if player's held item is wheat item:
- set {_item3} to amount of player's held item in player's inventory * {_wheatWorth}
- set {_wheatCount} to amount of wheat in player's inventory
- remove all wheat from the player's inventory
- if player's held item is rotten flesh:
- set {_item4} to amount of player's held item in player's inventory * {_rottenWorth}
- set {_rottenCount} to amount of rotten_flesh in player's inventory
- remove all rotten_flesh from the player's inventory
- if player's held item is bone_item:
- set {_item5} to amount of player's held item in player's inventory * {_boneWorth}
- set {_boneCount} to amount of bone_item in player's inventory
- remove all bone_item from the player's inventory
- if player's held item is arrow:
- set {_item6} to amount of player's held item in player's inventory * {_arrowWorth}
- set {_arrowCount} to amount of arrow in player's inventory
- remove all arrow from the player's inventory
- if player's held item is blaze_rod:
- set {_item7} to amount of player's held item in player's inventory * {_blazeWorth}
- set {_blazeRod} to amount of blaze_rod in player's inventory
- remove all blaze_rod from the player's inventory
- if player's held item is porkchop_item:
- set {_item8} to amount of player's held item in player's inventory * {_porkWorth}
- set {_porkCount} to amount of porkchop_item in player's inventory
- remove all porkchop_item from the player's inventory
- if player's held item is raw_beef:
- set {_item9} to amount of player's held item in player's inventory * {_beefWorth}
- set {_beefCount} to amount of raw_beef in player's inventory
- remove all raw_beef from the player's inventory
- if player's held item is leather:
- set {_item10} to amount of player's held item in player's inventory * {_leatherWorth}
- set {_leatherCount} to amount of leather in player's inventory
- remove all leather from the player's inventory
- if player's held item is cobble:
- set {_item11} to amount of player's held item in player's inventory * {_cobblestoneWorth}
- set {_cobblestoneCount} to amount of cobble in player's inventory
- remove all cobble from the player's inventory
- if player's held item is stone:
- set {_item12} to amount of player's held 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 dirt:
- set {_item13} to amount of player's held 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 pumpkin:
- set {_item14} to amount of player's held item in player's inventory * {_pumpkinWorth}
- set {_pumpkinCount} to amount of pumpkin in player's inventory
- remove all pumpkin from the player's inventory
- if player's held item is nether_wart:
- set {_item15} to amount of player's held item in player's inventory * {_wartWorth}
- set {_wartCount} to amount of nether_wart in player's inventory
- remove all nether_wart from the player's inventory
- if player's held item is seeds:
- set {_item16} to amount of player's held item in player's inventory * {_seedsWorth}
- set {_seedsCount} to amount of seeds in player's inventory
- remove all seeds from the player's inventory
- set {_totalCount} to {_wheatCount} + {_cactusCount} + {_sugarcaneCount} + {_rottenCount} + {_boneCount} + {_arrowCount} + {_blazeRod} + {_porkCount} + {_beefCount} + {_leatherCount} + {_cobblestoneCount} + {_stoneCount} + {_dirtCount} + {_pumpkinCount} + {_wartCount} + {_seedsCount}
- set {_totalProfit} to {_item1} + {_item2} + {_item3} + {_item4} + {_item5} + {_item6} + {_item7} + {_item8} + {_item9} + {_item10} + {_item11} + {_item12} + {_item13} + {_item14} + {_item15} + {_item16}
- 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]"
Advertisement
Add Comment
Please, Sign In to add comment