Simple Open/Pass Door

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

Moderator: MacroQuest Developers

s0rcier
a grimling bloodguard
a grimling bloodguard
Posts: 876
Joined: Mon Aug 02, 2004 10:49 pm

Simple Open/Pass Door

Post by s0rcier » Fri Sep 03, 2004 8:25 pm

Code: Select all

Sub OpenDoor
    /declare SaveID int local ${Target.ID}
    /doortarget
    /delay 1s
    /face door
    /keypress u
    /delay 15 
    /keypress FORWARD hold 
    /delay 8 
    /keypress FORWARD
    /squelch /target ${If[${Spawn[${SaveID}]},id ${SaveID},clear]}
/return 

Could anyone tell me why i ctd everytime and how to fix it? (got bored)

dman
a hill giant
a hill giant
Posts: 181
Joined: Fri Dec 05, 2003 12:54 pm

Post by dman » Sat Sep 04, 2004 9:29 am

It has to do with the fact that doors don't have a maxmelee range and so when you target the door something is trying to show the maxmelee range on it. Things to look at is if you have the map window open with maxmelee drawn, huds, or ui info.

Skye
a lesser mummy
a lesser mummy
Posts: 33
Joined: Thu Jan 08, 2004 10:17 pm

Post by Skye » Tue Sep 07, 2004 5:27 pm

Thank you so much for this note, dman. The following HUD code was causing my CTD, as well:

Code: Select all

      tTargetMaxMelee=1,550,098,255,255,255,${If[${Target.ID},Max Melee:,]} 
       TargetMaxMelee=1,610,098,010,200,010,${If[${Target.ID},${Target.MaxRangeTo},]} 

s0rcier
a grimling bloodguard
a grimling bloodguard
Posts: 876
Joined: Mon Aug 02, 2004 10:49 pm

Post by s0rcier » Thu Sep 23, 2004 11:58 am

well dman u just answer my question! is there a way to turn off fast hud on/off :P lol!

s0rCier!