skPnguin Posted May 3, 2021 Share Posted May 3, 2021 Hi there! So i made a multiplier skript with no errors but if i right click with a item it doesnt multiply the money heres the code: on right click: if event-item is grey dye: display name of player's held item is "&3&lCLICKER &7&o(Tier I)": if {toggleclickers} is set: send "&cYou cant use clickers at this time!" stop else: add 1*{multi::%player's uuid%} to {clicks::%player's uuid%} I used to play Minehut I guess? Yeah, I still watch the forums for some reason. (15/5/2023) Link to comment Share on other sites More sharing options...
BanditEagle Posted May 3, 2021 Share Posted May 3, 2021 (edited) 4 minutes ago, pizzaschut said: add 1*{multi::%player's uuid%} you don't need to do like this. You can just do add {multi::%player's uuid%} to {clicks::%player's uuid%} or add (1*{multi::%player's uuid%}) to {clicks::%player's uuid%} Make sure you have {multi::%player's uuid%} set tho. EDIT: Also, where are you setting {toggleclickers}? Cause if you are just setting it to false, it will still be set. If you delete it, then it won't be set. Make sure of that too. I suggest checking by sending the variable to yourself if you are having issues with it. Edited May 3, 2021 by BanditEagle If I have helped you out in your post or you liked what I posted, please upvote and react to my post! It helps me a lot! Some Minehut Links: Server Rules • Staff Applications • News & Updates • Reports • Appeals Minehut: VIP (07/04/2021 --> Current)Elestra/Versa Realms: Manager (12/04/2021 --> Current) If you have any questions contact me!My Discord: BanditEagle#2481My Spigot Profile: https://www.spigotmc.org/members/banditeagle.935281/My IGN: BanditEagle Link to comment Share on other sites More sharing options...
skPnguin Posted May 3, 2021 Author Share Posted May 3, 2021 4 minutes ago, BanditEagle said: you don't need to do like this. You can just do add {multi::%player's uuid%} to {clicks::%player's uuid%} or add (1*{multi::%player's uuid%}) to {clicks::%player's uuid%} Make sure you have {multi::%player's uuid%} set tho. Theres a error I used to play Minehut I guess? Yeah, I still watch the forums for some reason. (15/5/2023) Link to comment Share on other sites More sharing options...
BanditEagle Posted May 3, 2021 Share Posted May 3, 2021 Just now, pizzaschut said: Theres a error you didnt put "add" at the beginning of the line If I have helped you out in your post or you liked what I posted, please upvote and react to my post! It helps me a lot! Some Minehut Links: Server Rules • Staff Applications • News & Updates • Reports • Appeals Minehut: VIP (07/04/2021 --> Current)Elestra/Versa Realms: Manager (12/04/2021 --> Current) If you have any questions contact me!My Discord: BanditEagle#2481My Spigot Profile: https://www.spigotmc.org/members/banditeagle.935281/My IGN: BanditEagle Link to comment Share on other sites More sharing options...
skPnguin Posted May 3, 2021 Author Share Posted May 3, 2021 1 minute ago, BanditEagle said: you didnt put "add" at the beginning of the line I don't have any errors but it doesnt add anything to ur balance I used to play Minehut I guess? Yeah, I still watch the forums for some reason. (15/5/2023) Link to comment Share on other sites More sharing options...
BanditEagle Posted May 3, 2021 Share Posted May 3, 2021 12 minutes ago, pizzaschut said: I don't have any errors but it doesnt add anything to ur balance are you trying to add it to player's balance? or the variable? Also, what did you set {toggleclickers} and {multi::%player's uuid%} to? If I have helped you out in your post or you liked what I posted, please upvote and react to my post! It helps me a lot! Some Minehut Links: Server Rules • Staff Applications • News & Updates • Reports • Appeals Minehut: VIP (07/04/2021 --> Current)Elestra/Versa Realms: Manager (12/04/2021 --> Current) If you have any questions contact me!My Discord: BanditEagle#2481My Spigot Profile: https://www.spigotmc.org/members/banditeagle.935281/My IGN: BanditEagle Link to comment Share on other sites More sharing options...
skPnguin Posted May 3, 2021 Author Share Posted May 3, 2021 2 minutes ago, BanditEagle said: are you trying to add it to player's balance? or the variable? Also, what did you set {toggleclickers} and {multi::%player's uuid%} to? Toggleclickers is to disable clickers and multi is command /setmulti [<offline player>] [<text>]: permission: op trigger: if arg-1 is set: if arg-2 is set: set {multi::%player's uuid%} to arg-2 on first join: set {multi::%player's uuid%} to 1 command /multi: trigger: send "Multi: %{multi::%player's uuid%}%" I used to play Minehut I guess? Yeah, I still watch the forums for some reason. (15/5/2023) Link to comment Share on other sites More sharing options...
BanditEagle Posted May 3, 2021 Share Posted May 3, 2021 does the /multi command send anything? If so, what? If I have helped you out in your post or you liked what I posted, please upvote and react to my post! It helps me a lot! Some Minehut Links: Server Rules • Staff Applications • News & Updates • Reports • Appeals Minehut: VIP (07/04/2021 --> Current)Elestra/Versa Realms: Manager (12/04/2021 --> Current) If you have any questions contact me!My Discord: BanditEagle#2481My Spigot Profile: https://www.spigotmc.org/members/banditeagle.935281/My IGN: BanditEagle Link to comment Share on other sites More sharing options...
skPnguin Posted May 3, 2021 Author Share Posted May 3, 2021 3 minutes ago, BanditEagle said: does the /multi command send anything? If so, what? It sends the current multi that u have I used to play Minehut I guess? Yeah, I still watch the forums for some reason. (15/5/2023) Link to comment Share on other sites More sharing options...
_Tarna_ Posted May 3, 2021 Share Posted May 3, 2021 debug it. send or broadcast a message after each if statement to see if they are even being met. Discord - Tarna256#8675 In-game name - _Tarna_ Follow @Tarna_256 on Twitter --------------------------------------------------------- [VIP] - 7/27/2020 Support - 7/8/20 | 11/3/20 Helper - 11/3/20 - 2/21/21 Moderator - 2/21/21 - 5/17/21 - 5/17/21 - now Moderator - 12/20/22 - now --------------------------------------------------------- Link to comment Share on other sites More sharing options...
skPnguin Posted May 3, 2021 Author Share Posted May 3, 2021 33 minutes ago, Tarnerd said: debug it. send or broadcast a message after each if statement to see if they are even being met. wdym I used to play Minehut I guess? Yeah, I still watch the forums for some reason. (15/5/2023) Link to comment Share on other sites More sharing options...
BanditEagle Posted May 3, 2021 Share Posted May 3, 2021 13 minutes ago, pizzaschut said: wdym Like this: command /setmulti [<offline player>] [<text>]: permission: op trigger: broadcast "test1" if arg-1 is set: broadcast "test2" if arg-2 is set: broadcast "test3" set {multi::%player's uuid%} to arg-2 broadcast "test4" on first join: set {multi::%player's uuid%} to 1 broadcast "test5" command /multi: trigger: send "Multi: %{multi::%player's uuid%}%" broadcast "test6" essentially it will let you see which lines are broadcasted and which ones are not [if they are not]. Do the same with the first skript too. Then find out which lines work and which don't. If I have helped you out in your post or you liked what I posted, please upvote and react to my post! It helps me a lot! Some Minehut Links: Server Rules • Staff Applications • News & Updates • Reports • Appeals Minehut: VIP (07/04/2021 --> Current)Elestra/Versa Realms: Manager (12/04/2021 --> Current) If you have any questions contact me!My Discord: BanditEagle#2481My Spigot Profile: https://www.spigotmc.org/members/banditeagle.935281/My IGN: BanditEagle Link to comment Share on other sites More sharing options...
skPnguin Posted May 3, 2021 Author Share Posted May 3, 2021 31 minutes ago, BanditEagle said: Like this: command /setmulti [<offline player>] [<text>]: permission: op trigger: broadcast "test1" if arg-1 is set: broadcast "test2" if arg-2 is set: broadcast "test3" set {multi::%player's uuid%} to arg-2 broadcast "test4" on first join: set {multi::%player's uuid%} to 1 broadcast "test5" command /multi: trigger: send "Multi: %{multi::%player's uuid%}%" broadcast "test6" essentially it will let you see which lines are broadcasted and which ones are not [if they are not]. Do the same with the first skript too. Then find out which lines work and which don't. Im very confused I used to play Minehut I guess? Yeah, I still watch the forums for some reason. (15/5/2023) Link to comment Share on other sites More sharing options...
BanditEagle Posted May 3, 2021 Share Posted May 3, 2021 2 hours ago, pizzaschut said: Im very confused Just broadcast some texts between lines and when you run the command or the function or both, you can see which texts are being broadcasted and which are not. That way, if there are some texts that are not broadcasted, you can figure out which sections don't work, and work to debug it. If I have helped you out in your post or you liked what I posted, please upvote and react to my post! It helps me a lot! Some Minehut Links: Server Rules • Staff Applications • News & Updates • Reports • Appeals Minehut: VIP (07/04/2021 --> Current)Elestra/Versa Realms: Manager (12/04/2021 --> Current) If you have any questions contact me!My Discord: BanditEagle#2481My Spigot Profile: https://www.spigotmc.org/members/banditeagle.935281/My IGN: BanditEagle Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now