Jump to content

Reaction Message Script (Customizable!)


Parsafari
 Share

Recommended Posts

Ok so I was bored so I decided to make a reaction message script. This is basically what the script does:example.PNG.b663e491bcd8cdda9855dab95fc242c1.PNG

Here is the script: (you can download the script or copy & paste this one) (Important info at the end of the post)

every 210 seconds:
    set {reactionmessage} to random integer between 0 and 5 #Replace 5 with the number of words you want
    
    #Copy & paste this section and replace the number and the word to your likings.
    #=============
    if {reactionmessage} is equal to 0:
        set {reactionword} to "FariMC"
    #=============
    if {reactionmessage} is equal to 1:
        set {reactionword} to "Prison"
    if {reactionmessage} is equal to 2:
        set {reactionword} to "Mining"
    if {reactionmessage} is equal to 3:
        set {reactionword} to "Plots"
    if {reactionmessage} is equal to 4:
        set {reactionword} to "Discord"
    if {reactionmessage} is equal to 5:
        set {reactionword} to "Tokens"

    set {reactionenabled} to 1
    broadcast ""
    broadcast "&bFirst person to type &e%{reactionword}% &bwins 10 Tokens."
    broadcast ""

    set {reactiontimer} to 0
    wait 1 seconds
    add 1 to {reactiontimer}
    wait 1 seconds
    add 1 to {reactiontimer}
    wait 1 seconds
    add 1 to {reactiontimer}
    wait 1 seconds
    add 1 to {reactiontimer}
    wait 1 seconds
    add 1 to {reactiontimer}
    wait 1 seconds
    add 1 to {reactiontimer}
    wait 1 seconds
    add 1 to {reactiontimer}
    wait 1 seconds
    add 1 to {reactiontimer}
    wait 1 seconds
    add 1 to {reactiontimer}
    wait 1 seconds
    add 1 to {reactiontimer}
    wait 1 seconds
    add 1 to {reactiontimer}
    wait 1 seconds
    add 1 to {reactiontimer}
    wait 1 seconds
    add 1 to {reactiontimer}
    wait 1 seconds
    add 1 to {reactiontimer}
    wait 1 seconds
    add 1 to {reactiontimer}

    set {reactionenabled} to 0
    if {reactionanswered} is equal to 1:
        set {reactionanswered} to 0
    else:
        broadcast "&cNobody got the word in time :("

on chat:
    if message contains "%{reactionword}%":
        if {reactionenabled} is equal to 1:
            if {reactionanswered} is equal to 0:
                cancel event
                broadcast "&e%player% &bwon in %{reactiontimer}% seconds!"
                set {reactionanswered} to 1
                #Do Stuff Here

Here are some example rewards that you can put at #Do Stuff Here:

  • give 5 of diamond to player - this one gives 5 diamonds to the player
  • Execute console command "eco give %player% 1000" - this one gives 1000$ to the player (requires essentialsX)
  • or any other command

If you find any bugs or have any suggestions leave a reply down below!

Btw I have a game development channel, you can check it out if you are interested! : Click Here!

th63.thumb.jpg.2016a68ecbdf5696b5898b6e733a525e.jpg

You can also download the skript file here:

ReactionMessage.sk

Indie Game Developer

C# Programmer & Skripter

DiscordEmoji9.gif.405514140552c97439f718020548c0e6.gif

Link to comment
Share on other sites

  • 2 months later...

Locked - Necroposting

Please refrain from posting on threads that have been inactive for over a month.

Support  July 29, 2020 → November 3, 2020

► Helper November 3, 2020 → February 22, 2021

► Moderator February 22, 2021 → May 17, 2021

 I might not always respond to forum dms, however I am always contactable on discord (mig#0069)

Screen Shot 2020-03-20 at 5.23.33 pm.png

Link to comment
Share on other sites

  • Migins locked this topic
Guest
This topic is now closed to further replies.
 Share



×
×
  • Create New...