Initial commit
Adding all of the current content for Anphillia Unlimited.
This commit is contained in:
25
_module/nss/hc_pc_sit_chair.nss
Normal file
25
_module/nss/hc_pc_sit_chair.nss
Normal file
@@ -0,0 +1,25 @@
|
||||
// hc_sit_chair
|
||||
// Archaegeo 2002 June 29
|
||||
// All code here thanks to Logxen
|
||||
// This allows pc's or NPC's to sit in this chair
|
||||
// Sitting chair script by Chaz Mead.
|
||||
// Add this script to sittable object's OnUsed event.
|
||||
void main()
|
||||
{
|
||||
object oPlayer = GetLastUsedBy ();
|
||||
object oChair = OBJECT_SELF;
|
||||
object oSitter=GetSittingCreature(oChair);
|
||||
if (GetIsPC (oPlayer))
|
||||
{
|
||||
if (GetIsObjectValid(oChair) && !GetIsObjectValid
|
||||
(oSitter))
|
||||
{
|
||||
AssignCommand (oPlayer, ActionSit (oChair));
|
||||
}
|
||||
}
|
||||
else if(!GetIsObjectValid(oSitter))
|
||||
{
|
||||
AssignCommand(oPlayer, ActionSit(oChair));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user