Jump to content
  • 0

[help] spoil message


Question

Posted

Hi, i have been trying to change spoil message.. That if spoil success,

the message will be written in PARTY.

But i still have one eror:

cannot find symbol: variable TARGET

so the code is:

            {

                spoil = Formulas.getInstance().calcMagicSuccess(activeChar, (L2Character)element, skill);

               

                if (spoil)

                {

                    target.setSpoil(true);

                    target.setIsSpoiledBy(activeChar.getObjectId());

activeChar.sendPacket(new SystemMessage(SystemMessageId.SPOIL_SUCCESS));

L2Party playerParty = activeChar.getParty();

CreatureSay cs = new CreatureSay(0, Say2.TARGET, activeChar.getName(), target.getName()+" spoiled successfully");

if (activeChar.isInParty())

{

for (L2PcInstance player : playerParty.getPartyMembers())

{

player.sendPacket(cs);

}

}

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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

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