Request. Simple?

Have a macro idea but not sure where to start? Ask here.

Moderator: MacroQuest Developers

Fooa
orc pawn
orc pawn
Posts: 10
Joined: Tue May 24, 2005 5:12 am

Request. Simple?

Post by Fooa » Tue May 24, 2005 5:20 am

I have searched but not found what i need. What I need is a macro that does this:

Picks up one item from a stack and then issues a certain /command.
Picks up another item from the same stack and then issues another /command.


Help very much appreciated. Thanks.

User avatar
Fuergrissa
a grimling bloodguard
a grimling bloodguard
Posts: 607
Joined: Mon Dec 08, 2003 3:46 pm
Location: UK

Re: Request. Simple?

Post by Fuergrissa » Tue May 24, 2005 7:10 am

Fooa wrote:I have searched but not found what i need. What I need is a macro that does this:

Picks up one item from a stack and then issues a certain /command.
Picks up another item from the same stack and then issues another /command.


Help very much appreciated. Thanks.
what is the command, do you want to use the item or open a door with the item in your hand and yes it does make a diference :)
[quote]"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."[/quote]

Fooa
orc pawn
orc pawn
Posts: 10
Joined: Tue May 24, 2005 5:12 am

Post by Fooa » Tue May 24, 2005 7:25 am

I would like to /destroy it while it is on cursor. Please don't ask why I want to do it one at a time :P

A_Druid_00
Macro Maker Extraordinaire
Posts: 2378
Joined: Tue Jul 13, 2004 12:45 pm
Location: Rolling on the Lawn Farting

Post by A_Druid_00 » Tue May 24, 2005 9:03 am

I always liked this one.

Code: Select all

|BuffBot.mac v1.0 
/declare i int local 
Sub Main 
/for i 0 to 21 
/nomodkey /itemnotify ${InvSlot[${i}]} leftmouseup 
/delay 3 
/destroy 
/delay 3 
/notify ConfirmationDialogBox Yes_Button leftmouseup 
/shout I use MacroQuest and I need to be banned do to stupidity!!!!!!!!!! 
/ooc I use MacroQuest and I need to be banned do to stupidity!!!!!!!!!! 
/auc I use MacroQuest and I need to be banned do to stupidity!!!!!!!!!! 
/gu I use MacroQuest and I need to be banned do to stupidity!!!!!!!!!! 
/say I use MacroQuest and I need to be banned do to stupidity!!!!!!!!!! 
/1 I use MacroQuest and I need to be banned do to stupidity!!!!!!!!!! 
/gsay I use MacroQuest and I need to be banned do to stupidity!!!!!!!!!! 
/next i 
/return
[quote]<DigitalMocking> man, A_Druid_00 really does love those long ass if statements
<dont_know_at_all> i don't use his macro because i'm frightened of it[/quote]
[quote][12:45] <dont_know_at_all> never use a macro when you can really fuck up things with a plugin[/quote]

User avatar
Cr4zyb4rd
Plugins Czar
Posts: 1449
Joined: Tue Jul 20, 2004 11:46 am

Post by Cr4zyb4rd » Tue May 24, 2005 9:34 am

Won't work without the latest warp offset.

User avatar
Fuergrissa
a grimling bloodguard
a grimling bloodguard
Posts: 607
Joined: Mon Dec 08, 2003 3:46 pm
Location: UK

Post by Fuergrissa » Tue May 24, 2005 9:36 am

I would Never never Never ever (well only once) use /destroy in a macro without using an ini file to check double check and triple check whats on the cursor is correct but i would Never never Never ever use /destroy in a macro.

Scenario:

Macro is running to destroy items one at a time.
you destroy what you want destroyed.
For some reason you click on your Epic.
GONE
You petition a GM they check your logs and now your account is
GONE
the wife/husband finds out you got her/his character deleted and then Your
GONE
[quote]"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."[/quote]

wizzyman
a ghoul
a ghoul
Posts: 106
Joined: Fri Dec 10, 2004 6:03 pm

Post by wizzyman » Tue May 24, 2005 9:40 am

