l2topzone.com
l2topzone.com
l2topzone.com
l2topzone.com
l2topzone.com
l2topzone.com
l2topzone.com

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

0 Members and 1 Guest are viewing this topic.

OfflineEglezakioc

  • Full Member
  • ***
  • Posts: 205
  • L2topzone Votes: 0
  • Servers reviews: 4
  • Reputation: +661/-0
    [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!

    Linkback: https://l2topzone.com/forum/index.php?topic=2858.0
    « Last Edit: April 09, 2011, 01:41:14 PM by Eglezakioc »

    l2topzone.com
    l2topzone.com
    l2topzone.com
    l2topzone.com
    l2topzone.com

    Offlinelinosegundo

    • Newbie
    • *
    • Posts: 1
    • L2topzone Votes: 0
    • Servers reviews: 0
    • Reputation: +50/-0
      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

       

      Sitemap