target kill target new kill help please

Macro requests from before the user variable changes that broke all macros

Moderator: MacroQuest Developers

Luc`Dragon
orc pawn
orc pawn
Posts: 13
Joined: Tue Feb 04, 2003 5:34 pm

target kill target new kill help please

Post by Luc`Dragon » Wed Feb 05, 2003 1:22 am

I still don't have much of an understnading of how these work. Can someone help me here? I am looking for a macro that does the following:


routine target mob
target mob1
if target = null(not spawned yet)
target mob2
if target = null(not spawned yet)
delay about 1 minute
perform routine target mob
else
perform routine kill
else
perform routine kill

routine kill
twist songs 1 2 3
until target = null(mob dead)
then target mob corpse
/loot
/delay 3
perform routine target mob

Here is what I got, but like I said, I really dont know what I am doing.

Code: Select all

#event MissedNote "You miss a note, bringing your song to a close!" 
Sub Main
:Main
    | Clean things up 
    /zapvars 
    /call InitVars 
    /call CleanUpWins 

	| Find Target
  	/varset v0 &target01
	/varset v0 &target02
	/target &target01
		/if &target01==0 {
		/echo Target not availiable
		/goto TargetSub
		} else 
			:goto Mainsub
	/return
:TargetSub
	/target &target02
		/if &target01==0 {
		/echo Target not availiable
		} else
			:goto Mainsub
	/goto Main
	

Sub Mainsub
:Mainsub
   /stopsong 
   /delay 3
	/if &target==0 {
	/goto Main
	}
	
   :Sing 

| Song 1 
   /varset v0 $p0 
|   /echo Playing song #$p0 
   /cast $p0 
   /delay 5 
   /doevents 
   /delay 33 
   /stop 
   /delay 4 

| Song 2 
   /if "$p1"=="" /goto :Sing 
   /varset v0 $p1 
|   /echo Playing song #$p1 
   /cast $p1 
   /delay 5 
   /doevents 
   /delay 33 
   /stop 
   /delay 4 

| Song 3 
   /if "$p2"=="" /goto :Sing 
   /varset v0 $p2 
|   /echo Playing song #$p2 
   /cast $p2 
   /delay 5 
   /doevents 
   /delay 33 
   /stop 
   /delay 4 

| Song 4 
   /if "$p3"=="" /goto :Sing 
   /varset v0 $p3 
|   /echo Playing song #$p3 
   /cast $p3 
   /delay 5 
   /doevents 
   /delay 33 
   /stop 
   /delay 4 

| Song 5 
   /if "$p4"=="" /goto :Sing 
   /varset v0 $p4 
|   /echo Playing song #$p4 
   /cast $p4 
   /delay 5
   /doevents 
   /delay 33 
   /stop 
   /delay 4 


   /goto :Sing 
/return 

Sub Event_MissedNote 
   /cast $v0 
   /delay 5 
   /doevents 
/goto Mainsub 
Any help would be most appreciacted. The twist part is from depo
Last edited by Luc`Dragon on Wed Feb 05, 2003 3:35 pm, edited 1 time in total.

lifewolf
a ghoul
a ghoul
Posts: 143
Joined: Fri Oct 18, 2002 6:29 pm

Re: target kill target new kill help please

Post by lifewolf » Wed Feb 05, 2003 10:52 am

Luc`Dragon wrote:I still don't have much of an understnading of how these work. Can someone help me here? I am looking for a macro that does the following:


routine target mob
target mob1
if target = null(not spawned yet)
target mob2
if target = null(not spawned yet)
delay about 1 minute
perform routine target mob
else
perform routine kill
else
perform routine kill

routine kill
twist songs 1 2 3
until target = null(mob dead)
then target mob corpse
/loot
/delay 3
perform routine target mob

as you can see yu can do more than 2 mobs with a more inset if-then statement. if ne1 can do this it would be most appreciated.
Hunter.mac in the depot has that basic outline. Looting is broken because it requires /click (It should just loot the corpse, hang for ~1 second, and continue i believe)