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!

Better looking @pvpinfo D:

Status
Not open for further replies.
Junior Spellweaver
Joined
Jun 27, 2008
Messages
148
Reaction score
0
PHP:
else if (splitted[0].equals("@pvpinfo")){
                    if(splitted.length > 1){
                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("Player vs Player Statistic for " + victim.getName());
                    mc.dropMessage("---------------");
                    mc.dropMessage("Kills: " + pvpKillz + " Deaths: " + pvpDeathz);
                    mc.dropMessage("Kill to Death Ratio: " + killDeathRatio);
                    mc.dropMessage("---------------");
                        }   else {
                    int pvpKillz = player.getPvpKills();
                    int pvpDeathz = player.getPvpDeaths();
                    double pvpKillz2 = (double)(pvpKillz);
                    double pvpDeathz2 = (double)(pvpDeathz);
                    double killDeathRatio = pvpKillz2/pvpDeathz2;
                    mc.dropMessage("Your Player vs Player Statistics");
                    mc.dropMessage("---------------");
                    mc.dropMessage("Kills: " + pvpKillz + " Deaths: " + pvpDeathz);
                    mc.dropMessage("Kill to Death Ratio: " + killDeathRatio);
                    mc.dropMessage("---------------");
                        }
                        }
Credits to kirbyhood for the original script, I'm just an updater and make everything sexier, according to other people. D;
@pvpinfo gives you your own statistics
@pvpinfo name gives you the players statistics.
The regular one didn't do it, and it bugged me. ): And this one looks fancier.
 
Mythic Archon
Loyal Member
Joined
Apr 10, 2008
Messages
758
Reaction score
0
Re: [Release] Better looking @pvpinfo D:

Awesome ;).
 
Experienced Elementalist
Joined
May 19, 2008
Messages
281
Reaction score
0
Re: [Release] Better looking @pvpinfo D:

Good release, Offtopic: Viral do you have the patch for adding 2x cards into game? I think mine became x4, and i cant find it ._.
 
Junior Spellweaver
Joined
Jun 27, 2008
Messages
148
Reaction score
0
Re: [Release] Better looking @pvpinfo D:

Good release, Offtopic: Viral do you have the patch for adding 2x cards into game? I think mine became x4, and i cant find it ._.

No sir, sorry.
 
Experienced Elementalist
Joined
May 19, 2008
Messages
281
Reaction score
0
Re: [Release] Better looking @pvpinfo D:

Yes thanks for the release anyway. :D
 
Newbie Spellweaver
Joined
Jun 24, 2008
Messages
63
Reaction score
7
Re: [Release] Better looking @pvpinfo D:

Very Nice, Thanks for updating it.
 
Skilled Illusionist
Joined
Apr 17, 2008
Messages
316
Reaction score
1
Re: [Release] Better looking @pvpinfo D:

Wow this is great! Commandprocessor.java correct?
 
Status
Not open for further replies.
Back
Top