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, confirm your email, resolve issues, 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.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ General ➜ Trigger Help

Trigger Help

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


Pages: 1  2 

Posted by Malek   USA  (27 posts)  Bio
Date Reply #15 on Sun 20 Aug 2006 02:19 AM (UTC)
Message
I figured it out.. Due to my shaping triggers not being in Regular expression it was as you said trying to evaluate both sets of triggers at the same time.. I converted my shaping triggers into Regular Expressions and now everything works like a charm... Thanks for your help and time.

Tod ist gweiss, Lebens est nicht.
Top

Posted by Nick Gammon   Australia  (23,162 posts)  Bio   Forum Administrator
Date Reply #16 on Sun 20 Aug 2006 02:21 AM (UTC)
Message
Quote:

... RED on RED and custom color #7 ...


Why do that? Surely the line from the MUD is not red text on a red background? You wouldn't be able to read it.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Malek   USA  (27 posts)  Bio
Date Reply #17 on Sun 20 Aug 2006 02:25 AM (UTC)
Message
no.. I was just trying anything and everything.. But I got it working now and everything is working as it should.. Now to just start figuring out how to run scripts that will use flask1 if it's there. Else flask2 if flask1 is not there. Else bota is flask1 and 2 are not there..

Tod ist gweiss, Lebens est nicht.
Top

Posted by Malek   USA  (27 posts)  Bio
Date Reply #18 on Sun 20 Aug 2006 02:36 AM (UTC)
Message
I do have one more question though.

I there a way to enable a certain trigger by using a command?
Such as by typing a command or perhaps when another trigger is fired?

Tod ist gweiss, Lebens est nicht.
Top

Posted by Nick Gammon   Australia  (23,162 posts)  Bio   Forum Administrator
Date Reply #19 on Sun 20 Aug 2006 03:05 AM (UTC)
Message
http://www.gammon.com.au/scripts/doc.php?function=EnableTrigger

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Malek   USA  (27 posts)  Bio
Date Reply #20 on Sun 20 Aug 2006 03:37 AM (UTC)
Message
Based upon what I saw in that file if I set it like this

world.EnableTrigger "Backstabs", TRUE ' enable pk
world.EnableTrigger "Backstabs", FALSE ' disable pk

(pk) being the trigger label.. it would automaticlly enable and disable correct?

If so is there a script one could write to enable it by typing
(pk on) and disable by typing (pk off)?

Tod ist gweiss, Lebens est nicht.
Top

Posted by Nick Gammon   Australia  (23,162 posts)  Bio   Forum Administrator
Date Reply #21 on Sun 20 Aug 2006 03:48 AM (UTC)
Message
If "pk" is the label of the trigger, then you need:

EnableTrigger ("pk", true) --> enable pk trigger

You can make an alias to do that for you. I will assume you have set up Lua as the scripting language and turned scripting on:


<aliases>
  <alias
   match="pk on"
   enabled="y"
   send_to="12"
   sequence="100"
  >
  <send>EnableTrigger ("pk", true)
ColourNote ("white", "brown", "PK turned on")
</send>
  </alias>
</aliases>


A similar one would turn the trigger off (change "true" to "false").

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Malek   USA  (27 posts)  Bio
Date Reply #22 on Sun 20 Aug 2006 04:03 AM (UTC)
Message
Nick,
You have been a very big help.. I appreciate it more then I can say.. Everything is working great and my client is now alot better then it was when I started. It's almost BOT like in pk mode now.. only thing I have to do is type (sh) to stay alive during pk attempts now.. Well that and my profession commands.. Thank you once again for all your help.

Tod ist gweiss, Lebens est nicht.
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.


65,631 views.

This is page 2, subject is 2 pages long:  [Previous page]  1  2 

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

Go to topic:           Search the forum


[Go to top] top

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