Jump to content

[Share]Killed Barakiel?[Set Noble]


Recommended Posts

for gods sake guys....

 

 

### Eclipse Workspace Patch 1.0
#P L2J-GameServer
Index: java/com/l2jserver/gameserver/model/actor/instance/L2RaidBossInstance.java
===================================================================
--- java/com/l2jserver/gameserver/model/actor/instance/L2RaidBossInstance.java	(revision 241)
+++ java/com/l2jserver/gameserver/model/actor/instance/L2RaidBossInstance.java	(working copy)
@@ -99,6 +99,8 @@
				RaidBossPointsManager.addPoints(player, this.getNpcId(), (this.getLevel() / 2) + Rnd.get(-5, 5));
				if(player.isNoble())
					Hero.getInstance().setRBkilled(player.getObjectId(), this.getNpcId());
+				else if (getNpcId() == XXXX)
+					player.setNoble(true);	
			}
		}

 

its 2 damn line n5damn second to make...

Link to comment
Share on other sites

Index: java/com/l2jserver/gameserver/model/actor/instance/L2RaidBossInstance.java
===================================================================
--- java/com/l2jserver/gameserver/model/actor/instance/L2RaidBossInstance.java (revision 0)
+++ java/com/l2jserver/gameserver/model/actor/instance/L2RaidBossInstance.java (revision 0)
@@ -86,4 +86,8 @@
                if (player != null)
                {
+                                               int _barakielId = 25325;
+                                               if (getNpcId() == _barakielId)
+                                               {
+                                                       player.setNoble(true);
+                                                   player.sendMessage("You have gained Noblesse status by killing Barakiel!");
+                                                }
                        broadcastPacket(new SystemMessage(SystemMessageId.RAID_WAS_SUCCESSFUL));
                        if (player.getParty() != null)

Really pathetic code, so let me guess everytime you kill barakiel you get noblesse status, pff ill camp barakiel because i wanna be 100 times NOBLESSE!Yes that's right and possible with this code yyyy!

 

Add checks because i am gonna murder myself.

Link to comment
Share on other sites

Index: java/com/l2jserver/gameserver/model/actor/instance/L2RaidBossInstance.java
===================================================================
--- java/com/l2jserver/gameserver/model/actor/instance/L2RaidBossInstance.java (revision 0)
+++ java/com/l2jserver/gameserver/model/actor/instance/L2RaidBossInstance.java (revision 0)
@@ -86,4 +86,8 @@
               if (player != null)
               {
+                                               int _barakielId = 25325;
+                                               if (getNpcId() == _barakielId)
+                                               {
+                                                       player.setNoble(true);
+                                                   player.sendMessage("You have gained Noblesse status by killing Barakiel!");
+                                                }
                       broadcastPacket(new SystemMessage(SystemMessageId.RAID_WAS_SUCCESSFUL));
                       if (player.getParty() != null)

Really pathetic code, so let me guess everytime you kill barakiel you get noblesse status, pff ill camp barakiel because i wanna be 100 times NOBLESSE!Yes that's right and possible with this code yyyy!

 

Add checks because i am gonna murder myself.

Ok Ill add'em.Promise youll die?I want webcam be4 you die.

EDIT:ADDED!

Link to comment
Share on other sites

Index: java/com/l2jserver/gameserver/model/actor/instance/L2RaidBossInstance.java
===================================================================
--- java/com/l2jserver/gameserver/model/actor/instance/L2RaidBossInstance.java (revision 0)
+++ java/com/l2jserver/gameserver/model/actor/instance/L2RaidBossInstance.java (revision 0)
@@ -86,4 +86,8 @@
                if (player != null)
                {
+                                               int _barakielId = 25325;
+                                               if (getNpcId() == _barakielId)
+                                               {
+                                                       player.setNoble(true);
+                                                   player.sendMessage("You have gained Noblesse status by killing Barakiel!");
+                                                }
                        broadcastPacket(new SystemMessage(SystemMessageId.RAID_WAS_SUCCESSFUL));
                        if (player.getParty() != null)

Really pathetic code, so let me guess everytime you kill barakiel you get noblesse status, pff ill camp barakiel because i wanna be 100 times NOBLESSE!Yes that's right and possible with this code yyyy!

 

Add checks because i am gonna murder myself.

You can extend it by your self, this is just an exemple(the ideas)

It's not so hard to add a negative statement

Link to comment
Share on other sites

  • 1 year later...
  • 1 month later...
  • 4 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.




×
×
  • 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