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...

i think what you need to do is stop the loop by typing Stop i think

 

 

image.png.bc433d6489d70ad831075fe76809b993.png
 

Owner of Lifestealed, Labs, Encore, UNOfficially and Observed
 

OG [VIP] 12/26/20 - 10/27/2021
OG [PRO] 12/27/21 - 11/18/2022
OG [LEGEND] 11/18/2022 - 3/14/2023
[DEFAULT] 3/14/2023 - 5/8/2024

[MOD] 5/8/2024 - Present

 

Link to comment
Share on other sites

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