Twist1.mac - A chant kiting macro.

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

Moderator: MacroQuest Developers

TheColonel
of what?
of what?
Posts: 164
Joined: Thu Oct 10, 2002 6:34 pm
Location: Golden, CO
Contact:

Post by TheColonel » Sun Feb 16, 2003 4:15 pm

Note, since the lvl 49 Selo's lasts 2.5 minutes, this macro WONT WORK
IF YOU HAVEN'T GOT THE 2.5 MINUTE SELOS DON'T TRY, DON'T BITCH IT WON'T

Note, since the lvl 49 Selo's lasts 2.5 minutes, this macro WONT WORK
IF YOU HAVEN'T GOT THE 2.5 MINUTE SELOS DON'T TRY, DON'T BITCH IT WON'T

Like it says
| /mac Chantkite <GEM> <GEM> <GEM> <SELOS GEM> <XLOC>
Make sure you put Selos in the 4th arguement, if you die and you didn't read this, tough smurf. This will default to the loc of the current target with a radius of 100 if you only give it spell gems. Anyhow, good luck, if you die, not my fault, if you AFK and get banned, not my fault. If you're an idiot, not my fault.

Now that that's clear....

Code: Select all

| - ChantKite.mac - 
| /mac Chantkite <GEM> <GEM> <GEM> <SELOS GEM> <XLOC> <YLOC> <RADIUS>
| Note, since the lvl 49 Selo's lasts 2.5 minutes, this macro WONT WORK 
| IF YOU HAVEN'T GOT THE 2.5 MINUTE SELOS DON'T TRY, DON'T BITCH IT WON'T

#event MissedNote "You miss a note, bringing your song to a close!" 
#event Recovered "You haven't recovered yet..." 
#event NeedTarget "You must first select a target for this spell!" 
#event Slow	"You slow down"
#event Exp	"You gain "
#event Outran	"out of range"
#event Outran	"You cannot see"

#define CASTTIME 	32
#define cursong 	v1 
#define nsongs 		v2 
#define exper 		V3
#define targcount 	v4
#define xloc 		v5
#define yloc 		v6
#define radius 		v7
#define chorus 		v8
#define prevsong 	v9
#define aaexp		v10
#define SELOS		5


Sub Main 

  /varset cursong 1 

  /varset aaexp $char(aa,exp)
  /varset exper $char(exp)
  
  /if $p5!="" /if $p5!=NULL { 
    /varset xloc $p5
  } else /varset xloc $target(y)
  
  /if $p6!="" /if $p6!=NULL { 
    /varset yloc $p6
  } else /varset yloc $target(x)
  
  /if $p7!="" /if $p7!=NULL { 
    /varset radius $p7
  } else /varset radius 100

  /varset targcount 0
  /varset nsongs 4 
  /varset t1 0

  /if $p0!="" /if $p0!=NULL { 
    /varset a(0,1) $p0   | First song 
  } else /varset a(0,1) 1
  /echo Song 1: $char(gem,$a(0,1))

  /if $p1!="" /if $p1!=NULL { 
            /varset a(0,2) $p1 
  } else /varset a(0,2) 2
  /echo Song 2: $char(gem,$a(0,2)) 

  /if $p2!="" /if $p2!=NULL { 
            /varset a(0,3) $p2 
  } else /varset a(0,3) 3
  /echo Song 3: $char(gem,$a(0,3)) 

  /if $p3!="" /if $p3!=NULL { 
            /varset a(0,4) $p3
  } else /varset a(0,4) 4 
  /echo Song 4: $char(gem,$a(0,4)) 

  /if $p4!="" /if $p4!=NULL { 
            /varset a(0,5) $p4
  } else /varset a(0,5) 5 
  /echo Song 5: $char(gem,$a(0,5)) 

:Loop
  /if n $t1<=$calc($t0+CASTTIME) {
    /varset cursong SELOS
  } 
  /if n $t1<=CASTTIME {  
    /varset t0 1
  }
  /if n $t0<=0 /call Sing $int($a(0,$cursong))
  /call circ $xloc $yloc $radius
  /doevents
/goto :Loop

/return


Sub Sing
  /varset t0 CASTTIME
  /if n $cursong==SELOS /varset t1 1500
  /stopsong 
  /cast $p0
  /varset prevsong $cursong
  /varadd cursong 1
  /if n $cursong>$nsongs /varset cursong 1
  /call circ $xloc $yloc $radius
  /doevents
