generated from Jaysyn/ModuleTemplate
21 lines
561 B
Plaintext
21 lines
561 B
Plaintext
//Werewolf bite, just import
|
|
void main()
|
|
{
|
|
object oWerewolf = GetLastDamager();
|
|
object oWerewolfa = GetObjectByTag("PCwerewolf");
|
|
int iClass = GetLevelByClass(CLASS_TYPE_PALADIN,OBJECT_SELF);
|
|
int iPC = GetIsPC(OBJECT_SELF);
|
|
|
|
if((oWerewolf == oWerewolfa) && (iPC) && (iClass < 1))
|
|
{
|
|
int iLycanSave = FortitudeSave(OBJECT_SELF,15);
|
|
if(!(iLycanSave))
|
|
{
|
|
//SpeakString("I am cursed!");
|
|
SetLocalInt(OBJECT_SELF,"AFF_WEREWOLF",1);
|
|
SetLocalInt(OBJECT_SELF,"WOLF_DAYS",0);
|
|
SetLocalInt(OBJECT_SELF,"FIRST_CHANGE",1);
|
|
}
|
|
}
|
|
}
|