Jump to content

Ikey

Member
  • Posts

    92
  • Joined

  • Last visited

Posts 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. 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.image.png.c9c96f4adcab0cc216748210f8592581.png

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

     

  4. 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:
    image.png.148093651d6318658ff7500259224c62.png

    The skript has no errors so I'm lost on whats wrong.

    Thanks.

  5. 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!

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

  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. 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%"

     

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

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

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

    https://www.spigotmc.org/resources/lifesteal-smp-plugin.94387/?__cf_chl_jschl_tk__=pmd_c997901113d32b0f580d3a006140c7b320cea1ee-1626925080-0-gqNtZGzNAfijcnBszQii

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