Files
HeroesStone_PRC8/_module/nss/hc_inc_on_acq.nss
Jaysyn904 1eefc84201 Initial Commit
Initial Commit.
2025-09-14 15:40:46 -04:00

32 lines
688 B
Plaintext

// PLACEHOLDER
int preEvent()
{
object oPC=GetModuleItemAcquired();
object oPlayer=GetItemPossessor(oPC);
string sTag=GetTag(oPC);
if(sTag=="ControlShapeTool")
{
int iCurse = GetLocalInt(oPlayer,"AFF_WEREWOLF");
if(iCurse == FALSE)
{
AssignCommand(oPlayer,ActionSpeakString("I am cursed."));
SetLocalInt(oPlayer,"AFF_WEREWOLF",1);
SetLocalInt(oPlayer,"WOLF_PERM",0);
SetLocalInt(oPlayer,"WOLF_DAYS",0);
SetLocalInt(oPC,"WWTOOL",1);
}
if(!(GetIsPC(oPlayer)))
{
DestroyObject(oPC);
}
}
return 1;
}
void postEvent()
{
return;
}