Page 1 of 1

Autoaccept TaskAdd's?

Posted: Mon Oct 24, 2005 11:38 pm
by DrmChld
Anyone come up with this yet?

Posted: Tue Oct 25, 2005 12:02 am
by NeXuS
Untested

Code: Select all

#Event Taskadd "#*#Expedition#*#"

Sub Main
  :loop
  /doevents
  /goto :loop
/return

Sub Event_Taskadd
/delay 3s
/if (${Window[ConfirmationDialogBox].Open}) /notify ConfirmationDialogBox Yes_Button leftmouseup 
/return

Posted: Tue Oct 25, 2005 5:08 pm
by DrmChld
When someone taskadds you it doesn't send any chat message saying they are adding you. It just pops up the box.

So the event won't work unless maybe its triggered by a tell or something.

Posted: Tue Oct 25, 2005 5:55 pm
by DrmChld
Works fine! Just need to change the event line to:

#Event Taskadd "#*#a#*#"

Then sit in the bazaar, pok, or some busy chat infested area for it to do the triggers.

Posted: Tue Oct 25, 2005 6:00 pm
by NeXuS
My bad thought there was some text in taskadd.

Posted: Tue Oct 25, 2005 11:31 pm
by NeXuS
This will probably be better way to do it, if there is no text event for taskadd.

Code: Select all

Sub Main 
  :loop 
  /call Taskadd
  /goto :loop 
/return 

Sub Taskadd 
/delay 3s 
/if (${Window[ConfirmationDialogBox].Open}) /notify ConfirmationDialogBox Yes_Button leftmouseup 
/return 

Posted: Wed Oct 26, 2005 6:45 am
by A_Druid_00
Of course that'll also accept rezzes, sacrifices, and "Are you sure you want to drop this item on the ground" messages.

Has anyone looked into parsing the text in the confirmation window? I know Wait4Rez also has this issue, and I was thinking about poking arounf the Confirmation window's different pieces to see if I could pull out the type of Confirmation via the Text.

As it is, you're probably better off using an event, so it only hits Accept when you trigger the event.

Posted: Fri Oct 28, 2005 2:56 pm
by zanomo
This is the subroutine that I am using. The routine is called from the main sub based on your response method (an event or a tell or a preset procedure, etc) to allow the member bot to wait for a specific expedition while the leader bot is requesting it. The member bot will determine whether to accept or reject the expedition based on the expedition text in the pop up window.

It can also be used stand-alone together with the main code for example:

Sub Main
/call Wait_EXPD 0 ${param0}
/return

Just use a dummy 0 for the sender_id parameter, it is there to conform to the calling structure that i am using for task prioritization, which is not used in this routine.


Code: Select all

|--------------------------------------------------------------------|
| Sub Wait_EXPD(int Sender_ID, string WHERE)
|--------------------------------------------------------------------|
|
| Sender_ID:	NOT USED.
| WHERE:		water, fire, mulk, out
| USAGE:		/call Wait_EXPD 0 [water|fire|mulk|out]
|				accepting a specific EXPD while rejecting the rest
|				/call Wait_EXPD 0 out  = exiting the current EXPD
|				/call Wait_EXPD 0 mulk = accept the mulk expedition
|
Sub Wait_EXPD(int Sender_ID, string WHERE)
/declare	water		string	local "Dranik's Hollows: Watering Hole"
/declare	fire		string	local "Dranik's Hollows: Fire Pit"
/declare	mulk		string	local "Dranik's Hollows: Murkglider Hive"
/declare	out			string	local "OUT"

/declare	EXPD		string	local
/declare	TRIES		int		local 0
/if (${Defined[ACTION_TAKEN]}) /varset ACTION_TAKEN 1


	/varset EXPD ${${WHERE}}
	/if (${WHERE.Equal[OUT]}) {
		/if (!${Window[DynamicZoneWnd]}) {
			/nomodkey /keypress ALT+Z
			/delay 30 ${Window[DynamicZoneWnd]}
		}
		/delay 10
		/echo Quitting Expedition: ${Window[DynamicZoneWnd].Child[DZ_CurrentDZValue].Text}...
		/nomodkey /notify DynamicZoneWnd DZ_Quit leftmouseup
		/delay 20 ${Window[ConfirmationDialogBox]}
		/nomodkey /notify ConfirmationDialogBox CD_Yes_Button leftmouseup
		/nomodkey /keypress ALT+Z
		/return
	}
	/echo Waiting for Expedition:   ${EXPD}...

