More PQ-esque script modules + HP Bar on some bosses
Completed (hopefully, now!) implementation of automated modules for PQ scripting. Added HP bar for some bosses that wouldn't display it before (like King Slime, Alishar and CRog).
This commit is contained in:
@@ -138,22 +138,13 @@ public class ReactorActionManager extends AbstractPlayerInteraction {
|
||||
pos.y -= 10;
|
||||
return pos;
|
||||
}
|
||||
|
||||
|
||||
public void spawnNpc(int npcId) {
|
||||
spawnNpc(npcId, getPosition());
|
||||
}
|
||||
|
||||
|
||||
public void spawnNpc(int npcId, Point pos) {
|
||||
MapleNPC npc = MapleLifeFactory.getNPC(npcId);
|
||||
if (npc != null) {
|
||||
npc.setPosition(pos);
|
||||
npc.setCy(pos.y);
|
||||
npc.setRx0(pos.x + 50);
|
||||
npc.setRx1(pos.x - 50);
|
||||
npc.setFh(reactor.getMap().getFootholds().findBelow(pos).getId());
|
||||
reactor.getMap().addMapObject(npc);
|
||||
reactor.getMap().broadcastMessage(MaplePacketCreator.spawnNPC(npc));
|
||||
}
|
||||
spawnNpc(npcId, pos, reactor.getMap());
|
||||
}
|
||||
|
||||
public MapleReactor getReactor() {
|
||||
|
||||
Reference in New Issue
Block a user