Files
HeroesStone_PRC8/_module/nss/de1_padush1.nss
Jaysyn904 1eefc84201 Initial Commit
Initial Commit.
2025-09-14 15:40:46 -04:00

22 lines
705 B
Plaintext

/////////////////////////////////////
// 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));
}
}