Thread Tools Display Modes
09-14-13, 07:05 AM   #1
Qvintus
A Kobold Labourer
Join Date: Sep 2013
Posts: 1
Question Simple loot filter.. doesn't do anything

Hello interfacers!

I've been trying to put this simple addon together that should loot stuff I want.
For now it's does nothing else than try and loot coins and anything white rarity and up..

My problem is: it doesn't do the above. It prints out my 'Stubby.Prints();' but thats it.

I was hoping someone could tell me what I did wrong since LootSlot(); does seem to do nothing at all.

Best Regards Qvintus
Attached Files
File Type: lua main.lua (572 Bytes, 133 views)
  Reply With Quote
09-15-13, 03:53 AM   #2
Lombra
A Molten Giant
 
Lombra's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 554
Hey,
I don't know how the events in question work, but I can't see any errors.

When things aren't working and you can't figure out why, the easiest thing to do is to print stuff to see how far the code progresses and where it goes wrong. For example, you could print(lootLength) just after you define it, too see both if the events fires at all, and if so, whether lootLength is greater than 0.

A couple of other things. You'll probably want to make the lootIt function local, as well you don't have to give your frame a name. In this case you probably shouldn't.
__________________
Grab your sword and fight the Horde!
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Simple loot filter.. doesn't do anything


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