Add the warp party function that the scripts use

This commit is contained in:
Arthur Charlton
2023-07-03 18:25:14 -04:00
parent c9d551cd39
commit 3816e1c5bd

View File

@@ -133,6 +133,16 @@ public class AbstractPlayerInteraction {
warpParty(id, portalId, mapid, mapid);
}
public void warpParty(int map, String portalName) {
int mapid = getMapId();
var warpMap = c.getChannelServer().getMapFactory().getMap(map);
var portal = warpMap.getPortal(portalName).getId();
warpParty(map, portal, mapid, mapid);
}
public void warpParty(int id, int fromMinId, int fromMaxId) {
warpParty(id, 0, fromMinId, fromMaxId);
}