Jump to content

Question

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

2 answers to this question

Recommended Posts

  • 0
Posted
// 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);
}

?

  • 0
Posted
// 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


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