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.
Entire forum
MUSHclient
Tips and tricks
Congratulating
It is now over 60 days since the last post. This thread is closed.
  Refresh page
Posted by
| Senchizinko
USA (11 posts) 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. | top |
|
Posted by
| Twisol
USA (2,257 posts) 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 | 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 page
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.