Updating SH Faction.mac by Bad Karma
Posted: Fri Aug 13, 2004 10:01 am
This has been completed and updated, see Macro Depot V3.0.
I actually started running it, ironed out a few problems, but now (asside from needing to update the path files to stop running into walls, lol) have an issue with it CTD when it enters bazaar, last thing I noticed as I was monitoring its progress is that it targeted some named mob. It should not be targeting anyone/thing except Gearo and Steaon. Would someone kindly look at this and see what I missed, please.
Code: Select all
| SH Faction Macro
| by Bad Karma updated by aChallenged 1
|
| Start this macro from inside the room with Steaon (Alchemy guy) in SH.
|
#turbo 40
#include advpath.inc
Sub Main
/call InitAPFVars 1 13 20
/keypress ESC
:MainLoop
/doevents
| -------------------------------------------------------------------
| 1. Make sure we're close enough to Steaon.
| 2. Give Steaon the items from Gearo.
| 3. Get item from Steaon to take to Gearo.
| -------------------------------------------------------------------
/call PlayFunction "Steaon_to_Door 1 cr nopp noz"
/call WaitTilThere
/delay 1s
| --------------------------
| Get the stuff from Steaon.
| --------------------------
/target Steaon
/face
/If (${Cursor.ID}) {
/click left target
/delay 3s
/nomodkey /notify MerchantWnd DoneButton leftmouseup
/delay 3s
}
/delay 5
/say I will make a trip to the bazaar
/delay 3s
/keypress ESC
| ---------------------------
| Run to Gearo in the Bazaar.
| ---------------------------
/call PlayFunction "Steaon_to_Door 1 cf nopp noz"
/call WaitTilThere
/delay 1s
/face loc 240,1540
/delay 3
/keypress u
/delay 1s
/call PlayFunction "Door_to_Bazaar 1 cf nopp z"
/call WaitTilThere
/delay 1s
/face loc -875,-175
/delay 2s
/call PlayFunction "Gearo_to_SH 1 cr nopp noz"
/call WaitTilThere
| ----------------------------------------------
| 1. Give Gearo the item from Steaon
| 2. Get item from Gearo to take back to Steaon.
| ----------------------------------------------
/delay 1s
/target gearo
/face
/If (${Cursor.ID}) {
/click left target
/delay 3s
/nomodkey /notify MerchantWnd DoneButton leftmouseup
/delay 3s
}
/delay 5
/say I will take the gems
/delay 3s
/keypress ESC
| -------------------------
| Run back to Steaon in SH.
| -------------------------
/call PlayFunction "Gearo_to_SH 1 cf nopp z"
/call WaitTilThere
/delay 1s
/face loc 300,740
/delay 2s
/call PlayFunction "Door_to_Bazaar 1 cr nopp noz"
/call WaitTilThere
/delay 1s
/face loc 265,1540
/delay 4
/keypress u
/delay 1s
| ----------------------------------
| Rinse, Repeat, until we /endmacro.
| ----------------------------------
/goto :MainLoop
/return
Sub WaitTilThere
:LoopTilThere
/if (${PathingFlag}==1) {
/call AdvPathPoll
/delay 1
/doevents
/goto :LoopTilThere
}
/return