- Joined
- Jun 24, 2008
- Messages
- 63
- Reaction score
- 7
PHP:
else if (splitted[0].equals("@pvpinfo")){
MapleCharacter victim = cserv.getPlayerStorage().getCharacterByName(splitted[1]);
int pvpKillz = victim.getPvpKills();
int pvpDeathz = victim.getPvpDeaths();
mc.dropMessage("PvP Kills: " + pvpKillz + " PvP Deaths: " + pvpDeathz);
}
Works like a charm just type in @pvpinfo <charname>.
*edit @pvpinfo + kill to death ratio (Works 100% Tested)
PHP:
}else if (splitted[0].equals("@pvpinfo")){
MapleCharacter victim = cserv.getPlayerStorage().getCharacterByName(splitted[1]);
int pvpKillz = victim.getPvpKills();
int pvpDeathz = victim.getPvpDeaths();
double pvpKillz2 = (double)(pvpKillz);
double pvpDeathz2 = (double)(pvpDeathz);
double killDeathRatio = pvpKillz2/pvpDeathz2;
mc.dropMessage("PvP Kills: " + pvpKillz + " PvP Deaths: " + pvpDeathz + " Kill to Death Ratio: " + killDeathRatio);
}
*edit 2
@spy with pvp info Credit goes out to qwerty for @spy
PHP:
else if (splitted[0].equals("@spy")) {
double var;double var2;int str; int dex;int intel; int luk; int meso; int maxhp; int maxmp;
MapleCharacter victim = cserv.getPlayerStorage().getCharacterByName(splitted[1]);
var = victim.getJumpMod(); var2 = victim.getSpeedMod(); str = victim.getStr(); dex = victim.getDex(); intel = victim.getInt(); luk = victim.getLuk(); meso = victim.getMeso(); maxhp = victim.getCurrentMaxHp();maxmp = victim.getCurrentMaxMp();
int pvpKillz = victim.getPvpKills();
int pvpDeathz = victim.getPvpDeaths();
double pvpKillz2 = (double)(pvpKillz);
double pvpDeathz2 = (double)(pvpDeathz);
double killDeathRatio = pvpKillz2/pvpDeathz2;
mc.dropMessage("JumpMod is" + var + " and Speedmod is" + var2+ "!");
mc.dropMessage("Players stats are:");
mc.dropMessage(" Str: "+ str+", Dex: "+ dex+ ", Int: " + intel + ", Luk: "+ luk +" .");
mc.dropMessage("Player has "+ meso + "mesos.");
mc.dropMessage("Max hp is" + maxhp + " Max mp is" + maxmp + ".");
mc.dropMessage("PvP Kills: " + pvpKillz + " PvP Deaths: " + pvpDeathz + " Kill to Death Ratio: " + killDeathRatio);
}
Thanks goes out to airfl0w for making pvp!
Last edited: