Jaysyn904 7b9e44ebbb Initial upload
Initial upload.  PRC8 has been added.  Module compiles, PRC's default AI & treasure scripts have been integrated.  Started work on top hak for SLA / Ability / Scripting modifications.
2024-03-11 23:44:08 -04:00

15 lines
400 B
Plaintext

#include "NW_O2_CONINCLUDE"
void main()
{
// sets "NW_DO_ONCE" back to 0 if nSpawnDelay has passed
ApplyEffectToObject(DURATION_TYPE_INSTANT,EffectVisualEffect(VFX_COM_HIT_DIVINE),OBJECT_SELF);
object oChair = OBJECT_SELF;
if(!GetIsObjectValid(GetSittingCreature(oChair)))
{
AssignCommand(GetLastUsedBy(), ActionSit(oChair));
SetLocalInt(GetLastUsedBy(),"issitting",1);
}
}