Author Topic: [JavaCode][Share]PvP Char Information!!(By Me)  (Read 913 times)

0 Members and 1 Guest are viewing this topic.

Offline Eglezakioc

  • Full Member
  • ***
  • Posts: 222
  • Country: Greece.
  • Reputation: 661
[JavaCode][Share]PvP Char Information!!(By Me)
« on: April 09, 2011, 01:39:21 PM »
Well i wanna make one java code for my project and i wanna share it here!!!

Well what is it??
When a char reach (your pvp number) he/she take ''PvP'er Status'' look the following code to understand
*Char name
*PvP/Pk informations
*Pvp flags
*HP/MP/CP Stats
*Farm items ammount
*Online players
-------------
Go to EnterWorld.java

Find

Code: [Select]
notifyPartner(activeChar,activeChar.getPartnerId());
        }

after this add the following code!!

Code: [Select]
if (activeChar.getPvpKills() >= 200)
        {
    activeChar.sendMessage("Welcome : "+activeChar.getName());
activeChar.sendMessage("You know that you got your pvp status?";
activeChar.sendMessage("This is coded by EglezakioC-IklesOs-PubliC";
    activeChar.sendMessage("Your PvP Kills: " + activeChar.getPvpKills());
    activeChar.sendMessage("Your PK Kills: " + activeChar.getPkKills());
    activeChar.sendMessage("Your PvP Flags: " + activeChar.getPvpFlag());
    activeChar.sendMessage("Your HP, CP, MP: " + activeChar.getMaxHp() + ", " + activeChar.getMaxCp() + ", " + activeChar.getMaxMp());
    activeChar.sendMessage("Farm items: " + activeChar.getyourspecial item name());
    activeChar.sendMessage("There are: "+L2World.getInstance().getAllPlayers().size()+" players online");

Tested 100%
P.s. you can change  if (activeChar.getPvpKills() >= 200) to your pvp ammount and activeChar.sendMessage("Farm items: " + activeChar.getyourspecial item name()); to your special farm item name!!!
Creadits: to me!!!

Coded in Notepad++
Tested in eclipse (no errors)
Compiled
Tested in game!
Gl!
« Last Edit: April 09, 2011, 01:41:14 PM by Eglezakioc »

Offline linosegundo

  • Newbie
  • *
  • Posts: 1
  • Country: Venezuela.
  • Reputation: 50
Re: [JavaCode][Share]PvP Char Information!!(By Me)
« Reply #1 on: March 30, 2012, 11:08:14 AM »
sorry this code is incomplete? I added and it does not work