Have a macro idea but not sure where to start? Ask here.
Moderator: MacroQuest Developers
-
plabniz
- decaying skeleton

- Posts: 3
- Joined: Tue Nov 09, 2004 8:16 pm
Post
by plabniz » Tue Nov 09, 2004 8:19 pm
I have looked everywhere in the forums and I don't see a mcaro that will search the bazaar for a relative price to tribute multiplier and display those items.
Basically any item that its price is alot lower than its tribute points would be considered and it could even have filters as to how much lower the price has to be in comparison to the tribute.
I think it would be cool to have.
Any ideas?
-
Sparr
- a hill giant

- Posts: 159
- Joined: Mon Jun 24, 2002 5:41 am
Post
by Sparr » Tue Nov 09, 2004 8:33 pm
the script is trivial, except for the process of right clicking on all the items to get their info. this makes it a very good scripting challenge. its doable, but not fun.
PS: 1 post and you hit the right forum... well done!
[img]http://www.trifocus.net/~sparr/sparr_rotate_sig_16.gif[/img]
-
plabniz
- decaying skeleton

- Posts: 3
- Joined: Tue Nov 09, 2004 8:16 pm
Post
by plabniz » Tue Nov 09, 2004 8:49 pm
PS: 1 post and you hit the right forum... well done!
Thanks, I think..
Solving the problem on where to post was the mental equivelant of thinking to breathe, but I guess you guys have seen horrors....
I would love to undertake the challenge myself if only I had the start, I have studied some code from the bazaar search macros and I have seen some things that apply, but I am still missig large portions of the logic as I see it in my head.
Is the only way to extract the tribute value to right-click the item?
Thanks for the quick responce.
-
fearless
- Not a Psychic
- Posts: 2684
- Joined: Wed Mar 10, 2004 3:52 pm
Post
by fearless » Tue Nov 09, 2004 9:32 pm
The tribute data, just as the rest of the item data, is kept server side.
It is not until you open an item window does eq and mq2 know what to populate it with, with data that is sent from the server.
Now here's a hint for you, when you click on a trader or vendor, all the item data for the items they are carrying is sent to your client. That would be the time to do the comparison / search / whatever else you want to do, so you don't have to click on every item link out there.
Reading . . . it's not just for me.
[url=http://www.catb.org/~esr/faqs/smart-questions.html]How To Ask Questions The Smart Way[/url]
[quote="Ccomp5950"]Fearless showed me the light, you too shall learn.[/quote]
-
ieatacid
- Developer

- Posts: 2727
- Joined: Wed Sep 03, 2003 7:44 pm
Post
by ieatacid » Tue Nov 09, 2004 9:46 pm
I wrote a macro for this purpose a few months ago and put it in the VIP lounge. It didn't seem like there was much interest in it, so here it is.
Unlike your idea this searches bazaar traders and echoes the tribute items. You can search for all items with tribute value, items with tribute greater than a specified number, or use a ratio (like items worth 3 times as many tribute as they are selling for).
But like I said, it searches traders so you have to target one then run the macro.
Code: Select all
|tribute.mac
|7/28/04
|
|Usage: Target a merchant and run it.
| /mac tribute <ratio|cut-off> [ratio]
|
|Examples:
|/mac tribute 2 ratio (echoes echo all items that are worth twice as many tribute points as its value in pp)
|
|/mac tribute 150 (echoes all items with a tribute value greater than 150)
|
|/mac tribute (echoes all items that have any tribute value)
#turbo
Sub Main(int Param0,string Param1)
/declare i int local
/declare ratio int local 0
/if (!${Target.ID}) {
/echo Target a merchant
/end
}
/if (${String[${Target.Type}].Equal[PC]}) /goto :PC
/click right target
/delay 5
/if (${ratio}) /goto :useRatio
/if (${String[${Param1}].Equal[ratio]}) {
/varset ratio ${Param0}
/goto :useRatio
}
/if (${Target.ID}) /echo ######### Merchant: ${Target.CleanName} #########
/for i 1 to 80
/if (${Merchant.Item[${i}].Tribute}>${Param0} && ${Merchant.Item[${i}].Tribute}>${Math.Calc[${Merchant.Item[${i}].BuyPrice}/1000].Int}) {
/if (${String[${Merchant.Item[${i}]}].NotEqual[NULL]}) {
/echo ${Merchant.Item[${i}].Name}: ${Math.Calc[${Merchant.Item[${i}].BuyPrice}/1000].Int}pp - ${Merchant.Item[${i}].Tribute}
}
}
/next i
/goto :end
:useRatio
/if (${Target.ID}) /echo ######### Merchant: ${Target.CleanName} #########
/for i 1 to 80
/if (${Merchant.Item[${i}].Tribute} && ${Math.Calc[(${Merchant.Item[${i}].BuyPrice}/1000)*${ratio}]}<=${Merchant.Item[${i}].Tribute}) {
/if (${String[${Merchant.Item[${i}]}].NotEqual[NULL]}) {
/echo ${Merchant.Item[${i}].Name}: ${Math.Calc[${Merchant.Item[${i}].BuyPrice}/1000].Int}pp - ${Merchant.Item[${i}].Tribute}
}
}
/next i
/goto :end
:PC
/click right target
/delay 5
/if (${ratio}) /goto :useRatioPC
/if (${String[${Param1}].Equal[ratio]}) {
/varset ratio ${Param0}
/goto :useRatioPC
}
/if (${Target.Trader}) /echo ######### Trader: ${Target.CleanName} #########
/for i 1 to 80
/if (${Merchant.Item[${i}].Tribute}>${Param0} && ${Merchant.Item[${i}].Tribute}>${Math.Calc[${Merchant.Item[${i}].BuyPrice}/1000].Int}) {
/if (${String[${Merchant.Item[${i}]}].NotEqual[NULL]}) {
/echo ${Merchant.Item[${i}].Name}: ${Math.Calc[${Merchant.Item[${i}].BuyPrice}/1000].Int}pp - ${Merchant.Item[${i}].Tribute}
}
}
/next i
/goto :end
:useRatioPC
/if (${Target.Trader}) /echo ######### Trader: ${Target.CleanName} #########
/for i 1 to 80
/if (${Math.Calc[(${Merchant.Item[${i}].BuyPrice}/1000)*${ratio}]}<=${Merchant.Item[${i}].Tribute}) {
/if (${String[${Merchant.Item[${i}]}].NotEqual[NULL]}) {
/echo ${Merchant.Item[${i}].Name}: ${Math.Calc[${Merchant.Item[${i}].BuyPrice}/1000].Int}pp - ${Merchant.Item[${i}].Tribute}
}
}
/next i
:end
/cleanup
/return
-
plabniz
- decaying skeleton

- Posts: 3
- Joined: Tue Nov 09, 2004 8:16 pm
Post
by plabniz » Wed Nov 10, 2004 10:37 pm
I appreciatte all the help everyone.
ieatacid Thanks for the code, it helps alot.
I would still like to see if I can pull off my idea too.
The problem I am having at the moment is that I cannot seem to find a way to right click even one item from the bazaar window. Is there a way to do it other than specifying coordinates x,y on the screen for the mouse to click?
If someone can point me to the right direction again I would greatly appreciatte it.
-
OnyxSys
- a ghoul

- Posts: 133
- Joined: Sun Dec 21, 2003 9:58 pm
-
Contact:
Post
by OnyxSys » Thu Feb 10, 2005 11:58 pm
bringing the dead back.. nice macro.. one thing can this output to a text file as well? put in the text file it will just list the name and the tribute value of it?
[img]http://web.infoave.net/~jpdixon/onyxsys.jpg[/img]
-
Chill
- Contributing Member

- Posts: 435
- Joined: Fri May 07, 2004 5:06 pm
- Location: Erie, PA
Post
by Chill » Sun May 29, 2005 3:23 am
has anyone done anything with a tribute macro along these lines since the changes to the new bazaar windows a few months back?
-
donnavan2005
- decaying skeleton

- Posts: 4
- Joined: Sat Jun 04, 2005 8:06 pm
Post
by donnavan2005 » Sun Dec 18, 2005 11:35 pm
for some reason when I use this macro now, it lists everything witht he result of costing 0.00 plat. Not sure what the problem is, anyone have any idea's?
-
SwiftyMUSE
- Developer

- Posts: 1205
- Joined: Tue Sep 23, 2003 10:52 pm
Post
by SwiftyMUSE » Sun Dec 18, 2005 11:41 pm
Merchant.BuyPrice is busted atm... wait for next zip to try out the macro.
-
sybarite
- orc pawn

- Posts: 18
- Joined: Sun Oct 30, 2005 1:07 pm
Post
by sybarite » Fri Feb 23, 2007 6:12 pm
Has anyone considered reviving this idea?
-
gimp
- a grimling bloodguard

- Posts: 584
- Joined: Fri Oct 29, 2004 9:28 am
- Location: internet
Post
by gimp » Fri Feb 23, 2007 8:51 pm
-
sybarite
- orc pawn

- Posts: 18
- Joined: Sun Oct 30, 2005 1:07 pm
Post
by sybarite » Sat Feb 24, 2007 12:17 pm
That'd work, except for the fact that you get this:
The topic or post you requested does not exist.
Now, if I hadn't used search, do you really think I'd've posted on this thread specifically dealing with Tribute?
Do some of you even think before you flame? I mean really..
-
Fuergrissa
- a grimling bloodguard

- Posts: 607
- Joined: Mon Dec 08, 2003 3:46 pm
- Location: UK
Post
by Fuergrissa » Sat Feb 24, 2007 1:49 pm
The threads relate to VIP section, where alot more macs are located.
[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]
-
fearless
- Not a Psychic
- Posts: 2684
- Joined: Wed Mar 10, 2004 3:52 pm
Post
by fearless » Sat Feb 24, 2007 1:59 pm
sybarite wrote:Do some of you even think before you flame? I mean really..
Why yes, yes we do. Any other stupid fucking questions?
Reading . . . it's not just for me.
[url=http://www.catb.org/~esr/faqs/smart-questions.html]How To Ask Questions The Smart Way[/url]
[quote="Ccomp5950"]Fearless showed me the light, you too shall learn.[/quote]