New Lua Function: SetQuestFeatherColor

Discussions on development of both the EQ2Emulator LUA Script Engine and Script specifications

Moderator: Team Members

Post Reply
Jabantiz
Lead Developer
Posts: 2912
Joined: Wed Jul 25, 2007 2:52 pm
Location: California

New Lua Function: SetQuestFeatherColor

Post by Jabantiz » Sun Mar 31, 2013 10:10 pm

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.
You do not have the required permissions to view the files attached to this post.

User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Re: New Lua Function: SetQuestFeatherColor

Post by John Adams » Mon Apr 01, 2013 11:27 am

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.

Jabantiz
Lead Developer
Posts: 2912
Joined: Wed Jul 25, 2007 2:52 pm
Location: California

Re: New Lua Function: SetQuestFeatherColor

Post by Jabantiz » Fri Jul 04, 2014 3:11 pm

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.

Dello0000
Posts: 175
Joined: Fri May 30, 2014 9:18 am
EQ2Emu Server: MHM Laneth
Characters: Dello - Dellos
Location: Scotland!
Contact:

Re: New Lua Function: SetQuestFeatherColor

Post by Dello0000 » Fri Jul 04, 2014 5:18 pm

Nice work! i guess its color coded for different quest? normal, craft, group and raid or whatever?

Very nice tho!
I cant see it killing the server but it may have an incorrect tooltip. Muhahaha :twisted:

User avatar
Lithillia
Posts: 71
Joined: Sun May 25, 2014 3:53 pm

Re: New Lua Function: SetQuestFeatherColor

Post by Lithillia » Fri Jul 04, 2014 7:01 pm

Weeeee! *runs around in circles and arms out* Murrar Shar!

Jabantiz
Lead Developer
Posts: 2912
Joined: Wed Jul 25, 2007 2:52 pm
Location: California

Re: New Lua Function: SetQuestFeatherColor

Post by Jabantiz » Sat Jul 05, 2014 6:29 pm

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.
You do not have the required permissions to view the files attached to this post.

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests