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

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -16535,17 +16535,6 @@
"value": "metalpitpcbl"
}
},
{
"__struct_id": 0,
"RESREF": {
"type": "resref",
"value": "zep_traps009"
},
"STRREF": {
"type": "dword",
"value": 16812588
}
},
{
"__struct_id": 0,
"NAME": {
@ -16557,6 +16546,17 @@
"value": "razorwirepcbl"
}
},
{
"__struct_id": 0,
"RESREF": {
"type": "resref",
"value": "zep_traps009"
},
"STRREF": {
"type": "dword",
"value": 16812588
}
},
{
"__struct_id": 0,
"NAME": {
@ -17421,6 +17421,28 @@
"value": 16812974
}
},
{
"__struct_id": 0,
"NAME": {
"type": "cexostring",
"value": "Tunnel Opening"
},
"RESREF": {
"type": "resref",
"value": "bdd_tunnel"
}
},
{
"__struct_id": 0,
"NAME": {
"type": "cexostring",
"value": "Wall of Iron"
},
"RESREF": {
"type": "resref",
"value": "prc_walliron"
}
},
{
"__struct_id": 0,
"RESREF": {
@ -18007,6 +18029,17 @@
"value": "zep_ground_dag"
}
},
{
"__struct_id": 0,
"NAME": {
"type": "cexostring",
"value": "Polyp"
},
"RESREF": {
"type": "resref",
"value": "bdd_polyp"
}
},
{
"__struct_id": 0,
"NAME": {
@ -25177,6 +25210,17 @@
"value": "barricade2"
}
},
{
"__struct_id": 0,
"RESREF": {
"type": "resref",
"value": "gnomcntrptn"
},
"STRREF": {
"type": "dword",
"value": 14647
}
},
{
"__struct_id": 0,
"NAME": {
@ -28792,6 +28836,17 @@
"value": 16812604
}
},
{
"__struct_id": 0,
"NAME": {
"type": "cexostring",
"value": "Return Portal"
},
"RESREF": {
"type": "resref",
"value": "prc_ea_return"
}
},
{
"__struct_id": 0,
"NAME": {

View File

@ -23,6 +23,160 @@
"LIST": {
"type": "list",
"value": [
{
"__struct_id": 0,
"NAME": {
"type": "cexostring",
"value": "Barracks"
},
"RESREF": {
"type": "resref",
"value": "bdd_barracks"
}
},
{
"__struct_id": 0,
"NAME": {
"type": "cexostring",
"value": "Black Archer Creek"
},
"RESREF": {
"type": "resref",
"value": "wol_a_bbbcreek"
}
},
{
"__struct_id": 0,
"NAME": {
"type": "cexostring",
"value": "Black Archer Enter"
},
"RESREF": {
"type": "resref",
"value": "wol_a_bbbenter"
}
},
{
"__struct_id": 0,
"NAME": {
"type": "cexostring",
"value": "Books"
},
"RESREF": {
"type": "resref",
"value": "bdd_books"
}
},
{
"__struct_id": 0,
"NAME": {
"type": "cexostring",
"value": "Cave Explore"
},
"RESREF": {
"type": "resref",
"value": "bdd_cave_exp"
}
},
{
"__struct_id": 0,
"NAME": {
"type": "cexostring",
"value": "Change"
},
"RESREF": {
"type": "resref",
"value": "bdd_change"
}
},
{
"__struct_id": 0,
"NAME": {
"type": "cexostring",
"value": "Courtyard"
},
"RESREF": {
"type": "resref",
"value": "bdd_courtyard"
}
},
{
"__struct_id": 0,
"NAME": {
"type": "cexostring",
"value": "Dustblight"
},
"RESREF": {
"type": "resref",
"value": "bdd_blight"
}
},
{
"__struct_id": 0,
"NAME": {
"type": "cexostring",
"value": "Dymondheart Enter"
},
"RESREF": {
"type": "resref",
"value": "wol_a_dyenter"
}
},
{
"__struct_id": 0,
"NAME": {
"type": "cexostring",
"value": "Filtrator"
},
"RESREF": {
"type": "resref",
"value": "bdd_filtrator"
}
},
{
"__struct_id": 0,
"NAME": {
"type": "cexostring",
"value": "Forge"
},
"RESREF": {
"type": "resref",
"value": "bdd_forge"
}
},
{
"__struct_id": 0,
"NAME": {
"type": "cexostring",
"value": "Foyer"
},
"RESREF": {
"type": "resref",
"value": "bdd_foyer"
}
},
{
"__struct_id": 0,
"NAME": {
"type": "cexostring",
"value": "Hidden Cave"
},
"RESREF": {
"type": "resref",
"value": "bdd_cave_ent"
}
},
{
"__struct_id": 0,
"NAME": {
"type": "cexostring",
"value": "Hollow Shell"
},
"RESREF": {
"type": "resref",
"value": "bdd_shell"
}
},
{
"__struct_id": 0,
"NAME": {
@ -34,6 +188,28 @@
"value": "trackstrigger002"
}
},
{
"__struct_id": 0,
"NAME": {
"type": "cexostring",
"value": "Mod Enter"
},
"RESREF": {
"type": "resref",
"value": "bdd_enter"
}
},
{
"__struct_id": 0,
"NAME": {
"type": "cexostring",
"value": "Oil"
},
"RESREF": {
"type": "resref",
"value": "bdd_oil"
}
},
{
"__struct_id": 0,
"NAME": {
@ -45,6 +221,39 @@
"value": "slayrevmovaltrig"
}
},
{
"__struct_id": 0,
"NAME": {
"type": "cexostring",
"value": "Ruins"
},
"RESREF": {
"type": "resref",
"value": "bdd_ruins"
}
},
{
"__struct_id": 0,
"NAME": {
"type": "cexostring",
"value": "Schooner"
},
"RESREF": {
"type": "resref",
"value": "bdd_schooner"
}
},
{
"__struct_id": 0,
"NAME": {
"type": "cexostring",
"value": "Smelter Office"
},
"RESREF": {
"type": "resref",
"value": "bdd_office"
}
},
{
"__struct_id": 0,
"NAME": {
@ -55,6 +264,50 @@
"type": "resref",
"value": "trackstrigger003"
}
},
{
"__struct_id": 0,
"NAME": {
"type": "cexostring",
"value": "Taint"
},
"RESREF": {
"type": "resref",
"value": "bdd_taint"
}
},
{
"__struct_id": 0,
"NAME": {
"type": "cexostring",
"value": "Vault"
},
"RESREF": {
"type": "resref",
"value": "bdd_vault"
}
},
{
"__struct_id": 0,
"NAME": {
"type": "cexostring",
"value": "Well"
},
"RESREF": {
"type": "resref",
"value": "bdd_well"
}
},
{
"__struct_id": 0,
"NAME": {
"type": "cexostring",
"value": "Xeno"
},
"RESREF": {
"type": "resref",
"value": "bdd_xeno"
}
}
]
},

View File

@ -95,6 +95,116 @@
"LIST": {
"type": "list",
"value": [
{
"__struct_id": 0,
"NAME": {
"type": "cexostring",
"value": "BDD Entrance"
},
"RESREF": {
"type": "resref",
"value": "bdd_enter"
}
},
{
"__struct_id": 0,
"NAME": {
"type": "cexostring",
"value": "Black Archer Enter"
},
"RESREF": {
"type": "resref",
"value": "wol_a_bbbwp"
}
},
{
"__struct_id": 0,
"NAME": {
"type": "cexostring",
"value": "Cave Entrance"
},
"RESREF": {
"type": "resref",
"value": "bdd_foyer_ent002"
}
},
{
"__struct_id": 0,
"NAME": {
"type": "cexostring",
"value": "Cave Entrance 2"
},
"RESREF": {
"type": "resref",
"value": "bdd_foyer_ent001"
}
},
{
"__struct_id": 0,
"NAME": {
"type": "cexostring",
"value": "Changed Asherati"
},
"RESREF": {
"type": "resref",
"value": "bdd_schooner_007"
}
},
{
"__struct_id": 0,
"NAME": {
"type": "cexostring",
"value": "Climb Up"
},
"RESREF": {
"type": "resref",
"value": "bdd_foyer_ent003"
}
},
{
"__struct_id": 0,
"NAME": {
"type": "cexostring",
"value": "Dymondheart Enter"
},
"RESREF": {
"type": "resref",
"value": "wol_a_dymondwp"
}
},
{
"__struct_id": 0,
"NAME": {
"type": "cexostring",
"value": "Forge Tainted Asherati"
},
"RESREF": {
"type": "resref",
"value": "bdd_schooner_003"
}
},
{
"__struct_id": 0,
"NAME": {
"type": "cexostring",
"value": "Foyer Ashen Hulks"
},
"RESREF": {
"type": "resref",
"value": "bdd_schooner_001"
}
},
{
"__struct_id": 0,
"NAME": {
"type": "cexostring",
"value": "Foyer Entrance"
},
"RESREF": {
"type": "resref",
"value": "bdd_foyer_ent"
}
},
{
"__struct_id": 0,
"NAME": {
@ -105,6 +215,61 @@
"type": "resref",
"value": "npf_wp_chest_sp"
}
},
{
"__struct_id": 0,
"NAME": {
"type": "cexostring",
"value": "Office Shadows"
},
"RESREF": {
"type": "resref",
"value": "bdd_schooner_002"
}
},
{
"__struct_id": 0,
"NAME": {
"type": "cexostring",
"value": "Schooner Ashen Hulks"
},
"RESREF": {
"type": "resref",
"value": "bdd_schooner_ash"
}
},
{
"__struct_id": 0,
"NAME": {
"type": "cexostring",
"value": "Taint Asherati"
},
"RESREF": {
"type": "resref",
"value": "bdd_schooner_006"
}
},
{
"__struct_id": 0,
"NAME": {
"type": "cexostring",
"value": "Vault Shadow"
},
"RESREF": {
"type": "resref",
"value": "bdd_schooner_004"
}
},
{
"__struct_id": 0,
"NAME": {
"type": "cexostring",
"value": "Xeno Asherati"
},
"RESREF": {
"type": "resref",
"value": "bdd_schooner_005"
}
}
]
},

BIN
_module/ncs/call_onrest.ncs Normal file

Binary file not shown.

BIN
_module/ncs/clickforxp.ncs Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

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));
}

