Initial commit

Initial commit
This commit is contained in:
Jaysyn904
2024-09-13 09:10:39 -04:00
parent 09dc8aec92
commit d1c309ae63
8437 changed files with 8727659 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
////////////////////////////////////////////////////////////////////////////////
// Dead and Wild Magic System - On Area Exit
// wdm_ar_onexit
// By Don Anderson
// dandersonru@msn.com
//
// Place this script in the Area On Exit Event to Restore Magic
//
////////////////////////////////////////////////////////////////////////////////
#include "wdm_inc"
void main()
{
object oPC = GetExitingObject();
if(GetIsDM(oPC) || GetIsDMPossessed(oPC)) return;
//Only run Dead or Wild Magic if Player Entered a Wild or Dead Area
int nWDMZone = GetCampaignInt("WDM","INWDMZONE",oPC);
if(nWDMZone == 1)
{
SetCampaignInt("WDM","INWDMZONE",0,oPC);
WDM_RestoreMagic(oPC);
//For Allegiance System Casting Control
SetLocalInt(oPC,"OAS_CANCAST",1);
}
}