Open door

Need help with a macro you are writing? Ask here!

Moderator: MacroQuest Developers

RudeBoy
orc pawn
orc pawn
Posts: 23
Joined: Wed Mar 24, 2004 7:04 am

Open door

Post by RudeBoy » Fri Jul 02, 2004 5:00 am

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

User avatar
aChallenged1
a grimling bloodguard
a grimling bloodguard
Posts: 1804
Joined: Mon Jun 28, 2004 10:12 pm

Post by aChallenged1 » Fri Jul 02, 2004 7:06 am

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.

RudeBoy
orc pawn
orc pawn
Posts: 23
Joined: Wed Mar 24, 2004 7:04 am

Post by RudeBoy » Fri Jul 02, 2004 8:43 am

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?

User avatar
aChallenged1
a grimling bloodguard
a grimling bloodguard
Posts: 1804
Joined: Mon Jun 28, 2004 10:12 pm

Post by aChallenged1 » Fri Jul 02, 2004 8:57 am

Do a find for door, if you haven't. That may help.

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

User avatar
nosaj969
a lesser mummy
a lesser mummy
Posts: 33
Joined: Wed Apr 28, 2004 3:39 pm
Location: Hagerstown, MD

open door

Post by nosaj969 » Fri Jul 02, 2004 9:46 am

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

RudeBoy
orc pawn
orc pawn
Posts: 23
Joined: Wed Mar 24, 2004 7:04 am

Post by RudeBoy » Fri Jul 02, 2004 9:57 am

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

RudeBoy
orc pawn
orc pawn
Posts: 23
Joined: Wed Mar 24, 2004 7:04 am

Post by RudeBoy » Fri Jul 02, 2004 9:58 am

Baah i should read the answers in my post first...


Thanks for the help both of you :)