an improved unlimted corpse drag macro...

Got a cool macro idea? Wanna request a macro? Here is the place for you!

Moderator: MacroQuest Developers

ucfusion
orc pawn
orc pawn
Posts: 24
Joined: Mon Mar 15, 2004 2:14 am

an improved unlimted corpse drag macro...

Post by ucfusion » Wed Apr 07, 2004 7:24 am

I dont know what the limitations are but this seems feasible in my mind.
The macro that I am currently using looks like this

|drag.mac
|Usage /macro drag.mac name name name... ect ect
|Version 2.5, based on GrimJack's version

#turbo
Sub Main
/declare loop global
/declare CorpseCount global
/if $defined(Param0)==FALSE {
/echo Usage /macro drag.mac corpse1 corpse2 corpse3 ect.
/end
}
/varset CorpseCount 0
:CountLoop
/varadd CorpseCount 1
/if $defined(Param@CorpseCount)==TRUE /goto :CountLoop
/varsub CorpseCount 1

/varset LoopNum 0
:DragLoop
/for loop 0 to @CorpseCount
/target corpse @Param@loop
/delay 3
/corpse
/delay 3
/next loop
/goto :DragLoop
/return
However istead of having to put in everyones cracky ass spelled names I would like it to read you log file or chat window for consent msg anyone that consents you automatically gets added to you drag array or something so you can just run back and forth and if they consent they get dragged... simple right... well guess not cause i have no eartly idea how to do it but i figured id shoot this idea out and see if anyone could run with it and produce a finished macro.

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

Post by Boredbard » Wed Apr 07, 2004 4:56 pm

hmm,

#event consent "has consented you blah blah blah"
#event begindrag "[MQ2] Begin Drag"

Sub Event_consent

Find out who consented you (i have no clue how to do this... not my cup of tea) and write it to an ini file.

Sub Event_begindrag

copy what you had for your macro here, and instead of param, just call the names from the ini til you hit the end of file.


Just make a hotkey /echo Begin Drag


Maybe when i get home i can flesh this out some to make it more coherent, but what i'm trying to achieve is having it collect a list of names, then you tell it when to start dragging. ie, run the macro at the beginning of a raid, then just hti your hotkey after a wipe or something... maybe have a hotkey for /echo Flush Names, and have it flush your ini (once you're all cleaned up from the wipe.[/code]

nightgod
a ghoul
a ghoul
Posts: 122
Joined: Sun Nov 02, 2003 4:39 am

Post by nightgod » Wed Apr 07, 2004 6:14 pm

Hmmm...what about using code similar to what the click.mac macro uses to find the corpses in the immediate area? Pull out the ones that give a non-consent message and you would be in buisness, I think.

Might try playing around with it later, if I get up the motivation...

User avatar
blueninja
a grimling bloodguard
a grimling bloodguard
Posts: 541
Joined: Thu Aug 28, 2003 7:03 am
Location: Göteborg, Sweden

Post by blueninja » Wed Apr 07, 2004 7:19 pm

Couple of thoughts on this..

Unfortunately the error message you get when summoning a corpse that you're not allowed to drag doesn't include the name which means you would have to try to drag then wait a few seconds for the error message to return to allow for lag and such in order to be able to match the message to the right corpse. Doing this to several corpses would take a long time.

Perhaps you could try summoning a corpse then compare the location of it to your loc and see if it's moved towards you (reason you'd want to compare it to your loc instead of just seeing if it's been moved is in case someone else drags it).

ucfusion
orc pawn
orc pawn
Posts: 24
Joined: Mon Mar 15, 2004 2:14 am

Post by ucfusion » Thu Apr 08, 2004 6:05 am

couldnt you just have it target the corpses of people that consent you
/target cerias' corpse
/corpse

or does it have to actually check to see if its the right one.. .

nightgod
a ghoul
a ghoul
Posts: 122
Joined: Sun Nov 02, 2003 4:39 am

Post by nightgod » Thu Apr 08, 2004 6:59 pm

I'm wondering if the extra cycles would be worth the trouble of checking locations to determine what corpses moved...once you got a small distance away from the corpse pile, it pretty much wouldn't matter anyway, since they would be OOR.

Will give it a try this weekend, most likely, though I'm off tomorrow and might dig in if I can drag myself away from both EQ ~and~ UT2K4 long enough. mmmm...double gaming addiction

ucfusion
orc pawn
orc pawn
Posts: 24
Joined: Mon Mar 15, 2004 2:14 am

Post by ucfusion » Mon Apr 19, 2004 2:25 pm

anyone had any luck with this one...

nightgod
a ghoul
a ghoul
Posts: 122
Joined: Sun Nov 02, 2003 4:39 am

Post by nightgod » Tue Apr 20, 2004 5:07 pm

Can't talk...attacking red's power core...

Hopefully I'll get bored enough to try this soon...I've had some extra free-time at work lately, thinking I could start getting serious about learning macroing.