Jump to content

/sell command is not working


BOXEY

Recommended Posts

My /sell skript is not working it loops the last bit of code

 

    set {price::coal} to 5

    set {sell::coal} to coal

options:
    prefix: &6Money &7>>
    sellout: &6Sell &7>>


command /sell:
    trigger:
        loop {sell::*}:
            set {_items} to loop-value
            set {_amount} to number of {_items} in player's inventory
            if {_amount} is more than 0:
                remove {_amount} of {_items} from player's inventory
                set {_block} to "%loop-index%"
                set {_g} to (({_amount} * {price::%{_block}%}) * ({%uuid of player%::booster} + 1))
                add {_amount} to {Totali}
                add {_g} to  {_Total}
            if {_Total} is more than 0:
                send "{@prefix} You Sold All Items For &a$%{_Total}%"
                add {_Total} to player's balance

 

 

Discord ---- Boxmonk#7877

Link to comment
Share on other sites

  • 4 months later...
Guest
This topic is now closed to further replies.
×
×
  • Create New...