• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
  • Minecraft 1.16.220 Update + Bug/Crash Fixes
    Added MCPE 1.16.220 version and fixed crashes for multiple plugins. You can view the full changelist here.
  • Forum Updates - 4/11/2021
    Various changes have been made to the forums and a few categories. You can view the full changelist here.

Kits with money

Warning!
Hello , there have been no replies in this thread for more than 30 days.
Please make sure you have a valid reason before you reply to this thread or you may face moderation action.

MuntThee

Tree Puncher
#2
I hope this wil help you :p

Markdown (GitHub flavored):
/cmd create kit Get a kit for $1000

/cmd edit kit 0 #kit by blackdeadskulll
/cmd add kit let %money% = playerbalance(%p%)
/cmd add kit if %money% != 999 then message %p% You do not have enouge money to buy this kit!
/cmd add kit if %money% != 999 then exit
/cmd add kit ascon /takemoney 1000
/cmd add kit ascon /give %p% <"items" you want or a the kit you wanne give>
 

MrDevCat

Retired Staff
#4
Ohww ya i forgot that!

This is the right one!
I hope this will help you :p

Markdown (GitHub flavored):
/cmd create kit Get a kit for $1000

/cmd edit kit 0 #kit by blackdeadskulll
/cmd add kit let %money% = playerbalance(%p%)
/cmd add kit if %money% > 999 then goto 5
/cmd add kit message %p% §cYou do not have enouge money tho buy this kit!
/cmd add kit exit
/cmd add kit ascon /takemoney %p% 1000
/cmd add kit ascon /give %p% <"items" you want or a the kit you wanne give>


Can you delete the first one please 😉
/cmd add kit if %money% > 999 then goto 5
Isn't this off by 1. It should say 1000 not 999 because by putting > means smaller than and < means bigger than.
So shouldn't it be /cmd add kit if %money% > 1000 then goto 5

I don't know for sure but wouldn't the script just go to 5 anyway? Don't you need to skip 5 if it is the correct amount like:
/cmd add kit if %money% < 999 then goto 6

Idk for sure but isn't this needed or something?
 

MuntThee

Tree Puncher
#5
/cmd add kit if %money% > 999 then goto 5
Isn't this off by 1. It should say 1000 not 999 because by putting > means smaller than and < means bigger than.
So shouldn't it be /cmd add kit if %money% > 1000 then goto 5

I don't know for sure but wouldn't the script just go to 5 anyway? Don't you need to skip 5 if it is the correct amount like:
/cmd add kit if %money% < 999 then goto 6

Idk for sure but isn't this needed or something?
No madcommand sees 999 as 1000 :p
So if %money% > 999 then goto
If you have 999 money this will not go true
If you have 1000 you will go true
If you have 1000 as > then you need 1001 :D
And 1000 will not go true
 

MrDevCat

Retired Staff
#6
No madcommand sees 999 as 1000 :p
So if %money% > 999 then goto
If you have 999 money this will not go true
If you have 1000 you will go true
If you have 1000 as > then you need 1001 :D
And 1000 will not go true
So that's why my stuff on mad commands keeps breaking XD