Negative mesos fix. (command)
Quite simple:
Into playercommands:
Code:
else if (splitted[0].equals("mesosfix")) {
if (player.getMeso() < 0) {
player.setMeso(0);
player.dropMessage("Reset your mesos to 0.");
}
else {
player.dropMessage("You don't have negative mesos.");
}
}
Into maplecharacter:
Code:
public void setMeso(int set) {
meso.set(set);
updateSingleStat(MapleStat.MESO, set, false);
}
Note:It will only set the mesos to 0 if you got negative mesos.
Re: Negative mesos fix. (command)
Better prevent than fix? :]
anyways you should add a Negative check or a noob might use it and loose everything. o.o
Re: Negative mesos fix. (command)
Quote:
Originally Posted by
mertjuh
Better prevent than fix? :]
anyways you should add a Negative check or a noob might use it and loose everything. o.o
Exactly what I was thinking.
Re: Negative mesos fix. (command)
Code:
if (getMeso() > 0) {
setMeso(0);
}
Re: Negative mesos fix. (command)
Well, you can simple add a new command to warn them first. Won't be so hard I guess?
EDIT:
Quote:
Originally Posted by
LikeReally
Code:
if (getMeso() > 0) {
setMeso(0);
}
Heh, was looking for that. x]
Re: Negative mesos fix. (command)
Quote:
Originally Posted by
Settler11
Well, you can simple add a new command to warn them first. Won't be so hard I guess?
Yeah, so Packet Editors can ignore the warning.
Re: Negative mesos fix. (command)
Quote:
Originally Posted by
Settler11
Well, you can simple add a new command to warn them first. Won't be so hard I guess?
EDIT:
Heh, was looking for that. x]
Yeah, how clever, if you have more than 1 mesos, why not set it to 0? So everyone have 0 mesos and no more problems :D
Re: Negative mesos fix. (command)
Quote:
Originally Posted by
LikeReally
Code:
if (getMeso() < 0) {
setMeso(0);
}
lol...
Re: Negative mesos fix. (command)
Quote:
Originally Posted by
XxОsirisxX
Yeah, how clever, if you have more than 1 mesos, why not set it to 0? So everyone have 0 mesos and no more problems :D
Haha, yea I saw trough that. First I was like "huh?" but it's actually "<" Smaller then.
Re: Negative mesos fix. (command)
im wondering what causes negative mesos
Re: Negative mesos fix. (command)
Settler11 I hope you don't put what LikeReally said on your server.
Re: Negative mesos fix. (command)
Quote:
Originally Posted by
Settler11
Haha, yea I saw trough that. First I was like "huh?" but it's actually "<" Smaller then.
Quote:
Originally Posted by
XiuzSu
Settler11 I hope you don't put what LikeReally said on your server.
You said? Anywayz, it got "if/else" now.
Oh, and I don't run a server since begin may 2010.
Re: Negative mesos fix. (command)
Quote:
Originally Posted by
Settler11
You said? Anywayz, it got "if/else" now.
Its acually in math term 'Less than' XD
Re: Negative mesos fix. (command)
Can anyone explain me how someone can fking get negative mesos? It shouldn't even be possible to get negative mesos. And MapleStory cannot write negative mesos lol. I've never seen negative mesos when opening my Inventory. If I receive negative mesos it would start at max mesos. That's how people hack mesos ...
Re: Negative mesos fix. (command)
Well, I check random servers and on one I found out that you get negative mesos if it reach above the 2,147 bill.