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!

v117.2 Mihile doesnt do any DMG

Experienced Elementalist
Joined
Mar 13, 2010
Messages
291
Reaction score
47
Hey everyone,

Iam using v117.2 source and not one Mihile skills is doing dmg also buffs won't work.

Any help?:*:
 
Junior Spellweaver
Joined
Apr 15, 2010
Messages
147
Reaction score
8
Make sure you added them into the proper spots in the source. Its most likely that source is incomplete.

If you check the tutorial section , theres a semi guide on how to do it.
 
Upvote 0
Experienced Elementalist
Joined
Mar 13, 2010
Messages
291
Reaction score
47
NVM, I use Ranchstory v117.2 (So not my own).
I copied all mihile stuff from MapleImunity to Ranch's. Now all is working :) Thanks
 
Upvote 0
Junior Spellweaver
Joined
Apr 15, 2010
Messages
147
Reaction score
8
out of curiousity, Do you know why my Keys ( keymap) does not load when i login - it shows defualt only, itl save if i change it, but when i relog its gone.
 
Upvote 0
Experienced Elementalist
Joined
Mar 13, 2010
Messages
291
Reaction score
47
Maybe replace your MapleKeyLayout.java with mine:
PHP:
/*
This file is part of the OdinMS Maple Story Server
Copyright (C) 2008 ~ 2010 Patrick Huy <patrick.huy@frz.cc> 
Matthias Butz <matze@odinms.de>
Jan Christian Meyer <vimes@odinms.de>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License version 3
as published by the Free Software Foundation. You may not use, modify
or distribute this program under any other version of the
GNU Affero General Public License.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package client;

import java.util.Map;
import java.util.Map.Entry;
import java.util.HashMap;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.io.Serializable;

import tools.data.MaplePacketLittleEndianWriter;

import database.DatabaseConnection;
import tools.Pair;

public class MapleKeyLayout implements Serializable {

    private static final long serialVersionUID = 9179541993413738569L;
    private boolean changed = false;
    private Map<Integer, Pair<Byte, Integer>> keymap;

    public MapleKeyLayout() {
        keymap = new HashMap<Integer, Pair<Byte, Integer>>();
    }

    public MapleKeyLayout(Map<Integer, Pair<Byte, Integer>> keys) {
        keymap = keys;
    }

    public final Map<Integer, Pair<Byte, Integer>> Layout() {
        changed = true;
        return keymap;
    }
	
	public final void unchanged() {
		changed = false;
	}

    public final void writeData(final MaplePacketLittleEndianWriter mplew) {
		mplew.write(keymap.isEmpty() ? 1 : 0);
		if (keymap.isEmpty()) {
			return;
		}
        Pair<Byte, Integer> binding;
        for (int x = 0; x < 89; x++) {
            binding = keymap.get(Integer.valueOf(x));
            if (binding != null) {
                mplew.write(binding.getLeft());
                mplew.writeInt(binding.getRight());
            } else {
                mplew.write(0);
                mplew.writeInt(0);
            }
        }
    }

    public final void saveKeys(final int charid) throws SQLException {
        if (!changed) {
            return;
        }
        Connection con = DatabaseConnection.getConnection();

        PreparedStatement ps = con.prepareStatement("DELETE FROM keymap WHERE characterid = ?");
        ps.setInt(1, charid);
        ps.execute();
        ps.close();
		if (keymap.isEmpty()) {
			return;
		}
        boolean first = true;
        StringBuilder query = new StringBuilder();

        for (Entry<Integer, Pair<Byte, Integer>> keybinding : keymap.entrySet()) {
            if (first) {
                first = false;
                query.append("INSERT INTO keymap VALUES (");
            } else {
                query.append(",(");
            }
            query.append("DEFAULT,");
            query.append(charid).append(",");
            query.append(keybinding.getKey().intValue()).append(",");
            query.append(keybinding.getValue().getLeft().byteValue()).append(",");
            query.append(keybinding.getValue().getRight().intValue()).append(")");
        }
        ps = con.prepareStatement(query.toString());
        ps.execute();
        ps.close();
    }
}
 
Upvote 0
Junior Spellweaver
Joined
Apr 15, 2010
Messages
147
Reaction score
8
Trying it now ( i already thought of copying it out of my v116.

A few random bugs i encountered. - Guild doesnt load even if your in 1 - ( havent changed any op codes for it - so could be taht)
 
Upvote 0
Junior Spellweaver
Joined
Apr 15, 2010
Messages
147
Reaction score
8
Kinda late/sleepy goin of my head... but the part that defines them

Case GUN:
return #l
Case Claw:
return # ? taking a guess . theres also the part that defines if its 2h or 1h.
 
Upvote 0
Back
Top