Download
(1MB)
Download
Updated: 12-16-18 08:41 AM
Pictures
File Info
Compatibility:
Battle for Azeroth (8.0.1)
Updated:12-16-18 08:41 AM
Created:12-19-14 11:33 AM
Downloads:16,448
Favorites:55
MD5:
Categories:Bags, Bank, Inventory, Action Bar Mods, Buff, Debuff, Spell

New Openables  Popular! (More than 5000 hits)

Version: 09.16 16.12.2018
by: Edik [More]

Add-on scan bags for items to use, open, learn etc. When find new proper item it put it on button like action bars. For "Quest Items" create extra button bar what complement click-able button in "Quest watch frame". Adventage are 1st buttons are always at same place, 2nd are bigger and last added/used and 3rd quest item have hot-key assigned.

Features:

  • Create single button to click on to combine/open/use/lockpick item in bags.
  • Button can have assigned hot-key to be able use keyboard short-cut.
  • When click to use item add-on will continue to scan bags and change to next usable item in your inventory.
  • Is possible skip item (remove from button) by right-click, when no other items are found then all skipped items are placed back on button.
  • Is possible permanently blacklist item (remove from button) by CTRL right-click, this permanent blacklist can be cleared via slash command "/nop clear" or from Game Menu, Interface, AddOns.
  • Is possible remove permanently blacklisted item just one with /nop unlist itemID. ItemID come from query via /nop list.
  • Quest items. For each quest item in bags is added separate button. This part is taken from Quest Item Bar made by Nickenyfiken and ZidayaXis. I loved that add-on and original authors have no plans to maintain it. I did adopted core functionality from that add-on.
  • Auto-accept and auto-turnin quests from new Quest Tracker.

Supported items:
  • Many items, list did grow by time I think is time just say "many" here
  • Rogues have placed locked lock-boxes on button, according to level of lock-picking skill. 1st click lock-pick and second click open.
  • Items used for standing gain, be warned addon deosn't check actual standing so if item is consumed on exalted staning it become void. This is not a problem for Legion Tokens because these can be used past Exalted as well.

Let me know item names to add to wish list. I will grow list as I find items suitable to add. Please I need people who will send me translations for nop-locale-enUS.lua to other languages. Localized SubZones are in for deDE, esES, esMX, frFR, itIT, koKR, ptBR, ruRU, zhCN and zhTW.

Original idea behind this add-on come from Driizt@BB_EU who did make single button for all items containing description "Use: Open ....", I did extend it into all usable items.

Known issues:
  • None known for now.

To-Do:
  • Separate size and position for Usable Item and Quest Button bar is done, now need separate movers.

Revisions:

09.16 16.12.2018

Added Scouting Report:
When on button is fake item, just to simulate button location, then tooltip is properly updated and not giving help for blacklist or skip it.


09.14 24.08.2018

Fix was at incorrect place, moved into tooltip match by line number.
Validated reason for misformated tooltip is definetely way how wow client load items into cache. Wrong patter detection happens only on 1st login when fresh wow client is started.

09.12 23.08.2018

Still having problem with misformated tooltips adding quick bandaid for "Requires Level 100" detection.

09.10 14.08.2018

Items with spells were erased after spec switch.
Still hunting down problem with consumables and junk recoginized as usable. Already fixed most reasons, but still sometime happens.
And finally catch it! Sometime shortly after login, usually at 1st login of the day on slow connection or slow computer seems that detection of blind mode fails and all lines in tooltip are shifted by 1. Seems that client for short time sees color blind mode enabled! This never did happens pre 8.0.x
New version is printed once per account not once per profile.


09.08 07.08.2018

Item check cache cleared up every 10 seconds to catch new items.
ZONE_CHANGED event don't catch realiably zone change. Sometime addon catch continent mapID instead real zone!

09.06 23.07.2018

Tooltip for couple of item can be broken when WoW client is freshly started and 1st toon does login. After switch to another toon tooltips are OK. Seems like bug in Blizzard's code because tooltips are striped off last line!.
Retry mechanic in pattern loading is now extended to tooltip scans and fixed tooltip reading as well.
Removed extra diagnostic prints, reson for problem is known now.

09.04 22.07.2018

Bug Fix pattern matching and erros in match table.


09.02 20.07.2018

