Initial Commit
Initial Commit
This commit is contained in:
43
_module/nss/mpoker_not2plays.nss
Normal file
43
_module/nss/mpoker_not2plays.nss
Normal file
@@ -0,0 +1,43 @@
|
||||
#include "mpoker_include"
|
||||
int StartingConditional()
|
||||
{
|
||||
|
||||
object oStool1 = GetNearestObjectByTag("mpoker_stool1");
|
||||
object oStool2 = GetNearestObjectByTag("mpoker_stool2");
|
||||
|
||||
object oP1 = GetSittingCreature(oStool1);
|
||||
object oP2 = GetSittingCreature(oStool2);
|
||||
|
||||
object oStored1 = GetLocalObject(OBJECT_SELF, "oP1");
|
||||
object oStored2 = GetLocalObject(OBJECT_SELF, "oP2");
|
||||
if (oStored1 != oP1 || oStored2 != oP2)
|
||||
{
|
||||
DeleteLocalInt(OBJECT_SELF, "STAGE");
|
||||
DeleteLocalInt(OBJECT_SELF, "BET");
|
||||
DeleteLocalInt(OBJECT_SELF, "POT");
|
||||
DeleteLocalString(OBJECT_SELF, "SPOKEN");
|
||||
DeleteLocalInt(OBJECT_SELF, "STARTER");
|
||||
DeleteLocalString(OBJECT_SELF, "CURRENT");
|
||||
DeleteLocalObject(OBJECT_SELF, "oP1");
|
||||
DeleteLocalObject(OBJECT_SELF, "oP2");
|
||||
|
||||
InitializeMDeck();
|
||||
}
|
||||
|
||||
if (!GetIsObjectValid(oP1) || !GetIsObjectValid(oP2))
|
||||
{
|
||||
DeleteLocalInt(OBJECT_SELF, "STAGE");
|
||||
DeleteLocalInt(OBJECT_SELF, "BET");
|
||||
DeleteLocalInt(OBJECT_SELF, "POT");
|
||||
DeleteLocalString(OBJECT_SELF, "SPOKEN");
|
||||
DeleteLocalInt(OBJECT_SELF, "STARTER");
|
||||
DeleteLocalString(OBJECT_SELF, "CURRENT");
|
||||
DeleteLocalObject(OBJECT_SELF, "oP1");
|
||||
DeleteLocalObject(OBJECT_SELF, "oP2");
|
||||
|
||||
InitializeMDeck();
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
Reference in New Issue
Block a user