31 lines
763 B
Plaintext
31 lines
763 B
Plaintext
|
////////////////////////////////////////////////////////////////////////////////
|
||
|
//
|
||
|
// Map Exploration by Explore Area Waypoint
|
||
|
// opw_map_exp_wp
|
||
|
// By Don Anderson
|
||
|
// dandersonru@msn.com
|
||
|
//
|
||
|
// Place this in the Area OnEnter Event
|
||
|
//
|
||
|
////////////////////////////////////////////////////////////////////////////////
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
object oPC = GetEnteringObject();
|
||
|
object oArea = GetArea(oPC);
|
||
|
object oWP = GetNearestObjectByTag("ExlporeArea",oPC,1);
|
||
|
|
||
|
//Use these to save CPU Cycles
|
||
|
if(GetIsDM(oPC) == TRUE) return;
|
||
|
if(GetIsDMPossessed(oPC) == TRUE) return;
|
||
|
if(GetIsPC(oPC) == FALSE) return;
|
||
|
|
||
|
//Now Loop Through Inventory and search for Maps
|
||
|
if(oWP != OBJECT_INVALID)
|
||
|
{
|
||
|
ExploreAreaForPlayer(oArea,oPC);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|