Download
(5 Kb)
Download
Updated: 10-31-10 09:26 AM
Pictures
File Info
Updated:10-31-10 09:26 AM
Created:unknown
Downloads:11,045
Favorites:156
MD5:
EasyPoisons  Popular! (More than 5000 hits)
Version: 40000.01
by: Beoko [More]
--------------------
Description:
--------------------


EasyPoisons is an addon that automates poison purchasing for rogues.
  • Compatible with all localizations through use of spell IDs
  • Does not load if you are not a rogue
  • Load on Demand GUI for poison configuration
    • You choose which type of poisons to purchase
    • You set the number of each poison to purchase (0-100)
    • Detects the maximum poison rank for your level
By default, EasyPoisons will purchase 20 of each type of poison available for your level. If you wish to not purchase a specific type of poison, you can set it to 0 in the GUI for EasyPoisons to ignore that type.

--------------------
Known Issue(s):
--------------------


Most of the issues with EasyPoisons are item cache related. The item cache stores information about your items, and EasyPoisons relies on it heavily in order to work correctly. The item cache is reset when the server is reset, or if a patch is applied. In order for EasyPoisons to work correctly after the item cache has been reset, you must go to a merchant which sells poisons and let the information for each poison load. Once that information is loaded for every poison sold by the merchant, then it will be available for EasyPoisons to use and you should no longer see any weird behavior.

Issues which may be caused by an empty item cache (either after a reset or an unknown item) include:
  • GUI is not showing correct poison information
  • EasyPoisons is buying the wrong amount of poisons
If either of those issues affect you, please try the above solution. If you are positive that poisons are loading correctly in the merchant frame and in the GUI, please let me know and I will immediately investigate the issue.
--------------------
10-31-10 | 40000.01

- Removed Anesthetic Poison, fixed other poisons - Thank you to kaitjin and karden!
- Updated toc for 4.0.1

--------------------
02-02-10 | 30300.01

- Updated toc for 3.3
- More changes are planned with time permitting
--------------------
04-14-09 | 30100.01

- Updated toc for patch 3.1
- Changed format of ChangeLog
--------------------
Unknown | 30000.03

- Fixed many bugs left over from previous attempts at querying the server for poisons
- No longer supports checking for players below level 20 (Really, you shouldn't have this enabled in the first place if you can't use it)
- AddOn will simply silently fail if the player is below level 20 now
- Fixed some bugs and improved some areas of code for the options frame
- EasyPoisons no longer queries the server for poison information
--------------------
Unknown | 30000.02

- Temporary bug fix for blank options frame.
--------------------
Unknown | 30000.01

