Jump to content

Multi skript doesnt work


Recommended Posts

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%}

 

Link to post
Share on other sites
Posted (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 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#2481
My Spigot Profile: https://www.spigotmc.org/members/banditeagle.935281/
My IGN: BanditEagle

Link to post
Share on other sites
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

2021-05-03_10_55_15.thumb.png.98505380fa39f012023d3ba43afc782c.png

Link to post
Share on other sites
Just now, pizzaschut said:

Theres a error

2021-05-03_10_55_15.thumb.png.98505380fa39f012023d3ba43afc782c.png

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#2481
My Spigot Profile: https://www.spigotmc.org/members/banditeagle.935281/
My IGN: BanditEagle

Link to post
Share on other sites
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#2481
My Spigot Profile: https://www.spigotmc.org/members/banditeagle.935281/
My IGN: BanditEagle

Link to post
Share on other sites
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%}%"

 

Link to post
Share on other sites

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#2481
My Spigot Profile: https://www.spigotmc.org/members/banditeagle.935281/
My IGN: BanditEagle

Link to post
Share on other sites

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_

---------------------------------------------------------

[VIP] - 7/27/2020

Support - 7/8/20 | 11/3/20

Helper  - 11/3/20 - 2/21/21

Moderator - 2/21/21 - Present

---------------------------------------------------------
image.png.2111009afbd8bef10966ba9ede35a199.pngimage.png.70849a9b84e0347ce107b8e3eaee312c.png
 

Link to post
Share on other sites
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#2481
My Spigot Profile: https://www.spigotmc.org/members/banditeagle.935281/
My IGN: BanditEagle

Link to post
Share on other sites
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

Link to post
Share on other sites
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#2481
My Spigot Profile: https://www.spigotmc.org/members/banditeagle.935281/
My IGN: BanditEagle

Link to post
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...