- Joined
- Mar 28, 2009
- Messages
- 239
- Reaction score
- 38
i never said i supported nanoTime over that. i just said that this was inaccurate
First and second point were for you, third was for the guy above.
i never said i supported nanoTime over that. i just said that this was inaccurate
Do you have a fix for that double clicking NPC = dc thing?
Would love if you had that![]()
private long lastNPCTalk;
public long getLastNPCTalk() {
return lastNPCTalk;
}
public void setLastNPCTalk() {
lastNPCTalk = System.currentTimeMillis();
}
if (c.getPlayer().getLastNPCTalk() > System.currentTimeMillis() - 500)
return;
else
c.getPlayer().setLastNPCTalk();
MapleMapObject obj = c.getPlayer().getMap().getMapObject(oid);
MapleCharacter.java
Add
Code:private long lastNPCTalk; public long getLastNPCTalk() { return lastNPCTalk; } public void setLastNPCTalk() { lastNPCTalk = System.currentTimeMillis(); }
NPCTalkHandler.java
Add
UnderCode:if (c.getPlayer().getLastNPCTalk() > System.currentTimeMillis() - 500) return; else c.getPlayer().setLastNPCTalk();
Code:MapleMapObject obj = c.getPlayer().getMap().getMapObject(oid);
You can change the delay of 500 milli seconds if you feel like but it seems to be fine.
Nice Deagan. Hopefully it'll kill most packet editors.
^^
if (name.equals("FuckTheAdmin")) { //hurhur =D
c.getPlayer().ban("Autoban for Pat. fucktheadmin?", true);
}
You DC from NPCs when it opens twice.
Why not just a public long lastNPCTalk =0; or even the same latestUse I use in every spam patch?
Oh and i'm not sure weither that would fix it as I don't know what the actual caus eof the dc is.
Personally I didn't have any problems with npc's but if anyone could give me the packets that were sent at the point of dc'ing, I would be able to have a closer look. for now imma just assume flav's fix work.
Oh btw blue gave me that one packet.
Code:if (name.equals("FuckTheAdmin")) { //hurhur =D c.getPlayer().ban("Autoban for Pat. fucktheadmin?", true); }
Flav's fix works fine, if you know what privates and publics are.
Very nice deagan, that will brings some life into the Maple section.
Npinteresting.
thanks for the fixes![]()
True, I seriously HATE people who ruin the fun of others, unless that person deserved it.Thanks for the Release Deagan.
Hopefully we will see less Packet editors with this
Good job deagan!![]()
I never said it didn't. I just asked why he went for the private and then made it public with that function.
Because it increases flexibility, maintainability, understandability and it's conventional. Yes making public variables could be easier for you, but it'd be harder for people, who follow your footsteps, to understand what you're trying to achieve.
Bump
![]()
[3D 00] [05] [01 00] [85 84 1E 00] [02 00]
[3D 00] [07] [some int]
Love this release very helpful thanks again...