Dissabling PrCs
Posted: Wed May 11, 2005 6:26 am
Jolly thought that this is a switch somewhere rather than being scripted, can anyone point me in the direction where I can find the switch to disable them? Thanks.
Ex
Ex
The names of the variables (ScriptVar label) can be found in the respective class_pres_* .2da//Blackguard
if (GetLevelByClass(CLASS_TYPE_BLACKGUARD, oPC) < 1)
SetLocalInt( oPC ,"X1_AllowBlkGrd", 1);
this means that you need to put the disabling lines either directly into the module OnEnter event, or put them all into a script and then call that from the Module OnEnter event.which is called from the module OnEnter event.
Code: Select all
void main()
{
//Blackguard
if (GetLevelByClass(CLASS_TYPE_BLACKGUARD, OBJECT_SELF) < 1)
SetLocalInt( OBJECT_SELF ,"X1_AllowBlkGrd", 1);
//Assassin
if (GetLevelByClass(CLASS_TYPE_ASSASSIN, OBJECT_SELF) < 1)
SetLocalInt( OBJECT_SELF ,"X1_AllowAsasin", 1);
//Arcane Archer
if (GetLevelByClass(CLASS_TYPE_ARCANE_ARCHER, OBJECT_SELF) < 1)
SetLocalInt( OBJECT_SELF ,"X1_AllowArcher", 1);
//Harper Scout
if (GetLevelByClass(CLASS_TYPE_HARPER, OBJECT_SELF) < 1)
SetLocalInt( OBJECT_SELF ,"X1_AllowHarper", 1);
//Shadow Dancer
if (GetLevelByClass(CLASS_TYPE_SHADOWDANCER, OBJECT_SELF) < 1)
SetLocalInt( OBJECT_SELF ,"X1_AllowShadow", 1);
//Dwarven Defender
if (GetLevelByClass(CLASS_TYPE_DWARVENDEFENDER, OBJECT_SELF) < 1)
SetLocalInt( OBJECT_SELF ,"X1_AllowDwDef", 1);
//Red Dragon Disciple
if (GetLevelByClass(CLASS_TYPE_DRAGONDISCIPLE, OBJECT_SELF) < 1)
SetLocalInt( OBJECT_SELF ,"X1_AllowDrDis", 1);
//Champion of Torm
if (GetLevelByClass(CLASS_TYPE_DIVINECHAMPION, OBJECT_SELF) < 1)
SetLocalInt( OBJECT_SELF ,"X2_AllowDivcha", 1);
//Weapon Master
if (GetLevelByClass(CLASS_TYPE_WEAPON_MASTER, OBJECT_SELF) < 1)
SetLocalInt( OBJECT_SELF ,"X2_AllowWM", 1);
//Shape Shifter
if (GetLevelByClass(CLASS_TYPE_SHIFTER, OBJECT_SELF) < 1)
SetLocalInt( OBJECT_SELF ,"X2_AllowShiftr", 1);
//Pale Master
if (GetLevelByClass(CLASS_TYPE_PALEMASTER, OBJECT_SELF) < 1)
SetLocalInt( OBJECT_SELF ,"X2_AllowPalema", 1);
}
I meant I don't have access to any COPAP or other world scripts. Thanks for the code Jolly, you saved me some timeJollyOrc wrote:that shouldn't hurt you Enverex: