Welcome to MaxCheaters.com

Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads

Question

Hello everyone.

 

I have a problem here. Problem no, actually I need something and I tried everything and I did not succeed.

 

I wanted to make an autoloot mod just for adena.

I tried everything on L2Attackable and I did not succeed.

 

 

Does anyone know any mod, or could you help me?

 

Thank you in advance.

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0
// Check if the autoLoot mode is active
if ((isRaid() && Config.AUTO_LOOT_RAID) || (!isRaid() && Config.AUTO_LOOT))
	player.doAutoLoot(this, item); // Give this or these Item(s) to the L2PcInstance that has killed the L2Attackable
else
{
	 if (item.getId() == 57)
		 player.addAdena("Loot", item.getValue(), player, true);
	 else
		 dropItem(player, item);
}

?

Share this post


Link to post
Share on other sites
  • 0
// Check if the autoLoot mode is active
if ((isRaid() && Config.AUTO_LOOT_RAID) || (!isRaid() && Config.AUTO_LOOT))
	player.doAutoLoot(this, item); // Give this or these Item(s) to the L2PcInstance that has killed the L2Attackable
else
{
	 if (item.getId() == 57)
		 player.addAdena("Loot", item.getValue(), player, true);
	 else
		 dropItem(player, item);
}

?

 

Thanks for the answer.

 

I'm using l2jserver latest branch. I had forgotten to mention the version.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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.