Page 1 of 6
Tribute Search
Posted: Tue Nov 09, 2004 8:19 pm
by plabniz
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?
Posted: Tue Nov 09, 2004 8:33 pm
by Sparr
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!
Posted: Tue Nov 09, 2004 8:49 pm
by plabniz
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.
Posted: Tue Nov 09, 2004 9:32 pm
by fearless
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.
Posted: Tue Nov 09, 2004 9:46 pm
by ieatacid
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
Posted: Wed Nov 10, 2004 10:37 pm
by plabniz
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.
Posted: Thu Feb 10, 2005 11:58 pm
by OnyxSys
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?
Posted: Sun May 29, 2005 3:23 am
by Chill
has anyone done anything with a tribute macro along these lines since the changes to the new bazaar windows a few months back?
tribute farming not working atm
Posted: Sun Dec 18, 2005 11:35 pm
by donnavan2005
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?
Posted: Sun Dec 18, 2005 11:41 pm
by SwiftyMUSE
Merchant.BuyPrice is busted atm... wait for next zip to try out the macro.
Posted: Fri Feb 23, 2007 6:12 pm
by sybarite
Has anyone considered reviving this idea?
Posted: Fri Feb 23, 2007 8:51 pm
by gimp
Posted: Sat Feb 24, 2007 12:17 pm
by sybarite
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..
Posted: Sat Feb 24, 2007 1:49 pm
by Fuergrissa
The threads relate to VIP section, where alot more macs are located.
Posted: Sat Feb 24, 2007 1:59 pm
by fearless
sybarite wrote:Do some of you even think before you flame? I mean really..
Why yes, yes we do. Any other stupid fucking questions?