Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Advertising

Someone
Sunday, June 10th, 2012 at 2:46:57pm MDT 

  1. Index: java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java
  2. ===================================================================
  3. --- java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java   (revision 364)
  4. +++ java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java   (working copy)
  5. @@ -140,6 +140,7 @@
  6.  import net.sf.l2j.gameserver.model.entity.Instance;
  7.  import net.sf.l2j.gameserver.model.entity.Siege;
  8.  import net.sf.l2j.gameserver.model.entity.TvTEvent;
  9. +import net.sf.l2j.gameserver.model.entity.TvTManager;
  10.  import net.sf.l2j.gameserver.model.itemcontainer.Inventory;
  11.  import net.sf.l2j.gameserver.model.itemcontainer.ItemContainer;
  12.  import net.sf.l2j.gameserver.model.itemcontainer.PcFreight;
  13. @@ -6093,6 +6094,15 @@
  14.       */
  15.      public void increasePvpKills(L2PcInstance target, boolean event, boolean clanWar)
  16.      {
  17. +       if(TvTEvent.isPlayerParticipant(target.getObjectId()) && 
  18. +             TvTEvent.isPlayerParticipant(getObjectId()) &&
  19. +             TvTEvent.isStarted())
  20. +             {
  21. +                target.tvtdeaths++;
  22. +                tvtkills++;
  23. +                target.updatetvttitle();
  24. +                updatetvttitle();
  25. +             }
  26.         if(isValidPvP(target, event))
  27.                {
  28.            // Add karma to attacker and increase its PK counter
  29. @@ -15137,5 +15147,9 @@
  30.                                            return _lastVoteTopzone;
  31.         
  32.                                     }
  33. -              
  34. +              public int tvtkills,tvtdeaths;
  35. +              public void updatetvttitle()
  36. +              {
  37. +                     setTitle("Kills: " + tvtkills + " Deaths: " + tvtdeaths);
  38. +              }
  39.  }
  40. \ No newline at end of file
  41. Index: java/net/sf/l2j/gameserver/model/entity/TvTEvent.java
  42. ===================================================================
  43. --- java/net/sf/l2j/gameserver/model/entity/TvTEvent.java       (revision 364)
  44. +++ java/net/sf/l2j/gameserver/model/entity/TvTEvent.java       (working copy)
  45. @@ -463,6 +463,8 @@
  46.                              // Check for nullpointer
  47.                              if (playerInstance != null)
  48.                              {
  49. +                                   playerInstance.tvtkills = 0;
  50. +                                   playerInstance.tvtdeaths = 0;
  51.                                     new TvTEventTeleporter(playerInstance, Config.TVT_EVENT_PARTICIPATION_NPC_COORDINATES, false, false);
  52.                              }
  53.                       }

advertising

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

fantasy-obligation