Glowing_Bile.mac -- Glowing Bile Divining

Macro depository for macros written before the user variable changes that broke all of them.

Moderator: MacroQuest Developers

User avatar
Fippy
a snow griffon
a snow griffon
Posts: 499
Joined: Tue Jul 16, 2002 10:42 am

Glowing_Bile.mac -- Glowing Bile Divining

Post by Fippy » Wed Dec 25, 2002 6:23 am

Not sure if this is spot on as I am not near MQ ATM but might be usefull for peeps looking for Glowing Bile.

Code: Select all

#turbo 

Sub Main 
   /varset l0 $id(0) 
   :Loop
      /if n $instr("shardwurm",$spawn(name,clean))<0 /goto :Done 
      /if "$spawn($l0,light)"!="NULL" {
         /beep
         /target id $l0
         /return
      }
      :Done 
      /varset l0 $spawn($l0,next) 
   /if $l0>0 /goto :Loop 
/return 
It should just keep on looping until it find a shardwurm that is a light source then target it if it does and exit.
Fippy

This is my girl. But Rizwank had her first :-)
[img]http://www.btinternet.com/~artanor/images/fairy_bounce09.gif[/img]

Grumpy
a hill giant
a hill giant
Posts: 167
Joined: Sun Nov 10, 2002 4:22 pm

Post by Grumpy » Wed Dec 25, 2002 2:18 pm

Main problem with this is that targetting only the sharwurms with glowing bile, will quickly run you out of shardwurms with glowing bile. Similar problem with targetting wisps with GLS. The non-bile carrying wurms are placeholders for the ones that carry it (near as I can figure, the glowing bile is just a rare loot on any shardwurm). Sure, target those first, then go whack the others to make more spawn. Unless someone else is actively wiping out the shardwurms, you'll have a long damn wait for a hit once the existing spawns are dead.

spank
decaying skeleton
decaying skeleton
Posts: 7
Joined: Wed Dec 18, 2002 11:52 pm

Re: Glowing_Bile.mac -- Glowing Bile Divining

Post by spank » Mon Dec 30, 2002 3:47 am

Fippy wrote: It should just keep on looping ....
that's all it does, keeps on looping and freezes the game.

can't end the macro either, it freezes the screen while the macro is running and looking for the target.

tried it 9 times last night and ended up having to hard boot the computer everytime.

macrolover
a ghoul
a ghoul
Posts: 107
Joined: Sun Jul 14, 2002 9:19 am

ditto

Post by macrolover » Mon Dec 30, 2002 3:51 am

same problem here even de turboed it still freezes

User avatar
Fippy
a snow griffon
a snow griffon
Posts: 499
Joined: Tue Jul 16, 2002 10:42 am

Post by Fippy » Mon Dec 30, 2002 3:59 am

Hehe i did say a wasnt sure it was spot on. Added a delay and a do events it should be a bit more usefull now.

Code: Select all

#turbo 250

Sub Main 
   /varset l0 $id(0) 
   :Loop
      /doevents 
      /if n $instr("shardwurm",$spawn(name,clean))<0 /goto :Done 
      /if "$spawn($l0,light)"!="NULL" { 
         /beep 
         /target id $l0 
         /return 
      } 
      :Done 
      /varset l0 $spawn($l0,next)
      /delay 5 
   /if $l0>0 /goto :Loop 
/return
Fippy

This is my girl. But Rizwank had her first :-)
[img]http://www.btinternet.com/~artanor/images/fairy_bounce09.gif[/img]

spank
decaying skeleton
decaying skeleton
Posts: 7
Joined: Wed Dec 18, 2002 11:52 pm

Post by spank » Mon Dec 30, 2002 4:51 pm

no change, only thing different now is that it doesn't freeze right away, it takes a few seconds.

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

Post by lifewolf » Sat Jan 04, 2003 1:19 pm

Code: Select all

#turbo 72

Sub Main 
   /varset l0 $id(0) 
   /varset l1 0
   /varset l2 0
   /echo Scanning all zone spawns for light, please wait ...
   :Loop 
      /varadd l1 1
      /if "$spawn($l0,light)"!="NONE" { 
         /echo  Light:  [$l0]  [$spawn($l0,light)] $spawn($l0,name)
         /varadd l2 1
      } else { 
|        /echo  NoLight:  [$l0]  [$spawn($l0,light)] $spawn($l0,name)
      }
      /varset l0 $spawn($l0,next) 
      /delay 0
   /if $l0>0 /goto :Loop 

   /echo Scanned $int($l1) spawns, $int($l2) had lightsources and $int($calc($l1-$l2)) did not.
