Thread Tools Display Modes
09-28-11, 04:33 AM   #1
Grim077
A Deviate Faerie Dragon
 
Grim077's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2010
Posts: 15
Post GoldFish Addon Idea!

I cannot make this addon Myself so i'm asking if anyone would be willing to make it.

GoldFish
Click image for larger version

Name:	GoldFish-Preview.png
Views:	288
Size:	282.9 KB
ID:	6527
Is an addon that Selects a Quest item that is worth the most Gold,
The other thing this addon does is,
it also shows the Items you may be able to use, Judging by your Class,
Click image for larger version

Name:	Maybe Useful.png
Views:	225
Size:	172.6 KB
ID:	6528 Maybe Useful to you,
Click image for larger version

Name:	GoldFish.png
Views:	227
Size:	50.1 KB
ID:	6529 Is worth the most gold,

Such as an Item that might be better then what you have Equipped,
So that you don't over look the item and wish that you knew where i lived so you
Could find me and Kill me because of it, so anyway this is a pretty Nifty addon
Idea If i do say so my self
__________________
I see you, But you can't see me!

Last edited by Grim077 : 09-29-11 at 02:47 AM.
  Reply With Quote
09-28-11, 04:57 AM   #2
humfras
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Oct 2009
Posts: 131
OneChoice by Kaelten features something like this.

http://wow.curse.com/downloads/wow-a...onechoice.aspx
__________________
Author of VuhDo CursorCastBar OptiTaunt Poisoner RaidMobMarker
  Reply With Quote
09-28-11, 06:14 AM   #3
Grim077
A Deviate Faerie Dragon
 
Grim077's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2010
Posts: 15
yeah but i'm not looking for stats i'm looking for one to tell you what one give you the most Gold.
__________________
I see you, But you can't see me!
  Reply With Quote
09-28-11, 06:53 AM   #4
Talyrius
An Onyxian Warder
 
Talyrius's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 363
Have you looked at VendorBait?
  Reply With Quote
09-28-11, 07:16 AM   #5
Vlad
A Molten Giant
 
Vlad's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2005
Posts: 793
The only issue I see is that the default frame has a limit of like, 4 or 6 quest rewards -so having a quest that rewards let's say, 5 items, then you only got room for 1 more button on it without having to alter and add more frames, and basically having to do a lot of more work to make it show properly.

On the topic of "is this better for you" is a big project, I've so far used askmrrobot stats weight for (was some work, haven't had time to do the other classes) and pretty much managed to get some sort of score number that returns a positive integer if the gear is a upgrade or negative if not, the better the higher score, i.e. 0-50 minor and must be consulted with player, while anything over 50 is a define upgrade (or something like this).

Oh I am talking nonsense now! Well in any case, are there any known libraries to help check for what item is better for you (comparing two items)? So far I think not, I tried to find but found none... If not I could release a libstub that people could use in their addons to find out what item is better for players spec.
  Reply With Quote
09-28-11, 08:48 AM   #6
humfras
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Oct 2009
Posts: 131
Originally Posted by Grim077 View Post
yeah but i'm not looking for stats i'm looking for one to tell you what one give you the most Gold.
Well, that's what the golden "MV" symbol is displaying...
__________________
Author of VuhDo CursorCastBar OptiTaunt Poisoner RaidMobMarker
  Reply With Quote
09-28-11, 11:21 AM   #7
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,335
This is code that I wrote for this exact purpose. I changed it from actually selecting the item to showing the highest vendor price with a colored border. This was because I've continually made the mistake of getting into the habit of clicking "Continue" before changing the selection to an item I actually needed.

lua Code:
  1. local highlight=QuestInfoItemHighlight:GetRegions();
  2. local selectbutton=QuestInfoItem_OnClick;
  3. hooksecurefunc("QuestInfoItem_OnClick",function(self) highlight:SetVertexColor(1,1,1); end);
  4. QuestFrame:HookScript("OnEvent",function(self,event,...)
  5.     if event=="QUEST_COMPLETE" or event=="QUEST_ITEM_UPDATE" then
  6.         local numchoices=GetNumQuestChoices();
  7.         local maxid,maxval=0,-1;
  8.         for i=1,numchoices do
  9.             local link=GetQuestItemLink("choice",i);
  10.             if not link then return; end
  11.  
  12.             local price=select(11,GetItemInfo(link))*select(3,GetQuestItemInfo("choice",i));
  13.             if price>maxval then
  14.                 maxid,maxval=i,price;
  15.             end
  16.         end
  17.         if maxid>0 then
  18.             selectbutton(_G["QuestInfoItem"..maxid]);
  19.             highlight:SetVertexColor(0,1,0);
  20.             QuestInfoFrame.itemChoice=0;--  Hack to deselect choice
  21.         end
  22.     end
  23. end);
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)

Last edited by SDPhantom : 09-28-11 at 01:20 PM.
  Reply With Quote
09-28-11, 12:24 PM   #8
fixitman333
A Fallenroot Satyr
Join Date: Jan 2009
Posts: 27
OneChoice or VendorBait, with RatingBuster already do what you're trying to do. They do it simply, with as little overhead as possible. No point reinventing the wheel (frame), when it serves the purpose just fine as-is.
  Reply With Quote
09-29-11, 08:31 AM   #9
Grim077
A Deviate Faerie Dragon
 
Grim077's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2010
Posts: 15
Originally Posted by SDPhantom View Post
This is code that I wrote for this exact purpose. I changed it from actually selecting the item to showing the highest vendor price with a colored border. This was because I've continually made the mistake of getting into the habit of clicking "Continue" before changing the selection to an item I actually needed.

lua Code:
  1. local highlight=QuestInfoItemHighlight:GetRegions();
  2. local selectbutton=QuestInfoItem_OnClick;
  3. hooksecurefunc("QuestInfoItem_OnClick",function(self) highlight:SetVertexColor(1,1,1); end);
  4. QuestFrame:HookScript("OnEvent",function(self,event,...)
  5.     if event=="QUEST_COMPLETE" or event=="QUEST_ITEM_UPDATE" then
  6.         local numchoices=GetNumQuestChoices();
  7.         local maxid,maxval=0,-1;
  8.         for i=1,numchoices do
  9.             local link=GetQuestItemLink("choice",i);
  10.             if not link then return; end
  11.  
  12.             local price=select(11,GetItemInfo(link))*select(3,GetQuestItemInfo("choice",i));
  13.             if price>maxval then
  14.                 maxid,maxval=i,price;
  15.             end
  16.         end
  17.         if maxid>0 then
  18.             selectbutton(_G["QuestInfoItem"..maxid]);
  19.             highlight:SetVertexColor(0,1,0);
  20.             QuestInfoFrame.itemChoice=0;--  Hack to deselect choice
  21.         end
  22.     end
  23. end);

This works perfectly for what i want thanks, but is there anyway you could make it also tell you theres an item that you may be able to use.
__________________
I see you, But you can't see me!
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Search/Requests » GoldFish Addon Idea!


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off