Don't touch me!

A forum for you to dump all the macros you create, allowing users to use, modify, and comment on your work.

Moderator: MacroQuest Developers

TheAFKBard
a ghoul
a ghoul
Posts: 133
Joined: Tue Dec 30, 2003 9:48 pm

Don't touch me!

Post by TheAFKBard » Tue Mar 16, 2004 2:02 pm

I was sitting around camping a static spawn and wrote this little ditty to give me a little more flexibility in my potty breaks. 30+ hour camps suck.
It's not elegant, and I'd welcome any commentary on how to make this better.

Code: Select all

| -------------------------------------- 
| angrycleric.mac 
| Nukes any mob that touches you
| USAGE: /mac angrycleric
| -------------------------------------- 
#turbo

Sub Main 
   /declare NukeSpell global
   /varset NukeSpell "Condemnation"
   /echo --- Nuking anything that touches me ---
   :Loop 
      /if $target(type)=="NPC" {
         /if $char(casting)=="FALSE" {
         /echo --- NUKING $target(name,clean) ---
         /cast "@NukeSpell" }
       }
      /goto :Loop
/return 

kasodo
a lesser mummy
a lesser mummy
Posts: 64
Joined: Fri Feb 13, 2004 9:41 am

missing something

Post by kasodo » Tue Mar 16, 2004 4:50 pm

It seems that it will only nuke a mob you target, you need an event that nukes when you are being hit or some other action.

This is Assuming you want to kill anything that attacks you while you are in the bathroom? Just taking a guess since you weren't specific.

Might be something along the lines of...

Code: Select all

#event BeingHit " hits you "
#event BeingMissed " misses you "

#turbo 

Sub Main 
   
   /echo --- Nuking anything that touches me --- 
   :Loop 
      /doevents 
    /goto :Loop 

/return 

Sub NukeTarget
   /declare NukeSpell local
   /varset NukeSpell "Condemnation" 

      /if $target(type)=="NPC" [color=darkred]/if $target(state)!=DEAD[/color]{ 
         /if $char(casting)=="FALSE" { 
         /echo --- NUKING $target(name,clean) --- 
         /cast "@NukeSpell" } 
       }
/return
Sub Event_BeingHit
   /call NukeTarget
/return

Sub Event_BeingMissed
  /call NukeTarget
/return

Last edited by kasodo on Tue Mar 16, 2004 7:57 pm, edited 1 time in total.

GD
a snow griffon
a snow griffon
Posts: 353
Joined: Sat Jun 29, 2002 11:57 pm

Post by GD » Tue Mar 16, 2004 6:40 pm

Well, if you don't currently have a target, it targets whatever just did damage to you on it's own.
Opinions are like assholes, everyone has one, but most of them stink.

[40oz]
a hill giant
a hill giant
Posts: 156
Joined: Tue Nov 12, 2002 12:14 pm

Post by [40oz] » Tue Mar 16, 2004 7:38 pm

Problem with that is every now and then, it will target the corpse of what you just killed due to latency issues and getting "hit after it's dead."

Boredbard
a ghoul
a ghoul
Posts: 89
Joined: Thu Nov 27, 2003 11:49 am

Post by Boredbard » Sat Apr 03, 2004 4:24 pm

normally that happens from DS kill shots, not lag, from what i've seen.

wardave
a ghoul
a ghoul
Posts: 120
Joined: Sun Jan 25, 2004 4:38 am

Post by wardave » Sun Apr 04, 2004 5:13 pm

GD wrote:Well, if you don't currently have a target, it targets whatever just did damage to you on it's own.


Opinions are like assholes, everyone has one, but most of them stink.

I never meet a person that I thought that had a nice smelling asshole, how about you? I thought the quote was they all stink, not most of them stink. =)

TheAFKBard
a ghoul
a ghoul
Posts: 133
Joined: Tue Dec 30, 2003 9:48 pm

Post by TheAFKBard » Sun Apr 04, 2004 11:59 pm

I love the smell of asshole in the morning. Means I got laid last night.

MrSmallie
a hill giant
a hill giant
Posts: 167
Joined: Fri Oct 11, 2002 11:18 am

Post by MrSmallie » Mon Apr 05, 2004 5:02 pm

My opinion is that assholes should have nothing to do with getting laid. But that's just me.
Me
[img]http://home.comcast.net/~mrsmallie/ches.JPG[/img]

jcooler
a ghoul
a ghoul
Posts: 87
Joined: Wed Dec 31, 2003 7:38 pm

Post by jcooler » Mon Apr 12, 2004 11:48 pm

hmmmm i don;t thikn he was talking about women