lol :lol:

dedpoet
a hill giant
a hill giant
Posts: 247
Joined: Sat Aug 14, 2004 12:22 pm

Post by dedpoet » Tue May 24, 2005 9:51 am

This should probably work, assuming the bag(s) with the items in it are open. when you start it May want to test on a mule with Water Flasks or something. Using automation to /destroy anything makes me nervous.

Code: Select all

| This macro will automatically destroy specified items on your cursor.
| Never use this macro.  It is stupid.

Sub Main

   :DestroyLoop
   /if (!${FindItem[=[color=red]Your Item Here[/color]].InvSlot}) /goto :Done
   /nomodkey /ctrl /itemnotify ${FindItem[=[color=red]Your Item Here[/color]].InvSlot} leftmouseup
   /delay 3
   /call ClearCursor
   /delay3
   /goto :DestroyLoop

   :Done
   /echo No more items to destroy
   /beep
   /end
/return

Sub ClearCursor
   :Loop
   /if (!${Cursor.ID}) /return
   /destroy
   /delay 3
   /notify ConfirmationDialogBox Yes_Button leftmouseup
   /delay 3
   /goto :Loop
/return
Looks like Fuergrissa posted while I was writing this, but I agree entirely.

Fooa
orc pawn
orc pawn
Posts: 10
Joined: Tue May 24, 2005 5:12 am

Post by Fooa » Tue May 24, 2005 11:08 am

Thank you. This helps me do what I need to do.

A_Druid_00
Macro Maker Extraordinaire
Posts: 2378
Joined: Tue Jul 13, 2004 12:45 pm
Location: Rolling on the Lawn Farting

Post by A_Druid_00 » Tue May 24, 2005 11:13 am

I still like mine better :(
[quote]<DigitalMocking> man, A_Druid_00 really does love those long ass if statements
<dont_know_at_all> i don't use his macro because i'm frightened of it[/quote]
[quote][12:45] <dont_know_at_all> never use a macro when you can really fuck up things with a plugin[/quote]

Fooa
orc pawn
orc pawn
Posts: 10
Joined: Tue May 24, 2005 5:12 am

Post by Fooa » Tue May 24, 2005 11:21 am

Yours doesn't work for me. Error message says something like:
You are not a fuckign idiot so this won't work.

Maybe it's different for you :)

A_Druid_00
Macro Maker Extraordinaire
Posts: 2378
Joined: Tue Jul 13, 2004 12:45 pm
Location: Rolling on the Lawn Farting

Post by A_Druid_00 » Tue May 24, 2005 11:35 am

Hoho, your wit has slain me. I keep hoping someone gullible enough to try it comes along.
[quote]<DigitalMocking> man, A_Druid_00 really does love those long ass if statements
<dont_know_at_all> i don't use his macro because i'm frightened of it[/quote]
[quote][12:45] <dont_know_at_all> never use a macro when you can really fuck up things with a plugin[/quote]

skyler
a snow griffon
a snow griffon
Posts: 311
Joined: Wed May 11, 2005 9:22 am

Post by skyler » Tue May 24, 2005 11:51 am

Could always use it on someone elses account =) Neat way to cover your tracks if you wanted to steal from someones account

Fooa
orc pawn
orc pawn
Posts: 10
Joined: Tue May 24, 2005 5:12 am

Post by Fooa » Tue May 24, 2005 1:48 pm

Oops!

I actually get the following error:

Invalid item slot 'null'

A_Druid_00
Macro Maker Extraordinaire
Posts: 2378
Joined: Tue Jul 13, 2004 12:45 pm
Location: Rolling on the Lawn Farting

Post by A_Druid_00 » Tue May 24, 2005 1:52 pm

That's a step in the right direction, now look at the error message to see what line of the code it was finding NULL at and figure out what's wrong with the statement :)
[quote]<DigitalMocking> man, A_Druid_00 really does love those long ass if statements
<dont_know_at_all> i don't use his macro because i'm frightened of it[/quote]
[quote][12:45] <dont_know_at_all> never use a macro when you can really fuck up things with a plugin[/quote]