getMonsterCount Function
Spoiler:
PHP Code:
public int getMonsterCount(int map) {
return c.getChannelServer().getMapFactory().getMap(map).getMonsterCount();
}
getMapId Function
Spoiler:
PHP Code:
public int getMapId() {
return c.getPlayer().getMap().getId();
}
getPlayerCount Function
Spoiler:
PHP Code:
public int getPlayerCount(int mapid) {
return c.getChannelServer().getMapFactory().getMap(mapid).getCharacters().size();
}
SummonMobOnDiffMap Function
Spoiler:
PHP Code:
public void spawnMobOnDiffMap(int mapid, int mobid, int amount, int xpos, int ypos) {
MapleMap target = c.getChannelServer().getMapFactory().getMap(mapid);
for (int x = 0; x < amount; x++) {
target.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(mobid), new Point(xpos, ypos));
}
}
SummonMob Function
Spoiler:
PHP Code:
public void summonMobAtPosition(int mobid, int amount, int posx, int posy) {
if (amount <= 1) {
MapleMonster npcmob = MapleLifeFactory.getMonster(mobid);
npcmob.setHp(npcmob.getMaxHp());
getPlayer().getMap().spawnMonsterOnGroudBelow(npcmob, new Point(posx, posy));
} else {
for (int i = 0; i < amount; i++) {
MapleMonster npcmob = MapleLifeFactory.getMonster(mobid);
npcmob.setHp(npcmob.getMaxHp());
getPlayer().getMap().spawnMonsterOnGroudBelow(npcmob, new Point(posx, posy));
}
}
}
how to add these lines to the source to operate CPQ
Spoiler:
PHP Code:
public int getMonsterCount(int map) {
return c.getChannelServer().getMapFactory().getMap(map).getMonsterCount();
}
getMapId Function
Spoiler:
PHP Code:
public int getMapId() {
return c.getPlayer().getMap().getId();
}
getPlayerCount Function
Spoiler:
PHP Code:
public int getPlayerCount(int mapid) {
return c.getChannelServer().getMapFactory().getMap(mapid).getCharacters().size();
}
SummonMobOnDiffMap Function
Spoiler:
PHP Code:
public void spawnMobOnDiffMap(int mapid, int mobid, int amount, int xpos, int ypos) {
MapleMap target = c.getChannelServer().getMapFactory().getMap(mapid);
for (int x = 0; x < amount; x++) {
target.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(mobid), new Point(xpos, ypos));
}
}
SummonMob Function
Spoiler:
PHP Code:
public void summonMobAtPosition(int mobid, int amount, int posx, int posy) {
if (amount <= 1) {
MapleMonster npcmob = MapleLifeFactory.getMonster(mobid);
npcmob.setHp(npcmob.getMaxHp());
getPlayer().getMap().spawnMonsterOnGroudBelow(npcmob, new Point(posx, posy));
} else {
for (int i = 0; i < amount; i++) {
MapleMonster npcmob = MapleLifeFactory.getMonster(mobid);
npcmob.setHp(npcmob.getMaxHp());
getPlayer().getMap().spawnMonsterOnGroudBelow(npcmob, new Point(posx, posy));
}
}
}
how to add these lines to the source to operate CPQ