generated from Jaysyn/ModuleTemplate
32 lines
688 B
Plaintext
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;
|
|
}
|