Updated to PRC8. Further function integration. Fixed NPC onDeath script. Full compile. Updated release archive.
19 lines
401 B
Plaintext
19 lines
401 B
Plaintext
#include "prc_inc_util"
|
|
|
|
void main()
|
|
{
|
|
object oPC = GetEnteringObject();
|
|
if (GetNearestCreature(CREATURE_TYPE_PLAYER_CHAR, PLAYER_CHAR_IS_PC, oPC) != OBJECT_INVALID)
|
|
{
|
|
if (!GetIsDM(oPC))
|
|
{
|
|
location lWay = GetLocation(GetWaypointByTag("fky_entry_area"));//port to entry
|
|
AssignCommand(oPC, JumpToLocation(lWay));
|
|
}
|
|
}
|
|
else
|
|
{
|
|
PRCForceRest(oPC);
|
|
}
|
|
}
|