[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to "verify" your details, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.
[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Tips and tricks
. . -> [Subject]  Congratulating

Congratulating

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by Senchizinko   USA  (11 posts)  [Biography] bio
Date Fri 22 Oct 2010 06:59 AM (UTC)
Message
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

Strength, intelligence, speed, immortality. We are the Trinity Core.
[Go to top] top

Posted by Twisol   USA  (2,257 posts)  [Biography] bio
Date Reply #1 on Fri 22 Oct 2010 07:35 AM (UTC)
Message
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

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


9,661 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]