Quick move button

Newbie Spellweaver
Joined
Aug 1, 2016
Messages
34
Reaction score
0
Seems like there is a check somewhere for quick button that only shows the button when the character is at a Town map.. I cant seem to find the java file that its in so i can change it.. If someone knows help pls, thanks in advance
 
Depending on your source it may be different, but it should be located in MapleMap.java in the addPlayer method (OnEnter in BMS)


This is an example of some random source I downloaded to help you. Should be easy to read this if statement and edit it to your liking. While you're add it, redo the quick move code also since it's horrifying

Code:
        if (!chr.isInBlockedMap() && chr.getLevel() > 10 && isTown() && chr.getMapId() % 1000000 == 0 && chr.getMapId() <= 600000000 && chr.getMapId() / 10000000 != 32) {
            for (QuickMove qm : QuickMove.values()) {
                if (qm.getMap() == chr.getMapId()) {
                    List<QuickMoveNPC> qmn = new LinkedList();
                    int npcs = qm.getNPCFlag();
                    for (QuickMoveNPC npc : QuickMoveNPC.values()) {
                        if ((npcs & npc.getValue()) != 0 && npc.show()) {
                            qmn.add(npc);
                        }
                    }
                    chr.getClient().getSession().write(CField.getQuickMoveInfo(true, qmn));
                    break;
                }
            }
        } else {
            chr.getClient().getSession().write(CField.getQuickMoveInfo(false, new LinkedList()));
        }
 
Upvote 0
Depending on your source it may be different, but it should be located in MapleMap.java in the addPlayer method (OnEnter in BMS)


This is an example of some random source I downloaded to help you. Should be easy to read this if statement and edit it to your liking. While you're add it, redo the quick move code also since it's horrifying

Code:
        if (!chr.isInBlockedMap() && chr.getLevel() > 10 && isTown() && chr.getMapId() % [URL="tel:1000000"]1000000[/URL] == 0 && chr.getMapId() <= 600000000 && chr.getMapId() / 10000000 != 32) {
            for (QuickMove qm : QuickMove.values()) {
                if (qm.getMap() == chr.getMapId()) {
                    List<QuickMoveNPC> qmn = new LinkedList();
                    int npcs = qm.getNPCFlag();
                    for (QuickMoveNPC npc : QuickMoveNPC.values()) {
                        if ((npcs & npc.getValue()) != 0 && npc.show()) {
                            qmn.add(npc);
                        }
                    }
                    chr.getClient().getSession().write(CField.getQuickMoveInfo(true, qmn));
                    break;
                }
            }
        } else {
            chr.getClient().getSession().write(CField.getQuickMoveInfo(false, new LinkedList()));
        }




Any idea what i should remove so it wont only show on town maps? :/

Also do you know where i edit the actual Quickmove npcs?
 
Upvote 0
Any idea what i should remove so it wont only show on town maps? :/

Also do you know where i edit the actual Quickmove npcs?

Code:
QuickMoveNPC.values()

is where you edit the npc ids


In the if statement,
Code:
isTown()
is checking for if it's a town and after is some other map checks probably for special maps. so just remove the isTown check
 
Upvote 0
Back