Jump to content

Ikey

Member
  • Posts

    92
  • Joined

  • Last visited

Everything posted by Ikey

  1. 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.
  2. 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.
  3. Ikey

    Variables

    ok thanks for trying to help me
  4. Ikey

    Variables

    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%}%"
  5. Ikey

    Variables

    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.
  6. Ikey

    Variables

    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.
  7. Ikey

    Variables

    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
  8. 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.
  9. 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.
  10. 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.
  11. 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
  12. no. I am trying to remove and readd the skript now to test if the command is not loaded anywhere else.
  13. 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%"
  14. 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.
  15. Ikey

    i need autopickup

    should do. Its on the event block break so it counts any block break.
  16. Ikey

    Domains and 1.17

    Oh ok, thanks Trent
  17. Ikey

    Domains and 1.17

    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.
  18. 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
  19. 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
×
×
  • Create New...