Tales
06-10-2018, 08:58 PM
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
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.
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
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.