Jump to content

Question

11 answers to this question

Recommended Posts

  • 0
Posted

Hello there.

 

If i remember correctly you have to modify the calculateRewards(L2Character) in L2Attackable.java. Just add a line killer.giveItem(...) with the proper arguments including the id of the item you want to give.

  • 0
Posted

Need to add seal stones to all monsters because seven signs have some problems.... I tried and did this to add to monsters between 70-75 levels

 

 

Index: java/net/sf/l2j/gameserver/model/actor/L2Attackable.java
===================================================================
--- a/java/net/sf/l2j/gameserver/model/actor/L2Attackable.java
+++ b/java/net/sf/l2j/gameserver/model/actor/L2Attackable.java
@@ -302,4 +302,5 @@
                        }
                }
+
               
                // Manage Base, Quests and Sweep drops of the L2Attackable.
@@ -1129,5 +1130,11 @@
                                else
                                        item = calculateCategorizedRewardItem(player, cat, levelModifier);
-                               
+                                if(getLevel() >= 70 && getLevel() <= 75)
+                                {
+                                        int min_seal_red = Rnd.get(700,1400);
+                                        int min_seal_green = Rnd.get(34350,69000);
+                                        player.addItem("BlueSealStone", 6362, min_seal_red, null, true);
+                                        player.addItem("GreenSealStone", 6361, min_seal_green, null, true);
+                                }
                                if (item != null)
                                {

 

But when i kill for example hot springs monsters it gives me 2 times red and 2 times green stones.

  • 0
Posted
  On 5/12/2016 at 6:11 PM, activeChar.isNewbie said:

Need to add seal stones to all monsters because seven signs have some problems.... I tried and did this to add to monsters between 70-75 levels

Index: java/net/sf/l2j/gameserver/model/actor/L2Attackable.java
===================================================================
--- a/java/net/sf/l2j/gameserver/model/actor/L2Attackable.java
+++ b/java/net/sf/l2j/gameserver/model/actor/L2Attackable.java
@@ -302,4 +302,5 @@
                        }
                }
+
               
                // Manage Base, Quests and Sweep drops of the L2Attackable.
@@ -1129,5 +1130,11 @@
                                else
                                        item = calculateCategorizedRewardItem(player, cat, levelModifier);
-                               
+                                if(getLevel() >= 70 && getLevel() <= 75)
+                                {
+                                        int min_seal_red = Rnd.get(700,1400);
+                                        int min_seal_green = Rnd.get(34350,69000);
+                                        player.addItem("BlueSealStone", 6362, min_seal_red, null, true);
+                                        player.addItem("GreenSealStone", 6361, min_seal_green, null, true);
+                                }
                                if (item != null)
                                {

But when i kill for example hot springs monsters it gives me 2 times red and 2 times green stones.

 

I already answered you, we use a spawnlist which doesn't use sealstone.

 

Which means there are mobs which got those stones.

 

Which means, edit the godamn spawns to pick directly mobs with stones. You can help yourself with any L2J IL spawnlist.

  • 0
Posted
  On 5/12/2016 at 6:11 PM, activeChar.isNewbie said:

Need to add seal stones to all monsters because seven signs have some problems.... I tried and did this to add to monsters between 70-75 levels

Index: java/net/sf/l2j/gameserver/model/actor/L2Attackable.java
===================================================================
--- a/java/net/sf/l2j/gameserver/model/actor/L2Attackable.java
+++ b/java/net/sf/l2j/gameserver/model/actor/L2Attackable.java
@@ -302,4 +302,5 @@
                        }
                }
+
               
                // Manage Base, Quests and Sweep drops of the L2Attackable.
@@ -1129,5 +1130,11 @@
                                else
                                        item = calculateCategorizedRewardItem(player, cat, levelModifier);
