l2topzone.com
l2topzone.com

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

0 Members and 1 Guest are viewing this topic.

OfflineEglezakioc

  • Full Member
  • ***
  • Posts: 205
  • L2topzone Votes: 0
  • Servers reviews: 4
  • Country: Greece.
  • Reputation: +661/-0
    [JavaCode][Share]PvP Char Information!!(By Me)
    « on: April 09, 2011, 02:39:21 PM »
    l2topzone.com
    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/l2-java-projects/16/javacodesharepvp-char-informationby/2858/
    « Last Edit: April 09, 2011, 02:41:14 PM by Eglezakioc »

    Offlinelinosegundo

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


      Share via diggShare via facebookShare via linkedinShare via myspaceShare via redditShare via twitter
       


      Sitemap