-
Posts
92 -
Joined
-
Last visited
Content Type
Profiles
Forums
Gallery
Blogs
Events
Store
Downloads
Posts posted by Ikey
-
-
Hey. On my crates skript I have noticed a rise in glitches, mostly being when you try to right click on the block with the key, if the key is in a stack of more than 1 it will not think that the key is a key.
Here is my code:
on right click: if "%region at player%" contains "crates": if event-block is chest: if name of player's held item is "&a&lPlaytime Crate Key": cancel event remove 1 of event-item from player's inventory
Is there any way to make it so that if the player has over 1 of the item, it will still register as the item and not some other item.
-
1 hour ago, AgentGamerPro said:
ah okay so its already parsed as text then. im not sure what to do then.
ok thanks for trying to help me
-
55 minutes ago, AgentGamerPro said:
ah i think i see it. The problem might be that its parsed as a timespan. Try parsing it as text, then replacing.
So this is what I've got back after trying.
Here is the code:
command /timer: trigger: set {timer.%player%} to true set {_start} to now while {timer.%player%} is true: set {timer.total.%player%} to difference between now and {_start} set {event.boatrace.lap} to 0 send action bar "&bLap %{lap.%player%}%/3 &b%{timer.total.%player%}%" to player wait 1 second command /timerstop: trigger: set {timer.%player%} to false set {total.%player%} to {timer.total.%player%} parsed as text replace all "seconds" with "" in {total.%player%} set {total.%player%} to {total.%player%} parsed as number send "{@prefix} &b%{total.%player%}%"
Â
-
52 minutes ago, AgentGamerPro said:
ah i think i see it. The problem might be that its parsed as a timespan. Try parsing it as text, then replacing.
Ok will do
-
11 hours ago, AgentGamerPro said:
you can use something like this
replace all "seconds" with "" in {variable} set {variable} to {variable} parsed as integer
Â
Ok so I've tried a bit of testing.
The problem is still here as it is still sending the "seconds" text string along with the number. Here is the code that I have at the minute which isn't working.
command /timer: trigger: set {timer.%player%} to true set {_start} to now while {timer.%player%} is true: set {timer.total.%player%} to difference between now and {_start} set {event.boatrace.lap} to 0 send action bar "&bLap %{lap.%player%}%/3 &b%{timer.total.%player%}%" to player wait 1 second command /timerstop: trigger: set {timer.%player%} to false set {total.%player%} to {timer.total.%player%} set {timer.total.%player%} to {total.%player%} replace all "seconds" with "" in {total.%player%} send "{@prefix} &b%{total.%player%}%"
Does it look like I have done anything wrong becau se this is the text feed that is coming back after I do /timerstop:
The skript has no errors so I'm lost on whats wrong.
Thanks. -
3 minutes ago, AgentGamerPro said:
you can use something like this
replace all "seconds" with "" in {variable} set {variable} to {variable} parsed as integer
Â
thanks!
-
So, I think I have found the error.
Here is the code from where I expect its going wrong:
Âcommand /timer: trigger: set {timer.%player%} to true set {_start} to now while {timer.%player%} is true: set {timer.total.%player%} to difference between now and {_start} set {event.boatrace.lap} to 0 send action bar "&bLap %{lap.%player%}%/3 &b%{timer.total.%player%}" to player wait 1 second command /timerstop: trigger: set {timer.%player%} to false
So, here is what I think is happening:
The {timer.total.%player%} variable is getting set to how much seconds that the stopwatch has been on for, but it is adding the "seconds" word to the end of the variable. Has anyone any idea how to remove the "seconds" part out of the variable so I can set it as a integer or number?
Thanks.
-
Hey. I'm writing a skript for my server for the boat race event im working on. I have got stuck at the highscore stage.
What I'm trying to do:
When you complete the event, it will check if your highscore is greater than the current time, if it is then it will set the highscore to the time that you just done on the event.If its not less than your current highscore, then it will just say the time you completed.
Whats wrong:
Whenever I try the skript it breaks. The highscore is never really set to anything and if it is set to something then it is set to <none>The skript doesn't whats inside the timer variable, and if its grater than or less than the highscore.
The skript (important parts from it):
command /highscore: Â Â trigger: Â Â Â send "{@prefix} &fYour highscore on the Boat Race is &6{event.highscore.%player%}%" #Part where I think it doesn't work. I dont know to either set it as a integer or number or what if {timer.total.%player%} < {event.highscore.%player%}: set {timer.total.%player%} to {event.highscore.%player%} send "{@prefix} &fYou have beat your highscore with the time of &6%{event.highscore.%player%}%" if {timer.total.%player%} > {event.highscore.%player%}: send "{@prefix} &fYou have finished the boat race with the time of &6%{timer.total.%player%}%" command /timer: trigger: set {timer.%player%} to true set {_start} to now while {timer.%player%} is true: set {timer.total.%player%} to difference between now and {_start} set {event.boatrace.lap} to 0 send action bar "&bLap %{lap.%player%}%/3 &b%{timer.total.%player%}" to player wait 1 second command /timerstop: trigger: set {timer.%player%} to false
Â
-
21 hours ago, AgentGamerPro said:
If you have WorldGuard and skript 2.1+, you can use the "on region enter" event to detect when a player enters a region (or in your case, makes a lap)
Thanks!
-
Hey. I am writing a skript for my server and a boat race event.
I need to make it so there are 3 laps and a finishing point but I can't seem to get any event that works for a boat driving over a block.
I saw a past forum on another site that someone said to use on vehicle move: but that isn't working. (it requires Skellet, and I have Skellet on the highest version compatible with Skript) The surprising thing is that it doesn't come back with any error messages>
Does anyone know a better event that would work with this?
Thanks. -
Hey. I am working on a Boat Race event for my server, and I have pretty much finished it, apart from a leaderboard system.
Variables I am using:
{highscore.%player%} #Player's highscore in minutes to milliseconds
If anyone could make a quick leaderboard system that shows the top 10 fastest times on the race event, that would be great.Thanks.
-
12 hours ago, AgentGamerPro said:
Try adding aÂ
stop
Also check if the bot is sending a message in discord when the server starts, like
Server has stopped
or server has started
So I have looked through and added the 'stop' part and it doesn't stop it.
On the skript that has the commands like to see who's on it loops anyway even though there is no server starting/stopping messages or events within that skript.
On my other skript however, it was looping and had the start/stop events on it but that skript is disabled right now so it shouldn't be interfering with the other skript.
-
An Update:
I have deleted and re added the skript. No good UNLESS the server had restarted in between and successfully loaded without the skript.For some reason Skript is looping the skript every time the server is restarting/stopping/starting. If anyone knows why please respond Â
-
Just now, SkriperManIkey said:
no.
Â
Just now, Lapzzo said:Thats really weird. Sorry I cant fix this, hopefully someone can
Ok thanks
- 1
-
2 minutes ago, Lapzzo said:
Is there a loop somewhere in any skript?
no. I am trying to remove and readd the skript now to test if the command is not loaded anywhere else.
-
1 hour ago, Lapzzo said:
There's probably a loop somewhere. Can we see the skripts?
Sure, here it is. If you need more then please ask. I will also send the other one too.
discord command ?online: trigger: make embed: set the title of embed to title with text "Online Now" set the description of embed to "Online: %number of all players%" set the colour of the embed to green set the footer of embed to footer with text "Ikey Survival" and icon "https://cdn.discordapp.com/attachments/862676887700373525/868822416548298862/Season_4_BETTER.png" set the timestamp of embed to now send the last created embed to event-channel with "{@botname}"
on guild message received seen by "Ikey Survival": if event-channel is channel with id "816241301737177088": broadcast "&8[&3Discord&8] &6%event-member% &7said &6%event-message%"
Â
-
Hey there anyone know why on both Vixio and Skript every time there is a message sent it sends it 3 times? Its almost like it loops.
I have a photo here of it doing it both in game and on discord.
-
On 8/7/2021 at 1:06 PM, Skray said:
does it work with fortune
should do. Its on the event block break so it counts any block break.
-
15 hours ago, Lapzzo said:
I think its something to do with minecraft. Im telling you a mod said in 1.17 custom domains dont work. I cant find the post sos
Oh ok
-
13 hours ago, Trent said:
This is something that's broken on 1.17 but fixed on 1.17.1
Oh ok, thanks Trent
-
Hey there, my Minehut server has just updated to 1.17 although all the custom domains don't work.
If I were to use the domain as it is you would have to try join the minehut server which would take you to the hub and then type /join ikeysurviv which is so inefficient. Is there any way on fixing this?
Thanks.Â
-
14 hours ago, CoolProgrammer said:
Yeah, it should glow.
Its not though.
-
On 7/22/2021 at 4:52 AM, MidSilencer said:
In this plugin if you die you lose a heart and if sombody kills you they gain a heart and i would really like it if manhunt added this i sent the link
You can now manually do this if you have the .jar file. Go to File Manager and then to /plugins and either upload or drag drop it into the folder. Restart your server and it should work
-
You can now manually do this if you have the .jar file. Go to File Manager and then to /plugins and either upload or drag drop it into the folder. Restart your server and it should work
Copy to clipboard
in Discussion
Posted
Hey, I'm wondering if its possible in skript to copy and paste a text which is in chat. I have skript-json added too, if that can do anything to make it possible. If not, is there any addons that have this feature?
Thanks.