Fix garrison mapID, missing 4th mapID for tier1.
Removed all code for build 7.3.x.
Check mapID not only on zone change, sometime event for zone chnges is not fired up!
More events could trigger up item rescan in bags including mail, bank, guild bank and trade. Item rescan now is staggered into 1 seconds delay to make just one call if too many events are triggered at once.
Artifact realted code removed as it is obsolete now


09.00 18.07.2018

TOC updated to match Live.
New milenia new mayor version.
Remaped mapIDs to new build. Trash white items still are in tables and need more cleanup.

08.48 15.07.2018

Updated libraries for better compatibility with WoW BFA Beta.
Option not to place tokes for artifact when artifact have all traits, actually when it has level 75.
Added Pandaria reputation tokens.

08.46 21.05.2018

Fix for call to undefined function printt.

08.44 01.05.2018

Added Petrified Wyrmtongue.
WoW 8.x support. Ace3 libraries and other libraries updated to 8.0.1 support as well. For mapID now is used HereBeDragons 1.0 and 2.0
Full LINT declaration and assertion check with call stack on wrong arguments.
Timer function calls now doesn't overlap by default.
Migration all references P. to local LINT friendly, prevents use of not defined variables.

08.42 17.04.2018

Fix. Restore item buttom and quest bar button frame anchor according to saved anchor in profile, instead reseting position.
Fix. Tooltip anchor and if ElvUI is installed, then is forced to use uberTooltip anchor.
Fix. Save procedure calls parent frame as nil for anchor when buttons are moved.

08.40 04.04.2018

Some MIA clams items returns back and Strange Ball of Energy.
Items with Learning spell on it reinstated back.
Only left text in tooltip is compared to red.
Removed Stabilized Titan Essence now it is vendor trash.
When faction is exalted and there is paragong reward pending then standing is shown as Exalted+.
Optional Files (0)


Post A Reply Comment Options
Unread 12-19-14, 05:50 PM  
Edik
A Murloc Raider
 
Edik's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5
File comments: 28
Uploads: 1
In initial realease I did error not include base directory in ZIP file. This has been fixed past V1.08, older version just need create NOD directory in AddOns and then unzip there. I apologize for this error. It been long time when I did distributed packages for WoW. Had 3 years break. Now it is fixed so upload latest and enjoy standard.
Last edited by Edik : 12-19-14 at 05:50 PM.
Report comment to moderator  
Reply With Quote
Unread 12-20-14, 05:39 AM  
Edik
A Murloc Raider
 
Edik's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5
File comments: 28
Uploads: 1
Counter on button

I did add total count on button for actually displayed item (it sum total).
Report comment to moderator  
Reply With Quote
Unread 12-20-14, 01:55 PM  
saxitoxin
A Theradrim Guardian
 
saxitoxin's Avatar
AddOn Author - Click to view AddOns

Forum posts: 60
File comments: 98
Uploads: 7
is it possible to add recipes that you have not learned yet.
also all the garrison blueprints?
Report comment to moderator  
Reply With Quote
Unread 12-20-14, 02:58 PM  
Edik
A Murloc Raider
 
Edik's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5
File comments: 28
Uploads: 1
Originally Posted by saxitoxin
is it possible to add recipes that you have not learned yet.
also all the garrison blueprints?
If I found easy way to overcome main problem of recipes. Problem is, if you have already learned it then button will get stuck on it, because you can't learn it and recipe will not be consumed from bags. Actually every recipe have own spell-id and different name in tool-tip so every single recipe then must be added in list. That list is then checked against every bag slot with item if is in list by checking item tool tip. I keep add-on lightweight not slow down game a lot.

I'm adding this feature in wish list, 1st I need find easy solution how to check if can be used. I have idea, seen it in TradeSkillInfo add-on.
Last edited by Edik : 12-21-14 at 03:22 AM.
Report comment to moderator  
Reply With Quote
Unread 12-20-14, 06:11 PM  
dtylertx
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 11
File comments: 8
Uploads: 2
a very neat concept.

some questions:

1) How do you move the button? the middle of the screen is the worst place for this when you're trying to play. It was not left click draggable. Perhaps an option to 'auto hide on combat'?

2) it is not detecting raw beast hide scraps. It detected an item i got from a garrison misison that I needed to use to get a new shoulder piece