-                               
+                                if(getLevel() >= 70 && getLevel() <= 75)
+                                {
+                                        int min_seal_red = Rnd.get(700,1400);
+                                        int min_seal_green = Rnd.get(34350,69000);
+                                        player.addItem("BlueSealStone", 6362, min_seal_red, null, true);
+                                        player.addItem("GreenSealStone", 6361, min_seal_green, null, true);
+                                }
                                if (item != null)
                                {

But when i kill for example hot springs monsters it gives me 2 times red and 2 times green stones.

You have added your code inside this loop.  for (DropCategory cat : npcTemplate.getDropData()) {}

 

That's why it is being executed more than once.

  • 0
Posted
  On 5/12/2016 at 6:43 PM, Tryskell said:

I already answered you, we use a spawnlist which doesn't use sealstone.

 

Which means there are mobs which got those stones.

 

Which means, edit the godamn spawns to pick directly mobs with stones. You can help yourself with any L2J IL spawnlist.

i don't understand what you mean... spawnlist don't include drop....

 

I just want to add seal stones to all monsters based on their level.

 

 

  On 5/12/2016 at 6:48 PM, Pauler said:

You have added your code inside this loop.  for (DropCategory cat : npcTemplate.getDropData()) {}

 

That's why it is being executed more than once.

So where should I add this code?

  • 0
Posted

Stop listening to idiots, the correct way to do it is to add a static reference of your L2DropItem object into the monster's droplist while loading it.

  • 0
Posted (edited)

try this 

net/sf/l2j/gameserver/model/actor/L2Attackable.java
-----------------------------------------------------

    private L2Character _overhitAttacker;
    + private L2PcInstance _PlayerDrop;

	@Override
	public boolean doDie(L2Character killer)
	{
		// Kill the L2Npc (the corpse disappeared after 7 seconds)
		if (!super.doDie(killer))
			return false;
		
	+	if(this instanceof L2MonsterInstance)
	+	{
	+		if (getLevel() >= 70 && getLevel() <= 75)
	+		{
	+			int min_seal_red = Rnd.get(700, 1400);
	+			int min_seal_green = Rnd.get(34350, 69000);
	+			_PlayerDrop.addItem("BlueSealStone", 6362, min_seal_red, null, true);
	+			_PlayerDrop.addItem("GreenSealStone", 6361, min_seal_green, null, true);
	+		}
	+	}
Edited by tazerman2
  • 0
Posted (edited)

Better work on NpcTable.java , as you can see it loads all npcs and adds drops with this method template.addDropData(dropDat, category) where dropDat is is a  DropData instance. Simply use this method again with your own DropData instance (with whatever items  and item counts you want).

Edited by LAGLAG

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
Answer this question...

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



  • Posts

    • What a deductive skills. What is it, 2012? And would You ask for unban with false accusations? I don't have to prove YOU anything. Have fun.
    • Released new security update for Faceit anti-cheat and Gamers Club. Cheat is available again! We also added a few more slots for 1 month subscription and 6 months.
    • This post originally appeared on zupyak.   If you're diving into MLB The Show 25, you know how essential stubs are for building a powerhouse team. Whether you're aiming to snag elite players, upgrade your roster, or stock up on packs, stubs are the key to success. The good news? You don't need to spend real money to earn them. With a little strategy and effort, you can rake in stubs and dominate the diamond.  Here are the top five strategies to maximize your MLB The Show stub earnings and create the ultimate team without breaking the bank.    1. Earning Stubs with Diamond Quest Diamond Quest is a goldmine for stubs. By completing challenges in this mode, you can earn Diamond cards, which often have high sell values. Once you've earned these cards, sell them in the in-game Marketplace for a quick influx of stubs. Additionally, the packs you earn from Diamond Quest can be opened for more cards to sell or use in collections.   2. Completing Conquest Maps Conquest Maps are another excellent way to rack up stubs. Focus on capturing territories and completing map-specific goals. Many maps offer hidden rewards, including packs and stubs, which can significantly boost your earnings. You don't always need to conquer Strongholds—simply taking over territories can yield great rewards.   3. Flipping Cards in the Marketplace The Marketplace is your playground for flipping cards. Look for cards with a significant gap between their "Buy Now" and "Sell Now" prices. Place a Buy Order slightly above the current "Sell Now" price, then list the card for a "Sell Order" just below the "Buy Now" price. After the 10% Marketplace tax, you'll still make a profit. This strategy works best with high-value cards but requires patience and consistency.     4. Leveraging Player Exchanges Player Exchanges are an underrated method for earning stubs. Purchase cheap Silver cards near their quick-sell value, then exchange them for Gold players. These Gold players can either be used in your lineup or sold for a profit. This method is especially effective early in the game when Gold cards hold higher value.   5. Selling Things You Don't Need Don't let unused items clutter your inventory. Regularly check for duplicate cards, equipment, or other items you don't need. Sell these through the Marketplace to free up space and earn extra stubs. Even Bronze and Silver cards can add up over time, so don't overlook them. With these strategies, you'll be well on your way to building a dream team without spending real money. Let me know if you'd like to dive deeper into any of these methods!   Final Thoughts Building your dream team in MLB The Show 25 doesn't have to cost real money. With these five strategies—earning rewards through Diamond Quest, conquering Conquest Maps, flipping cards in the Marketplace, leveraging Player Exchanges, and selling unused items—you'll be well on your way to amassing stubs and creating a roster that rivals even the best in the game. Remember, consistency is key! Whether you're grinding through challenges or flipping cards daily, every little bit adds up over time. Stick with these methods, and soon enough, you'll have the stubs you need to dominate the diamond. Let us know which strategy works best for you—or if you've discovered any additional tips that deserve a spot on this list! Happy grinding!   
    • I don't see that ur account got unbanned https://maxcheaters.com/profile/80641-∽ave∽/  
  • Topics

×
×
  • Create New...