2025/09/03 Update
Modified CEP 2DA hak to remove extraneous creatures from palette. Added door closer script to most town doors. Added Amulet of Mighty Fists +1 through +5 to loot table. Fixed names on remainder of creatures. Updated PEPS. Set PEPS to server mode. Set module to server mode. Updated Class Title function in ms_name_inc. Updated dungeon areas to reset, globally & per player. Added "new" weapons to the Blacksmith. Added magical "new" weapons to the treasure tables. Fixed persistent storage.
This commit is contained in:
@@ -1,8 +1,37 @@
|
||||
#include "nui_i_main"
|
||||
#include "inc_perchest"
|
||||
#include "inc_gennui"
|
||||
#include "inc_examine"
|
||||
#include "inc_tictactoe"
|
||||
#include "inc_blackjack"
|
||||
#include "inc_transform"
|
||||
|
||||
void main()
|
||||
{
|
||||
NUI();
|
||||
|
||||
ExecuteScript("prc_onplayernui");
|
||||
}
|
||||
|
||||
object oPlayer = NuiGetEventPlayer();
|
||||
int nToken = NuiGetEventWindow();
|
||||
string sWindowId = NuiGetWindowId(oPlayer, nToken);
|
||||
string sType = NuiGetEventType();
|
||||
string sElement = NuiGetEventElement();
|
||||
int nArrayIndex = NuiGetEventArrayIndex();
|
||||
json jPayload = NuiGetEventPayload();
|
||||
|
||||
//SendMessageToPC(oPlayer, "(" + IntToString(nToken) + ":" + sWindowId + ") T: " + sType + ", E: " + sElement + ", AI: " + IntToString(nArrayIndex) + ", P: " + JsonDump(jPayload));
|
||||
|
||||
if (sWindowId == PC_NUI_WINDOW_ID || sWindowId == PC_NUI_GOLD_WINDOW_ID)
|
||||
PC_HandleNUIEvents(oPlayer, sWindowId, nToken, sType, sElement, nArrayIndex);
|
||||
else if (sWindowId == EXAMINE_NUI_WINDOW_ID)
|
||||
Examine_HandleNUIEvents(oPlayer, nToken, sType, sElement, nArrayIndex);
|
||||
else if (sWindowId == TTT_WINDOW_ID)
|
||||
TTT_HandleNUIEvents(oPlayer, nToken, sType, sElement, nArrayIndex, jPayload);
|
||||
else if (sWindowId == BJ_WINDOW_ID)
|
||||
BJ_HandleNUIEvents(oPlayer, nToken, sType, sElement, nArrayIndex, jPayload);
|
||||
else if (sWindowId == VT_WINDOW_ID)
|
||||
VT_HandleNUIEvents(oPlayer, nToken, sType, sElement, nArrayIndex, jPayload);
|
||||
else
|
||||
GNW_HandleNUIEvents();
|
||||
}
|
||||
Reference in New Issue
Block a user