Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Server Code Submissions

Reply
 
Thread Tools Display Modes
  #1  
Old 02-24-2011, 10:00 PM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,498
Default

Leere,

Trying to wrap my head around your bit logic for the messages because something still doesn't seem right. Here is what I am thinking:

0x00 - Not learned. No message.
0x01 - Learned via quest. If it is quest learned, your learn recipe sub handles the learned message.
0x02 - Learned via experiment. There should be a message about learning the recipe upon the first successful combine.
0x10 - Learned without message. No message.
0x20 - Unlisted. No message.

However, as it is now, you get a message in all instances except 0x10.
Reply With Quote
  #2  
Old 02-26-2011, 06:33 AM
Leere
Sarnak
 
Join Date: Sep 2008
Location: Home
Posts: 31
Default

Sorry about the late reply, I haven't been visiting the site daily lately.

The learn_recipe bit field was basically envisioned to work in the following way. The lower half-byte is used to decide how the recipe is available (0 - only skill limits, 1 - quest system has to make it available, 2 - user experiments or quest system makes available), while the upper half-byte holds actual flags you can add freely to the lower setting. (0x10 - suppress the learn message, 0x20 - don't return the recipe for favorites and general recipe searches).

So, as an example, you could set must_learn to 0x31, which should mean that there is no learn message given, the recipe can't be searched for, and it has to be made available via the quest system.

That means there's a learn message for 0x00 for cases where a manual combine is made for a red recipe, basically. I didn't limit it to just those though since I was under the impression that the message was also there any time you made a combine for the first time. I could well be mistaken about that though.

I've since come to understand that currently this also gives learn messages for quest combines. I've been meaning to compile a list to update those with the 0x10 flag, but something else has always kept coming up.

I've also forgot to check for the suppression flag in LearnRecipe, now that I've looked at the code again. Or I was thinking you'd only call that if you actually wanted the user to see a message anyway. Either way, it's inconsistent.


Since I need to fix the learn message flag for LearnRecipe anyway I can change or expand on that behavior, if you want. Just please let me know what you'd prefer.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 04:23 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3