Diamond.mac -- Stable bard chant-kiting script

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

Moderator: MacroQuest Developers

Omiime
a ghoul
a ghoul
Posts: 92
Joined: Tue Mar 30, 2004 9:53 pm

chant version

Post by Omiime » Fri Apr 02, 2004 8:17 pm

you may not want to run the "chant' version of this script, speciallly if you are on same server as person who wrong this script.

Otherwise all his guildmates will have fun with you.

I was wondering why so many of his guildmates were sending my bard tells with
"< > /"

Usually my bard has full group. Well this time he didn't. And they ported him to hate :) Rather funny I thought :)

Anyways you don't have to send "< > /" sending a tell with "<" does the same thing. No password needed.

It should be posted or marked on this post about that .
(oh my bard didn't die, I wasn't afk, laughed alot :) )


/if "$lcase("@ChatText")"~~"password" {

change to

/if "$lcase("@ChatText")"=="password" {

fix's it.

Space-Boy
a hill giant
a hill giant
Posts: 242
Joined: Wed Dec 04, 2002 12:53 pm
Contact:

Post by Space-Boy » Sat Apr 03, 2004 1:36 am

HAHAHA omg im sorry but thats some funny shit!! ported to hate!!! jesus man i hope you had an OT hammer handy

thanks for the pass fix by the way
You have gotten better at Carpal Tunnel! (247)

Bardmad
a lesser mummy
a lesser mummy
Posts: 36
Joined: Mon Apr 05, 2004 4:55 am

What's the command?

Post by Bardmad » Mon Apr 05, 2004 4:58 am

hi there, i'm a newbie to macro, but i like to try it. I need to know what's the command line to activate the kite.... /mac diamond ????? please help... and if there're an updated version for the chant kite macro do let me know please. thanx a million

ImaNoob
a ghoul
a ghoul
Posts: 89
Joined: Mon Mar 08, 2004 4:37 am

Sorry But...

Post by ImaNoob » Mon Apr 05, 2004 5:59 am

RTFM

Pheph
a hill giant
a hill giant
Posts: 196
Joined: Thu Oct 09, 2003 8:15 pm

Re: What's the command?

Post by Pheph » Mon Apr 05, 2004 11:38 am

Bardmad wrote:hi there, i'm a newbie to macro, but i like to try it. I need to know what's the command line to activate the kite.... /mac diamond ????? please help... and if there're an updated version for the chant kite macro do let me know please. thanx a million
At least have the decency to read past the initial post of the thread before you start making an ass of yourself with questions like this.

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

Post by MrSmallie » Mon Apr 05, 2004 4:56 pm

I'll be nice and give you a hint...

Code: Select all

 | This block of code checks for proper arguments and echos error or initialization messages.
I'll be even nicer and give you another hint...

Code: Select all

If you run this AFK, you WILL be banned.
Me
[img]http://home.comcast.net/~mrsmallie/ches.JPG[/img]

sleepergsx
decaying skeleton
decaying skeleton
Posts: 3
Joined: Wed Apr 07, 2004 3:16 pm

Post by sleepergsx » Wed Apr 07, 2004 3:17 pm

wouldnt you be banned for running this even if you were not afk?

NBarnes
orc pawn
orc pawn
Posts: 19
Joined: Wed Jan 28, 2004 10:46 pm

Post by NBarnes » Thu Apr 08, 2004 2:13 am

sleepergsx wrote:wouldnt you be banned for running this even if you were not afk?
If you're dumb enough to admit to using it, yes. There's no good way for anybody to prove you are using it if you're at your keyboard and responding to any GM that happens to ping you, so if you're not AFK, there's not much risk.

sleepergsx
decaying skeleton
decaying skeleton
Posts: 3
Joined: Wed Apr 07, 2004 3:16 pm

Post by sleepergsx » Fri Apr 09, 2004 10:58 am

I think you are incorect here. A true gm can see everything you type. There is no way somebody could type as fast as a macro goes. Not to mention who the hell would type everthing out instead of using there keyboard and mouse if they were not macroing. Bottom line is if you use macro's like this you can get caught. Not that you will but you are never 100 percent safe

glugg1234
decaying skeleton
decaying skeleton
Posts: 3
Joined: Tue Dec 10, 2002 2:20 am

Post by glugg1234 » Sun Apr 11, 2004 2:58 pm

is there a way to make this macro choose another target if you target runs out of range?

Batman
orc pawn
orc pawn
Posts: 16
Joined: Fri Feb 06, 2004 1:52 am

Post by Batman » Sun Apr 11, 2004 11:39 pm

Think this will work at Tables in PoFire?

NBarnes
orc pawn
orc pawn
Posts: 19
Joined: Wed Jan 28, 2004 10:46 pm

Post by NBarnes » Mon Apr 12, 2004 5:28 am

What is the purpose of the '/look -90' calls in lines 56 - 62? They appear to serve no purpose other than to make the character look at their feet during the execution of the macro.

bonehand
a lesser mummy
a lesser mummy
Posts: 48
Joined: Tue Feb 17, 2004 5:16 pm

Post by bonehand » Mon Apr 12, 2004 6:13 am

I couldn't find the purpose in the look -90's either and took them out...and did a little modifying of the base version to suit me. Nothing major, no gm check or PC worries, but added an event for death, out of range and getting a tell. I usually sit and run it while watching a movie at my PC, so a brief beep upon a tell is enough for me. I also stripped out all of the comments, but it may give people some ideas if the need to add fixes of their own.

Code: Select all

#turbo 
#chat tell
#Event OOR "Your target is out of range"
#Event DEAD "LOADING"
#Event TOLD "tells you"

Sub Main 
   /zapvars 

   /declare RubberX global 
   /declare RubberY global 
   /varset RubberX @Param1 
   /varset RubberY @Param0 

   /declare SongTimer timer 
   /declare Songs array 
   /declare CurSong global 
   /declare PrevSong global 
   /declare nSongs global 
   /declare EachSong local 

   /if $defined(Param6)==false { 
      /echo Usage: /mac Diamond <Y> <X> <North> <South> <East> <West> <Song list> 
      /echo <Y>         -- Y-coordinate of the center point. 
      /echo <X>         -- X-coordinate of the center point. 
      /echo <North>     -- Maximum distance north of the center point to travel. 
      /echo <South>     -- Maximum distance south of the center point to travel. 
      /echo <East>      -- Maximum distance east of the center point to travel. 
      /echo <West>      -- Maximum distance west of the center point to travel. 
      /echo <Song list> -- List of songs to be sung, include Selo's if needed. 
      /endm 
   } 

   /varset nSongs $strlen(@Param6) 
   /for EachSong 1 to @nSongs 
      /varset Songs(@EachSong) $mid($calc(@EachSong-1),1,@Param6) 
      /echo Song @EachSong: $char(gem,@Songs(@EachSong)) 
   /next EachSong 
   /varset CurSong 1 
   /call Event_Timer 
   /echo Running a diamond path with center at @RubberY, @RubberX and chant-kiting mobs. 
   /sendkey down up 
 :ChantLoop 
   | Face the correct corner of the diamond, given character's current position. 
   /if (n $char(x)<@RubberX && n $char(y)>@RubberY) /face fast nolook loc @RubberY,$calc(@RubberX-@Param4) 
   /if (n $char(x)<@RubberX && n $char(y)<@RubberY) /face fast nolook loc $calc(@RubberY-@Param3),@RubberX 
   /if (n $char(x)>@RubberX && n $char(y)<@RubberY) /face fast nolook loc @RubberY,$calc(@RubberX+@Param5) 
   /if (n $char(x)>@RubberX && n $char(y)>@RubberY) /face fast nolook loc $calc(@RubberY+@Param2),@RubberX 
   /doevents 
   /if $char(casting)==FALSE { 
      /varset CurSong @PrevSong 
      /call Event_Timer 
   } 
   /if $target()==FALSE /call GetTarget 
   /if $target(name)~~"corpse" /call GetTarget
   /goto :ChantLoop 
/return 

Sub Event_Timer(TimerName) 
      /delay 2
      /stopsong 
      /cast @Songs(@CurSong) 
      /varset PrevSong @CurSong 
      /varset SongTimer 30 
      /varadd CurSong 1 
      /if n @CurSong>@nSongs /varset CurSong 1 
/return 

Sub GetTarget 
   /target npc radius 150
   /delay 1s
   /if n $target(level)>20 /press esc 
   /if n $target(range)>400 /press esc
/return 

Sub Event_OOR
    /call GetTarget
/return

Sub Event_DEAD
/endm

Sub Event_TOLD
    /beep
/return

ml2517
a grimling bloodguard
a grimling bloodguard
Posts: 1216
Joined: Wed Nov 12, 2003 1:12 am

Post by ml2517 » Mon Apr 12, 2004 6:17 am

I'd assume they are doing it to speed up their video frame rates.

Guest

Post by Guest » Mon Apr 12, 2004 7:47 am

ml2517 wrote:I'd assume they are doing it to speed up their video frame rates.
Correct. I was running this on a p3-450 with 64mb RAM and a 4mb video card. Frame rate wasn't an issue on my faster PCs, but on the laptop it kept getting me killed.