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

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