Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Windows Servers

Support::Windows Servers Support forum for Windows EQEMu users.

Reply
 
Thread Tools Display Modes
  #1  
Old 06-10-2018, 08:58 PM
Tales
Fire Beetle
 
Join Date: Jun 2018
Posts: 2
Default Disable Hunger when reaching XX level of Innate Metabolism - Code Help

Hi everyone.

I've turned Innate Metabolism into 5 tiers, with the 5th tier removing the need for food and drink all together. I have tried to play around with GetAALevel() but my lack of any real knowledge and inability to find any intuitive examples that I can grasp has left me with compile issues.

What i'm hoping to do is disable prevent food loss akin to the character being a GM or in the bazaar, but ONLY when GetAAlevel of skill id 15 == 5 (15 is the aa id of innate metabolism).

zone\client_process.cpp
Code:
	if (zone->GetZoneID() != 151 && !GetGM()) {
		int loss = RuleI(Character, FoodLossPerUpdate);
		if (GetHorseId() != 0)
			loss *= 3;
I want to append it after !GetGM, but I keep having identifier issues and other syntax problems when I compile. If anyone could help me with this it would be appreciated.
Reply With Quote
  #2  
Old 06-17-2018, 03:01 AM
Tales
Fire Beetle
 
Join Date: Jun 2018
Posts: 2
Default

Some tutorial links helped me sort out my issue and I was able to make it work as intended. Thanks anyway.

Edit: altogether*
Reply With Quote
Reply

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

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 08:11 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 - 2018, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3