You are not logged in.

Applications: [GameMaster: OPEN] | [Volunteer Testers: OPEN]


This forum will be permanently shut down on Friday 13.07.2018
Please copy or save all important information from old forum before they will be deactivated
We have moved to new board. https://forum.runesofmagic.gameforge.com/Come join us.

1

Thursday, December 6th 2012, 1:04am

Addon for adding loot items to tooltip

I was thinking of making an addon (I can't seem to find one) that puts the loot items from a dead mob into the tooltip when you mouseover the mob. I think it would come in handy for farming cards or for speeding up running mem instances by not requiring you to stop to loot every mob.

I have an understanding of how to do most of it, but not sure which functions to use in order to pull loot information from the dead mob. Can any of you suggest how to attack this functionality?

Peryl

Intermediate

Posts: 313

Location: Elsewhere

  • Send private message

2

Thursday, December 6th 2012, 1:24am

Neat idea, but I don't think you can pull loot info until you actually do loot the mob.

A cursory look through the function list on the RoM Wiki didn't reveal any direct function for this.

The only possible way I could imagine would be to look at the code for RoM's loot frame. Probably want to start with looking at LootFrame_OnShow(). This might suggest a way to do it, but I think it is looking as though it may not be feasible.
2013... The year from hell....

Alecvisable

Intermediate

Posts: 375

Location: Thalia - Somewhere between AU and US

  • Send private message

3

Thursday, December 6th 2012, 2:47am

There's an addon called lootomatic ... that looks everything, you can also set it to auto drop... and there's a card add-on that tells you when you hover over a mob what card they drop and if you have it already or not.

mrmisterwaa

Professional

Posts: 670

Location: Kuwait

  • Send private message

4

Thursday, December 6th 2012, 5:17am

The OP is asking for something specific (seeing the loot in bags without clicking on it).

As far as I know, it isn't possible.

Lootomatic is the best one to use (make sure you are extra careful with your filter though). I have seen people drop Expensive runes/Weapons.

Alecvisable

Intermediate

Posts: 375

Location: Thalia - Somewhere between AU and US

  • Send private message

5

Thursday, December 6th 2012, 5:27am

haha okay Mrmister :P .. i use Lootomatic ... it's also a curtsy when doing quests you can 1 secong loot after you kill a mob to let other community members get the mob with a faster Respawn ... But yeah, i've got it to drop runes and pots and all the junk in which i dont need :)

It's all personal Opion though .. i mainly use it for Farming Kalin Shrine ... But no way in hell will there be a addon in which you can preview what the boss has dropped ... Not without actually looting it first for it to recognise ...

6

Thursday, December 6th 2012, 8:30pm

Thanks for the replies. I downloaded Lootomatic last night and am working on altering it to better suit my needs. Currently you can set a loot threshold so that you only loot a set quality level and below. I am going to make it so that I can change the setting to allow for looting either above or below. Thanks again.

Alecvisable

Intermediate

Posts: 375

Location: Thalia - Somewhere between AU and US

  • Send private message

7

Friday, December 7th 2012, 1:53am

yeah, the settings are within the Icon.
Location: Somewhere between Australia and United States.


8

Friday, December 7th 2012, 3:36am

Quoted from "Regurgitate;579975"

Thanks for the replies. I downloaded Lootomatic last night and am working on altering it to better suit my needs. Currently you can set a loot threshold so that you only loot a set quality level and below. I am going to make it so that I can change the setting to allow for looting either above or below. Thanks again.


This would be neat. I hate that if I want it to for instance loot purples, it also has to loot blues/greens/whites and all that crap I don't want as well.
Borella - 100 W/M/S/R/P/K
VVV
If you play P/K in instances you're garbage


9

Friday, December 7th 2012, 4:58pm

I finally worked the bugs out of it and got it working. The biggest problem I had was getting rid of the previously saved defaults. When I added the new code, it threw errors because some arrays were now bigger than previously and conflicted with the previously saved variables.


I was able to get it working by making the following changes:

In Main.Lua file -

1. Under Lootomatic.Defaults section, add the line GreaterThan = false,

2. Replace the line

if (quality <= Lootomatic_Settings.AutoLoot - 2) then loot = true; else closeframe = 1; end;

with the line

if ((Lootomatic_Settings.GreaterThan) and (quality >= Lootomatic_Settings.AutoLoot - 2)) then loot = true;
else if (not(Lootomatic_Settings.GreaterThan) and (quality <= Lootomatic_Settings.AutoLoot - 2)) then loot = true;
else closeframe = 1;
end;


3. Find the entry that begins
menuitem = {};
menuitem.text = tostring(Lootomatic.Strings.NoBoss);....


and after the entry make the following entry

menuitem = {};
menuitem.text = tostring(Lootomatic.Strings.GreaterThan);
menuitem.func = function() Lootomatic_Settings.GreaterThan = not Lootomatic_Settings.GreaterThan; CloseDropDownMenus(1); ToggleDropDownMenu(Lootomatic_Dropdown); end;
if (Lootomatic_Settings.GreaterThan==false) then menuitem.checked = 1;
else menuitem.checked = nil; end;
UIDropDownMenu_AddButton(menuitem,UIDROPDOWNMENU_MENU_LEVEL);


4. Under the "Miscallaneous" section add the entry
local greater = ""; if (Lootomatic_Settings.GreaterThan == true) then greater = ", "..tostring(Lootomatic.Strings.GreaterThan); end;



In locales/EN.lua

1. Under the minimap menue section add the line Lootomatic.Strings.GreaterThan = "Greater"