Jump to content
  • 0

[Help]soulshots help


Question

3 answers to this question

Recommended Posts

  • 0
Posted

What's Tryskell trying to say?

 

Go to EnterWorld.java

 

And etc.

 

Tadam(activeChar);

private void Tadam(L2PcInstance activeChar)
{
	int soulId = -1;
	int spiritId = -1;
	int bspiritId = -1;

	if (!activeChar.isDead() && activeChar.getActiveWeaponItem() != null)
	{
		switch (activeChar.getActiveWeaponItem().getCrystalType())
		{
			case L2Item.CRYSTAL_NONE:
				soulId = 1835;
				spiritId = 2509;
				bspiritId = 3947;
				break;
			case L2Item.CRYSTAL_D:
				soulId = 1463;
				spiritId = 2510;
				bspiritId = 3948;
				break;
			case L2Item.CRYSTAL_C:
				soulId = 1464;
				spiritId = 2511;
				bspiritId = 3949;
				break;
			case L2Item.CRYSTAL_B:
				soulId = 1465;
				spiritId = 2512;
				bspiritId = 3950;
				break;
			case L2Item.CRYSTAL_A:
				soulId = 1466;
				spiritId = 2513;
				bspiritId = 3951;
				break;
			case L2Item.CRYSTAL_S:
			case L2Item.CRYSTAL_S80:
			case L2Item.CRYSTAL_S84:
				soulId = 1467;
				spiritId = 2514;
				bspiritId = 3952;
				break;
		}

		if ((soulId > -1) && activeChar.getInventory().getInventoryItemCount(soulId, -1) > 0)
		{
			activeChar.addAutoSoulShot(soulId);
			activeChar.sendPacket(new ExAutoSoulShot(soulId, 1));
			// System message
			SystemMessage sm = new SystemMessage(SystemMessageId.USE_OF_S1_WILL_BE_AUTO);
			sm.addItemName(activeChar.getInventory().getItemByItemId(soulId));
			activeChar.sendPacket(sm);
		}

		if ((bspiritId > -1) && activeChar.getInventory().getInventoryItemCount(bspiritId, -1) > 0)
		{
			activeChar.addAutoSoulShot(bspiritId);
			activeChar.sendPacket(new ExAutoSoulShot(bspiritId, 1));
			// System message
			SystemMessage sm = new SystemMessage(SystemMessageId.USE_OF_S1_WILL_BE_AUTO);
			sm.addItemName(activeChar.getInventory().getItemByItemId(bspiritId));
			activeChar.sendPacket(sm);
		}
		else if ((spiritId > -1) && activeChar.getInventory().getInventoryItemCount(spiritId, -1) > 0)
		{
			activeChar.addAutoSoulShot(spiritId);
			activeChar.sendPacket(new ExAutoSoulShot(spiritId, 1));
			// System message
			SystemMessage sm = new SystemMessage(SystemMessageId.USE_OF_S1_WILL_BE_AUTO);
			sm.addItemName(activeChar.getInventory().getItemByItemId(spiritId));
			activeChar.sendPacket(sm);
		}

		activeChar.rechargeAutoSoulShot(true, true, false);
	}
}

Guest
This topic is now closed to further replies.


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..