Page 1 of 1

PoK stones/book portal triggers

Posted: Fri Jul 02, 2004 1:31 pm
by EQBot_man
Hi, I'm a fairly advanced MQ2 user but for the life of me I can't find help using the search function for a full proof way to trigger a Stone/book. I have written some hacked stupid code to trigger a stone but its not full proof:
|=============================

Sub ActivatePortal
/echo Attempting to activate portal
/look 0
/keypress esc
/delay 2
/keypress esc
/delay 2
/keypress esc
/delay 2
/keypress esc
/delay 2
/keypress esc
/delay 2
/doortarget
/delay 5
/face nolook
/delay 5
/if (${Target.Distance}>7) {
/face fast
/look 0
/delay 2
/keypress forward hold
/delay 2
/keypress forward
/delay 5
}
/click left item
/click left 640 480
/delay 10s
/return
|=============================

Like I said... its crap, and half the commands are useless and left over from developing the subroutine but it works. I found a nice post on how to open doors:
http://macroquest2.com/phpBB2/viewtopic.php?t=8086

But I could really use some help triggering portals

Posted: Fri Jul 02, 2004 2:16 pm
by noober

Code: Select all

/Keypress U
or

Code: Select all

/Keypress USE
should do the trick.

Posted: Fri Jul 02, 2004 2:55 pm
by EQBot_man
ok thanks /keypress u didn't work but prolly cause of an ingame bind issue
but /Keypress USE did work if you are close enough, thanks

Posted: Fri Jul 02, 2004 6:46 pm
by Lax
or probably, because you suck, you TYPED it in order to test it!

Posted: Sat Jul 03, 2004 2:12 pm
by EQBot_man
No, as a matter of fact I have a test.mac that I use to test all commands and subroutines before I enter them into code....why the hate? Do I have to have an incredibly high post count just to get some respect around here? :D

I wrote a Subroutine with lots of redundant crap to insure a portal. But the Kod'Taz portal is very finicky so is the PoWater portal. Any suggestions on how to make it more reliable, since some of the portals are really annoying?

Code: Select all

Sub ActivatePortal

/echo Attempting to activate portal

:ActivatePortal

/doortarget

/delay 5

	/if (${Target.Distance}>12) {
		/face fast nolook
		/look 0
		/delay 2
		/keypress forward hold
		/delay 1
		/keypress forward
		/goto :ActivatePortal
	}

/Keypress USE
/Keypress U

	/delay 10
	/face fast nolook
	/delay 2
	/keypress forward hold
	/delay 1
	/keypress forward

/Keypress USE
/Keypress U

	/delay 10
	/face fast nolook
	/delay 2
	/keypress forward hold
	/delay 1
	/keypress forward

/Keypress USE
/Keypress U

/delay 10s

/return

Posted: Sat Jul 03, 2004 7:59 pm
by Rusty~
here's part of the code i have that zones me into Kod`Taz. i have some code that runs me there first... this is the part that clicks the portal, assuming you're at loc 1143,1546 (which is the last loc it runs to)

Code: Select all

   /call MoveToLoc 1143 1546
   /face nolook loc 1144,1555
   /declare tempZone string local ${Zone.Name}
   /keypress pitchdown hold
:wait_for_zone_kodtaz
   /keypress use hold
   /delay 1
   /if ( ${tempZone.Equal[${Zone.Name}]} ) /goto :wait_for_zone_kodtaz
don't know if there's any sure-fire way of doin it but this seems to work for me. basically, i just face the corner of the stone, then it holds down the look down button and keeps spamming the use key till it zones in