|
Teleport to Pledge Member |
| MP: | 30 | HP: | 0 | Item: | None | Amount: | N/A | Duration: | 0 | Skill Type: | Change | Target: | buff |
| Delay: | 0 | Cast Invis: | Yes | Ignores CM: | Yes | Element: | None | Range: | N/A | Area: | N/A | Lawful: | 0 |
| Dmg Value: | 0.0 | Dmg Dice: | 0 | Dice Count: | 0 | Prob Value: | 0 | Prob Dice: | 0 | Prob Max: | N/A | Threat: | 0 |
if (_skillId == RUN_CLAN) {
L1PcInstance pc = (L1PcInstance) cha;
L1PcInstance clanPc = (L1PcInstance) L1World
.getInstance().findObject(_targetID);
if (clanPc != null) {
if (pc.getMap().isEscapable() || pc.isGm()) {
boolean castle_area = L1CastleLocation
.checkInAllWarArea(clanPc.getX(),
clanPc.getY(),
clanPc.getMapId());
if ((clanPc.getMapId() == 0
|| clanPc.getMapId() == 4 || clanPc
.getMapId() == 304)
&& castle_area == false) {
L1Teleport.teleport(pc, clanPc.getX(),
clanPc.getY(), clanPc.getMapId(),
5, true);
} else {
pc.sendPackets(new S_ServerMessage(547));
}
} else {
pc.sendPackets(new S_ServerMessage(647));
L1Teleport.teleport(pc, pc.getX(), pc.getY(),
pc.getMapId(), pc.getHeading(), false);
}
}
}