Initial Commit

Initial Commit.
This commit is contained in:
Jaysyn904
2025-09-14 15:40:46 -04:00
parent 7083b33d71
commit 1eefc84201
19230 changed files with 11539227 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
void main()
{
object oPC;
oPC=GetLastUsedBy();
if (!GetIsPC(oPC)) return;
int nActive = GetLocalInt (OBJECT_SELF,"X2_L_PLC_ACTIVATED_STATE");
// * Play Appropriate Animation
if (!nActive== 1)
//if (!nActive)
{
ActionPlayAnimation(ANIMATION_PLACEABLE_ACTIVATE);
SetLocalInt(OBJECT_SELF,"X2_L_PLC_ACTIVATED_STATE",1);
object oBeholderwaypoint = GetObjectByTag("Beholdwp");
location lLocation = GetLocation(oBeholderwaypoint);
CreateObject(OBJECT_TYPE_PLACEABLE,"beholderport",lLocation);
FloatingTextStringOnCreature(" Secret Portal Active!",oPC);
PlaySound("al_mg_crystalev1");
object oGetRid = GetObjectByTag("Beholder_port");
DelayCommand(30.0,DestroyObject(oGetRid));
DelayCommand(31.0,ActionPlayAnimation(ANIMATION_PLACEABLE_DEACTIVATE));
DelayCommand(32.0,SetLocalInt(OBJECT_SELF,"X2_L_PLC_ACTIVATED_STATE",0));
return;
}
else
{
FloatingTextStringOnCreature("The mechanism appears to be stuck.",oPC);
return;
}
}