Files
Anphillia_PRC8/_module/nss/sql_update_pc.nss
Jaysyn904 28cdb617b3 Initial commit
Adding all of the current content for Anphillia Unlimited.
2024-01-04 07:49:38 -05:00

16 lines
400 B
Plaintext

#include "nwnx_events"
#include "sql_inc"
#include "chr_inc"
#include "xp_inc"
void main()
{
object oPC = OBJECT_SELF;
string sArea = GetTag(GetArea(oPC));
int nPCID = chr_GetPCID(oPC);
xp_SyncToDatabase(oPC);
if (sArea != "ADream") // Don't fuck up their location if they're in the dream.
sql_UpdatePC(nPCID, GetLocation(oPC), GetCurrentHitPoints(oPC), GetXP(oPC));
}