23 lines
553 B
Plaintext
23 lines
553 B
Plaintext
void main()
|
|
{
|
|
object oPC = OBJECT_SELF;
|
|
object oJumper = GetObjectByTag("rejumper");
|
|
int nInt = GetLocalInt(oPC, "ENTERED");
|
|
location guild = GetLocation(GetWaypointByTag("guildway"));
|
|
|
|
if(GetNearestObject(OBJECT_TYPE_CREATURE, oJumper) != OBJECT_INVALID &&
|
|
nInt == 1)
|
|
{
|
|
if(GetItemPossessedBy(oPC, "guildstone")!=OBJECT_INVALID)
|
|
{
|
|
DelayCommand(0.3, AssignCommand(oPC, ActionJumpToLocation(guild)));
|
|
}
|
|
|
|
|
|
AssignCommand(oPC, ClearAllActions());
|
|
AssignCommand(oPC, ActionJumpToObject(GetObjectByTag("voyage")));
|
|
}
|
|
|
|
|
|
}
|