Fixed PRC AMS events not firing

Fixed PRC AMS events not firing.  Updated release archive.
This commit is contained in:
Jaysyn904
2023-11-04 21:37:49 -04:00
parent 6aa7ab4950
commit 91d10a9f5a
16 changed files with 12257 additions and 1291 deletions

View File

@@ -0,0 +1,13 @@
//:: call_onrest
///////////////////////////////////////
//::
//:: Calls rest events
//::
//::
///////////////////////////////////////
void main()
{
ExecuteScript("prc_rest");
ExecuteScript("onplayerrest");
}

View File

@@ -0,0 +1,6 @@
void main()
{
object oPC = GetPlaceableLastClickedBy();
GiveXPToCreature(oPC, 30000);
FloatingTextStringOnCreature("Granted XP",oPC,FALSE);
}

View File

@@ -15,7 +15,6 @@ Intergrated SimTools to the OnPlayerLevelUp Event
void SendMessageToAllPC(string sMessage)
{
ExecuteScript("prc_levelup", OBJECT_SELF);
object oPC = GetFirstPC();
while(GetIsObjectValid(oPC))
{
@@ -90,6 +89,7 @@ else ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_KNO
//a legal character or not, just delete the // below to use
//DelayCommand(2.0, ExecuteScript("cheatercheck4", oPC));
ExecuteScript("prc_levelup", oPC);
//////////////////////////////////////////////////////////////////////////
//SimTools Languages

View File

@@ -21,8 +21,6 @@ effect eEffect;
//Main Script
void main()
{
ExecuteScript("prc_rest", OBJECT_SELF);
//Declare Major Variables
object oPC=GetLastPCRested();
object oPlayer = oPC;
@@ -214,6 +212,7 @@ if(GetLocalInt(GetModule(), "MULTI")==TRUE)
ExecuteScript("powerimmortal", oPC);
}
ExecuteScript("prc_rest", oPC);
//Your code goes here. (This happens when the PC is done resting..)

View File

@@ -7,4 +7,5 @@ void main()
//Make the PC start the XP2 Rest system..
AssignCommand(oPC, ActionRest(TRUE));
}