Initial upload
Initial upload
This commit is contained in:
14
_module/nss/dm_throne.nss
Normal file
14
_module/nss/dm_throne.nss
Normal file
@@ -0,0 +1,14 @@
|
||||
//Let's DM's and creatures possesed by a DM to sit in a DM's chair.
|
||||
void main()
|
||||
{
|
||||
object oDM = GetLastUsedBy();
|
||||
object oChair = OBJECT_SELF;
|
||||
if (GetIsDM(oDM) || GetIsDM(GetMaster(oDM)))
|
||||
{
|
||||
if (GetIsObjectValid(oChair) && !GetIsObjectValid (GetSittingCreature(oChair)))
|
||||
AssignCommand(oDM, ActionSit(oChair));
|
||||
}
|
||||
else
|
||||
SpeakString("Only DM's are allowed to sit here.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user