Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

CPQ (Nothing happens) - Start

Newbie Spellweaver
Joined
Jun 13, 2016
Messages
25
Reaction score
0
I am using LeaderMS Rev 2 CPQ codes (v62). As I enter the room, waiting for participants, until one come, I receive the message asking if I want to accept him as an enemy (sendCPQMapLists). After clicking 'yes', nothing happens.What could it be?

My src: MoopleDev rev117, v83.

cm.sendCPQMapLists:
hVy4Oai - CPQ (Nothing happens) - Start - RaGEZONE Forums


gipMh7l - CPQ (Nothing happens) - Start - RaGEZONE Forums

Code:
if (status == 0) {            if (cm.getParty().getMembers().size() == party.size()){            cm.getPlayer().setChallenged(true);            var snd = "";            for (var i = 0; i < party.size(); i++)                snd += "#b" + party.get(i).getName() + " / (Level: " + party.get(i).getLevel() + ") / " + party.get(i).getJobNameById(party.get(i).getJobId()) + "#k\r\n\r\nGostaria de lutar contra este grupo no Festival de Monstros?";            cm.sendAcceptDecline(snd);           } else {             return;             }        } else if (status == 1) {			var ch = cm.getChrById(party.get(0).getId());			cm.startCPQ(ch, ch.getMapId() + 1);			ch.getParty().setEnemy(cm.getPlayer().getParty());			cm.getChar().getParty().setEnemy(ch.getParty());			cm.getChar().setChallenged(false);			cm.dispose();        }
PHP:
public void sendCPQMapLists() {       String msg = "Inscreva-se no Festival de Monstros!\\r\\n";       for (int i = 0; i < 6; i++) {           if (fieldTaken(i)) {       if (fieldLobbied(i)) {           msg += "#b#L" + i + "#Campo do Festival " + (i + 1) + " (Nível: " + calcAvgLvl(980000100 + i * 100) + " / " + getPlayerCount(980000100 + i * 100) + "x" + getPlayerCount(980000100 + i * 100) + ")  #l\\r\\n";       } else {        continue;       }           } else {              msg += "#b#L" + i + "#Campo do Festival " + (i + 1) + "#l\\r\\n";           }       }       sendSimple(msg);    }
PHP:
public void startCPQ(final MapleCharacter challenger, int field) {try {    if (challenger != null) {if (challenger.getParty() == null) {    throw new RuntimeException("Não há oponentes!");}for (MaplePartyCharacter mpc : challenger.getParty().getMembers()) {    MapleCharacter mc = c.getChannelServer().getPlayerStorage().getCharacterByName(mpc.getName());    if (mc != null) {mc.changeMap(getPlayer().getMap(), getPlayer().getMap().getPortal(0));mapClock(10);    }}    }    final int mapid = c.getPlayer().getMapId() + 1;    MapleTimer.NPCTimer tMan = MapleTimer.NPCTimer.getInstance();    tMan.schedule(new Runnable() {@Overridepublic void run() {    new MonsterCarnival(getPlayer().getParty(), challenger.getParty(), mapid);      }    }, 10000);mapMessage("[Folia dos Monstros] Folia dos Monstros começa em 10 segundos!");} catch (Exception e) {    FilePrinter.printError(FilePrinter.LOG_CPQ, e, "");}    }
 

Attachments

You must be registered for see attachments list
Last edited:
Skilled Illusionist
Joined
Apr 26, 2015
Messages
302
Reaction score
77
Errors when warping the characters...?

You have to debug the code to check what's happening.
 
Upvote 0
Back
Top