/return 

sub circ 
  /if n $distance($p0,$p1)<($p2/2){
   /face heading $calc($heading($p0,$p1)+180)
  } else {
    /face heading $calc($heading($p0,$p1)+$calc(90*$calc($p2/$distance($p0,$p1))))
  }
/return

Sub Event_MissedNote 
  /varset cursong $prevsong
  /varset t0 0 
  /doevents 
/return 

Sub Event_Slow
  /varset cursong SELOS
  /varset t0 0
/return

Sub Event_Outran
  /varset t0 0
  /varadd targcount 1
  /if n $targcount>=4 {
    /varset targcount 0
    /tar npc 
  }
  /call circ $xloc $yloc $radius
  /doevents 
/return

Sub Event_Recovered 
  /varset t0 0
  /varset cursong $prevsong
  /doevents 
/return 

Sub Event_NeedTarget 
  /varadd targcount 1
  /if n $targcount>=2 {
    /varset targcount 0
    /tar npc 
  }
  /call circ $xloc $yloc $radius
  /doevents
/return

Sub Event_Exp
  /varset aaexp $calc($char(aa,exp)-$aaexp)
  /varset exper $calc($char(exp)-$exper)
  /echo Running time $calc($running/60) minutes 
  /echo $exper% regular exp $aaexp% AA exp
  /varset exper $char(exp)
  /varset aaexp $char(aa,exp)
  /tar npc 	
  /call circ $xloc $yloc $radius
  /doevents
/return

Hell hath no fury like a woman's scorn for EQ.
-==(UDIC)==-

rishid
decaying skeleton
decaying skeleton
Posts: 8
Joined: Mon Feb 17, 2003 11:49 am

Post by rishid » Mon Feb 17, 2003 6:50 pm

Any chance of creating one for the non 2.5 min lasting Selo's? please

Edit: Nevermind, first few ones are for non 2.5 Selos... thanks for a AWESOME script :D
RishiD

stigmatine
a lesser mummy
a lesser mummy
Posts: 50
Joined: Wed Oct 02, 2002 2:52 pm

Easy to fix the stun problem with mobs.

Post by stigmatine » Tue Feb 18, 2003 11:02 am

Try going to forever-hacking.net, Find the offsets for No stun on your own and you can never be stunned again. Problem solved.

Malachi
a hill giant
a hill giant
Posts: 227
Joined: Tue Nov 19, 2002 1:29 am
Contact:

except

Post by Malachi » Tue Feb 18, 2003 11:41 am

Except for the part where stun was sent server side stigmatine, that would work great.

Actually, if may not be server side, but it doesn't totally prevent stunning anymore.

~malachi
~Oh danny boy, the pipes the pipes are calling.~

stigmatine
a lesser mummy
a lesser mummy
Posts: 50
Joined: Wed Oct 02, 2002 2:52 pm

Post by stigmatine » Tue Feb 18, 2003 12:10 pm

Malachi, i have a working version of stun , and no it does not kick you off every 4 min. I'm not goign to post since it's a little higher up on the FH boards and they would not appreciate it. But you can PM and i will give YOU the offset.

Asleep@TheWheel
decaying skeleton
decaying skeleton
Posts: 6
Joined: Sun Apr 27, 2003 12:06 am

X & Y Help

Post by Asleep@TheWheel » Mon Jun 16, 2003 9:52 am

Experienced board members,

After working late I posted (in the wrong thread mind you) a question regaurding the x and y options on the chantkite macros. Could someone please assist me in getting the meaning of these and some example settings for these. Or am i just totally missing something here.

I have tested some of the macros here and all that happens is I stand in one spot with the screen flickering and singing songs.

Thanks for help, and sorry for posting in wrong thread...

Valerian
a grimling bloodguard
a grimling bloodguard
Posts: 709
Joined: Sun Jul 28, 2002 3:29 am

Post by Valerian » Mon Jun 16, 2003 10:41 am

if I remember right, you have to hit autorun yourself with this one

Asleep@TheWheel
decaying skeleton
decaying skeleton
Posts: 6
Joined: Sun Apr 27, 2003 12:06 am

Duh

