Jump to content
  • 0

Automated Fishingshots


Question

Posted

Hi Guys,

once again im asking for your assistance... (kinda habit last days hu ? ...)

 

If a post like this already exist, im really sorry but the search-function is "out-of-order" xD

 

I try to make the fishingshots automated.. just like soulshots.

I took a look in L2PcInstance.java / IItemskill.java / Fishshots.java / Soulshots.java / L2ItemInstance.java and L2Character.java

 

but no matter what i change.. i cant make them automated..

Im so far that the animation in the taskbar is like its automated... but it only looks like it is..

 

Once again .. some1 can gimme a hand over here ?  ???

 

greetings

3 answers to this question

Recommended Posts

  • 0
Posted

A big part of automation is skipped in clientpacket requestAutoSoulshot :

 

				// Fishingshots are not automatic on retail
			if (_itemId < 6535 || _itemId > 6540)
			{

 

Finally I'm not really sure your ask is possible, as it uses a serverpacket ExAutoSoulShot(). Anyway the part of code which interests you is this one :

 

					else
				{
					if (activeChar.getActiveWeaponItem() != activeChar.getFistsWeaponItem()
							&& item.getItem().getCrystalType() == activeChar.getActiveWeaponItem().getCrystalType())
					{
						activeChar.addAutoSoulShot(_itemId);
						activeChar.sendPacket(new ExAutoSoulShot(_itemId, _type));

						// start the auto soulshot use
						SystemMessage sm = new SystemMessage(SystemMessageId.USE_OF_S1_WILL_BE_AUTO);
						sm.addItemName(_itemId);// Update Message by rocknow
						activeChar.sendPacket(sm);

						activeChar.rechargeAutoSoulShot(true, true, false);
					}
					else
					{
						if ((_itemId >= 2509 && _itemId <= 2514) || (_itemId >= 3947 && _itemId <= 3952) || _itemId == 5790)
							activeChar.sendPacket(new SystemMessage(SystemMessageId.SPIRITSHOTS_GRADE_MISMATCH));
						else
							activeChar.sendPacket(new SystemMessage(SystemMessageId.SOULSHOTS_GRADE_MISMATCH));
					}
				}

  • 0
Posted

Hi Tryskell,

 

thx again for your help ^^

 

I understand what that code does.. but no clue what to change that it allows me to use fishingshots automated..

The first lines you posted says "if itemId is between 6535 and 6540 then"

But the other code you posted down there .. no clue what to change :-/

  • 0
Posted

You have to remove the limitation about fishingshots deleting what I quoted in first time.

 

// Fishingshots are not automatic on retail
if (_itemId < 6535 || _itemId > 6540)
{

 

Then if it's not enough, you have to edit one of all those :

 

- fishingshot itemhandler (try to make looking at soulshot itemhandler);

- addAutoSoulShot() method (L2PcInstance)

- rechargeAutoSoulShot() method (L2PcInstance)

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