Shop GUI

#1
->This GUI is made to be edited by the user. It can be used for an array of items, i personally used it for Kit Shop
->Every /give on the items is made to be custom for the person
->You can also edit the amount of money taken
->Make sure to change the button names from 'Option' to what the button is used for

1 %gui%["type"] = "form"
2 %gui%["title"] = "name"
3 %gui%["content"] = "text under title"
4 %b0%["text"] = "option 1"
5 %b1%["text"] = "option 2"
6 %b2%["text"] = "option 3"
7 %b3%["text"] = "option 4"
8 %b4%["text"] = "option 5"
9 %bs%[] = %b0%
10 %bs%[] = %b1%
11 %bs%[] = %b2%
12 %bs%[] = %b3%
13 %bs%[] = %b4%
14 %gui%["buttons"] = %bs%
15 %res% = dialog(%p%, %gui%)
16 if varset(%res%) = 0 then goto 40
17 if %res% = 1 then goto 50
18 if %res% = 2 then goto 60
19 if %res% = 3 then goto 70
20 if %res% = 4 then goto 80
21 exit
40 %mybal% = playerbalance(%p%)
41 if %mybal% > 99 goto 44
42 message %p% Not enough money to buy this item!
43 exit
44 ascon /takemoney %p% 100
45 ascon /give any item you want
46 message %p% Purchase successful!
47 exit
50 %mybal% = playerbalance(%p%)
51 if %mybal% > 499 then goto 54
52 message %p% Not enough money to buy this item!
53 exit
54 ascon /takemoney %p% 500
55 ascon /give any item you want
56 message %p% Purchase successful!
57 exit
60 %mybal% = playerbalance(%p%)
61 if %mybal% > 1499 then goto 64
62 message %p% Not enough money to buy this item!
63 exit
64 ascon /takemoney %p% 1500
65 ascon /give any item you want
66 message %p% Purchase successful!
67 exit
70 %mybal% = playerbalance(%p%)
71 if %mybal% > 1999 then goto 74
72 message %p% Not enough money to buy this item!
73 exit
74 ascon /takemoney %p% 2000
75 ascon /give any item you want
76 message %p% Purchase successful
77 exit
80 %mybal% = playerbalance(%p%)
81 if %mybal% > 9999 then goto 84
82 message %p% Not enough money to buy this item!
83 exit
84 ascon /takemoney %p% 10000
85 ascon /give any item you want
86 message %p% Purchase successful
87 exit

If there are any problems message me on Discord
VerifyPink#1508