Thread Tools Display Modes
08-17-08, 03:46 AM   #1
mandok
Premium Member
Premium Member
Join Date: Aug 2008
Posts: 7
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.
  Reply With Quote
08-18-08, 01:34 AM   #2
xConStruct
A Chromatic Dragonspawn
 
xConStruct's Avatar
AddOn Author - Click to view addons
Join Date: May 2008
Posts: 199
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
  Reply With Quote
08-18-08, 02:10 AM   #3
mandok
Premium Member
Premium Member
Join Date: Aug 2008
Posts: 7
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?
  Reply With Quote
08-18-08, 02:20 AM   #4
xConStruct
A Chromatic Dragonspawn
 
xConStruct's Avatar
AddOn Author - Click to view addons
Join Date: May 2008
Posts: 199
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?
  Reply With Quote
08-20-08, 06:52 AM   #5
mandok
Premium Member
Premium Member
Join Date: Aug 2008
Posts: 7
Temp-Disabling a WOW Frame

Originally Posted by Cargor View Post
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?
  Reply With Quote
08-20-08, 06:54 AM   #6
mandok
Premium Member
Premium Member
Join Date: Aug 2008
Posts: 7
Not getting killed?

NB - where do people go to practice addon coding without getting mashed ingame?
  Reply With Quote
08-20-08, 09:20 AM   #7
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
pve servers, cities, lowbies in starting zones, etc.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » Quest_greeting

Thread Tools
Display Modes

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