Initial Commit
Initial Commit [v1.32PRC8]
This commit is contained in:
22
_module/nss/en4_xspot.nss
Normal file
22
_module/nss/en4_xspot.nss
Normal file
@@ -0,0 +1,22 @@
|
||||
#include "rd_misc"
|
||||
|
||||
void main()
|
||||
{
|
||||
int iX;
|
||||
string sTag;
|
||||
string sZone;
|
||||
object oCreature;
|
||||
object oSpot;
|
||||
|
||||
oCreature = GetEnteringObject();
|
||||
|
||||
if (!GetIsPC(oCreature))
|
||||
{
|
||||
sZone = GetZone(oCreature);
|
||||
iX = GetXSpot(sZone);
|
||||
sTag = sZone + "_X_" + IntToString(iX);
|
||||
oSpot = GetObjectByTag(sTag);
|
||||
if (GetIsObjectValid(oSpot))
|
||||
DelayCommand(0.5f,AssignCommand(oCreature,ActionJumpToLocation(GetLocation(oSpot))));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user