Initial Commit

Initial Commit
This commit is contained in:
Jaysyn904
2025-04-03 11:24:16 -04:00
parent 3ba3cf1b81
commit 5e558169a0
6086 changed files with 1502996 additions and 1 deletions

View File

@@ -0,0 +1,24 @@
void main()
{
int iTimesUsed = GetLocalInt(OBJECT_SELF, "ats_onused");
++iTimesUsed;
if(iTimesUsed == 2)
{
if(GetLocalInt(OBJECT_SELF, "ats_opened") == TRUE)
{
iTimesUsed = 1;
SetLocalInt(OBJECT_SELF, "ats_opened", FALSE);
}
else
{
iTimesUsed = 0;
SetLocalInt(OBJECT_SELF, "ats_onused", 0 );
ActionStartConversation(GetLastUsedBy(), "", TRUE);
}
}
SetLocalInt(OBJECT_SELF, "ats_onused", iTimesUsed );
}