View Single Post
  #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