3) when i try to toggle the skin (with no button displaying) i get this error on reloadui or log in.

ID: -1
Error occured in: Global
Count: 1
Message: ..\AddOns\NOP\nop-core.lua line 327:
attempt to call method 'Kill' (a nil value)
Debug:
NOP\nop-core.lua:327: StyleButton()
NOP\nop-core.lua:206: ButtonLoad()
NOP\nop-core.lua:248: ?()
...Tom\libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:147:
...Tom\libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:147
[string "safecall Dispatcher[1]"]:4:
[string "safecall Dispatcher[1]"]:4
[C]: ?
[string "safecall Dispatcher[1]"]:13: ?()
...Tom\libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:92: Fire()
...ace\AddOns\TomTom\libs\AceEvent-3.0\AceEvent-3.0.lua:120:
...ace\AddOns\TomTom\libs\AceEvent-3.0\AceEvent-3.0.lua:119
Locals:
None
AddOns:
MoncaiCompare, v5.4.0
Swatter, v5.21c.5521 (SanctimoniousSwamprat)
WowheadLooter, v60005
AraBrokerReputations, vr18
Archy, v1.8.50
AucAdvanced, v5.21c.5521 (SanctimoniousSwamprat)
AucFilterBasic, v5.21c.5521 (SanctimoniousSwamprat)
AucFilterOutlier, v5.21c.5521.5459(5.21c/embedded)
AucMatchUndercut, v5.21c.5521.5507(5.21c/embedded)
AucStatHistogram, v5.21c.5521 (SanctimoniousSwamprat)
AucStatiLevel, v5.21c.5521 (SanctimoniousSwamprat)
AucStatPurchased, v5.21c.5521 (SanctimoniousSwamprat)
AucStatSales, v5.21c.5521.5476(5.21c/embedded)
AucStatSimple, v5.21c.5521 (SanctimoniousSwamprat)
AucStatStdDev, v5.21c.5521 (SanctimoniousSwamprat)
AucStatWOWEcon, v5.21c.5521.5323(5.21c/embedded)
AucUtilAHWindowControl, v5.21c.5521.5347(5.21c/embedded)
AucUtilAppraiser, v5.21c.5521.5495(5.21c/embedded)
AucUtilAskPrice, v5.21c.5521.5447(5.21c/embedded)
AucUtilAutoMagic, v5.21c.5521.5443(5.21c/embedded)
AucUtilCompactUI, v5.21c.5521.5496(5.21c/embedded)
AucUtilEasyBuyout, v5.21c.5521.5507(5.21c/embedded)
AucUtilFixAH, v5.21c.5521 (SanctimoniousSwamprat)
AucUtilItemSuggest, v5.21c.5521.5417(5.21c/embedded)
AucUtilPriceLevel, v5.21c.5521.5458(5.21c/embedded)
AucUtilScanButton, v5.21c.5521.5403(5.21c/embedded)
AucUtilScanFinish, v5.21c.5521.5515(5.21c/embedded)
AucUtilScanProgress, v5.21c.5521.4979(5.21c/embedded)
AucUtilScanStart, v5.21c.5521.5347(5.21c/embedded)
AucUtilSearchUI, v5.21c.5521.5515(5.21c/embedded)
AucUtilSimpleAuction, v5.21c.5521.5514(5.21c/embedded)
AucUtilVendMarkup, v5.21c.5521.4828(5.21c/embedded)
Babylonian, v5.1.DEV.332(/embedded)
BagSync, v8.0
Bartender4, v4.6.5
Bazooka, vv2.4.1
BeanCounter, v5.21c.5521 (SanctimoniousSwamprat)
BrokerCurrency, v6.0.3.5
BrokerEverything, vw6.0-v2.9-final2
BrokerGarrison, v1.0.9.2
Configator, v5.1.DEV.376(/embedded)
DebugLib, v5.1.DEV.337(/embedded)
ElkBuffBars, v2.4.0-177
GarrisonCommander, v1.0.1 ed61510
GarrisonMissionManager, vv6
HandyNotes, vv1.3.2
HandyNotesDraenorTreasures, v1.06
HowFar, v1.1.0
Informant, v5.21c.5521 (SanctimoniousSwamprat)
LeatrixPlus, v6.0.30
LeFollowers, v1.2
LevelFlight, v60000.1
LibExtraTip, v5.12.DEV.363(/embedded)
LightHeaded, vwowi:revision
MasterPlan, v0.5
MyRareFinder, v1.0
NOP, v01.10 20.12.2014
OmniCC, v6.0.4
OneBag3, vv3.8.3
OneBank3, vv3.7.5
OpenAll, v1
Paste, v1.4.1
Peddler, v
PeonQuestComplete, v2014.10.30
Quartz, v3.2.3
rGarrisonFollowerItems, v
Skillet, v
SlideBar, v5.21c.5521 (SanctimoniousSwamprat)
Stubby, v5.21c.5521 (SanctimoniousSwamprat)
TipHelper, v5.12.DEV.351(/embedded)
TipTac, v14.10.16
TomTom, vv60000-1.1.0-2dddf66
XPerl, v3.7.5
XPerlArcaneBar, v
XPerlParty, v
XPerlPartyPet, v
XPerlPlayer, v
XPerlPlayerBuffs, v
XPerlPlayerPet, v
XPerlRaidAdmin, v
XPerlRaidFrames, v
XPerlRaidHelper, v
XPerlRaidMonitor, v
XPerlRaidPets, v
XPerlTarget, v
XPerlTargetTarget, v
BlizRuntimeLib_enUS v6.0.3.60000 <none>
(ck=bbe)
Report comment to moderator  
Reply With Quote
Unread 12-20-14, 09:32 PM  
Tamsiel
Premium Member

