Congratulating

Posted by Senchizinko on Fri 22 Oct 2010 06:59 AM — 2 posts, 12,750 views.

USA #0
ok i made a trigger to congradulate people when they gain a level, but it congradualtes myself as well, ive tried applying it so it doesnt like its shown in fun with triggers but i guess ive done something wrong heres the trigger


* Congratulations!: * reaches level *! *

i need to make it so it doesnt congradulate 2 names 1 is Fallen the other is Masen
USA #1
You'll need to use scripting to keep from congratulating specific people. Change the "Send to" box to Script, and use this:
if "%1" ~= "Fallen" and "%1" ~= "Masen" then
  Send("say Congratulations, %1!")
end


If the name isn't Fallen or Masen, it will send a congratulatory say.

(Slightly) Advanced:

If you have a lot of names you want to ignore, this can be easier to manage:
local exceptions = {
  ["Fallen"] = true,
  ["Masen"] = true,
}

if not exceptions["%1"] then
  Send("say Congratulations, %1!")
end