Inside the function
void UT_HireFollower(object oFollower, int bPreventLevelup = FALSE)
there is a call
WR_SetFollowerState(oFollower, FOLLOWER_STATE_ACTIVE, TRUE, 0, TRUE);
to the function
void WR_SetFollowerState(object oCreature, int nState, int nSendEvent = TRUE, int nMinLevel = 0,
int bPreventLevelup = FALSE)
This means the follower will be prevented from gaining xp afterwards. To enable it again, the flag CREATURE_REWARD_FLAGS needs to be cleared again after the hired event was processed (there the flag is set). New events are processed after the current script.
SetLocalInt(OBJECT_SELF,CREATURE_REWARD_FLAGS,0);
Alternatively, the relevant contents of UT_HireFollower() are to be called directly.
Is this actually a good way and place to discuss such findings? I was surprised to find little about followers at all but maybe I'm doing the search wrong?
UT_HireFollower() preventing xp gain
Débuté par
Magic
, déc. 13 2009 08:52
#1
Posté 13 décembre 2009 - 08:52
#2
Posté 13 décembre 2009 - 09:43
This is a perfectly good place to mention such things. However it is even better if you can find a place on the wiki to mention any such gotchas. Perhaps in the page for the function?
#3
Posté 13 décembre 2009 - 10:07
Thanks for the answer. I wanted to avoid editing at several places but I was willing to try. However, I can't find the function's page? Are there actually any for wrapper functions like UT_*() or WR_*()? I assumed only the core functions have been parsed there.





Retour en haut