Forum posts: 11
File comments: 3
Uploads: 0
Big Crate of Salvage/Bag of Salvaged Goods

Have noticed that if I receive both when completing missions that whichever one is received first shows up on the button and the other one doesn't.
Report comment to moderator  
Reply With Quote
Unread 12-21-14, 01:49 AM  
Edik
A Murloc Raider
 
Edik's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5
File comments: 28
Uploads: 1
Re: Big Crate of Salvage/Bag of Salvaged Goods

Originally Posted by Tamsiel
Have noticed that if I receive both when completing missions that whichever one is received first shows up on the button and the other one doesn't.
Add-on show in each moment only 1st item from your bags. It scan from leftmost bag so it depend which item is on button only on position of that item in bags. In moment when you click on button and item is consumed/opened then it look up for another one.

If you have more items of same type you can see count on how many you have in bags on button.
Last edited by Edik : 12-21-14 at 03:21 AM.
Report comment to moderator  
Reply With Quote
Unread 12-21-14, 01:54 AM  
Edik
A Murloc Raider
 
Edik's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5
File comments: 28
Uploads: 1
Originally Posted by dtylertx
a very neat concept.

some questions:

1) How do you move the button? the middle of the screen is the worst place for this when you're trying to play. It was not left click draggable. Perhaps an option to 'auto hide on combat'?

2) it is not detecting raw beast hide scraps. It detected an item i got from a garrison misison that I needed to use to get a new shoulder piece

3) when i try to toggle the skin (with no button displaying) i get this error on reloadui or log in.
ad 1) simply press Left Mouse button and ALT then start dragging button to any place on your screen. As you can see hint in tool tip when you hover over button. I will add configurable position in UI config dialogue as well, but meantime only ALT drag is supported.

ad 2) if you look in other comments. Button can show only one item at one time, so you shall click on button with garrison reward or store reward in bank and then raw beast hide scraps will probably show on button. What item, from all know types supported by add-on, will be on button is solely only on location in bags.

ad 3) last build should fix this calling non-existent function. Some add-ons heavily interact with buttons and could add/remove functions from frames.
Last edited by Edik : 12-21-14 at 03:21 AM.
Report comment to moderator  
Reply With Quote
Unread 12-21-14, 02:01 AM  
Edik
A Murloc Raider
 
Edik's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5
File comments: 28
Uploads: 1
I see you are confused by screen shot where are 2 buttons seen, I will update screen shot. Second one button is from QuestItemBar, which is different add-on with different use. QuestItemBar target Quest Items not openable/usable items.

I will upload new screen shots.

My add-on suppose to ease process opening/using all items in bags. So it means I press button until it disappear, that way I'm sure I did use all usable items in mine bags and didn't miss single item. Let me know if you want to extend functionality and have more than one button. Original creator had in mind that application will be simple and really have small footprint on screen.