/return 
Play with the #turbo if you wish, just make sure its low if you use the '/echo NoLight ...' line. Takes my slow computer about 6 seconds to scan 340 mobs as posted.

Output format:
"Light: [ID] [LIGHT_TYPE] [SPAWN_NAME]"
"NoLight: [ID] [NONE] [SPAWN_NAME]"

User avatar
SingleServing
a hill giant
a hill giant
Posts: 195
Joined: Tue Dec 17, 2002 11:00 pm

Post by SingleServing » Tue Jan 07, 2003 10:48 pm

lifewolf wrote:

Code: Select all

#turbo 72

Sub Main 
   /varset l0 $id(0) 
   /varset l1 0
   /varset l2 0
   /echo Scanning all zone spawns for light, please wait ...
   :Loop 
      /varadd l1 1
      /if "$spawn($l0,light)"!="NONE" { 
         /echo  Light:  [$l0]  [$spawn($l0,light)] $spawn($l0,name)
         /varadd l2 1
      } else { 
|        /echo  NoLight:  [$l0]  [$spawn($l0,light)] $spawn($l0,name)
      }
      /varset l0 $spawn($l0,next) 
      /delay 0
   /if $l0>0 /goto :Loop 

   /echo Scanned $int($l1) spawns, $int($l2) had lightsources and $int($calc($l1-$l2)) did not.
/return 
Play with the #turbo if you wish, just make sure its low if you use the '/echo NoLight ...' line. Takes my slow computer about 6 seconds to scan 340 mobs as posted.

Output format:
"Light: [ID] [LIGHT_TYPE] [SPAWN_NAME]"
"NoLight: [ID] [NONE] [SPAWN_NAME]"
I'm going to try this when I get home but shouldn't

/if "$spawn($l0,light)"!="NONE"

be

/if "$spawn($l0,light)"!~"NONE"

If not I am confused about the useage of ~~ and !~ :?
[color=DarkBlue]Everything,[/color] [color=DarkBlue][b]is[/b][/color] [color=black]black[/color] [color=DarkBlue]and[/color] [color=white]white[/color][color=DarkBlue], when you zoom out it looks[/color] [color=gray]grey[/color][color=DarkBlue].[/color]

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

Post by lifewolf » Thu Jan 09, 2003 10:59 am

SingleServing wrote: I'm going to try this when I get home but shouldn't

/if "$spawn($l0,light)"!="NONE"

be

/if "$spawn($l0,light)"!~"NONE"

If not I am confused about the useage of ~~ and !~ :?
$spawn(ID,light) returns either the light type (like GLS, LS, TGS, FBE) or NONE. I just look for the return not being "NONE" . Yes not containing NONE would work too but innequal is logically simpler.

User avatar
SingleServing
a hill giant
a hill giant
Posts: 195
Joined: Tue Dec 17, 2002 11:00 pm

Post by SingleServing » Thu Jan 09, 2003 4:58 pm

lifewolf wrote:
SingleServing wrote: I'm going to try this when I get home but shouldn't

/if "$spawn($l0,light)"!="NONE"

be

/if "$spawn($l0,light)"!~"NONE"

If not I am confused about the useage of ~~ and !~ :?
$spawn(ID,light) returns either the light type (like GLS, LS, TGS, FBE) or NONE. I just look for the return not being "NONE" . Yes not containing NONE would work too but innequal is logically simpler.
You kind of stepped around the answer but I picked up on what you were saying all the same. Thanks =)
[color=DarkBlue]Everything,[/color] [color=DarkBlue][b]is[/b][/color] [color=black]black[/color] [color=DarkBlue]and[/color] [color=white]white[/color][color=DarkBlue], when you zoom out it looks[/color] [color=gray]grey[/color][color=DarkBlue].[/color]

missingfiles
a hill giant
a hill giant
Posts: 224
Joined: Wed Jun 09, 2004 1:15 pm

Post by missingfiles » Wed Jul 21, 2004 11:55 pm

could someone update this macro

Edit: Working macro posted in VIP