Changed folder name.

Changed folder name.
This commit is contained in:
Jaysyn904
2022-10-07 21:08:37 -04:00
parent 1c33c2843e
commit 8d97886c3f
7060 changed files with 0 additions and 0 deletions

37
_module/nss/sfpb_used.nss Normal file
View File

@@ -0,0 +1,37 @@
//::///////////////////////////////////////////////
//:: Scarface's Persistent Banking
//:: sfpb_used
//:://////////////////////////////////////////////
/*
Written By Scarface
*/
//////////////////////////////////////////////////
#include "sfpb_config"
void main()
{
// Vars
object oPC = GetLastUsedBy();
object oChest = OBJECT_SELF;
string sID = SF_GetPlayerID(oPC);
string sUserID = GetLocalString(oChest, "USER_ID");
string sModName = "PERSISTENT_CHEST";
// End script if any of these conditions are met
if (!GetIsPC(oPC) ||
GetIsDM(oPC) ||
GetIsDMPossessed(oPC) ||
GetIsPossessedFamiliar(oPC)) return;
// If the chest is already in use then this must be a thief
if (sUserID != "" && sUserID != sID)
{
AssignCommand(oPC, ClearAllActions());
SetCutsceneMode(oPC, TRUE);
AssignCommand(oPC, ActionMoveAwayFromObject(oChest, TRUE, 50.0));
FloatingTextStringOnCreature("Stop thief!!!!!", oPC);
SendMessageToAllDMs(GetName(oPC) + " is trying to steal from a bank " +
"chest that is already in use.");
DelayCommand(5.0, SetCutsceneMode(oPC, FALSE));
}
}