WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   General Authoring Discussion (https://www.wowinterface.com/forums/forumdisplay.php?f=20)
-   -   Adding an "item" to the loot window. (https://www.wowinterface.com/forums/showthread.php?t=11307)

1337D00D 07-19-07 02:00 PM

Adding an "item" to the loot window.
 
How exactly would I add a "fake item" to the loot frame correctly? What I've tried is to hook GetNumLootItems to include an extra slot, then when you see that extra slot it displays an icon and text so it looks like it's an item.

The problem is, you can't add it to the new slot, but you can add it to existing slots.

Code:

local CookieLootSlot = 0;

GetNumLootItemsOld = GetNumLootItems;
function GetNumLootItems()
    CookieLootSlot = GetNumLootItemsOld()+1;
    return GetNumLootItemsOld()+1; -- Create extra slot in lootframe.
end

GetLootSlotInfoOld = GetLootSlotInfo;
function GetLootSlotInfo(id)
    if id == CookieLootSlot then
        return "somepath","Cookie",1,1; -- If its the cookie loot slot then make the fake item.
    else
        return GetLootSlotInfoOld(id);
    end
end

Any ideas?

Layrajha 07-19-07 03:22 PM

I would check blizzard's files, find the loop that adds those items, and hook the functions that executes the loop adding one more iteration to it with your fake item.

Geboran 07-19-07 03:41 PM

Why would you want to do this anyway?

*curious*

Layrajha 07-19-07 04:10 PM

Quote:

Originally Posted by Geboran
*curious*

Now that you say that, I'm curious too :p

Dez 07-19-07 04:24 PM

Lol screenshots of hogger dropping epix?

Gemini_II 07-19-07 05:43 PM

Correct me if I am mistaken, but wouldn't doing something like this not be possible without causing a disconnect? Effectively linking a fake item...

Seerah 07-19-07 05:55 PM

If it's really a fake, made up item, I believe so... If it's some random epic that exists in the game already and you/your server has already seen it, then it may be possible.....

robthedude 07-22-07 06:01 AM

This could be used in Ephemeral, Ephemeral lets you create items purely for use with guild events and roleplay, if those items could be 'added' to the loot table of monsters or bosses, then guildmasters could create quests for their guild that function and appear just like normal quests


All times are GMT -6. The time now is 11:32 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI