Try setting the variable to 1 in the OnClientEnter event, and setting it to 0 in the level up event. It may be that the numbers checked are hardcoded, and that it's always 0 == TRUE, 1 == FALSE for it.
The on enter add on would look something like:
int nAppr = GetSkillRank(SKILL_APPRAISE, oPC, TRUE);
int nPers = GetSkillRank(SKILL_PERSUADE, oPC, TRUE);
int nLore = GetSkillRank(SKILL_LORE, oPC, TRUE);
int nFocs = GetHasFeat(404, oPC);
if(!nFocs || nLore < 4 || nAppr < 6 || nPers < 2)
{
SetLocalInt(oPC, "TL_AllowMERCH", 1);
}
The on level would be the same as before, but setting 0 now instead.
Modifié par Failed.Bard, 29 août 2011 - 06:45 .