Fixed PRC AMS events not firing
Fixed PRC AMS events not firing. Updated release archive.
This commit is contained in:
13
_module/nss/call_onrest.nss
Normal file
13
_module/nss/call_onrest.nss
Normal file
@@ -0,0 +1,13 @@
|
||||
//:: call_onrest
|
||||
///////////////////////////////////////
|
||||
//::
|
||||
//:: Calls rest events
|
||||
//::
|
||||
//::
|
||||
///////////////////////////////////////
|
||||
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("prc_rest");
|
||||
ExecuteScript("onplayerrest");
|
||||
}
|
6
_module/nss/clickforxp.nss
Normal file
6
_module/nss/clickforxp.nss
Normal file
@@ -0,0 +1,6 @@
|
||||
void main()
|
||||
{
|
||||
object oPC = GetPlaceableLastClickedBy();
|
||||
GiveXPToCreature(oPC, 30000);
|
||||
FloatingTextStringOnCreature("Granted XP",oPC,FALSE);
|
||||
}
|
@@ -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
|
||||
|
@@ -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..)
|
||||
|
||||
|
@@ -7,4 +7,5 @@ void main()
|
||||
|
||||
//Make the PC start the XP2 Rest system..
|
||||
AssignCommand(oPC, ActionRest(TRUE));
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user