MQ2Event questions?

Tuvar

New member
Joined
Dec 7, 2010
Messages
23
Reaction score
0
Points
0
Age
48
I have been trying to set up an event that triggers with a /ooc camp check

I have read and tried to get it to work on my own, with no luck. I would really appreciate some assistance.

when I try to set it up this is what is in the ini.

[Campcheck]
trigger=CC
command=/ooc "camp name"

I have read and re read the wiki for it, infact I pasted it just in case.

/event : Display syntax and examples.
◾ /event settrigger <name> <trigger text> : Create custom trigger.
◾ /event setcommand <name> <command text> : Create custom command.
◾ /event load : Reads INI file.
◾ /event delete <name> : Deletes a specific event by name.
◾ /event off : Disable processing the events
◾ /event on : Enable processing the events


Please Help
Tuvar
 
I have been trying to set up an event that triggers with a /ooc camp check

I have read and tried to get it to work on my own, with no luck. I would really appreciate some assistance.

when I try to set it up this is what is in the ini.

[Campcheck]
trigger=CC
command=/ooc "camp name"

I have read and re read the wiki for it, infact I pasted it just in case.

/event : Display syntax and examples.
◾ /event settrigger <name> <trigger text> : Create custom trigger.
◾ /event setcommand <name> <command text> : Create custom command.
◾ /event load : Reads INI file.
◾ /event delete <name> : Deletes a specific event by name.
◾ /event off : Disable processing the events
◾ /event on : Enable processing the events


Please Help
Tuvar

In my events I define the event globally, ie, not in any sub like so:

#Event Campcheck "CC"

then remove trigger from your sub

[Campcheck]
command=/ooc "camp name"

I think that should work
 
Well, he's talking about the plugin. You would also need umm, some vars probably, ya don't want that just happening anywhere. Also, using whatever appropriate channel.

Are you just wanting to say it in group and have it ooc or something?

Sounds like you'd just do better with an alias, like:

/alias /cc /ooc Camp check Nasty Giants 4
and then just type: /cc

htw
 
CC event

I am tryin to have it cover the all annoying camp check on the progression server, its called like 100 times an hour,

for example random noob ooc camp check.
my toon replies /ooc LDC's

Thanks

Tuvar
 
Could try:

[Campcheck]
trigger=#1#CC#2#
command=/ooc "camp name"

And customize the CC to be more specific, I guess.

htw
 
working sorta lol.

Soo I made the key look like this

[Campcheck]
trigger=#1#CC#2#
command=/ooc "camp name"

it works, but then repeats it self , what do the 1 and 2 do in this trigger ? does it trigger twice ?

and would it be better to have the trigger=#1#'CC'#2#

Thanks Sorry for the silly questions.

Tuvar
 
Those would just evaluate to variables you could use if you wanted (EventArg1 and EventArg2), if not using them, they just account for, in this case, like this:

#TextBefore#specific_text#TextAfter#

So

#1#CC#2#

Looks for any line that has CC in it, anything before CC becomes EventArg1, and anything after is EventArg2.

You also would have to make sure you don't repeat the event in your actual text, e.g., don't do like:

/ooc "blah blah CC"

or whatever.

It depends on what you normally see as CC, and you can see an entire event arg if you want, so you can see what to do:

[Testing]
trigger=#1#
command=/echo Saw line: ${EventArg1}

That should work.

The more specific you can make something, then the less it will fire on an event when you don't want it to, such as:

Bubba shouts, 'Too many damn CC's!'

Then that is going to fire the event you are using. EventArg1 would be everything before CC, and EventArg2 would be everything after CC.

Hope that makes sense.

The wiki is seriously a quick basic throw-together of the basic options/ini, and needs updated, including TLO usage. I'll try to get it done so it's a far better reference than it is now.

htw