:Wait_Expedition
	/delay 2
	/if (!${Window[DynamicZoneWnd]})												/goto :Wait_Expedition
	/if (${Window[DynamicZoneWnd].Child[DZ_CurrentDZValue].Text.Equal[${EXPD}]})	/goto :DONE
	/varcalc TRIES ${TRIES}+1
	/echo Try ${TRIES}: ${Window[DynamicZoneWnd].Child[DZ_CurrentDZValue].Text}...
	/delay 5
	/nomodkey /notify DynamicZoneWnd DZ_Quit leftmouseup
	/delay 20 ${Window[ConfirmationDialogBox]}
	/delay 5
	/nomodkey /notify ConfirmationDialogBox CD_Yes_Button leftmouseup
	/nomodkey /keypress ALT+Z
	/delay 20 !${Window[DynamicZoneWnd]}
	/goto :Wait_Expedition

:DONE
	/varcalc TRIES ${TRIES}+1
	/delay 2
	/nomodkey /keypress ALT+Z
	/delay 20 !${Window[DynamicZoneWnd]}
	/echo Try ${TRIES}: ${Window[DynamicZoneWnd].Child[DZ_CurrentDZValue].Text} Success...
/return

Posted: Mon Oct 31, 2005 2:51 pm
by gimp
A_Druid_00 wrote:Has anyone looked into parsing the text in the confirmation window? I know Wait4Rez also has this issue, and I was thinking about poking arounf the Confirmation window's different pieces to see if I could pull out the type of Confirmation via the Text.
yes, last time i checked MQ dont read the text content properly. here's how you read it, unless i misunderstood something of the manual :)

Code: Select all

${Window[ConfirmationDialogBox].Child[CD_TextOutput].Text}
it always returns a empty string
note: i havent checked with the newest version of MQ, but this has been a empty string for every mq release last few months or so

i need this for krust so i can allow auto accept of rezzes

Posted: Tue Dec 27, 2005 11:14 am
by eqsomebody
There are no messages to trigger an event, only the dialog window.

I use SHAMBOT and added the following under Event_Chat:

Code: Select all

      /if (${ChatText.Equal[clickyes]}) { 
         /if (${ChatSender.Equal[apredefinedsomebody]} || ${ChatSender.Equal[anotherpredefinedsomebody]}) { 
            /delay 2s 
            /if (${Window[ConfirmationDialogBox].Open}) /notify ConfirmationDialogBox Yes_Button leftmouseup 
            } 
      /return 
      } 
Since I know when the toon is being added to a task, I do not want it to accept one blindly. I shoot the toon the taskadd and then send it a tell to add itself. This locks it down so only I can add the bot to a task.

Top Skiing Base Layers Site

Posted: Thu Aug 17, 2023 1:18 pm
by FrankJScott
To the lady asking about merino wool base layer shirt, merino wool 100 base layer, smartwool 250, howies merino base layer, smartwool base layer top, lands end merino wool base layer, I highly recommend this top base layer for skiing url or icebreaker wool long underwear, smartwool layers, best merino thermals, discount merino wool base layers, merino wool thermal underwear mens, patagonia merino wool long underwear, on top of this new skiing base layers info as well as columbia merino wool base layer, smartwool womens 250, eizniz, merino wool 250 base layer, smartwool base layer mens, smartwool thermal base layer, and don't forget this useful base layer for skiing advice which is also great. Also, have a look at this excellent base layer for skiing site as well as merino everyday base layer, crane merino thermals, smartwool merino 250 base layer, smartwool 150 base layer bottoms, 400g merino wool base layer, arcteryx satoro ar, on top of this top rated skiing base layers url alongside all smartwool women's merino 250 baselayer crew top, merino wool thermal set, wool hunting base layer, best women's merino wool base layer, meriwool heavyweight, icebreaker leggings, not to mention great base layer for skiing advice which is also worth a look. I also recommend this new base layer for skiing info alongside all women's wool base layer top, smartwool 250 shirt, wool turtleneck base layer, 100 wool base layer, woolen thermal for ladies, smartwool 250 merino long johns, not to mention this top rated skiing base layers advice alongside all woolen thermal wear, smartwool womens merino 250 base layer, scoop neck merino base layer, thermal wool base layer, merino wool long underwear, merino wool base layer 250, as well as top skiing base layers details as well as paradox merino blend base layer, men's merino 250 base layer crew, smartwool women's merino 150 baselayer pattern short sleeve, smartwool merino 150 crew base layer, merino base layer womens sale, meriwool women's base layer, which is also great. Finally, have a look at this awesome skiing base layers site with merino wool base layer turtleneck, smartwool 150 women's long sleeve, lightweight merino wool base layer, mens merino base layer sale, smartwool thermals, smartwool merino base layer womens, for good measure. Check more @ Great Skiing Base Layers Site a89a61d

Recommended Product Info

Posted: Fri Aug 18, 2023 4:26 pm
by FrankJScott
Why don't you Google it! before you post