exity Posted April 12, 2012 Share Posted April 12, 2012 Is there anyway to make a mob "drop" PvP points? Thx in advance Link to comment Share on other sites More sharing options...
0 Zake Posted April 12, 2012 Share Posted April 12, 2012 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? Link to comment Share on other sites More sharing options...
0 exity Posted April 12, 2012 Author Share Posted April 12, 2012 Give +1 pvp instantly after kill the mob Thx in advance Link to comment Share on other sites More sharing options...
0 Zake Posted April 12, 2012 Share Posted April 12, 2012 Give +1 pvp instantly after kill the mob Thx in advance I can code it but why do you want to do this? Link to comment Share on other sites More sharing options...
0 exity Posted April 12, 2012 Author Share Posted April 12, 2012 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 :) Link to comment Share on other sites More sharing options...
0 Rizlaaa Posted April 12, 2012 Share Posted April 12, 2012 ### 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. Link to comment Share on other sites More sharing options...
0 exity Posted April 12, 2012 Author Share Posted April 12, 2012 Thx it's working, and if i want to get not one but like 3 pvp points on a mob? Thx in advance Link to comment Share on other sites More sharing options...
0 Rizlaaa Posted April 13, 2012 Share Posted April 13, 2012 @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 , :) Link to comment Share on other sites More sharing options...
0 d0ds™ Posted April 13, 2012 Share Posted April 13, 2012 well, that will cause the server to go down.. no more real pvp will happen. Link to comment Share on other sites More sharing options...
0 SkySkase Posted April 13, 2012 Share Posted April 13, 2012 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 Link to comment Share on other sites More sharing options...
0 exity Posted April 13, 2012 Author Share Posted April 13, 2012 Its working ty alot Iracundus You can lock it now Link to comment Share on other sites More sharing options...
Question
exity
Is there anyway to make a mob "drop" PvP points?
Thx in advance
Link to comment
Share on other sites
10 answers to this question
Recommended Posts