Macro requests from before the user variable changes that broke all macros
Moderator: MacroQuest Developers
-
gumper
- orc pawn

- Posts: 16
- Joined: Thu Jul 10, 2003 6:35 pm
Post
by gumper » Sat Jul 19, 2003 10:57 am
I have been searching all over these boards for a basic macro, actually two.. All I am looking for is a macro to sit at a static spawn and kill it when it pops.. the time frame isnt set it is random but in same place.. Then have a script that loots it.. then loop.. easy enough, I would also be looking for a alert that would say if GM was in zone or other PCs within a certain radius.. If so log out.
Basically all I have ATM is my Combat macro is very basic...
Sub Main
/alert clear 1
/alert add 1 "GM"
/alert clear 2
/alert add 1 "mob name"
:loop
/if $alert(1)==True {
/q
}
/if $alert(2)==True {
/goto :kill
}
:kill
/target Mob name
/attack
/goto :loop
Now for my looting macro I have
Sub Main
/alert clear 1
/alert add 1 "GM"
:loot
/target corpse
/loot
/click left corspe done
/goto :alert
:alert
/if $alert(1)=="True" /q
/goto:loot
Im thinking you could use this in any rare static spawn.. have one on melee and one as looter in case melee dies from dot ect ect.. Any ideas please post away
-
wassup
- Official Guardian and Writer of TFM

- Posts: 1487
- Joined: Sat Oct 26, 2002 5:15 pm
Post
by wassup » Sat Jul 19, 2003 3:46 pm
Code: Select all
#define LootSlot v40
Sub Main
/alert clear 1
/alert clear 2
/alert add 1 "GM"
/alert add 2 "mob name"
:loop
/if $alert(1)==True /call GetOut
/if $alert(2)==True /call KillMob
/goto :loop
sub KillMob
/target Mob name
/attack
.
.
.
<add code to detect when mob is dead and to call LootCorpse>
/return
sub LootCorpse
/loot
/delay 7
:lootloop
/click left corpse $LootSlot
/delay 5
/if "$cursor()"!="TRUE" /goto :doneloot
/click left auto
/delay 5
/varadd LootSlot 1
/goto :lootloop
:doneloot
/varset LootSlot 0
/return
sub GetOut
/zapvars
/q
/return
Is basic, and you need to add in some of your own code, but it's a bit more streamlined than what you had.
-
gumper
- orc pawn

- Posts: 16
- Joined: Thu Jul 10, 2003 6:35 pm
Post
by gumper » Sat Jul 19, 2003 4:10 pm
Thanks )
Although when I run that one My looting works, but the combat part doesnt.. seems like it is getting stuck in the :loop , it doesnt seem to jump to the sub KillMob
Also the way Im doing this is having two seperate macros.. one made for looting and one made for combat... reason being is I have had times when I have killed a mob and died from dot.. this way if you happen to die from dot you still have a looter to get item you are camping ).. On the looting section it does not close the corpse inventory window either..
Thanks