Jump to content

Pryzmm

Moderator
  • Posts

    1,923
  • Joined

  • Last visited

  • Days Won

    33

Posts posted by Pryzmm

  1. DISCORD: agent gamer 100#0420

    heres a big ol' challenge for you @SmellyBurger.

    EXPLANATION: in a dream video, players were hunting down dream before he could defeat the ender dragon. I want something similar to this, except I want it so you can choose different goals (ex. /manhunt start, chooses random event.) There are 2 events i currently want. Get a diamond, and wear a full set of iron armor.

    WHAT I WANT: As explained above, i want a manhunt skript, with 1 of 2 goals, 50/50 chance of being selected. (Diamond, or full iron armor) The minimum commands a wish for is help, start, join, and leave (and if they could all start with /manhunt that'll be great) and for bonus points, an admin being able to choose who the person being hunted will be. When the player being hunted finishes the goal, the game ends and teleports them back to {spawn}. If the hunted dies, the game ends, the hunters win, and once again are teleported to {spawn}. (oh and hunters can respawn, player being hunted can't) ok thanks 😄

  2. Unfortunately i don't think there is a current way to revert servers... to my knowledge anyway. A suggestion in the future i would give to you if to download the world by doing /dl regularly. Later if it dosen't save, you can  /ul by using file.io. Another way of saving your server is to make sure /save-on is enabled. But it's also possible your server could have been griefed. To prevent greifs, /whitelist on, then /whitelist add (player). You can later install worldguard (worldedit required) to protect your builds. I hope this has helped you, hopefully you can rebuild your map. Let me know if this was helpful to you cause this took a while to type 😕

  3. isn't related no minehut but you're here reading this, so you care 😄

     

    I can't sign into minecraft. I've tryed numerous things (signed out of one computer cause im already signed into 2, Reset password, reinstalling minecraft, etc.) I have EasyMC (alt accounts) but I want to sign into my main. I've contacted customer support and still waiting for a response. Please, if you can, help.

    EDIT: I can't sign into the minecraft website either. On my other computers it works fine.

  4. first off, don't send like 3 seperate messages at once. use the edit feature

    second, i need it to spawn in a specific area, and your skript is giving me the error from the beginning

     

    @ztimhirsch1here is the current code
     

    command /create [<text>] [<number>]:
        permission: skript.create
        permission message: "&c&lHey! &r&4Sorry, but you can't use this command."
        trigger:
            if arg-1 is not set:
                send "&c&l[&4&lError&c&l] &r&4Mob is not set."
            if arg-1 is "Mobs":
                send "&c&l[&4&lMobs&c&l] &4Cow, Pig"
            if arg-1 is "Cow":
                if arg-2 is not set:
                    send "&c&l[&4&lError&c&l] &r&4Set the amount of mobs you wish to summon"
                else:
                    set {number} to arg-2
                    summon {number} cows at location(122, 65, -282 in world "world")

     

  5. don't mind me, just creating codes at 6:00 AM with school 3 hours later... help.

    anyways @iCraft85i think i know what you want. I've used this before for a skript for /withdraw/

    on script load:
    	if {test.namepre} is not set:
    		set {test.namepre} to "&a&lTest Skript" #Change to what you want
    	if {test.lore1} is not set:
    		set {test.lore1} to "&eRight click to redeem" #Change to what you want
    
    command /test:
        trigger:
            add 1 paper named "%{banknotes.namepre}%" with lore "%{test.lore1}%" to the player #If you want more lore clone lines 5-6 to %{test.lore2}%, etc.

    This skript has not been tested so let me know if there are any errors

  6. I've been having trouble with this, and i'm sure some other people have too. But after a while i finally got it running and working. Here it is. Rainbow chat! Most of the skript was made by Sorbon, but he never told us how to put them together, so i did. In addition, i made a custom /rbc command so you can type in rainbow. This is supported by RGB colors and is all plain skript. No addons like SkRayfall, SkQuery, nothing. Here is the skript, free to use. Again, credit goes to Sorbon.

    Spoiler

    on load:
        set {hex::*} to split "0|1|2|3|4|5|6|7|8|9|a|b|c|d|e|f|k|l|m|n|o|r" at "|"
    function rgbToHex(values: numbers) :: string:
        loop {_values::*}:
            set {_r} to "%{_r} ? ""<##""%%{hex::%((loop-value - mod(loop-value, 16)) / 16 + 1)%} ? """"%%{hex::%mod(loop-value, 16) + 1%} ? """"%"
        return colored "%{_r}%>"
    function hslToRgb(h: number, s: number, l: number) :: integers: #
        set {_h} to {_h}/360
        if {_s} = 0:
            set {_r}, {_g} and {_b} to {_l}
        else:
            set {_q} to (({_l} * ({_s} + 1)) if {_l} < 0.5, else ({_l} + {_s} - {_l} * {_s}))
            set {_p} to (2 * {_l}) - {_q}
            set {_r} to hueToRgb({_p}, {_q}, {_h} + 1 / 3)
            set {_g} to hueToRgb({_p}, {_q}, {_h})
            set {_b} to hueToRgb({_p}, {_q}, {_h} - 1 / 3)
        return round(min(255, (255 * {_r}))), round(min(255, (255 * {_g}))) and round(min(255, (255 * {_b})))
    function hueToRgb(p: number, q: number, t: number) :: number:
        add 1 to {_t} if {_t} < 0
        remove 1 from {_t} if {_t} > 1
        return {_p} + ({_q} - {_p}) * 6 * {_t} if {_t} < 1 / 6
        return {_q} if {_t} < 1/2
        return {_p} + ({_q} - {_p}) * (2 / 3 - {_t}) * 6 if {_t} < 2 / 3
        return {_p}
    function gradient(input: string, color-from: integers, color-to: integers) :: string:
        loop {_color-from::*}:
            set {_i::%loop-index%} to round(({_color-to::%loop-index%} - loop-value) / length of {_input})
        loop length of {_input} times:
            if subtext of {_input} from indices loop-number - 1 to loop-number - 1 = "§":
                set {_format} to "%{_format} ? """"%&%subtext of {_input} from indices loop-number to loop-number%" if {hex::*} contains subtext of {_input} from indices loop-number to loop-number
                clear {_format} if subtext of {_input} from indices loop-number to loop-number = "r"
                continue loop
            set {_r} to "%{_r} ? """"%%rgbToHex({_color-from::*})%%{_format} ? """"%%subtext of {_input} from indices loop-number to loop-number%"
            set {_color-from::*} to ({_color-from::1} + {_i::1}), ({_color-from::2} + {_i::2}) and ({_color-from::3} + {_i::3})
        return colored {_r}
    function rainbow(input: string, saturation: number = 1, lightness: number = 0.5) :: string:
        loop (length of {_input}) times:
            if subtext of {_input} from indices loop-number - 1 to loop-number - 1 = "§":
                set {_format} to "%{_format} ? """"%&%subtext of {_input} from indices loop-number to loop-number%" if {hex::*} contains subtext of {_input} from indices loop-number to loop-number
                clear {_format} if subtext of {_input} from indices loop-number to loop-number = "r"
                continue loop
            set {_l} to 360 / (length of {_input})
            set {_r} to "%{_r} ? """"%%rgbToHex(hslToRgb((loop-number * ({_l} if loop-number != 1, else 1)), {_saturation}, {_lightness}))%%{_format} ? """"%%subtext of {_input} from indices loop-number to loop-number%"
        return colored {_r}
    function rainbow2(input: string, saturation: number = 1, lightness: number = 0.5, stretch: number = 5, offset: number = 0) :: string:
        loop (length of {_input}) times:
            # ---- Remove the part below to remove color formatting  
            if subtext of {_input} from indices loop-number - 1 to loop-number - 1 = "§":
                set {_format} to "%{_format} ? """"%&%subtext of {_input} from indices loop-number to loop-number%" if {hex::*} contains subtext of {_input} from indices loop-number to loop-number
                clear {_format} if subtext of {_input} from indices loop-number to loop-number = "r"
                continue loop
            # ---- Remove the part above to remove color formatting  
            set {_l} to loop-number * {_stretch}+{_offset} if loop-number*{_stretch}+{_offset} <= 360, else mod(loop-number*{_stretch}+{_offset}, 360)
            set {_r} to "%{_r} ? """"%%rgbToHex(hslToRgb({_l}, {_saturation}, {_lightness}))%%{_format} ? """"%%subtext of {_input} from indices loop-number to loop-number%"
        return colored {_r}

    command /rbc [<text>]:
        permission: Skript.Rbc
        permission message: &8&l[&6&lColor&8&l] &c&lError: &4You don't have the required permission to perform this command
        trigger:
            if arg-1 is not set:
                send "&8&l[&6&lColor&8&l] &c&lError: &4Please say what you want to say in chat!"
            else if arg-1 is set:
                set {text} to arg-1
                make player say colored rainbow(colored arg-1)

    Please let me know what you think of the skript. And if you see Sorbon, tell him I said hi :D

    EDIT: For some reason, you do need to be opped. At least for me. I have other lines in my skript that aren't supposed to be used in what im doing, so i don't know. The command works fine, it's the color that needs work

    EDIT 2: Thanks to Sorbon himself, the skript issue has been solved! No errors will appear any longer. The skript above has been changed.

     

    • Thanks 1
  7.  

    On 9/26/2020 at 8:48 PM, Sn0wGo said:

    I'm making scripts for anyone who asks, quite bored right now, probably won't continue this for long.

    @Sn0wGocan you make a skript with no addons that sets 2 colors (beginning and end) for chat color. fading between the 2 colors. Kinda like cherryPR's system

  8. 9 hours ago, _Tarna_ said:

    summon {number} of cows at location(122, 65, -282, world "world")

    Percent Signs are only used to display variables inside of a string. If you are not doing that, the % are not needed. 

    Im not getting the same error, but it's still an error. "numeric ids are not supported anymore"

×
×
  • Create New...