Page 1 of 1

Open door

Posted: Fri Jul 02, 2004 5:00 am
by RudeBoy
Im at work and cant figure out how to open a door.

Whats the easy way?

/target door
/leftmouseup
/delay 1s

???

Anyone that can help on this noob question

Posted: Fri Jul 02, 2004 7:06 am
by aChallenged1
I do not belive that "/target door" will work.

While I don't have the skills to help you, I can tell you that the AdvPath.inc here:http://macroquest2.com/phpBB2/viewtopic.php?t=5086 does target and open doors. Check it out and see if that helps.

Posted: Fri Jul 02, 2004 8:43 am
by RudeBoy
Yes, been reading his wonderful script already, but i cant make out how he opens doors.

The information on ${switch} seem looks interesting, but as far as i understand, it cant be used to open doors. Does anyone know how to do it in simple code, or is it very complex?

Posted: Fri Jul 02, 2004 8:57 am
by aChallenged1
Do a find for door, if you haven't. That may help.

I don't mean on this site, but in the advpath.inc

open door

Posted: Fri Jul 02, 2004 9:46 am
by nosaj969
like aChallenged1 said in advPath.inc there is a sub called 'CheckDoor'. That is the section of code that is called to open and walk you through a door. If you look through that sub you will see...

Code: Select all

/doortarget
/if (${Target.Name.Find["door"]} && ${Target.Distance}<=12) {
    /keypress USE HOLD 
    /keypress USE 
    /call Delay 1s 
}
the above will target a door. Check if you have a door targeted and it is closer than 12 locs away. Then open the door. Now I got all that code from advpath. There is alot of extra checks in there to face the door be the right distance away and move through the door after it opens. I hope that helps you.

nosaj969

Posted: Fri Jul 02, 2004 9:57 am
by RudeBoy
Ahh atlast - found it in another post

/doortarget
/keypress USE hold
/keypress USE

Will try it when i come home...

...zoning into a nonwork related environment

Posted: Fri Jul 02, 2004 9:58 am
by RudeBoy
Baah i should read the answers in my post first...


Thanks for the help both of you :)