EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Support::Windows Servers (https://www.eqemulator.org/forums/forumdisplay.php?f=587)
-   -   Disable Hunger when reaching XX level of Innate Metabolism - Code Help (https://www.eqemulator.org/forums/showthread.php?t=41937)

Tales 06-10-2018 08:58 PM

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.

Tales 06-17-2018 03:01 AM

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

Edit: altogether*


All times are GMT -4. The time now is 02:00 PM.

Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.