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.
This commit is contained in:
14
_module/nss/fr_chair_used.nss
Normal file
14
_module/nss/fr_chair_used.nss
Normal file
@@ -0,0 +1,14 @@
|
||||
#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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user