verify.sk

Created by WhiteWolf

Just so you know, we don't know the file format for every file. If it's just a bunch of random characters, it's probably a .zip or .jar.

# ----------------
# EASY VERIFY
# by AkuroTheWolf on Twitter

# https://forums.skunity.com/members/whitewolf.10955/
# ----------------

on join:
  set {verified.%player%} to false
  set {_verify1} to random integer between 0 and 9
  set {_verify2} to random integer between 0 and 9
  set {_verify3} to random integer between 0 and 9
  set {_verify4} to random integer between 0 and 9
  set {_verify5} to random integer between 0 and 9
  set {verify.%player%} to "%{_verify1}%%{_verify2}%%{_verify3}%%{_verify4}%%{_verify5}%"
  message "&8[&aVERIFY&8] &fYour verification code is &a%{verify.%player%}%&f."
  message "&8[&aVERIFY&8] &fRun &a/verify %{verify.%player%}% &fto chat."

command /verify [<text>]:
  usage: /verify (your code)
  description: Verify yourself to chat.
  trigger:
    if {verified.%player%} is false:
      if arg-1 is not set:
        message "&8[&aVERIFY&8] &fUsage: &a/verify (your code)"
      else:
        if length of arg-1 is greater than 5:
          message "&8[&aVERIFY&8] &6Your code should not be longer than 5 numbers."
        else if length of arg-1 is less than 5:
          message "&8[&aVERIFY&8] &6Your code should not be shorter than 5 numbers."
        else if arg-1 is not {verify.%player%}:
          message "&8[&aVERIFY&8] &cUnknown code."
        else:
          set {verified.%player%} to true
          message "&8[&aVERIFY&8] &aVerified! &fYou may now use the chat."
          stop
    if {verified.%player%} is true:
      message "&8[&aVERIFY&8] &6You have already been verified this session."

on chat:
  if {verified.%player%} is false:
    cancel event
    message "&8[&aVERIFY&8] &fYour verification code is &a%{verify.%player%}%&f."
    message "&8[&aVERIFY&8] &fRun &a/verify %{verify.%player%}% &fto chat."

command /easyverify:
  trigger:
    message "&8&m--------------------"
    message "&aEasyVerify &fby &[email protected] on Twitter"
    message "&8&m--------------------"
    message "&fCheck &aforums.skunity.com/members/whitewolf.10955/ &fregularly for updates."
    message "&8&m--------------------"