Jump to content

Fanky

Legendary Member
  • Posts

    7,281
  • Credits

  • Joined

  • Last visited

  • Days Won

    2
  • Feedback

    0%

Posts posted by Fanky

  1. That's logically wrong, kinda..

    +                       // Add Fighter or Mage Tattoos
    +                       if (getPvpKills() == Config.PVP_COUNT)
    +                       {
    +                       if (Config.FIGHTER_TATTOO_ENABLE && !isMageClass())
    +                       {
    +                       addItem("Tattoo", Config.TATTOO_FIGHTER_ID, Config.FIGHTER_TATTOO_COUNT, this, true);
    +                       sendMessage("Congratulations! " + Config.PVP_COUNT + "  PvP Kills! You won Fighter Tattoo.");
    +                       }
    +                       else if(Config.MAGE_TATTOO_ENABLE)
    +                       {
    +                       addItem("Tattoo", Config.TATTOO_MAGE_ID, Config.MAGE_TATTOO_COUNT, this, true);
    +                       sendMessage("Congratulations! " + Config.PVP_COUNT + "  PvP Kills! You won Mage Tattoo.");
    +                       }
    +                       }
    
    

    From my pov, first of all, you should check if the config is enabled. If yes, proceed, else do nothing. :P

     

    That's logically wrong, kinda..

    +                       // Add Fighter or Mage Tattoos
    +                       if (getPvpKills() == Config.PVP_COUNT)
    +                       {
    +                       if (Config.FIGHTER_TATTOO_ENABLE && !isMageClass())
    +                       {
    +                       addItem("Tattoo", Config.TATTOO_FIGHTER_ID, Config.FIGHTER_TATTOO_COUNT, this, true);
    +                       sendMessage("Congratulations! " + Config.PVP_COUNT + "  PvP Kills! You won Fighter Tattoo.");
    +                       }
    +                       else if(Config.MAGE_TATTOO_ENABLE)
    +                       {
    +                       addItem("Tattoo", Config.TATTOO_MAGE_ID, Config.MAGE_TATTOO_COUNT, this, true);
    +                       sendMessage("Congratulations! " + Config.PVP_COUNT + "  PvP Kills! You won Mage Tattoo.");
    +                       }
    +                       }
    
    

    From my pov, first of all, you should check if the config is enabled. If yes, proceed, else do nothing. :P

    you are right,I didnt noticed it

  2.  

    mate just do it: 

     

    + if (Config.FIGHTER_TATTOO_ENABLE && pvpKillCount == Config.PVP_COUNT && !isMageClass())
    + {
    + addItem(Config.TATTOO_FIGHTER_ID);
    + sendMessage("Congratulations! " + Config.PVP_COUNT + "  PvP Kills! You won Fighter Tattoo.");
     also here need a invetory-items update
    + }
    + else if(Config.MAGE_TATTOO_ENABLE && pvpKillCount == Config.PVP_COUNT1 )
    +     {
    +        addItem(Config.TATTOO_MAGE_ID);
    + sendMessage("Congratulations! " + Config.PVP_COUNT + "  PvP Kills! You won Mage Tattoo.");
     also here need a invetory-items update
    + }
    + }

     

    it won't work,lol.check the way he created the method he calls.

     

    baggos,there's no reason to make your life harder by doing all these(which doesn't work btw) stuff for something simple.

    check below,for such a code you need just a simple check in the place that pvps are increased,nothing else.

     

    ### Eclipse Workspace Patch 1.0
    #P gameserver
    Index: java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java
    ===================================================================
    --- java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java    (revision 42)
    +++ java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java    (working copy)
    @@ -4811,6 +4811,18 @@
             // Add karma to attacker and increase its PK counter
             setPvpKills(getPvpKills() + 1);
             
    +        if (getPvpKills() == 100)
    +        {
    +            if (!isMageClass())
    +            {
    +                addItem("PvP Reward", Config.REWARD_FIGHTER_ID, Config.REWARD_FIGHTER_COUNT, this, true);
    +                sendMessage("You've been rewarded with a fighter tattoo");
    +            }
    +            else
    +               {
    +                addItem("PvP Reward", Config.REWARD_MAGE_ID, Config.REWARD_MAGE_COUNT, this, true);
    +                    sendMessage("You've been rewarded with a mage tatoo");
    +               }
    +        }
    +        
             PvpPkColorSystem.getInstance().checkPvpColors(this);
     
             // Send a Server->Client UserInfo packet to attacker with its Karma and PK Counter
    Index: java/net/sf/l2j/Config.java
    ===================================================================
    --- java/net/sf/l2j/Config.java    (revision 41)
    +++ java/net/sf/l2j/Config.java    (working copy)
    @@ -422,6 +422,11 @@
         /** Buffs */
         public static boolean STORE_SKILL_COOLTIME;
         public static byte BUFFS_MAX_AMOUNT;
    +    
    +    public static int REWARD_FIGHTER_ID;
    +    public static int REWARD_FIGHTER_COUNT;
    +    public static int REWARD_MAGE_ID;
    +    public static int REWARD_MAGE_COUNT;
         
         //--------------------------------------------------
         // Server
    @@ -1134,6 +1139,10 @@
                     
                     BUFFS_MAX_AMOUNT = Byte.parseByte(players.getProperty("MaxBuffsAmount","20"));
                     STORE_SKILL_COOLTIME = Boolean.parseBoolean(players.getProperty("StoreSkillCooltime", "true"));
    +                REWARD_FIGHTER_ID = Integer.parseInt(players.getProperty("RewardFighterID","1"));
    +                REWARD_FIGHTER_COUNT = Integer.parseInt(players.getProperty("RewardFightCount","2"));
    +                REWARD_MAGE_ID = Integer.parseInt(players.getProperty("RewardMageId","3"));
    +                REWARD_MAGE_COUNT = Integer.parseInt(players.getProperty("RewardMageCount","4"));
                 }
                 catch (Exception e)
                 {
    Index: config/players.properties
    ===================================================================
    --- config/players.properties    (revision 41)
    +++ config/players.properties    (working copy)
    @@ -310,4 +310,10 @@
     MaxBuffsAmount = 20
     
     # Store buffs/debuffs on user logout?
    -StoreSkillCooltime = True
    \ No newline at end of file
    +StoreSkillCooltime = True
    +
    +#Class Based pvp reward at 100 pvps
    +RewardFighterID = 1
    +RewardFighterCount = 2
    +RewardMageID = 3
    +RewardMageCount = 4
    \ No newline at end of file
  3. Δοκίμασε μία το παρακάτω... Πήγαινε net.sf.l2j.gameserver.network.clientpackets.RequestRestartPoint.java

    (Δεν μπορώ να δοκιμάσω αν δουλέψει γιατί τα'χει παίξει το pc).

     

                    case 27: // to jail

                        if (!activeChar.isInJail())

                            return;

                        loc = new Location(-114356, -249645, -2984);

                        break;

    -               

    -                default:

    -                    loc = MapRegionTable.getInstance().getTeleToLocation(activeChar, MapRegionTable.TeleportWhereType.Town);

    -                    break;

    -            }

    +

    +                default:

    +                    if (activeChar.isDead())

    +                    {

    +                        loc = new Location(82480, 149087, -3350);

    +                        break;

    +                    }

    +                    loc = MapRegionTable.getInstance().getTeleToLocation(activeChar, MapRegionTable.TeleportWhereType.Town);

    +                    break;

    +            }

    τι εκανες εκει..;;

     

    geia sas ftiaxnw ena server kai thelw na kanw otan paithenis na se bgazi giran 3erei kaneis na me boithisi?

    requestrestartpoint.java

    -                   loc = MapRegionTable.getInstance().getTeleToLocation(activeChar, MapRegionTable.TeleportWhereType.Town);

    +                   loc = new Location(X, Y, Z);

  4. Actually i was going to copy pride's inspect but i thought it will be cool to make it like that: (As it is now)

    Target player press .inspect (shows the whole inventory ) not a html, just a real inventory like the ALT+G menu packet

     

    .inspectoff if you dont want to be inspected , yea you might had it before 2 years. Indeed i did not made a research. But in the end, isnt the same right?

    dude changing some packets doesn't make your idea unique nor different..

    no offense

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock