Code: Select all
sub Main
/if (${GameState.Equal[CHARSELECT]}) /endmacro
:Loop
/call CheckForPCs
/keypress F8
/if (${Target.ID}) {
/pet attack
/delay 500000000000m !${Target.ID}
}
/goto :Loop
/return
Sub CheckForPCs
/if (${Spawn[gm].ID}) {
/echo SHIT!! GM in Zone!
/popup GM!! GM!! GM!!
/call DummyMode
}
/if (${SpawnCount[pc radius 150 loc -140 640]}>1) {
|/if (${SpawnCount[pc]} > 1) {
/echo PC nearby!
/call DummyMode
}
/return
Sub DummyMode
/echo Entering Dummy Mode...
/delay 1s
:waitabit
/delay 15m
/if (${Spawn[gm].ID} || (${SpawnCount[pc radius 150 loc -140 640]}>1)) /goto :waitabit
/delay 1s
/returnWhat it does is spam F8 key to grab nearby target and when something shows up, sends pet to attack then pause for 10 seconds so I don't get spammed with pet attacking message. Once the 10 seconds is up, it repeats.
I choose to spam keypress F8 rather than targeting by name is so the pet would stay close by and not end up halfway across the zone.
It's probably best used in zones where you are in no danger of getting killed since there's nothing for self healing or gating if the player's health drops too low. Frontier mountain is fairly low level for my main 70 Beast and short of delibrate train it's next to impossible for me to get killed there.
Yeah this script could be viewed as afk use but as written, it's not much use in higher level zones and simply gets me the needed faction a little sooner than mashing my keyboard (and getting carpel tunnel syndrome in the process)
EDIT: replaced delay 10s with delay or when target clears, use instead of the if-then loop I posted below.
