Jump to content

[Guide] Announcement spawn Raid boss.


Recommended Posts

thx 4 share :D

 

Try this

sendMessage("RaidBoss Manager","Boss " + raidboss.getName() + " is spawned!");

 

'n create the method (here, message will appear on Trade Mode):

    CreatureSay sendMessage(String sender, String msg) {
        CreatureSay cs = new CreatureSay(0, 8, sender, msg);
        return cs;
    }

Link to comment
Share on other sites

  • 5 weeks later...
  • 2 weeks later...
  • 1 month later...

Hi I have a question how I can do to make the announcement only spawn a single raidboss thanks

 

solved, if you help me solve: http://maxcheaters.com/forum/index.php?topic=197928.0, I respond with the solution of the announcements to raidboss by ID

Link to comment
Share on other sites

  • 3 weeks later...

l2jserver

 

net\sf\l2j\gameserver\instancemanager RaidBossSpawnManager.java

 

			GmListTable.broadcastMessageToGMs("Spawning Raid Boss " + raidboss.getName());
			_bosses.put(bossId, raidboss);
		}
		_schedules.remove(bossId);

 

add

 

Announcements.getInstance().announceToAll("RaidBoss : " + raidboss.getName() + " has spawning!");

Link to comment
Share on other sites

Hi all, tested but dont work for me... Freya server.

 

What's i doing wrong please ?

 

Checked :

 

_storedInfo.put(bossId, info);

 

_log.info("Spawning Raid Boss " + raidboss.getName());

 

_bosses.put(bossId, raidboss);

}

 

_schedules.remove(bossId);

 

Trying to set all that 3 codes after it :

 

Announcements.getInstance().announceToAll("RaidBoss : " + raidboss.getName() + " has spawning!");

 

sendMessage("RaidBoss Manager","Boss " + raidboss.getName() + " is spawned!");

 

Announcements _an = Announcements.getInstance();

              _an.announceToAll("RaidBoss : " + raidboss.getName() + " has spawning!");

 

 

But no one accepted.

 

Sorry for my poor English and my n00b attitude about java :)

 

And thanks in advance for anwers ;)

Link to comment
Share on other sites

Hi all, tested but dont work for me... Freya server.

 

What's i doing wrong please ?

 

Checked :

 

_storedInfo.put(bossId, info);

 

_log.info("Spawning Raid Boss " + raidboss.getName());

 

_bosses.put(bossId, raidboss);

}

 

_schedules.remove(bossId);

 

Trying to set all that 3 codes after it :

 

Announcements.getInstance().announceToAll("RaidBoss : " + raidboss.getName() + " has spawning!");

 

sendMessage("RaidBoss Manager","Boss " + raidboss.getName() + " is spawned!");

 

Announcements _an = Announcements.getInstance();

              _an.announceToAll("RaidBoss : " + raidboss.getName() + " has spawning!");

 

 

But no one accepted.

 

Sorry for my poor English and my n00b attitude about java :)

 

And thanks in advance for anwers ;)

Link to comment
Share on other sites

Astralys

Announcements.getInstance().announceToAll("RaidBoss : " + raidboss.getName() + " has spawning!");

100% tested and working, its announcing only after "normal" spawn, so if u are writing //spawn id then it wont announce it :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.




×
×
  • Create New...