Jump to content

my /sell isnt working


gust_dust
 Share

Recommended Posts

im trying to make it so when i do /sell and it isnt working

options:
    cobbleprice: 2

command /sell:
    trigger:
        if player's inventory contains cobblestone:
            set {_ammount} to ammount of cobblestone in player's inventory
            set {_profit} to {@cobbleprice} * {_ammount}
            send "%{_profit}%"
            add AMOUNT to player's balance
        else:
            send "Sorry, but you don't have any cobblestone in your inventory."

it says that inventory of a player is not a world set {_ammount} to ammount of cobblestone in player's inventory 

so i need help

Link to comment
Share on other sites

  • gust_dust changed the title to my /sell isnt working
  • 5 weeks later...
14 minutes ago, likepizza said:

still doesnt work

It does

Hello there! If you're reading this, hope you're having a wonderful day!

 

Feel free to contact me via Discord (CoolProgrammer#1920) for any help.

My DMs are always open for help.

You can also message via. forum messages for help.

1604908226_ScreenShot2021-01-28at10_32_28AM.png.2646ad6be239a9d0756a99e8e15602ab.png

Also, don't hesitate to leave a like on my post if I helped you in any way.

Link to comment
Share on other sites

it doesn't then send me the right one please


i made one but this not works

command /sell:
  trigger:
    set {_stone} to number of stone in Player's inventory
    set {_value} to 3 * {_stone}
    if {_stone} > 0:
      run "eco give %player% {_value}"
    else:
      send "You dont have any stone"

Edited by likepizza
Link to comment
Share on other sites

4 minutes ago, likepizza said:

it doesn't then send me the right one please


i made one but this not works

command /sell:
  trigger:
    set {_stone} to number of stone in Player's inventory
    set {_value} to 3 * {_stone}
    if {_stone} > 0:
      run "eco give %player% {_value}"
    else:
      send "You dont have any stone"

Enjoy

command /sell:
    trigger:
        set {_stone} to amount of stone in player's inventory
        if {_stone} < 1:
            send "You dont have any stone"
            stop
        set {_value} to 3 * {_stone}
        run "eco give %player% %{_value}%"

Hello there! If you're reading this, hope you're having a wonderful day!

 

Feel free to contact me via Discord (CoolProgrammer#1920) for any help.

My DMs are always open for help.

You can also message via. forum messages for help.

1604908226_ScreenShot2021-01-28at10_32_28AM.png.2646ad6be239a9d0756a99e8e15602ab.png

Also, don't hesitate to leave a like on my post if I helped you in any way.

Link to comment
Share on other sites

btw can u fix this part. and /sell isn't working


on place of hay block:
    set {gens::%location of event-block%} to uuid of player
    if {gens::%player's uuid%} < 10:
        add 1 to {gens::%player's uuid%}
        while event-block is hay block:
            wait 80 ticks
            drop 1 wheat above location of event-block
    else:
        send "" to player
        send "&bYou have reached your Gen Cap! &7%{gens::%player's uuid%}%&b/&710" to player
        send "" to player
        cancel event
 
command /gencap [<player>] [<text>] [<number>]:
    permission: gencap.use
    permission message: &cNope!
    trigger:
        if arg-1 is set:
            if arg-2 is "reset":
                set {gens::%arg-1's uuid%} to 0
                send "&cYou have just reset %arg-1%&c's gen cap!" to player
 
command /gens:
    trigger:
        send "" to player
        send "&bYou have used %{gens::%player's uuid%}%&7/&b10 gen space!" to player
        send "" to player




No errors

 

bhut gen cap aint working it says gencap reached 

Schermafbeelding 2021-02-28 om 11.22.22.png

Edited by likepizza
Link to comment
Share on other sites

18 hours ago, likepizza said:

btw can u fix this part. and /sell isn't working


on place of hay block:
    set {gens::%location of event-block%} to uuid of player
    if {gens::%player's uuid%} < 10:
        add 1 to {gens::%player's uuid%}
        while event-block is hay block:
            wait 80 ticks
            drop 1 wheat above location of event-block
    else:
        send "" to player
        send "&bYou have reached your Gen Cap! &7%{gens::%player's uuid%}%&b/&710" to player
        send "" to player
        cancel event
 
command /gencap [<player>] [<text>] [<number>]:
    permission: gencap.use
    permission message: &cNope!
    trigger:
        if arg-1 is set:
            if arg-2 is "reset":
                set {gens::%arg-1's uuid%} to 0
                send "&cYou have just reset %arg-1%&c's gen cap!" to player
 
command /gens:
    trigger:
        send "" to player
        send "&bYou have used %{gens::%player's uuid%}%&7/&b10 gen space!" to player
        send "" to player




No errors

 

bhut gen cap aint working it says gencap reached 

Schermafbeelding 2021-02-28 om 11.22.22.png

what about this isnt working?

Discord: MinecraftMan1013#7242

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share



×
×
  • Create New...