CPQ (Nothing happens) - Start

Results 1 to 4 of 4
  1. #1
    Member Adriel Monbol is offline
    MemberRank
    Jun 2016 Join Date
    25Posts

    CPQ (Nothing happens) - Start


    RaGEZONE Recommends

    RaGEZONE Recommends

    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:



    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 Code:
    public void sendCPQMapLists() {       String msg "Inscreva-se no Festival de Monstros!\\r\\n";       for (int i 06i++) {           if (fieldTaken(i)) {       if (fieldLobbied(i)) {           msg += "#b#L" "#Campo do Festival " + (1) + " (Nível: " calcAvgLvl(980000100 100) + " / " getPlayerCount(980000100 100) + "x" getPlayerCount(980000100 100) + ")  #l\\r\\n";       } else {        continue;       }           } else {              msg += "#b#L" "#Campo do Festival " + (1) + "#l\\r\\n";           }       }       sendSimple(msg);    } 
    PHP Code:
    public void startCPQ(final MapleCharacter challengerint 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_CPQe"");}    } 
    Last edited by Adriel Monbol; 3 Weeks Ago at 09:31 PM.


  2. #2
    That one pokemon thing Luxray is offline
    SubscriberRank
    Apr 2010 Join Date
    2,048Posts

    Re: CPQ (Nothing happens) - Start

    Could you single out the script that Spiegelmann runs? I can't make anything out of Spanish.


  3. #3
    Ultimate Member br1337 is offline
    MemberRank
    Apr 2015 Join Date
    185Posts

    Re: CPQ (Nothing happens) - Start

    Errors when warping the characters...?

    You have to debug the code to check what's happening.

  4. #4
    Member Adriel Monbol is offline
    MemberRank
    Jun 2016 Join Date
    25Posts

    Re: CPQ (Nothing happens) - Start

    Quote Originally Posted by Luxray View Post
    Could you single out the script that Spiegelmann runs? I can't make anything out of Spanish.
    Here: cpq - Pastebin.com




Advertisement