- Starting fresh, saved variable updates no longer compatible with the old system (before localization through itemID's); some of you may have to update your poison purchasing numbers
- Changing versioning method once again
- All bugs from lower level poisons and leveling up should be fixed
- Improved the poison itemID querying from the server (Thanks to IBLJerry on WoWInterface!)
- Added checks to your level so EasyPoisons will not waste time/resources performing actions if you can't use any poisons anyway
- Changed the options to a Load On Demand addon so it doesn't waste resources
- Added edit boxes to the sliders in the options to change numbers even easier
--------------------
Unknown | 3.0.9-1.0

- now query server for poisons
- now uses itemID's for saved variables/merchant item lookups
--------------------
Unknown | 3.0.8-1.01

- small code tweaks
- updated screenshots on WoWInterface
--------------------
Unknown | 3.0.8-1.0

- complete code rewrite. It is now faster and more cpu efficient (and easier to decipher!)
- the poison ranks of your current level are now displayed as the name of the poison in the options frame
- changed versioning method to: (current wow patch)-major.minor
- ToDo: Make EasyPoisons compatible with all WoW locale
--------------------
Unknown | 2.2

- major code cleanup on options frame
- saved variables code streamlined which also improved various areas of the code as a side effect
- other random code changes
--------------------
Unknown | 2.1

- Options frame redesigned
- now has supporting textures
- added tooltip on title
- code streamlined, cleaned up, and is now much more legible and consistent
--------------------
Unknown | 2.0

- 2.0 introduces the options frame
- each poison has a slider with a value from 0 to 100, set the value to 0 to not buy any poisons of that type
- slider value can be changed via click/slide/mousewheel
- frame can be moved by dragging the title area where it says "EasyPoisons"
- type /easypoisons to open the options frame
- type /easypoisons again to close the options frame, or click the close button in the upper topright corner of the frame
- screenshots, code cleanup/improvements, and more love still to come
--------------------
Unknown | 1.4

- forgot to remove /ep slash shortcut, whoops!
- increased maximum number of purchasable poisons to 100! Thanks to Senjuro/Tony for the help
--------------------
Unknown | 1.3

- lowered max number of poisons to buy from 40 to 20. Buying more than a stack is usually unnecessary with how easy it is to buy them now
- changed ChatFrame1:AddMessage to print for the slash command output
- reduced the number of if checks for poison ranks by roughly half, making it faster and use less resources
- used tostring to get around the nil merchant name index, but it will still do nothing because you need to have the item saved in your local cache for it to not be nil
- cleaned up the OnEvent code, slightly improving speed and resource usage as a side-effect
- removed /ep slash shortcut to /easypoisons to prevent addon slash command conflictions
- bumped toc to 30000, ready for 3.0 to hit live!
--------------------
Unknown | 1.2

- cleaned up the slash function some more
- improved the accuracy of the vendor scanning function
- added a nil check for the occasional unpopulated merchant index
- reorganized if statements alphabetically by poison; nothing important, just looks nicer and more consistent
--------------------
Unknown | 1.1

- cleaned up the slash function slightly
- through a slight hack, increased total number of purchasable poisons to 40
- I noticed I accidently uploaded it on wowinterface under the name "EasyPoisoner" and even used that in the description. This is now fixed. I'm sorry if there was any confusion
--------------------
Unknown | 1.0

- initial beta release
Post A Reply Comment Options
Old 11-18-10, 08:10 PM  
kaitjin
A Kobold Labourer

Forum posts: 0
File comments: 19
Uploads: 0
Ok, tonight I went to refill my poisons and when i clicked on the dealer it restocked everything without my opening easypoisons and reloading ui.
kaitjin is offline Report comment to moderator  
Reply With Quote
Old 11-13-10, 07:48 AM  
Beoko
A Cyclonian
 
Beoko's Avatar
AddOn Author - Click to view AddOns

Forum posts: 41
File comments: 61
Uploads: 21
So I just found out that Blizzard removed the item cache.

The Bad News:

GetItemInfo, an API that EasyPoisons uses to determine specific poison information, is (was?) dependent on the item cache. I'm assuming that there is now a temporary cache of items seen in a single session that gets purged between sessions. This may or may not be the case, but the bigger picture is that GetItemInfo returns nil values (Basically, it does not tell me anything) more often now. This means that EasyPoisons will have more times where:
  • Poisons may not auto-purchase correctly or at all
  • GUI may not appear correctly or at all
  • Saved variables (Saved poison amounts) may not save correctly or at all
The Good News:

The fixes I have planned for the December release should fix these issues. The sacrifice will be some cpu time, but the new version of EasyPoisons will be much more user-friendly in addition to not having these issues.

I am not 100 percent sure that these issues will be fixed with what I have planned since I do not know the new intricacies of GetItemInfo entirely, but I am fairly certain that there is still a work-around for this.
Beoko is offline Report comment to moderator  
Reply With Quote
Old 11-12-10, 05:51 PM  
kaitjin
A Kobold Labourer

Forum posts: 0
File comments: 19
Uploads: 0
Originally posted by Beoko
This all sounds like the work of the item cache, but I can't test that at the moment. The WoWInterface version of EasyPoisons is still coded around poison ranks, and it is poorly written in general. The alpha version of EasyPoisons, found here, is a complete rewrite and takes advantage of all of the conveniences in Cataclysm, along with much better coding conventions. When it is finished, it should be able to handle any issues involving the item cache that EasyPoisons currently cannot. There's still more features to add, and it has no GUI at all at this time. As I've said before, I'll have the free time to work on it in December.

Also, thank you for helping out so much! I really appreciate it.
My pleasure, let me know if i can help with testing. I'm more than willing to give it a shot good luck with rl stuff.
kaitjin is offline Report comment to moderator  
Reply With Quote
Old 11-11-10, 09:51 PM  
Beoko
A Cyclonian
 
Beoko's Avatar
AddOn Author - Click to view AddOns

Forum posts: 41
File comments: 61
Uploads: 21
Originally posted by kaitjin
All the time, not just patch or server restart. It happens whenever I log on and visit a dealer. When i open trade with the NPC, the poisons are not refilled. I have to do a /easypoisons and the menu comes up blank, then I have to reload the ui. After that i open trade again and the addon works as intended, everything restocks.
This all sounds like the work of the item cache, but I can't test that at the moment. The WoWInterface version of EasyPoisons is still coded around poison ranks, and it is poorly written in general. The alpha version of EasyPoisons, found here, is a complete rewrite and takes advantage of all of the conveniences in Cataclysm, along with much better coding conventions. When it is finished, it should be able to handle any issues involving the item cache that EasyPoisons currently cannot. There's still more features to add, and it has no GUI at all at this time. As I've said before, I'll have the free time to work on it in December.

Also, thank you for helping out so much! I really appreciate it.
Beoko is offline Report comment to moderator  
Reply With Quote
Old 11-11-10, 08:29 PM  
kaitjin
A Kobold Labourer

Forum posts: 0
File comments: 19
Uploads: 0
Originally posted by Beoko
Did this occur immediately after a server restart or patch? The issue may be caused by the item cache being unpopulated after a restart or patch, thus causing nil returns on information used to draw the GUI. I've read in a comment that the item cache may be gone, so I don't know what would be causing this exactly.
All the time, not just patch or server restart. It happens whenever I log on and visit a dealer. When i open trade with the NPC, the poisons are not refilled. I have to do a /easypoisons and the menu comes up blank, then I have to reload the ui. After that i open trade again and the addon works as intended, everything restocks.
Last edited by kaitjin : 11-11-10 at 08:38 PM.
kaitjin is offline Report comment to moderator  
Reply With Quote
Old 11-11-10, 06:44 AM  
Beoko
A Cyclonian
 
Beoko's Avatar
AddOn Author - Click to view AddOns

Forum posts: 41
File comments: 61
Uploads: 21
Originally posted by kaitjin
I have discovered a bug that I'm unsure how to fix. In between visits to the shady dealer, my easy poisons slide bar screen goes blank. To be able to buy poisons again, I need to open the easypoisons screen and reload ui. I have removed all the older easypoisons lua from the wtf folder and that seem to fix it but it comes back. I'll post a ss tonight. Anybody else having this issue?

Thanks
Kait
Did this occur immediately after a server restart or patch? The issue may be caused by the item cache being unpopulated after a restart or patch, thus causing nil returns on information used to draw the GUI. I've read in a comment that the item cache may be gone, so I don't know what would be causing this exactly.
Beoko is offline Report comment to moderator  
Reply With Quote
Old 11-08-10, 05:21 AM  
kaitjin
A Kobold Labourer

Forum posts: 0
File comments: 19
Uploads: 0
I have discovered a bug that I'm unsure how to fix. In between visits to the shady dealer, my easy poisons slide bar screen goes blank. To be able to buy poisons again, I need to open the easypoisons screen and reload ui. I have removed all the older easypoisons lua from the wtf folder and that seem to fix it but it comes back. I'll post a ss tonight. Anybody else having this issue?

Thanks
Kait
kaitjin is offline Report comment to moderator  
Reply With Quote
Old 10-31-10, 12:05 PM  
kaitjin
A Kobold Labourer

Forum posts: 0
File comments: 19
Uploads: 0
WB
kaitjin is offline Report comment to moderator  
Reply With Quote
Old 10-31-10, 09:37 AM  
Beoko
A Cyclonian
 
Beoko's Avatar
AddOn Author - Click to view AddOns

Forum posts: 41
File comments: 61
Uploads: 21
Thank you kaitjin and karden for outlining exactly what needed to be fixed! It saved me quite a bit of time and I appreciate the effort put into looking through my extremely poor code. I've pushed these changes (and slightly adjusted the height of the frame to reflect the removal of a slider) to WoWInterface.

I have a beta version of EasyPoisons that I have been working on but its GUI is not even close to being finished. I'll hopefully have it finished by Cataclysm's release. It will remove most of the hacks I had to put into place in order to switch poison ranks automatically, and it will be (even more!) user-friendly for everyone. I also added poisons to level up toasts to let players know when they can first starting using a poison.
Beoko is offline Report comment to moderator  
Reply With Quote
Old 10-23-10, 09:43 AM  
karden
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 7
Uploads: 1
+ kaitjin post
in EasyPoisonsOptions.lua (139 line)

for Index = 1, 6 do
CreateSlider(Index)
end

change 6 -> 5 too ^^
__________________
Valium, Prozac, and Ritalin. Breakfast of champions. (c) Mean Guns
karden is offline Report comment to moderator  
Reply With Quote
Old 10-17-10, 12:34 PM  
kaitjin
A Kobold Labourer

Forum posts: 0
File comments: 19
Uploads: 0
Ok, I hope the creator of this addon does not mind, and if so, I apologize, but I was interested in seeing if I could fix my own problem. I used NotePad++ to look through the addon lua code and found the issue.

in both EasyPoisonsOptions.lua and EasyPoisons.lua in the addon, I replaced the local Poisons section with the following:

local Poisons = {
[1] = { 3775 }, -- Crippling Poison
[2] = { 2892 }, -- Deadly Poison
[3] = { 6947 }, -- Instant Poison
[4] = { 5237 }, -- Mind-numbing Poison
[5] = { 10918 }, -- Wound Poison
}

It now works. The menu when you open /easypoisons will have 5 poisons and 1 blank. It works fine and does not seem to hurt anything but if you are anal like myself and want it to look right scan through the code in EasyPoisonsOptions and look for

AddOn.Header:SetPoint("TOP", AddOn, "TOP", 0, 6)

Change the 6 to a 5,

In EasyPoisons.lua look for:

if Options:IsShown() then
Options:Hide()
for Index = 1, 6 do
_G["EasyPoisonsOptionsSlider"..Index]:Hide()
end
else
Options:Show()
for Index = 1, 6 do
_G["EasyPoisonsOptionsSlider"..Index]:Show()
end
end

again, change the 6 to a 5,

Then, also in EasyPoisons.lua look for:

local Cache = { 20, 20, 20, 20, 20, 20 }

Remove one of the 20's and the comma if you remove the last in the brackets.


Save both files and reload ui. It should work fine now.
Last edited by kaitjin : 10-17-10 at 01:38 PM.
kaitjin is offline Report comment to moderator  
Reply With Quote
Old 10-17-10, 11:32 AM  
kaitjin
A Kobold Labourer

Forum posts: 0
File comments: 19
Uploads: 0
it does not purchase increments of needed poisons, ie 6 or 2 deadly or instant when you are low, but it will purchase the full amount (ie requested stock) of something you are out of completely. At least that is the issue I'm currently having. Any help would be appreciated. Great addon, thank you
Last edited by kaitjin : 10-17-10 at 11:38 AM.
kaitjin is offline Report comment to moderator  
Reply With Quote
Old 10-17-10, 09:17 AM  
Beoko
A Cyclonian
 
Beoko's Avatar
AddOn Author - Click to view AddOns

Forum posts: 41
File comments: 61
Uploads: 21
Re: Re: Update?

Originally posted by Amaroqia
What did you do to update it? I'm still having issues with mine.
I'm very busy at the moment with schoolwork or I would have had an update ready by the patch. As I said in the comments of ProfessionTabs, I may not have time to do a true update until Cataclysm hits in December.

What issues are you guys having? I may be able to push a small update to fix them until then.
Beoko is offline Report comment to moderator  
Reply With Quote
Old 10-17-10, 02:23 AM  
Amaroqia
A Kobold Labourer
 
Amaroqia's Avatar

Forum posts: 0
File comments: 1
Uploads: 0
Re: Update?

Originally posted by Revy
Any change of an update for this? The levels have been removed. Alas I am unsure how to edit the information to correct it. I sooooo love this addon.

Scratch that. ID10T error on my part. All updated. Thanks for writing such a great piece.
What did you do to update it? I'm still having issues with mine.
Amaroqia is offline Report comment to moderator  
Reply With Quote
Old 10-16-10, 07:11 PM  
Revy
Premium Member
 
Revy's Avatar
Premium Member

Forum posts: 5
File comments: 6
Uploads: 0
Update?

Any change of an update for this? The levels have been removed. Alas I am unsure how to edit the information to correct it. I sooooo love this addon.

Scratch that. ID10T error on my part. All updated. Thanks for writing such a great piece.
Last edited by Revy : 10-16-10 at 07:17 PM.
Revy is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump:

Support AddOn Development!

You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.