Post by Asleep@TheWheel » Mon Jun 16, 2003 2:13 pm

OMG....

Thanks, I bet that is my problem.... (blush)

But am I correct in thinking I can just plug in my current x & y locs and let is fly?

Thanks

TheColonel
of what?
of what?
Posts: 164
Joined: Thu Oct 10, 2002 6:34 pm
Location: Golden, CO
Contact:

Post by TheColonel » Mon Jun 16, 2003 6:38 pm

NO, current X,Y and even the default radius freaks everything out... problem is that the direction you face is based on the distance from the x,y.... as you get closer to the radius of the circle the heading becomes perpendicular to a line drawn from you to the center, if you're close to the center then you tend to move faster than the script can point you and you end up facing the center and it gets messy, take a loc, then use that, or... I dunno if I've posted this version here, but if not I have it. One of these will default to the location of the mob, I've actually been tweaking this and I've got an amazing twisting macro, and a chantkite macro that works almost flawlessly, if you stop moving it side steps a litte like if you hit a tree, whathave you... but... just started summer school, trying to figure out how to pass something from an event to a sub... just started looking and noticed my thread had activity... =)

EDIT: Autorun is a must though... I suppose I could figure that out, but sometimes you wanna stand still, like when the mob starts to run away, I've actually got a version that follows the mob if his speed changes, but I've died A LOT using that one... hehe. seems that they sometimes run then attack or get confused and slow down for a second... then I follow... and b00m
Hell hath no fury like a woman's scorn for EQ.
-==(UDIC)==-

Wendel
a lesser mummy
a lesser mummy
Posts: 58
Joined: Wed Jul 24, 2002 1:48 am

Working lately?

Post by Wendel » Thu Jul 10, 2003 11:51 pm

Anyone have one of these working lately?

I've looked at them briefly, and have one corpse run under my belt :)

My bard is not lvl 49 yet, so I didnt try the ones that use the lvl 49 song

TheColonel
of what?
of what?
Posts: 164
Joined: Thu Oct 10, 2002 6:34 pm
Location: Golden, CO
Contact:

Post by TheColonel » Mon Aug 04, 2003 10:01 pm

Rather than goof around, I just edited the first post and replaced the code there with the new-and-improved one... if you have questions, PM me... I'll get around to it eventually.
Hell hath no fury like a woman's scorn for EQ.
-==(UDIC)==-

Draekz
a hill giant
a hill giant
Posts: 263
Joined: Thu Aug 01, 2002 6:07 pm
Location: Winnipeg, Manitoba, Canada

Post by Draekz » Tue Aug 05, 2003 11:26 am

PS for the song twisting macro that doesnt use the 2.5 min selo, it doesnt work.

However it is that you get the:

Code: Select all

| - Twist1.mac - 
| - Created by: 
| - TheColonel - 
| * Edited by: 
| * Viisual 
| + Touched up: 
| + don't_know_at_all 

...macro to achieve the song names, uses the apostrophe ' instead of this key ` which is the amphersand (or whatever the hell it is) thats attached to this key ~ (basically any song requiring an apostrophe will not work because however macroquest converts $p3, it uses the normal apo instead of the ampher on the ~ key.

Anyway, ..is there a way to get around this? as im plannin on having it twist the selo song quite a bit :P

Thanks!

Draekz

Doodman
a ghoul
a ghoul
Posts: 124
Joined: Thu Jan 02, 2003 12:07 pm

Post by Doodman » Tue Aug 05, 2003 12:52 pm

BTW:

` is a commonly refered to as a back-tick
~ is a tilde
& is an ampersand
# is an octothorp

User avatar
dont_know_at_all
Developer
Developer
Posts: 5450
Joined: Sun Dec 01, 2002 4:15 am
Location: Florida, USA
Contact:

Post by dont_know_at_all » Tue Aug 05, 2003 2:04 pm

Use the gem numbers instead of the song names.

Draekz
a hill giant
a hill giant
Posts: 263
Joined: Thu Aug 01, 2002 6:07 pm
Location: Winnipeg, Manitoba, Canada

Post by Draekz » Tue Aug 05, 2003 6:03 pm

LOL thanks doodman :P

Anyway, you get the idea!

Yah i was going to do that but that would have been more work than it was worth it.

Will rewire the script i guess to make it work.

Thanks

Draekz