• 0

    posted a message on Macro / Keybind Mod
    Quote from SPThiel»

    @Zath

    (few things before I start:

    1. pls do not use the 'code'-tag :) it messes around with the actual content use the 'pre'-tag

    2. do your wait in ms then you only have to multiply by 1000 to get the random range

    3. there is no if but one if in your code

    4. I would highly recommand not to greet everybody since some player might connect a few times within a short period of time

    )


    Not to the actual script:




    $${

    unset(&messages[])

    &messages[] = "Welcome back, %JOINEDPLAYER%"

    &messages[] = "Hello , %JOINEDPLAYER%"

    &messages[] = "This is another greeting message to you %JOINEDPLAYER%"

     

    arraysize(&messages[],#size)

    dec(#size,1)

    random(#text,0,%#size%)

     

    random(#delay,5600,8400)

     

    wait(%#delay%ms)

     

    echo(%&messages[%#text%]%)

    }$$



    I'm not sure what you mean by using 'pre' tag instead of 'code' if you could go in depth a bit more about that, that'd be awesome. ALSO my reaction script has 'broken' and it keeps repeating the word I was using to test it instead of the actual word that's presented by the plugin (Which was desk). I'm not sure what I did wrong, here's the pre? code?:

    ${
    
    strip(&chat,%CHAT%)
    
    ifmatches(%&chat%,"\[Reaction\] \*\*\*\* Type this word! \"(.+?)\" \*\*\*\*")
    
    random(#rnd,160,80)
    
    wait(%#rnd%t)
    
    match(%&chat%,"\[Reaction\] \*\*\*\* Type this word! \"(.+?)\" \*\*\*\*",{&word})
     // [Reaction] **** Type this word! "desk" ****
    
     //waits between 3.36 and 7.62 seconds so the admins have a harder time finding that
    
    echo(%&word%)
    
    endif
    
    }$
    Posted in: Minecraft Mods
  • 0

    posted a message on Macro / Keybind Mod
    Quote from SPThiel»

    @Mart ye you're right so (totally forgot about that) @Zath so following should work

    $${
    strip(&chat,%CHAT%)
    ifmatches(%&chat%,"\[Reaction\] \*\*\*\* Type this word! \"(.+?)\" \*\*\*\*")
    match(%&chat%,"\[Reaction\] \*\*\*\* Type this word! \"(.+?)\" \*\*\*\*",{&word})
    random(#rnd,500,1800)
    wait(%#rnd%ms) //waits between 0.5 and 1.8 seconds so the admins have a harder time finding that
    //(won in 0.00 seconds would be kinda obvious I think)
    //remove the wait if you don't want it to have a delay
    echo(%&word%)
    endif
    }$$





    How could I add variants to the different greeting messages in my welcome.txt script?


    ${
    
    random(#rnd,168,112) 
    
    //should be like 5.6 - 8.4 seconds
    
    wait(%#rnd%t)
    
    ECHO("Welcome back, %JOINEDPLAYER%!")
    
    endif
    
    }$



    EDIT: changed waiting values to 'more human' reaction time and added some context?

    EDIT #2: I was able to fix the delay by adding it before 'match()' parameter

    EDIT #3: Changed the question

    Posted in: Minecraft Mods
  • 0

    posted a message on Macro / Keybind Mod

    It's not working so I tried to put it into a txt file and run it that way but it says "Dangling meta character '*' near index 14 \[Reaction\] **** Type this word! '(,+?)" **** and then I tried to add the delay you were using from the script you made and it made my welcome back not work, here's the code for that.

    ${
    random(#rnd,1200,2700)
    wait(%rnd%ms)
    ECHO("Welcome back, %JOINEDPLAYER%")
    endif
    }$
    Posted in: Minecraft Mods
  • 0

    posted a message on Macro / Keybind Mod

    Hey guys!


    I was wondering if someone knew how to create a chat script that would see a word in chat and retype it out. I've attached an example image of what gets said in the chat. I'd like to be able to win this "minigame" using a macro, please get back to me soon!


    Thanks you!

    - Zath137

    Posted in: Minecraft Mods
  • 0

    posted a message on Realistic First-Person Rendering (A re-invention of First Person View)

    Is there anyway to lower the shield by going by changing the position of the shield in model/item/shield/shield_block.json?

    Posted in: Minecraft Mods
  • 0

    posted a message on Macro / Keybind Mod

    That fixed it thank you so much!

    Posted in: Minecraft Mods
  • 0

    posted a message on Macro / Keybind Mod

    I'm trying to make it so when the tool I'm holding in my hand gets to or under 25 durability it will display that message, please help! I'm also trying to do this with health, hunger, armor and oxygen! Please help!


    $${IIF(DURABILITY <= 25);LOG("Your tool is going to break soon!")}$$


    $${IIF(ARMOUR <= 25),LOG("&c&lYour armour is going to break soon!")}$$


    $${IIF(HEALTH <= 6),LOG("&c&lDeath is imminent!")}$$


    $${IIF(HUNGER <= 6),LOG("&e&lYou need to eat!")}$$


    $${IIF(OXYGEN <= 3),LOG("&c&lYou need air soon!")}$$

    Posted in: Minecraft Mods
  • 0

    posted a message on Macro / Keybind Mod

    How can I include punctuation in an ECHO statement?


    EDIT: SOLVED!

    Posted in: Minecraft Mods
  • 0

    posted a message on Realistic First-Person Rendering (A re-invention of First Person View)

    I've been waiting so long for an update to this mod! Thank you SOO much! Also you should add a customization button that reloads your model, I often find it just disappearing when I teleport (/home) then I'd have to relog to reload it (F1 doesn't work, it just cycles it)

    Posted in: Minecraft Mods
  • 0

    posted a message on Varied Block Texture Not Working?

    If anyone knows why this is happening please help fix! Here's a download to rp with only randomized textures & blockstates.

    Posted in: Resource Pack Discussion
  • 0

    posted a message on Tiny City Pack 1.15.2 REVIVED 2020! ~Build a miniature city!~

    This is a very cute pack, I need to try this out!

    Posted in: Resource Packs
  • 0

    posted a message on Biomes O' Plenty - Over 50 new biomes, with new trees, plants, mobs, and more!

    Thanks for the 1.10 update I love this so much! It seems that so many GOOD mods are being not updated and forgotten. Thank you very much for keeping this mod alive!

    Posted in: Minecraft Mods
  • 0

    posted a message on Sonic Ether's Unbelievable Shaders [compatible with Minecraft 1.12.2 via OptiFine]

    Is there a way I can only use the water texture instead of the whole shader pack?

    Posted in: Minecraft Mods
  • 0

    posted a message on /help not displaying all perms given to a group

    Well it turns out that Essentials isn't too supported on 1.8

    Posted in: Server Support and Administration
  • 0

    posted a message on /help not displaying all perms given to a group

    I'm using zPermissions and I set a group to have a disguisecraft perms node and it doesn't display anything but essentials commands. How I can fix this so it show the ALL the groups permissions doing /help.


    (Can provide more info if needed)

    Thank you so much for your time!

    Posted in: Server Support and Administration
  • To post a comment, please .