Same as I did like simple and just bash one button until it disappear.
Last edited by Edik : 12-21-14 at 03:20 AM.
Report comment to moderator  
Reply With Quote
Unread 12-21-14, 08:50 AM  
Edik
A Murloc Raider
 
Edik's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5
File comments: 28
Uploads: 1
Originally Posted by saxitoxin
is it possible to add recipes that you have not learned yet.
also all the garrison blueprints?
Recipes and blueprints are now in. Enjoy
Report comment to moderator  
Reply With Quote
Unread 12-28-14, 05:49 AM  
saxitoxin
A Theradrim Guardian
 
saxitoxin's Avatar
AddOn Author - Click to view AddOns

Forum posts: 60
File comments: 98
Uploads: 7
Is it possible to turn of a category? I does not like that all the items from the garrison missions are showing up, other than that, GREAT addon
Report comment to moderator  
Reply With Quote
Unread 12-28-14, 07:26 AM  
Edik
A Murloc Raider
 
Edik's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5
File comments: 28
Uploads: 1
Originally Posted by saxitoxin
Is it possible to turn of a category? I does not like that all the items from the garrison missions are showing up, other than that, GREAT addon
I don't have categories inside addon. As band-aid for now there is right-click. I'm adding categories, as planed.

[edit]
I did rethink your request, and I think I found good solution, instead categories. Is now possible simply "Blacklist" pernamently any item you wish to skip. This "Blacklist" can be cleared via slash command or via Game Menu -> Interface -> AddOns dialog. I prefer keep my AddOn simple as can be.
[/edit]
Last edited by Edik : 12-29-14 at 03:54 AM.
Report comment to moderator  
Reply With Quote
Unread 01-01-15, 11:00 AM  
saxitoxin
A Theradrim Guardian
 
saxitoxin's Avatar
AddOn Author - Click to view AddOns

Forum posts: 60
File comments: 98
Uploads: 7
Thumbs up more suggestions

thank you for the blacklist and this addon

now, could you please add support for the mining pick and the coffee cup when in the mines and don't have the buff?
Report comment to moderator  
Reply With Quote
Unread 01-01-15, 01:35 PM  
Edik
A Murloc Raider
 
Edik's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5
File comments: 28
Uploads: 1
Re: more suggestions

Originally Posted by saxitoxin
thank you for the blacklist and this addon

now, could you please add support for the mining pick and the coffee cup when in the mines and don't have the buff?
In addon there is no check for aura, or aura effect. I'm personally using QuestItemBar and adding mining pick and coffee as always shown item.

My addon is able show only one active button, so placing one of these items would block button for other items. I did desgn this addon as hit until it disapears and show me only items one time openables or usable.

For this purpose QuestItemBar is far better because create field of buttons with usable items.
Report comment to moderator  
Reply With Quote
Unread 01-01-15, 02:24 PM  
saxitoxin
A Theradrim Guardian
 
saxitoxin's Avatar
AddOn Author - Click to view AddOns

Forum posts: 60
File comments: 98
Uploads: 7
Re: Re: more suggestions

Originally Posted by Edik
In addon there is no check for aura, or aura effect. I'm personally using QuestItemBar and adding mining pick and coffee as always shown item.

My addon is able show only one active button, so placing one of these items would block button for other items. I did desgn this addon as hit until it disapears and show me only items one time openables or usable.

