WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   General Authoring Discussion (https://www.wowinterface.com/forums/forumdisplay.php?f=20)
-   -   Quest_greeting (https://www.wowinterface.com/forums/showthread.php?t=17753)

mandok 08-17-08 03:46 AM

Quest_greeting
 
OK - first I'm new to Lua and WOW addons. Have read around but not got my hands dirty yet. My question is about whether it is possible to create an Addon that modifies the appearance and content of the Quest Dialog that appears when you click on a mob with an exclamation mark? That is not the Quest Log.

xConStruct 08-18-08 01:34 AM

Yes, it should be possible, although I haven't tried it yet :)

A good start is looking in Blizzard's QuestFrame-code - I don't know how familiar you are with WoW-AddOns (the code looks rather complicated on first view), but you get a lot of the functions to hook or frame names out of it.

FrameXML/QuestFrame.lua
FrameXML/QuestFrame.xml

mandok 08-18-08 02:10 AM

Howto: Modify / replace an existing WOW Frame?
 
Thanks for the reply - this will be my first Addon so I'm learning :)

A general point then if I want to mod a WOW interface frame - one that already exists - can I trap for some sort of system call and override the default WOW Frame with my own - or do I have to actually modify the WOW code - in which case I guess it can get wiped with update patches?

xConStruct 08-18-08 02:20 AM

You could unregister the Blizz' QuestFrame from all events so that it won't be longer shown when you talk to an npc - and then you show your own frame when the events trigger. I think this would be the best solution.

The other methods are modifying the WoW Code and overriding functions or hooking the functions so that your changes are executed after the frame has been updated.

The risk of the addon getting broken with an update patch is alway there, so this shouldn't make a big difference ;)

Could you tell me what changes do you want to make on the questframe?

mandok 08-20-08 06:52 AM

Temp-Disabling a WOW Frame
 
Quote:

Originally Posted by Cargor (Post 99311)
You could unregister the Blizz' QuestFrame from all events so that it won't be longer shown when you talk to an npc -

So while I should probably start somewhere simpler - to unregister all events I'd use:

Code:

QuestFrame:UnRegisterAllEvents()
And taking it back I'd need to reverse it based on the code:

Code:

function QuestFrame_OnLoad()
        this:RegisterEvent("QUEST_GREETING");
        this:RegisterEvent("QUEST_DETAIL");
        this:RegisterEvent("QUEST_PROGRESS");
        this:RegisterEvent("QUEST_COMPLETE");
        this:RegisterEvent("QUEST_FINISHED");
        this:RegisterEvent("QUEST_ITEM_UPDATE");
end

And get my addone to loop through the events and do something like:

Code:

QuestFrame:RegisterEvent("QUEST_GREETING")
for each one?

mandok 08-20-08 06:54 AM

Not getting killed?
 
NB - where do people go to practice addon coding without getting mashed ingame?

Seerah 08-20-08 09:20 AM

pve servers, cities, lowbies in starting zones, etc.


All times are GMT -6. The time now is 05:12 PM.

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