Jump to content
  • 0

Community Board Rb Status On Costum Rbs


Question

Posted

on topbbsmanger.java

		if (fileName.equals("data/html/CommunityBoard/56.htm"));
		{
			// Raid Status
			raidBosses();
			content = content.replaceAll("%antharas%", bossStatus(29019));
			content = content.replaceAll("%valakas%", bossStatus(29028));
			content = content.replaceAll("%baium%", bossStatus(29020));
			content = content.replaceAll("%antqueen%", bossStatus(29001));
			content = content.replaceAll("%core%", bossStatus(29006));
			content = content.replaceAll("%zaken%", bossStatus(29022));
			content = content.replaceAll("%frintezza%", bossStatus(29045));
			content = content.replaceAll("%orfen%", bossStatus(29014));
			content = content.replaceAll("%freya%", bossStatus(29178));
			content = content.replaceAll("%beleth%", bossStatus(29118));
			
		}

and the way im taking the respawn infi is this

	/**
	 * @param bossId
	 * @return
	 */
	private static String bossStatus(int bossId)
	{
		long delay=0;
		if(bossId==29178)
		{
			delay=bosses.get("Freya");
			if(delay<=System.currentTimeMillis())
				return "<font color=\"9CC300\">Alive!</font>";
			else
				return "<font color=\"ff0000\">Dead!</font>";
		}
		else if(bossId==29118)
		{
			delay=bosses.get("Beleth");
			if(delay<=System.currentTimeMillis())
				return "<font color=\"9CC300\">Alive!</font>";
			else
				return "<font color=\"ff0000\">Dead!</font>";
		}
		delay = GrandBossManager.getInstance().getStatsSet(bossId).getLong("respawn_time");
		if (delay <= System.currentTimeMillis())
		{
			return "<td><tr><font color=\"9CC300\">Alive!</font></td></tr>";
		}
		else
		{
			return "<font color=\"ff0000\">Dead!</font>";
		}
		
	}

For normal grandbosses is working fine, but since im using costum beleth and Freya with no AI since i dont have it .. The cb is not working.. I use %freya% on 56.htm and not replacing the respawn status of those 2 rbs.. :/

 

On database l2npc those 2 bosses are L2RaidBoss and Also there is no more than one "Beleth or Freya npc as name..

 

any idea? :/

 

 

4 answers to this question

Recommended Posts

  • 0
Posted (edited)

i think its like this right now ! but again its not  problem? I have added to many requests there :/

 

I want like this

 

 

https://imageshack.com/i/0uouznp

 

I think is the best idea like on my npc :D

Edited by ČυяŞŀŅğ
  • 0
Posted

Fixed, It was on wrong html -_- Like this is working.. Thank you very much !

 

One question , i want to make Community board , refresh every X time. 

 

example from my respawn info npc 

        private void sendRaidBosses(L2PcInstance player, int bosslevel)
        {
                TextBuilder tb = new TextBuilder();
                tb.append("<html><title>Grand Boss Info</title><body><br><center><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><table width=260>");
                for (Raidboss rb : RAID_BOSSES)
                {
                        String name = rb.getName();
                        if(name.equals("Freya") || name.equals("Beleth"))
                        	continue;
                        int level = rb.getLevel();
                        int min = bosslevel;
                        int max = min + 10;
                        if (level >= min && level <= max)
                        {
                                long delay = rb.getRespawn();
                                long currentTime = System.currentTimeMillis();
                                if (delay <= currentTime)
                                        tb.append("<tr><td><font color=\"00C3FF\">" + name + " (" + level + ")</color>:<br></td><td><font color=\"32C332\">Alive</color></td></tr>");

                                else
                                {
                              	 tb.append("<tr><td><font color=\"00C3FF\">" + name + "</color>:<br></td><td><font color=\"FF0000\">Respawn at :"+sdf.format(new Date(delay))+"</color></td></tr>");
                                }
                        }
                }

Something like this for cb , to refresh every X time , and also to shows somewere when updated , and when the next update will be. I guess this should happen on TopBBSmanager , but how? :/

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


  • Posts

    • Hello everyone, I am looking to purchase a Premium Lineage 2 High Five server pack. My main requirements are: Stability & Quality (Most Important): The pack must be highly stable with no system errors or major bugs. Custom Features: It must include ready-to-use custom features such as a fully functional Community Board, custom NPC Buffers, and Custom Item Sellers (GM Shops), etc. Complete Files: It is absolutely necessary that the full source code (src) and complete Geodata are included. If you are selling a pack that meets these criteria, please send me a PM or leave a reply with the following information: Brief details and key features of the pack Price Test server availability (I would like to test it before buying) Thank you!
    • L2jmobiusDevClon — Classic Interlude p110 Emulator L2jmobiusDevClon is actively developing a Lineage 2 Classic Interlude p110 emulator. Development is done in free time with a strong focus on: • Stability • Authentic Classic mechanics • Clean and optimized architecture The project is based on the L2jMobius source and is continuously evolving and improving. System Requirements: • Java 25 • MariaDB 12.0 • Client p110 Current Revision: 3.0 Development Status: Active Distribution: Free Official Website: https://www.l2jmobiusdevclon.pp.ua Discord Server: https://discord.gg/23a9S8g4Bn Contact: Telegram — @L2jmobiusDevClon Also available via private messages Project Goals: ✔ Improved stability ✔ Maximum Classic accuracy ✔ Core optimization We are currently looking for: • Testers • Server administrators Suggestions, bug reports, and ideas are always welcome. Contact us via: ✔ Discord ✔ Telegram ✔ Private Messages
    • i guess loading only the effects that are needed it will maybe work, like removing from reshade shader folder the ones that are not needed, depends on the pc also i guess, also limithing the game at 30fps can be better maybe
    • Up   SELL CHARACTERS L2 REBORN FRANZ x1     destroyer 74 lvl naked - 120 euro sws 71 lvl naked - 120 euro pp 66 skills - 120 euro se 64 lvl - 90 euro   Characters are legit with mail   i can wtt the characters for adena server franz   sell adena franz 250kk stock     add discord topeseller4081  
  • Topics

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