Page 1 of 1

New Lua Function: SetQuestFeatherColor

Posted: Sun Mar 31, 2013 10:10 pm
by Jabantiz
One of my wild tangents but implemented the ability to change the feather color above the quest givers head. This is meant to be used in the Init function of quest scripts and will only work for newer clients that support the colored feathers.

Code: Select all

function Init(Quest)
    -- Make the quest feather green
    SetQuestFeatherColor(Quest, 2)
end
Valid ID's are:

1 - purple
FeatherColor1.png
2 - green
FeatherColor2.png
3 - blue
FeatherColor3.png
Leaving this command out or setting it to any other value will show the normal feather.

Re: New Lua Function: SetQuestFeatherColor

Posted: Mon Apr 01, 2013 11:27 am
by John Adams
You know, normally I'd be cracking my whip about staying on task... but you manage to poop these things out so fast, I doubt it matters much :) plus, it's a good distraction to keep you from going insane.

Re: New Lua Function: SetQuestFeatherColor

Posted: Fri Jul 04, 2014 3:11 pm
by Jabantiz
This no longer seems to work on the npc's that it needs to, did some tests and on a mob it worked fine but on an actual quest giver it doesn't, it seems to make the feather vanish in most cases. No clue why this stopped working and what made it stop working.

Re: New Lua Function: SetQuestFeatherColor

Posted: Fri Jul 04, 2014 5:18 pm
by Dello0000
Nice work! i guess its color coded for different quest? normal, craft, group and raid or whatever?

Very nice tho!

Re: New Lua Function: SetQuestFeatherColor

Posted: Fri Jul 04, 2014 7:01 pm
by Lithillia
Weeeee! *runs around in circles and arms out* Murrar Shar!

Re: New Lua Function: SetQuestFeatherColor

Posted: Sat Jul 05, 2014 6:29 pm
by Jabantiz
Jabantiz wrote:This no longer seems to work on the npc's that it needs to, did some tests and on a mob it worked fine but on an actual quest giver it doesn't, it seems to make the feather vanish in most cases. No clue why this stopped working and what made it stop working.
Figured it out and should once again work properly, updated the DB with the code and took a screen shot as proof
FeatherFix.png
The issue is there was a version check expecting the client version, however the version it was checking against was the packet version which ended up being below the the check causing it to not work (wanted >= 1193 struct version was 1188). I just dropped the check to 1188, not sure when these feathers were introduced but doubt any one will ever connect with 1188 so there should be no problems.
Dello0000 wrote:Nice work! i guess its color coded for different quest? normal, craft, group and raid or whatever?

Very nice tho!
Yea at some point they became color coded, blue is for repeatable, green for trade skill, and purple I think is for heritage.