Add OnWaypointWarpRequested & New Admin Branching Cmd

This commit is contained in:
AconiteGodOfSWG
2020-11-18 18:13:04 -05:00
parent 6525728a60
commit b462125d16
4 changed files with 12 additions and 0 deletions
@@ -12287,4 +12287,13 @@ public class base_player extends script.base_script
}
return true;
}
public int OnWaypointWarpRequested(obj_id self, obj_id waypoint) throws InterruptedException {
if(!isGod(self)) {
return SCRIPT_CONTINUE;
}
location loc = getWaypointLocation(waypoint);
sendSystemMessageTestingOnly(self, "Teleporting you to the location of Waypoint: "+getWaypointName(waypoint)+" ("+waypoint+") at "+loc+"...");
warpPlayer(self, loc.area, loc.x, loc.y, loc.z, loc.cell, 0, 0, 0, "noHandler", false);
return SCRIPT_CONTINUE;
}
}