View File

@ -0,0 +1,220 @@
{
"__data_type": "UTP ",
"AnimationState": {
"type": "byte",
"value": 0
},
"Appearance": {
"type": "dword",
"value": 66
},
"AutoRemoveKey": {
"type": "byte",
"value": 0
},
"BodyBag": {
"type": "byte",
"value": 0
},
"CloseLockDC": {
"type": "byte",
"value": 0
},
"Comment": {
"type": "cexostring",
"value": "Gnomish Contraption / Engine"
},
"Conversation": {
"type": "resref",
"value": ""
},
"CurrentHP": {
"type": "short",
"value": 15
},
"Description": {
"type": "cexolocstring",
"value": {
"0": "The sound of the machine is truly infernal, as if devils and demons made war against each other within.",
"id": 14646
}
},
"DisarmDC": {
"type": "byte",
"value": 15
},
"Faction": {
"type": "dword",
"value": 1
},
"Fort": {
"type": "byte",
"value": 16
},
"Hardness": {
"type": "byte",
"value": 50
},
"HasInventory": {
"type": "byte",
"value": 0
},
"HP": {
"type": "short",
"value": 15
},
"Interruptable": {
"type": "byte",
"value": 1
},
"KeyName": {
"type": "cexostring",
"value": ""
},
"KeyRequired": {
"type": "byte",
"value": 0
},
"Lockable": {
"type": "byte",
"value": 0
},
"Locked": {
"type": "byte",
"value": 0
},
"LocName": {
"type": "cexolocstring",
"value": {
"id": 14647
}
},
"OnClick": {
"type": "resref",
"value": "clickforxp"
},
"OnClosed": {
"type": "resref",
"value": ""
},
"OnDamaged": {
"type": "resref",
"value": ""
},
"OnDeath": {
"type": "resref",
"value": ""
},
"OnDisarm": {
"type": "resref",
"value": ""
},
"OnHeartbeat": {
"type": "resref",
"value": ""
},
"OnInvDisturbed": {
"type": "resref",
"value": ""
},
"OnLock": {
"type": "resref",
"value": ""
},
"OnMeleeAttacked": {
"type": "resref",
"value": ""
},
"OnOpen": {
"type": "resref",
"value": ""
},
"OnSpellCastAt": {
"type": "resref",
"value": ""
},
"OnTrapTriggered": {
"type": "resref",
"value": ""
},
"OnUnlock": {
"type": "resref",
"value": ""
},
"OnUsed": {
"type": "resref",
"value": ""
},
"OnUserDefined": {
"type": "resref",
"value": ""
},
"OpenLockDC": {
"type": "byte",
"value": 18
},
"PaletteID": {
"type": "byte",
"value": 0
},
"Plot": {
"type": "byte",
"value": 0
},
"PortraitId": {
"type": "word",
"value": 424
},
"Ref": {
"type": "byte",
"value": 0
},
"Static": {
"type": "byte",
"value": 0
},
"Tag": {
"type": "cexostring",
"value": "GnomishContraptionEngine"
},
"TemplateResRef": {
"type": "resref",
"value": "gnomcntrptn"
},
"TrapDetectable": {
"type": "byte",
"value": 1
},
"TrapDetectDC": {
"type": "byte",
"value": 0
},
"TrapDisarmable": {
"type": "byte",
"value": 1
},
"TrapFlag": {
"type": "byte",
"value": 0
},
"TrapOneShot": {
"type": "byte",
"value": 1
},
"TrapType": {
"type": "byte",
"value": 0
},
"Type": {
"type": "byte",
"value": 0
},
"Useable": {
"type": "byte",
"value": 1
},
"Will": {
"type": "byte",
"value": 0
}
}

Binary file not shown.