Jump to content

Chat Reactions Skript


itsKimo

Recommended Posts

 

This is a little chat reaction script I made.

Please don't send hate, just keep it to yourself, let me know if you have any suggestions!


HOW IT WORKS

Spoiler

unknown.png?width=400&height=34

HELP

Spoiler

unknown.png?width=400&height=76

ADDING REACTIONS

Spoiler

unknown.png?width=400&height=46

ADDING EXISTING REACTIONS

Spoiler

unknown.png?width=400&height=40

REMOVING REACTIONS

Spoiler

unknown.png?width=400&height=43

REMOVING NON-EXISTANT REACTIONS

Spoiler

unknown.png?width=400&height=43

LIST

Spoiler

unknown.png?width=400&height=49

LEADERBOARD

Spoiler

unknown.png?width=400&height=94

 

KimoReactions.sk

Don't want to install a file? Copy it from the code below. Keep in mind you need OP to use these commands. Enjoy!

Spoiler
every minute:
    if {reactions} is not set:
        send "&b&lKIMO REACTIONS &8| &bLooks like nobody got the word in time..." to all players
        set {reactions} to true
every minute:
    set {reaction} to random element out of {reactionlist::*}
    if {reactions} is set:
        send "&b&lKIMO REACTIONS &8| &bFirst to say &7%{reaction}% &bgets 100 points!" to all players
        clear {reactions}
on chat:
    if message contains "%{reaction}%":
        if {reactions} is not set:
            cancel event
            send "&b&lKIMO REACTIONS &8| &7%player% &bgot the word first and won 100 points!" to all players
            clear {reactiontime}
            set {reactions} to true
            add 1 to {reactionwins::%player's uuid%}
            add 100 to {points::%player's uuid%}
command /reaction <text> [<text>]:
    usage: &cUsage: /reaction help
    permission: op
    trigger:
        arg-1 is not "add" or "remove" or "list" or "help" or "top":
            send "&cUsage: /reaction help" to player
        else if arg-1 is "help":
            if arg-2 is set:
                send "&cUsage: /reaction help" to player
            else:
                send "&bKimo Reactions Help%nl%&b/reaction add (word) &7- adds a word to the reaction list%nl%&b/reaction remove (word) &7- removes a word from the reaction list%nl%&b/reaction top &7- shows you the top reaction wins%nl%&b/reaction list &7- shows you the reaction list%nl%&b/reaction help &7- brings this chat message%nl%&7&oKimo Reactions - Made by itsKimo" to player
        else if arg-1 is "top":
            if arg-2 is set:
                send "&cUsage: /reaction top" to player
            else:
                loop {reactionwins::*}:
                    add 1 to {_size}
                    if {_low.to.high.list::%loop-value%} is not set:
                        set {_low.to.high.list::%loop-value%} to loop-index
                    else:
                        set {_n} to 0
                        loop {_size} times:
                            set {_n} to {_n}+1
                            {_low.to.high.list::%loop-value-1%.%{_n}%} is not set
                            set {_low.to.high.list::%loop-value-1%.%{_n}%} to loop-index
                            stop loop
                wait 1 tick
                set {_n} to size of {_low.to.high.list::*}
                loop {_low.to.high.list::*}:
                    set {_high.to.low.list::%{_n}%} to loop-value
                    set {_n} to {_n}-1
                wait 1 tick
                send "&bKimo Reactions Top 10" to player
                loop {_high.to.low.list::*}:
                    add 1 to {_result}
                    set {_a} to loop-value parsed as an offlineplayer
                    send "&b%{_a}% &7- &b%{reactionwins::%loop-value%}% Reaction Wins" to player
                    if {_result} is 10:
                        stop
        else if arg-1 is "add":
            arg-2 is not set:
                send "&cUsage: /reaction add (word)" to player
            else:
                if {reactionlist::*} does not contain arg-2:
                    add arg-2 to {reactionlist::*}
                    send "&aWord ""%arg-2%&a"" added!" to player
                else:
                    send "&cThis word is already in the list!" to player
        else if arg-1 is "remove":
            arg-2 is not set:
                send "&cUsage: /reaction remove (word)" to player
            else:
                if {reactionlist::*} contains arg-2:
                    remove arg-2 from {reactionlist::*}
                    send "&cWord ""%arg-2%&c"" removed." to player
                else:
                    send "&cThis word is not in the list!" to player
        else if arg-1 is "list":
            if arg-2 is set:
                send "&cUsage: /reaction list" to player
            else:
                if size of {reactionlist::*} <= 0:
                    send "&bReaction Words: N/A" to player
                else:
                    send "&bReaction Words: %{reactionlist::*}%" to player

 

Edited by itsKimo
  • Like 1
  • Thanks 1
Link to comment
Share on other sites

looks awesome

since i havent tested it, i'll say its 7/10 since it probably works fine and it looks great.

question- does it give items, or money, or just leaderboard ranking on answering correctly?

Hello. I'm Generic. My IGN is popularkid. I know its silly. 

⫷⨽⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⨼⫸

Pronouns: He/Him

⫷⨽⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⨼⫸

Discord: Generic Username#2861

⫷⨽⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⨼⫸

Joined Minehut  ◄«◊»►  10/13/2019 ◄«◊»►

⫷⨽⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⨼⫸

Default◅ | 10/13/2019 - Current Time

 

 

Link to comment
Share on other sites

2 hours ago, GenericUsername said:

looks awesome

since i havent tested it, i'll say its 7/10 since it probably works fine and it looks great.

question- does it give items, or money, or just leaderboard ranking on answering correctly?

it adds 100 to {points::%player's uuid%}

 

 

image.png.bc433d6489d70ad831075fe76809b993.png
 

Owner of Lifestealed, Labs, Encore, UNOfficially and Observed
 

OG [VIP] 12/26/20 - 10/27/2021
OG [PRO] 12/27/21 - 11/18/2022
OG [LEGEND] 11/18/2022 - 3/14/2023
[DEFAULT] 3/14/2023 - 5/8/2024

[MOD] 5/8/2024 - Present

 

Link to comment
Share on other sites

cool, thanks 🙂

Hello. I'm Generic. My IGN is popularkid. I know its silly. 

⫷⨽⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⨼⫸

Pronouns: He/Him

⫷⨽⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⨼⫸

Discord: Generic Username#2861

⫷⨽⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⨼⫸

Joined Minehut  ◄«◊»►  10/13/2019 ◄«◊»►

⫷⨽⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⨼⫸

Default◅ | 10/13/2019 - Current Time

 

 

Link to comment
Share on other sites

ye, thanks 😄

Hello. I'm Generic. My IGN is popularkid. I know its silly. 

⫷⨽⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⨼⫸

Pronouns: He/Him

⫷⨽⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⨼⫸

Discord: Generic Username#2861

⫷⨽⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⨼⫸

Joined Minehut  ◄«◊»►  10/13/2019 ◄«◊»►

⫷⨽⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⨼⫸

Default◅ | 10/13/2019 - Current Time

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...