Aran Combos

win
Loyal Member
Joined
Jun 8, 2008
Messages
1,082
Reaction score
143
MapleCharacter.java:
PHP:
private int combocounter = 1; 
private long lastattack = 0

public void setComboCounter(int count) {
    combocounter = count; 
}

public void setLastAttack(long time) {
    lastattack = time;
}

public int getComboCounter() {
    return combocounter;
}

public long getLastAttack() {
    return lastattack;
}
PacketProcessor.java: (Make sure it's under ChannelServer)
PHP:
registerHandler(RecvPacketOpcode.ARAN_COMBO_COUNTER, new AranComboHandler());
MaplePacketCreator.java:
PHP:
public static MaplePacket showAranComboCounter(int count) {
    MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter();
    mplew.writeShort(SendPacketOpcode.ARAN_COMBO_COUNTER.getValue());
    mplew.writeInt(count);
    return mplew.getPacket();
}
AranComboHandler.java
PHP:
package net.channel.handler;

import client.MapleCharacter; 
import client.MapleClient; 
import client.MapleJob; 
import net.AbstractMaplePacketHandler; 
import tools.data.input.SeekableLittleEndianAccessor; 
import tools.MaplePacketCreator;

public final class AranComboHandler extends AbstractMaplePacketHandler {
    public final void handlePacket (SeekableLittleEndianAccessor slea, MapleClient c) {
        MapleCharacter player = c.getPlayer();
        if (player.getJob().isA(MapleJob.ARAN1) || player.getJob().equals(MapleJob.LEGEND)) {
            if (player.getLastAttack() < System.currentTimeMillis() - 3000) {
                player.setComboCounter(1); 
            } else
                player.setComboCounter(player.getComboCounter() + 1); 
            player.setLastAttack(System.currentTimeMillis()); 
            c.getSession().write(MaplePacketCreator.showAranComboCounter(player.getComboCounter())); 
        }
    }
}
sendops.properties:
PHP:
ARAN_COMBO_COUNTER = 0xDB
recvops.properties:
PHP:
ARAN_COMBO_COUNTER = 0xA2
Credits to Giraffe.
 
wow turning into a flame war already?
Well lets get back ontopic.
Nice release :)
I wish i had time to start on a v83 source but im so busy. Anyways 1 more week left of school and another week is exam reviewing so i wouldn't really count that.

Then no more school :)
 
I would but you know Jay...
On topic: great work cionide and given the credits

---------- Post added at 01:46 AM ---------- Previous post was at 01:40 AM ----------

On Topic: Well also give credits for Mercurial Repack v82 for the maplepacketcreator part:
public static MaplePacket showCombo(int combo) {
MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter();
mplew.writeShort(SendPacketOpcode.SHOW_COMBO.getValue());
mplew.writeInt(combo);
return mplew.getPacket();
}
Same thing, just rename.
Thanks, iAkira
 
I would but you know Jay...
On topic: great work cionide and given the credits

---------- Post added at 01:46 AM ---------- Previous post was at 01:40 AM ----------

On Topic: Well also give credits for Mercurial Repack v82 for the maplepacketcreator part:

Same thing, just rename.
Thanks, iAkira
They didn't make that?
Just because it's the same, doesn't mean this one stole.
 
Decent release, considering the fact it was already inside Mercurial and MapleChaos V.82 sources. The only benefit I see from this is the fact that people can put this into their Global MS sources.
 
Plus, you're forgetting in:

RecvPacketOpcode.java
PHP:
ARAN_COMBO_COUNTER,

and in SendPacketOpcode.java
PHP:
ARAN_COMBO_COUNTER,

Without these, the "people"'ll have compiling errors lmfao.

---------- Post added at 04:41 AM ---------- Previous post was at 04:41 AM ----------

@wackyracer sawp :)
 
Back