Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d307eff71f | ||
|
|
b935725096 | ||
|
|
3816e1c5bd |
@@ -133,6 +133,23 @@ public class AbstractPlayerInteraction {
|
|||||||
warpParty(id, portalId, mapid, mapid);
|
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);
|
||||||
|
|
||||||
|
if (portal == null) {
|
||||||
|
portal = warpMap.getPortal(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
var portalId = portal.getId();
|
||||||
|
|
||||||
|
warpParty(map, portalId, mapid, mapid);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
public void warpParty(int id, int fromMinId, int fromMaxId) {
|
public void warpParty(int id, int fromMinId, int fromMaxId) {
|
||||||
warpParty(id, 0, fromMinId, fromMaxId);
|
warpParty(id, 0, fromMinId, fromMaxId);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user