AutoReply

Discussion in 'Skript' started by ByDominicBlon, May 26, 2018.

Thread Status:
Not open for further replies.
  1. Hey I wish that by putting the word "horse" say by broadcast "horse on" depending if the {horseply} is true or false but if it is true or false the same says the two variants that would be "horse on" / "horse off" "I would like you to help me thanks.

    Code (Text):
    on chat:
        if chat message contains "horse":
            if {horseply} is true:
            wait 1 seconds
            broadcast "&ahorse on"
            stop
    on chat:
        if chat message contains "horse":
            if {horseply} is false:
            wait 1 seconds
            broadcast "&ahorse off"
            stop
     
  2. try to tab wait 1 second, broadcast and stop one more time
     
  3. nothing
    .................
     
  4. Does this work for u?

    Code (Text):
    command /horsenotify [<text>]:
        trigger:
            if arg-1 is "on":
                if {horsenotify::%player%} doesn't exist:
                    set {horsenotify::%player%} to true
                    message "notify on"
                else:
                    set {horsenotify::%player%} to true
                    message "notify on"
            if arg-1 is "off":
                if {horsenotify::%player%} doesn't exist:
                    set {horsenotify::%player%} to false
                    message "notify off"
                else:
                    set {horsenotify::%player%} to false
                    message "notify off"
    command /horsenotifydelete [<text>] [<offlineplayer>]:
        trigger:
            if arg-1 is "single":
                if arg-2 is set:
                    delete {horsenotify::%arg-2%}
                else:
                    message "Define a player"
            else if arg-1 is "all":
                delete {horsenotify::*}
             
    on chat:
        if chat message contains "horse":
            if {horsenotify::%player%} is true:
                message "HORSE ON"
                stop
            else:
                message "Horse off"
           
     
  5. no :( I would like it to be simply an autoreply that does not need a command ...
     
  6. Can you be more specific? The only thing this command does is toggling the notification mode?
     
  7. Can we speak privately?
     
  8. Feel free to private message me and I'll get back when I am home later :).
     
Thread Status:
Not open for further replies.