Jump to content
  • 0

[REQUEST]PvP points from mobs


Question

10 answers to this question

Recommended Posts

  • 0
Posted

Is there anyway to make a mob "drop" PvP points?

 

Thx in advance

you mean that if you kill a mob to give you +1 pvp instantly or to drop something which gives you +1 pvp count when you use it?
  • 0
Posted

I want to make it drop that "pvp" from mobs in order bishops and assist class's can raise their pvp's count.

 

Thx man i really appreciate :)

  • 0
Posted


### Eclipse Workspace Patch 1.0
#P Chr.6GMS
Index: java/net/sf/l2j/gameserver/model/actor/instance/L2MonsterInstance.java
===================================================================
--- java/net/sf/l2j/gameserver/model/actor/instance/L2MonsterInstance.java	(revision 5263)
+++ java/net/sf/l2j/gameserver/model/actor/instance/L2MonsterInstance.java	(working copy)
@@ -46,6 +46,8 @@
     protected final MinionList _minionList;

     protected ScheduledFuture<?> _minionMaintainTask = null;
+    
+    private final int mob_id = 22222;

     private static final int MONSTER_MAINTENANCE_INTERVAL = 1000;

@@ -205,6 +207,10 @@
     	if (_minionMaintainTask != null)
             _minionMaintainTask.cancel(true); // doesn't do it?

+    	if(getNpcId() == mob_id)
+    		if(killer != null)
+    	((L2PcInstance) killer).increasePvpKills();
+    	
         if (this instanceof L2RaidBossInstance)
         	deleteSpawnedMinions();
         return true;

That's all.

Change the 22222 with mob's ID.

  • 0
Posted

@exity

 

if you want something like this you will delete this line:

((L2PcInstance) killer).increasePvpKills();

 

and you will add

((L2PcInstance) killer).setPvpKills((L2PcInstance) killer.getPvpKills() + 3);

 

Anyway if your problem solved tell a moderator to close it , :)

  • 0
Posted

well, that will cause the server to go down.. no more real pvp will happen.

Exacly becaouse if you he wants Bishops and EE to take pvps just put and atack skill or tell them to Change sub... :D

Guest
This topic is now closed to further replies.


×
×
  • Create New...