Initial commit
Adding all of the current content for Anphillia Unlimited.
This commit is contained in:
20
_module/nss/_area_scripts.nss
Normal file
20
_module/nss/_area_scripts.nss
Normal file
@@ -0,0 +1,20 @@
|
||||
void main()
|
||||
{
|
||||
object oArea = GetFirstArea();
|
||||
while (oArea != OBJECT_INVALID)
|
||||
{
|
||||
string sEnter = GetEventScript(oArea, EVENT_SCRIPT_AREA_ON_ENTER);
|
||||
string sExit = GetEventScript(oArea, EVENT_SCRIPT_AREA_ON_EXIT);
|
||||
|
||||
if (sEnter == "" || sExit == "")
|
||||
{
|
||||
WriteTimestampedLogEntry("AREADBG: Fixing area scripts for " + GetName(oArea) + "("+GetTag(oArea)+")");
|
||||
}
|
||||
if (sEnter == "")
|
||||
SetEventScript(oArea, EVENT_SCRIPT_AREA_ON_ENTER, "anph_area_enter");
|
||||
if (sExit == "")
|
||||
SetEventScript(oArea, EVENT_SCRIPT_AREA_ON_ENTER, "anph_area_exit");
|
||||
oArea = GetNextArea();
|
||||
}
|
||||
WriteTimestampedLogEntry("AREADBG: All areas listed");
|
||||
}
|
||||
Reference in New Issue
Block a user