Jump to content

Please Make Me A /sell Skript


Macky

Recommended Posts

command /sell:
  trigger:
    set {_prismarine} to amount of prismarine in player's inventory
    add {_prismarine}*50000 to player's balance
    send "You've sold %{_prismarine}% prismarine for ({_prismarine}*50000)$"
    remove {_prismarine} prismarine from player's inventory

Hopefully this works, haven't had time to test.

 

 

Edited by AbusingNub
  • Thanks 2

--- AbusingNub ---


-- Owner of the DevilsNetwork --

◉ DevilsPvP.minehut.gg

â—‰ BridgesWar.minehut.gg


Here to lend a helping hand.


 

Link to comment
Share on other sites

On 8/10/2021 at 12:56 AM, AbusingNub said:
command /sell:
  trigger:
    set {_prismarine} to amount of prismarine in player's inventory
    add {_prismarine}*50000 to player's balance
    send "You've sold %{_prismarine}% prismarine for ({_prismarine}*50000)$"
    remove {_prismarine} prismarine from player's inventory

Hopefully this works, haven't had time to test.

 

 

It doesn't work it shows me this error. And also when I try to sell it it gives me the Money but never takes away my Prismarine.

 

0b1ed6cd3681f9f8b5a19a5e3d805ebf.png
https://gyazo.com/0b1ed6cd3681f9f8b5a19a5e3d805ebf

Link to comment
Share on other sites

Will fix it in around 1-2 hours, and test it for you. 

Sorry didn't test it before

3 hours ago, Macky said:

It doesn't work it shows me this error. And also when I try to sell it it gives me the Money but never takes away my Prismarine.

 

0b1ed6cd3681f9f8b5a19a5e3d805ebf.png
https://gyazo.com/0b1ed6cd3681f9f8b5a19a5e3d805ebf

 


--- AbusingNub ---


-- Owner of the DevilsNetwork --

◉ DevilsPvP.minehut.gg

â—‰ BridgesWar.minehut.gg


Here to lend a helping hand.


 

Link to comment
Share on other sites

3 hours ago, Macky said:

It doesn't work it shows me this error. And also when I try to sell it it gives me the Money but never takes away my Prismarine.

 

0b1ed6cd3681f9f8b5a19a5e3d805ebf.png
https://gyazo.com/0b1ed6cd3681f9f8b5a19a5e3d805ebf

 

 

fix

command /sell:
  trigger:
    set {_prismarine} to amount of prismarine in player's inventory
    add {_prismarine}*50000 to player's balance
    set {_t} to {_prismarine}*50000
    send "You've sold %{_prismarine}% prismarine for %{_t}%$"
    remove all prismarine from player's inventory

 

Edited by Boxmonkey
Link to comment
Share on other sites

3 minutes ago, Boxmonkey said:

 

 

fix

command /sell:
  trigger:
    set {_prismarine} to amount of prismarine in player's inventory
    add {_prismarine}*50000 to player's balance
    set {_t} to {_prismarine}*50000
    send "You've sold %{_prismarine}% prismarine for %{_t}%$"
    remove all prismarine from player's inventory

 

Legend!

Sorry I couldn't test it before posting it


--- AbusingNub ---


-- Owner of the DevilsNetwork --

◉ DevilsPvP.minehut.gg

â—‰ BridgesWar.minehut.gg


Here to lend a helping hand.


 

Link to comment
Share on other sites

36 minutes ago, Boxmonkey said:

 

 

fix

command /sell:
  trigger:
    set {_prismarine} to amount of prismarine in player's inventory
    add {_prismarine}*50000 to player's balance
    set {_t} to {_prismarine}*50000
    send "You've sold %{_prismarine}% prismarine for %{_t}%$"
    remove all prismarine from player's inventory

 

Thank you so much!

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
×
×
  • Create New...