Something like this works, just add whatever classes ya want.
#include "NW_I0_GENERIC"
int StartingConditional()
{
object oSelf = OBJECT_SELF;
if(GetLevelByclass(class_TYPE_SORCERER, oSelf)>=0 || (GetLevelByclass(class_TYPE_WIZARD, oSelf)>=0) )
{
return TRUE;
}
return FALSE;
}
Bah beaten to the punch.
Well if we want to get technical, more then htose two classes cast spells., So it might look more like this:
#include "NW_I0_GENERIC"
int StartingConditional()
{
object oSelf = OBJECT_SELF;
if(GetLevelByclass(class_TYPE_ARCANE_ARCHER, oSelf)>=0 || (GetLevelByclass(class_TYPE_BARD, oSelf)>=0 ||
(GetLevelByclass(class_TYPE_BLACKGUARD, oSelf)>=0 || (GetLevelByclass(class_TYPE_CLERIC, oSelf)>=0||
(GetLevelByclass(class_TYPE_DRAGON_DISCIPLE, oSelf)>=0 || (GetLevelByclass(class_TYPE_DRAGONDISCIPLE, oSelf)>=0 ||
(GetLevelByclass(class_TYPE_DRUID, oSelf)>=0 || (GetLevelByclass(class_TYPE_HARPER, oSelf)>=0 ||
(GetLevelByclass(class_TYPE_PALADIN, oSelf)>=0 || (GetLevelByclass(class_TYPE_PALE_MASTER, oSelf)>=0 ||
(GetLevelByclass(class_TYPE_PALEMASTER, oSelf)>=0 || (GetLevelByclass(class_TYPE_RANGER, oSelf)>=0 ||
(GetLevelByclass(class_TYPE_SHIFTER, oSelf)>=0 || (GetLevelByclass(class_TYPE_SORCERER, oSelf)>=0 ||
(GetLevelByclass(class_TYPE_WIZARD, oSelf)>=0)))))))))))))))
{
return TRUE;
}
return FALSE;
}
Modifié par Xovian, 13 octobre 2011 - 02:21 .