For this purpose QuestItemBar is far better because create field of buttons with usable items.
I'm using this dirty code to only show the pick and coffe when in the mines but hoping you would add support for them so I can delete the file
Lua Code:
  1. ---------------------------------------------
  2. -- Core file for Garrison Easy Button
  3. -- Version 0.1
  4. ---------------------------------------------
  5. -- Get config file
  6. local addon, ns = ...
  7. local cfg = ns.cfg
  8. ---------------------------------------------
  9.  
  10. local moveable = false
  11. local noItemButton = ("Interface/RAIDFRAME/ReadyCheck-NotReady")
  12.  
  13. ---------------------------------------------
  14. local coffebuff = GetSpellInfo(176049)
  15. local pickbuff = GetSpellInfo(176061)
  16. local xpbuff = GetSpellInfo(178119)
  17.  
  18. -- CREATE BUTTON FRAME
  19. local button = CreateFrame("Button", "MySecureButton", UIParent, "SecureActionButtonTemplate,ActionButtonTemplate")
  20. button:SetSize(40,40)
  21. button:SetPoint("BOTTOMLEFT",390,5)
  22. button:SetAlpha(0.5)
  23. button:SetAttribute("type", "macro")
  24. button:SetMovable(true)
  25. button:EnableMouse(true)
  26. -- CREATE TEXTURE
  27. local buttonTexture = button:CreateTexture(nil,"BACKGROUND",nil,-7)
  28. buttonTexture:SetAllPoints(button)
  29. -- CREATE TEXT
  30. local buttontext = button:CreateFontString(nil, "OVERLAY")
  31. buttontext:SetFont(STANDARD_TEXT_FONT, 15, "THINOUTLINE")
  32. buttontext:SetPoint("BOTTOMRIGHT",-4,4)
  33. buttontext:SetTextColor(NORMAL_FONT_COLOR.r, NORMAL_FONT_COLOR.g, NORMAL_FONT_COLOR.b)
  34. buttontext:SetText("")
  35. ---------------------------------------------
  36. button:SetScript("PreClick", function(self)
  37.     if InCombatLockdown() then return end -- can't change attributes in combat
  38.     self:SetAttribute("macrotext", action)
  39.    
  40.     local zone = GetMinimapZoneText()
  41.     local subzone = GetSubZoneText()
  42.     if subzone == "Frostwall Mine" then
  43.         if not UnitBuff("player",coffebuff) then
  44.             local isItemThere = GetItemCount(118897)
  45.             if isItemThere >= 1 then
  46.                 return self:SetAttribute("macrotext", "/use item:118897")
  47.             end
  48.         elseif not UnitBuff("Player",pickbuff) then
  49.             local isItemThere = GetItemCount(118903)
  50.             if isItemThere >= 1 then
  51.                 return self:SetAttribute("macrotext", "/use item:118903")
  52.             end
  53.         end
  54.     end
  55. end)
  56. ---------------------------------------------
  57.  
  58. -- REGISTER EVENTS
  59. button:RegisterEvent("PLAYER_REGEN_DISABLED")
  60. button:RegisterEvent("PLAYER_REGEN_ENABLED")
  61. button:RegisterEvent("BAG_UPDATE")
  62. button:RegisterEvent("ZONE_CHANGED")
  63. button:RegisterEvent("UNIT_AURA")
  64.  
  65. button:SetScript("OnEvent", function(self,event, ...)  
  66.     if event == "PLAYER_REGEN_DISABLED" then
  67.         button:SetAlpha(0)
  68.     else
  69.         if InCombatLockdown() then return end
  70.         local zone = GetMinimapZoneText()
  71.         local subzone = GetSubZoneText()
  72.         -------------------------------------
  73.         if subzone == "Frostwall Mine" then
  74.             if not UnitBuff("player",coffebuff) then
  75.                 local isItemThere = GetItemCount(118897)
  76.                 if isItemThere >= 1 then
  77.                     local name, link, _, _, _, _, _, _, _, texture = GetItemInfo(118897)
  78.                     buttonTexture:SetTexture(texture)
  79.                     buttontext:SetText(isItemThere)
  80.                     button:SetAlpha(1)
  81.                     return
  82.                 else
  83.                     buttonTexture:SetTexture(noItemButton)
  84.                     buttontext:SetText""
  85.                     button:SetAlpha(0.5)
  86.                     return
  87.                 end
  88.             elseif not UnitBuff("player",pickbuff) then
  89.                 local isItemThere = GetItemCount(118903)
  90.                 if isItemThere >= 1 then
  91.                     local name, link, _, _, _, _, _, _, _, texture = GetItemInfo(118903)
  92.                     buttonTexture:SetTexture(texture)
  93.                     buttontext:SetText(isItemThere)
  94.                     button:SetAlpha(1)
  95.                     return
  96.                 else
  97.                     buttonTexture:SetTexture(noItemButton)
  98.                     buttontext:SetText""
  99.                     button:SetAlpha(0.5)
  100.                     return
  101.                 end
  102.             else
  103.                 buttonTexture:SetTexture(noItemButton)
  104.                 buttontext:SetText""
  105.                 button:SetAlpha(0.5)
  106.                 return
  107.             end
  108.         end
  109.     end
  110. end)
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: