generated from Jaysyn/ModuleTemplate
Initial Commit
Initial Commit.
This commit is contained in:
21
_module/nss/de1_padush1.nss
Normal file
21
_module/nss/de1_padush1.nss
Normal file
@@ -0,0 +1,21 @@
|
||||
/////////////////////////////////////
|
||||
// Dragon's Edge
|
||||
// by Charly Carlos
|
||||
/////////////////////////////////////
|
||||
// Causes Padush and the PC to sit down and prepare to arm wrestle in the
|
||||
// Silver Wink Inn.
|
||||
/////////////////////////////////////
|
||||
void main()
|
||||
{
|
||||
object oPadushChair = GetObjectByTag("PadushChair");
|
||||
object oPCChair = GetObjectByTag("PadushChair_PC");
|
||||
object oPC = GetPCSpeaker();
|
||||
TakeGoldFromCreature(GetLocalInt(OBJECT_SELF, "nGoldRequired"), oPC, FALSE);
|
||||
if (!GetIsObjectValid(GetSittingCreature(oPadushChair))) {
|
||||
ActionSit(oPadushChair);
|
||||
}
|
||||
if (!GetIsObjectValid(GetSittingCreature(oPCChair))) {
|
||||
AssignCommand(oPC, ActionSit(oPCChair));
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user