Jump to content

classic [L2J] L2Phaedra x1000 WIPED ITS ONLINE!! JOIN NOW!!!!!


Recommended Posts

Posted

phd.png


Client: [L2J] Interlude - EXP Rate: x1000 - SP Rate: x500 - Adena Rate: x500 - Drop/Spoil: x1


Are you sick of playing full customized server and fully unbalance game play?

Are you bored of seeing the server all the time exploited and corrupted by minor admins?

Then here is it! L2Phaedra is going to provide you unexpected moments, memories and friendship you've never seen before.

L2Phaedra it's a classic server w/o custom items/armor/weapons.

We are old emulators of Lineage2 , we think that any server is able to offer what we are offering , and thats why we have dediced to take the project up. Our skilled team in Java have decided to make a l2jserver that could be similar to retail one . Our purpose is making a stable server where you could never stop play.

Are you ready to move to the next level? If yes! You've made a wise decision!

Why you shuld join?

 

NO ITEM / EXTRA AUGMENT SKILL / ENCHANT DONATIONS!!!

100% FAIR GAME PLAY FOR EVERYONE!!

Balanced Class!!

Active and experienced staff!

No Coruption!

Stable and longlasting economy system!

100% Uptime!

100% Protected Server!

L2Phaedra Intro 2

2j0l0fa.pngGame Specifications:


Enchant Rates: Chance with normal scrolls 66% - Chance with crystal scrolls 77% - Chance with blessed scrolls 100%  - Safe: +3 - Maximum for Weap: +10  - Maximum for armor/jews : +10 

 

There is a system based armor penalty on armor penalty which means 'offensive characters' can't wear heavy armors.

 

Augmentation system is limited to two skill-buffs ( one active - one passive ) , and the chance to get a skill in the augmentation process is 5% for Farmable Stone and 15% for High Stone .

 

 

2j0l0fa.pngEvent Specifications:


Team vs Team spawns 2 teams that will fight for the rewards.

Death Match kill your enemies and win. The best killer take reward.

Capture the Flag capture the flag for your team.Team with most flags will win.

Siege two teams are battling for the rewards. For attackers to win, they have to conquer the fortress by engraving the given skill. The only way that defenders can win is to hold up.

Hitman Event

 

2j0l0fa.pngGame Information:


Olympiad:

- Validation Period every 2 weeks.

- From 18:00 to 24:00 GMT +2.

- Hero weapons CAN NOT be enchanted.

- Olympiad system with fresh skills after match(same as on retail).

 

Subclass:

- You DO NOT need quest.

- Up to 3 subclasses.

 

Clan / Alliance System:

- Clan / Alliance Items selling in Gm Shop.

- Max Numbers of Clan in Ally 2.

- Fully implemented a system of clans, clan-hall remaked.

- To declare war, the clan must have 15 members.

- Clan / Alliance Items selling in Gm Shop.

 

Newbie Features:

- Newbie Players start with Lvl 20.

- Newbie Players start with 350kk Adena.

- Newbie Plyaers start in Main Town (Aden).

 

Buff System

Buffer: All buffs without resist.

Buff Slots: 28.

Debuff Slots: 6

Buff time: 2 hours.

AIO Buffer System [donate] - You can order and take it via Donator Coin.

 

Talking Commands

- .who - Show how many players are online (real time) and players record from atm.

- .withdraw / .deposit - Its like an bank. With .deposit you can change money in gold bar and with .withdraw you can change gold bar in money.

- .away / .back -

- .pmon / .pmoff - Its like //silence from admins.

- .heal / .cancel - With .heal you can restore your status (cp/hp/mp) and with .cancel you can cancel your buffs but only within the town.

- .cl - Teleports you to your clan leader.

 

Donator System

- Custom Donation System avoid Class overpower.

- Special Donator Chat (Special Color. You must type Donator: _text_).

- Special Donator Shop (Based on Multisell).

- Special Donator Service (Based on Java files).

You can donate only for customize your character(appearence), not for overenchanted items/skills!

 

Other Working & Protection Systems:   

- PC Bank Point System.                         

- C1 - C6 Skills Fully Working.

- Fully working C6 Olympiad & Sieges.

- Augmentation working.

- Grandbosses Fully working.

- Very good protection against DDoS & DOS attacks.

- Server side & Client side protection coded that protects server from 3rd party programs.

- Cheat Protection to avoid illegal actions such as wearing overenchanted items.

- Anti-KS System. The player who gets the drop is the one with the most damage, and not the one with the last hit.

- Anti Boot System.

- Cursed Weapon System (Zariche and Akamanah).

- Balanced Classes & Skills.

- Working Geodata.

- 99% Working Augmentation.

- 99% Working Fusion Skills.

- 99% Working Skills.

 

Spawn Protection:   

Protects you 35s from getting spawn killed.

 

Announcement System

- Announce Castle Lords Login.

- Announce Hero Login.

- When you finish to enchant a part of armor or weapon an announcement will appear. [image]

 

About server penalty:

- No Weight Penalty.

- No Death Penalty.

 

Special Colors:

- At 500 PVP's going to get title color.

- At 250 PK's going to get name color.

- Custom title color for clan leadear

 

Combat Coin:

Q: What is this Coin?

A: Simle,this coin enables you to buy accesory which gives +10% Speed.

 

Q: How i can obtain this coin?

A: You can obtain this coin only from PvP (Not PK).

Q: I think is useless because players will made dual box or ask a friend to help him,right?

A:Nop, I already thought about it and even if you made dual boxing or ask a friend to help you cannot make pvp because protection system is very high.

 

War Legend System:

- After 5 kills in a row without dying , an announce appear with how many kills in a row you have.

 

NPC Crest:

- Show clan, alliance crests for territory NPC's

 

Vote reward specifications :

- We have a special vote reward system which is based on vote stones.

- With every 10 votes, all online players will be automatically rewarded with 10 Vote Stones.

Don't think that we forgot about dual-box. If you go in the event with dual-box or if you are online with many characters when vote reward is recived, you will get the points just on one character.

What can i buy with Vote Stone?

- Life Stone (15%) [x1] - 5 Vote Stone

- CP Pots [x20] - 1 Vote Stone

- Secret Book of Giants [x1] - 10 Vote Stone

- Strider [x1] - 500 Vote Stone

 

Information about Zones:

- PvP Zone: PvP Zone are Gludin Town (But in the future a mod will be able to change pvp zone every week.)

- Safe Zone: -> Hunter's Village

- Farm Zones -> I - The Forbidden Gateway (FG)

                  -> II - Cruma tower Out Side

Main Town: Aden Town

 

Raid Token/Blessed Enchants Armor/Weapon:

- We have 4 special RB's + The epic raids from where you can obtain blessed enchants/raid tokens/Epic Jewels :

 

Normal Raids:

Hallate:  ->[x1] Blessed Scroll for Armor.

                ->[x1] Raid Token to the last hit party.

 

Kernon:  ->[x1] Blessed Scroll for Weapon.

                ->[x1] Raid Token to the last hit party.

 

Golkonda:  ->[x1] Blessed Scroll for Armor.

                ->[x1] Raid Token to the last hit party.

 

Cherub Galaxia:  ->[x1] Blessed Scroll for Armor.

                            ->[x1] Blessed Scroll for Weap.

                            ->[x1] Raid Token to the last hit party.

 

Epic Raids:

Ant Queen:  ->[x1] Ant Queen Ring

                    ->[x1] Blessed Scroll for Armor.

                    ->[x1] Blessed Scroll for Weap.

                    ->[x2] Raid Token to the last hit party.

 

Zaken:  ->[x1] Zaken Earring

                    ->[x1] Blessed Scroll for Armor.

                    ->[x1] Blessed Scroll for Weap.

                    ->[x2] Raid Token to the last hit party.

 

Baium:  ->[x1] Baium Ring.

                    ->[x2] Blessed Scroll for Armor.

                    ->[x1] Blessed Scroll for Weap.

                    ->[x3] Raid Token to the last hit party.

 

Antharas:  ->[x1] Antharas Earring.

                    ->[x3] Blessed Scroll for Armor.

                    ->[x2] Blessed Scroll for Weap.

                    ->[x5] Raid Token to the last hit party.

 

Valakas:  ->[x1] Valakas Necklace.

                    ->[x3] Blessed Scroll for Armor.

                    ->[x2] Blessed Scroll for Weap.

                    ->[x5] Raid Token to the last hit party.

 

 

What can i buy with Raid Token?

- Nobless Item [x1] - 5 Raid Token

- Book of Giant [x5] - 1 Raid Token

- Raid Jews -> Valakas    [x1] - 20 Raid Token

                -> Antharas  [x1] - 20 Raid Token

                -> Baium      [x1] - 15 Raid Token

                -> Zaken      [x1] - 15 Raid Token

                -> Ant Queen [x1] - 15 Raid Token

 

 

 

2j0l0fa.pngJoin Us


Going Live

L2Phaedra GRAND REOPENING! [Read More]

 


Guest Elfocrash
Posted

is it COOMING SOON ?

Posted

I will respond to all repiles just by 2 sentences:

Server will be in BETA STAGE in 24 March, Grand Opening date are not established yet. After beta we'll see how it behaves server and then we can establish date for the GRAND OPENING!

 

Regards,

Posted

I will respond to all repiles just by 2 sentences:

Server will be in BETA STAGE in 24 March, Grand Opening date are not established yet. After beta we'll see how it behaves server and then we can establish date for the GRAND OPENING!

 

Regards,

Good luck mate, server is really good.

Posted

- Olympiad system with fresh skills after match(same as on retail).

 

This is an interlude retail feature?Really?Cause there's nothing on the updates page.

 

- There is a system based armor penalty on armor penalty which means 'offensive characters' can't wear heavy armors.

 

Some retards/kiddos cried on a random l2j server that daggers wearing heavy is not normal and look what happened... every retard follows their lead.

Posted

- Olympiad system with fresh skills after match(same as on retail).

 

This is an interlude retail feature?Really?Cause there's nothing on the updates page.

 

- There is a system based armor penalty on armor penalty which means 'offensive characters' can't wear heavy armors.

 

Some retards/kiddos cried on a random l2j server that daggers wearing heavy is not normal and look what happened... every retard follows their lead.

Maybe you're right but i made server for all players not only for me and for you. If server would not have armor penalty no one will join. This is the lineage of 2012, new gameplay, new custom mods.

Anyway thanks for you comment!

 

7h till BETA STAGE!

 

I'll be expecting you all there! 098.gif

 

topic_locked.gif

Posted

- Olympiad system with fresh skills after match(same as on retail).

 

This is an interlude retail feature?Really?Cause there's nothing on the updates page.

 

- There is a system based armor penalty on armor penalty which means 'offensive characters' can't wear heavy armors.

 

Some retards/kiddos cried on a random l2j server that daggers wearing heavy is not normal and look what happened... every retard follows their lead.

Maybe you're right but i made server for all players not only for me and for you. If server would not have armor penalty no one will join. This is the lineage of 2012, new gameplay, new custom mods.

Anyway thanks for you comment!

 

7h till BETA STAGE!

 

I'll be expecting you all there! 098.gif

 

Guest
This topic is now closed to further replies.



  • Posts

    • DISCORD : utchiha_market telegram : https://t.me/utchiha_market SELLIX STORE : https://utchiha.sellpass.io/ Join our server for more products : https://discord.gg/uthciha-services https://campsite.bio/utchihaamkt  
    • DISCORD : utchiha_market telegram : https://t.me/utchiha_market SELLIX STORE : https://utchiha.sellpass.io/ Join our server for more products : https://discord.gg/uthciha-services https://campsite.bio/utchihaamkt  
    • DISCORD : utchiha_market telegram : https://t.me/utchiha_market SELLIX STORE : https://utchiha.sellpass.io/ Join our server for more products : https://discord.gg/uthciha-services https://campsite.bio/utchihaamkt  
    • DISCORD : utchiha_market telegram : https://t.me/utchiha_market SELLIX STORE : https://utchiha.sellpass.io/ Join our server for more products : https://discord.gg/uthciha-services https://campsite.bio/utchihaamkt  
    • Hello everyone, I would like some help adapting this file for a custom community board l2jFrozen:   package com.l2jfrozen.gameserver.communitybbs; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Map; import java.util.StringTokenizer; import javolution.util.FastMap; import com.l2jfrozen.Config; import com.l2jfrozen.gameserver.cache.HtmCache; import com.l2jfrozen.gameserver.communitybbs.Manager.BaseBBSManager; import com.l2jfrozen.gameserver.communitybbs.Manager.ClanBBSManager; import com.l2jfrozen.gameserver.communitybbs.Manager.PostBBSManager; import com.l2jfrozen.gameserver.communitybbs.Manager.RegionBBSManager; import com.l2jfrozen.gameserver.communitybbs.Manager.TeleBBSManager; import com.l2jfrozen.gameserver.communitybbs.Manager.TopicBBSManager; import com.l2jfrozen.gameserver.communitybbs.Manager.shopBBSManager; import com.l2jfrozen.gameserver.handler.IBBSHandler; import com.l2jfrozen.gameserver.model.L2Clan; import com.l2jfrozen.gameserver.model.L2World; import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance; import com.l2jfrozen.gameserver.model.multisell.L2Multisell; import com.l2jfrozen.gameserver.network.L2GameClient; import com.l2jfrozen.gameserver.network.SystemMessageId; import com.l2jfrozen.gameserver.network.serverpackets.ShowBoard; import com.l2jfrozen.gameserver.network.serverpackets.SystemMessage; public class CommunityBoard { private static CommunityBoard _instance; private final Map<String, IBBSHandler> _handlers; protected final SimpleDateFormat fmt = new SimpleDateFormat("H:mm."); public CommunityBoard() { _handlers = new FastMap<>(); // null; } public boolean checkPlayerConditions(L2PcInstance activeChar, String command) { if (activeChar.isInOlympiadMode()) { activeChar.sendMessage("CommunityBoard use is prohibited at the Olympiad"); return false; } if (activeChar.isFlying() || activeChar.isMounted()) { activeChar.sendMessage("CommunityBoard use is prohibited at while flying or mounted!"); return false; } if (activeChar.inObserverMode()) { activeChar.sendMessage("CommunityBoard use is prohibited in ObserveMode!"); return false; } if (activeChar.isAlikeDead() || activeChar.isDead()) { activeChar.sendMessage("CommunityBoard use is prohibited While Dead"); return false; } if (activeChar.isInCombat()) { activeChar.sendMessage("CommunityBoard use is prohibited in Combat!"); return false; } if (activeChar.isCastingNow()) { activeChar.sendMessage("CommunityBoard use is prohibited while Casting!"); return false; } if (activeChar.isAttackingNow()) { activeChar.sendMessage("CommunityBoard use is prohibited while Attacking!"); return false; } if (activeChar.isInDuel()) { activeChar.sendMessage("CommunityBoard use is prohibited while Playing Duel!"); return false; } if (activeChar.isFishing()) { activeChar.sendMessage("CommunityBoard use is prohibited while Fishing!"); return false; } if (activeChar.isInStoreMode()) { activeChar.sendMessage("CommunityBoard use is prohibited in StoreMode!"); return false; } if (activeChar.isInJail() || activeChar.isCursedWeaponEquipped() || activeChar.isFlying() || activeChar.isInBoat() || activeChar.isProcessingTransaction() || activeChar.isStunned()) { activeChar.sendMessage("CommunityBoard use is prohibited right now!"); return false; } return true; } public static CommunityBoard getInstance() { if (_instance == null) { _instance = new CommunityBoard(); } return _instance; } /** * by Azagthtot * @param handler as IBBSHandler */ public void registerBBSHandler(final IBBSHandler handler) { for (final String s : handler.getBBSCommands()) { _handlers.put(s, handler); } } /** * by Azagthtot * @param client * @param command */ public void handleCommands(final L2GameClient client, final String command) { L2PcInstance activeChar = client.getActiveChar(); if (activeChar == null) return; if(!checkPlayerConditions(activeChar, command)) return; if (Config.COMMUNITY_TYPE.equals("full")) { String cmd = command.substring(4); String params = ""; final int iPos = cmd.indexOf(" "); if (iPos != -1) { params = cmd.substring(iPos + 1); cmd = cmd.substring(0, iPos); } final IBBSHandler bbsh = _handlers.get(cmd); if (bbsh != null) { bbsh.handleCommand(cmd, activeChar, params); } else { if (command.startsWith("_bbsclan")) { String text = HtmCache.getInstance().getHtm("data/html/CommunityBoard/index.htm"); //Custom Community Board text = text.replace("%CharName%", String.valueOf(activeChar.getName())); text = text.replace("%CharClass%", String.valueOf(activeChar.getClassId().name())); text = text.replace("%CharLevel%", String.valueOf(activeChar.getLevel())); if (activeChar.isNoble()) { text = text.replace("%nobless%", "Yes"); } else { text = text.replace("%nobless%", "No"); } L2Clan clan = activeChar.getClan(); if (clan != null) { text = text.replace("%CharClan%", String.valueOf(activeChar.getClan().getName())); } else { text = text.replace("%CharClan%", "No Clan"); } text = text.replace("%CharIP%", String.valueOf(activeChar.getClient().getConnection().getInetAddress().getHostAddress())); text = text.replace("%PlayerOnline%", String.valueOf(L2World.getInstance().getAllPlayers().size()* 1)); text = text.replace("%ServerTime%", fmt.format(new Date(System.currentTimeMillis()))); //Custom Community Board BaseBBSManager.separateAndSend(text, activeChar); } else if (command.startsWith("_bbsmemo")) { String text = HtmCache.getInstance().getHtm("data/html/CommunityBoard/index.htm"); //Custom Community Board text = text.replace("%CharName%", String.valueOf(activeChar.getName())); text = text.replace("%CharClass%", String.valueOf(activeChar.getClassId().name())); text = text.replace("%CharLevel%", String.valueOf(activeChar.getLevel())); if (activeChar.isNoble()) { text = text.replace("%nobless%", "Yes"); } else { text = text.replace("%nobless%", "No"); } L2Clan clan = activeChar.getClan(); if (clan != null) { text = text.replace("%CharClan%", String.valueOf(activeChar.getClan().getName())); } else { text = text.replace("%CharClan%", "No Clan"); } text = text.replace("%CharIP%", String.valueOf(activeChar.getClient().getConnection().getInetAddress().getHostAddress())); text = text.replace("%PlayerOnline%", String.valueOf(L2World.getInstance().getAllPlayers().size()* 1)); text = text.replace("%ServerTime%", fmt.format(new Date(System.currentTimeMillis()))); //Custom Community Board BaseBBSManager.separateAndSend(text, activeChar); } else if (command.startsWith("_bbsgetfav")) { String text = HtmCache.getInstance().getHtm("data/html/CommunityBoard/index.htm"); //Custom Community Board text = text.replace("%CharName%", String.valueOf(activeChar.getName())); text = text.replace("%CharClass%", String.valueOf(activeChar.getClassId().name())); text = text.replace("%CharLevel%", String.valueOf(activeChar.getLevel())); if (activeChar.isNoble()) { text = text.replace("%nobless%", "Yes"); } else { text = text.replace("%nobless%", "No"); } L2Clan clan = activeChar.getClan(); if (clan != null) { text = text.replace("%CharClan%", String.valueOf(activeChar.getClan().getName())); } else { text = text.replace("%CharClan%", "No Clan"); } text = text.replace("%CharIP%", String.valueOf(activeChar.getClient().getConnection().getInetAddress().getHostAddress())); text = text.replace("%PlayerOnline%", String.valueOf(L2World.getInstance().getAllPlayers().size()* 1)); text = text.replace("%ServerTime%", fmt.format(new Date(System.currentTimeMillis()))); //Custom Community Board BaseBBSManager.separateAndSend(text, activeChar); } else if (command.startsWith("_bbstopics")) { String text = HtmCache.getInstance().getHtm("data/html/CommunityBoard/index.htm"); //Custom Community Board text = text.replace("%CharName%", String.valueOf(activeChar.getName())); text = text.replace("%CharClass%", String.valueOf(activeChar.getClassId().name())); text = text.replace("%CharLevel%", String.valueOf(activeChar.getLevel())); if (activeChar.isNoble()) { text = text.replace("%nobless%", "Yes"); } else { text = text.replace("%nobless%", "No"); } L2Clan clan = activeChar.getClan(); if (clan != null) { text = text.replace("%CharClan%", String.valueOf(activeChar.getClan().getName())); } else { text = text.replace("%CharClan%", "No Clan"); } text = text.replace("%CharIP%", String.valueOf(activeChar.getClient().getConnection().getInetAddress().getHostAddress())); text = text.replace("%PlayerOnline%", String.valueOf(L2World.getInstance().getAllPlayers().size()* 1)); text = text.replace("%ServerTime%", fmt.format(new Date(System.currentTimeMillis()))); //Custom Community Board BaseBBSManager.separateAndSend(text, activeChar); } else if (command.startsWith("_bbsposts")) { String text = HtmCache.getInstance().getHtm("data/html/CommunityBoard/index.htm"); //Custom Community Board text = text.replace("%CharName%", String.valueOf(activeChar.getName())); text = text.replace("%CharClass%", String.valueOf(activeChar.getClassId().name())); text = text.replace("%CharLevel%", String.valueOf(activeChar.getLevel())); if (activeChar.isNoble()) { text = text.replace("%nobless%", "Yes"); } else { text = text.replace("%nobless%", "No"); } L2Clan clan = activeChar.getClan(); if (clan != null) { text = text.replace("%CharClan%", String.valueOf(activeChar.getClan().getName())); } else { text = text.replace("%CharClan%", "No Clan"); } text = text.replace("%CharIP%", String.valueOf(activeChar.getClient().getConnection().getInetAddress().getHostAddress())); text = text.replace("%PlayerOnline%", String.valueOf(L2World.getInstance().getAllPlayers().size()* 1)); text = text.replace("%ServerTime%", fmt.format(new Date(System.currentTimeMillis()))); //Custom Community Board BaseBBSManager.separateAndSend(text, activeChar); } else if (command.startsWith("_bbstop")) { String text = HtmCache.getInstance().getHtm("data/html/CommunityBoard/index.htm"); //Custom Community Board text = text.replace("%CharName%", String.valueOf(activeChar.getName())); text = text.replace("%CharClass%", String.valueOf(activeChar.getClassId().name())); text = text.replace("%CharLevel%", String.valueOf(activeChar.getLevel())); if (activeChar.isNoble()) { text = text.replace("%nobless%", "Yes"); } else { text = text.replace("%nobless%", "No"); } L2Clan clan = activeChar.getClan(); if (clan != null) { text = text.replace("%CharClan%", String.valueOf(activeChar.getClan().getName())); } else { text = text.replace("%CharClan%", "No Clan"); } text = text.replace("%CharIP%", String.valueOf(activeChar.getClient().getConnection().getInetAddress().getHostAddress())); text = text.replace("%PlayerOnline%", String.valueOf(L2World.getInstance().getAllPlayers().size()* 1)); text = text.replace("%ServerTime%", fmt.format(new Date(System.currentTimeMillis()))); //Custom Community Board BaseBBSManager.separateAndSend(text, activeChar); } else if (command.startsWith("_bbshome")) { String text = HtmCache.getInstance().getHtm("data/html/CommunityBoard/index.htm"); //Custom Community Board text = text.replace("%CharName%", String.valueOf(activeChar.getName())); text = text.replace("%CharClass%", String.valueOf(activeChar.getClassId().name())); text = text.replace("%CharLevel%", String.valueOf(activeChar.getLevel())); if (activeChar.isNoble()) { text = text.replace("%nobless%", "Yes"); } else { text = text.replace("%nobless%", "No"); } L2Clan clan = activeChar.getClan(); if (clan != null) { text = text.replace("%CharClan%", String.valueOf(activeChar.getClan().getName())); } else { text = text.replace("%CharClan%", "No Clan"); } text = text.replace("%CharIP%", String.valueOf(activeChar.getClient().getConnection().getInetAddress().getHostAddress())); text = text.replace("%PlayerOnline%", String.valueOf(L2World.getInstance().getAllPlayers().size()* 1)); text = text.replace("%ServerTime%", fmt.format(new Date(System.currentTimeMillis()))); //Custom Community Board BaseBBSManager.separateAndSend(text, activeChar); } else if (command.startsWith("_bbsloc")) { String text = HtmCache.getInstance().getHtm("data/html/CommunityBoard/index.htm"); //Custom Community Board text = text.replace("%CharName%", String.valueOf(activeChar.getName())); text = text.replace("%CharClass%", String.valueOf(activeChar.getClassId().name())); text = text.replace("%CharLevel%", String.valueOf(activeChar.getLevel())); if (activeChar.isNoble()) { text = text.replace("%nobless%", "Yes"); } else { text = text.replace("%nobless%", "No"); } L2Clan clan = activeChar.getClan(); if (clan != null) { text = text.replace("%CharClan%", String.valueOf(activeChar.getClan().getName())); } else { text = text.replace("%CharClan%", "No Clan"); } text = text.replace("%CharIP%", String.valueOf(activeChar.getClient().getConnection().getInetAddress().getHostAddress())); text = text.replace("%PlayerOnline%", String.valueOf(L2World.getInstance().getAllPlayers().size()* 1)); text = text.replace("%ServerTime%", fmt.format(new Date(System.currentTimeMillis()))); //Custom Community Board BaseBBSManager.separateAndSend(text, activeChar); } else if (command.startsWith("_bbstele")) { TeleBBSManager.getInstance().parsecmd(command, activeChar); } else if (command.startsWith("_bbsShop")) { shopBBSManager.getInstance().parsecmd(command, activeChar); } else if(command.startsWith("_bbsmultisell;")) { StringTokenizer st = new StringTokenizer(command, ";"); st.nextToken(); shopBBSManager.getInstance().parsecmd("_bbsShop;" + st.nextToken(), activeChar); L2Multisell.getInstance().SeparateAndSend(Integer.parseInt(st.nextToken()), activeChar, false, 0); } else { ShowBoard sb = new ShowBoard("<html><body><br><br><center>the command: " + command + " is not implemented yet</center><br><br></body></html>", "101"); activeChar.sendPacket(sb); sb = null; activeChar.sendPacket(new ShowBoard(null, "102")); activeChar.sendPacket(new ShowBoard(null, "103")); } } } else if (Config.COMMUNITY_TYPE.equals("old")) { RegionBBSManager.getInstance().parsecmd(command, activeChar); } else { activeChar.sendPacket(new SystemMessage(SystemMessageId.CB_OFFLINE)); } activeChar = null; } /** * @param client * @param url * @param arg1 * @param arg2 * @param arg3 * @param arg4 * @param arg5 */ public void handleWriteCommands(final L2GameClient client, final String url, final String arg1, final String arg2, final String arg3, final String arg4, final String arg5) { L2PcInstance activeChar = client.getActiveChar(); if (activeChar == null) return; if (Config.COMMUNITY_TYPE.equals("full")) { if (url.equals("Topic")) { TopicBBSManager.getInstance().parsewrite(arg1, arg2, arg3, arg4, arg5, activeChar); } else if (url.equals("Post")) { PostBBSManager.getInstance().parsewrite(arg1, arg2, arg3, arg4, arg5, activeChar); } else if (url.equals("Region")) { RegionBBSManager.getInstance().parsewrite(arg1, arg2, arg3, arg4, arg5, activeChar); } else if (url.equals("Notice")) { ClanBBSManager.getInstance().parsewrite(arg1, arg2, arg3, arg4, arg5, activeChar); } else { ShowBoard sb = new ShowBoard("<html><body><br><br><center>the command: " + url + " is not implemented yet</center><br><br></body></html>", "101"); activeChar.sendPacket(sb); sb = null; activeChar.sendPacket(new ShowBoard(null, "102")); activeChar.sendPacket(new ShowBoard(null, "103")); } } else if (Config.COMMUNITY_TYPE.equals("old")) { RegionBBSManager.getInstance().parsewrite(arg1, arg2, arg3, arg4, arg5, activeChar); } else { ShowBoard sb = new ShowBoard("<html><body><br><br><center>The Community board is currently disable</center><br><br></body></html>", "101"); activeChar.sendPacket(sb); sb = null; activeChar.sendPacket(new ShowBoard(null, "102")); activeChar.sendPacket(new ShowBoard(null, "103")); } activeChar = null; } }   And making it work in another l2jOrion project:   package l2jorion.game.community; import java.util.HashMap; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import l2jorion.Config; import l2jorion.game.community.manager.BaseBBSManager; import l2jorion.game.community.manager.ClanBBSManager; import l2jorion.game.community.manager.FavoriteBBSManager; import l2jorion.game.community.manager.FriendsBBSManager; import l2jorion.game.community.manager.MailBBSManager; import l2jorion.game.community.manager.PostBBSManager; import l2jorion.game.community.manager.RankBBSManager; import l2jorion.game.community.manager.RegionBBSManager; import l2jorion.game.community.manager.TopBBSManager; import l2jorion.game.community.manager.TopicBBSManager; import l2jorion.game.handler.ICommunityBoardHandler; import l2jorion.game.model.actor.instance.L2PcInstance; import l2jorion.game.network.L2GameClient; import l2jorion.game.network.SystemMessageId; import l2jorion.logger.Logger; import l2jorion.logger.LoggerFactory; public class CommunityBoardManager { protected static Logger LOG = LoggerFactory.getLogger(CommunityBoardManager.class); private Map<String, ICommunityBoardHandler> _handlers = new HashMap<>(); private final Map<Integer, String> _bypasses = new ConcurrentHashMap<>(); private static CommunityBoardManager _instance; public static CommunityBoardManager getInstance() { if (_instance == null) { _instance = new CommunityBoardManager(); } return _instance; } private CommunityBoardManager() { registerBBSHandler(new TopBBSManager()); registerBBSHandler(new FavoriteBBSManager()); registerBBSHandler(new RegionBBSManager()); registerBBSHandler(new ClanBBSManager()); registerBBSHandler(new TopicBBSManager()); registerBBSHandler(new MailBBSManager()); registerBBSHandler(new FriendsBBSManager()); registerBBSHandler(new TopicBBSManager()); registerBBSHandler(new PostBBSManager()); registerBBSHandler(new RankBBSManager()); LOG.info("CommunityBoardHandlers: Loaded " + _handlers.size() + " handlers"); } public void registerBBSHandler(ICommunityBoardHandler handler) { for (String bypass : handler.getBypassBbsCommands()) { if (_handlers.containsKey(bypass)) { continue; } _handlers.put(bypass, handler); } } public void onBypassCommand(L2GameClient client, String command) { final L2PcInstance player = client.getActiveChar(); if (player == null) { return; } if (Config.COMMUNITY_TYPE.equals("off")) { player.sendPacket(SystemMessageId.CB_OFFLINE); return; } /* * if (!AutoImageSenderManager.wereAllImagesSent(player)) { player.sendMessage("Community wasn't loaded yet, try again in few seconds."); player.sendPacket(new ExShowScreenMessage("Community wasn't loaded yet, try again in few seconds.", 2000, 2, false)); return; } */ String cmd = command.substring(4); String params = ""; final int iPos = cmd.indexOf(" "); if (iPos != -1) { params = cmd.substring(iPos + 1); cmd = cmd.substring(0, iPos); } ICommunityBoardHandler bypass = _handlers.get(cmd); if (bypass != null) { bypass.handleCommand(cmd, player, params); } else { if (command.startsWith("_bbshome")) { TopBBSManager.getInstance().parseCmd(command, player); } else if (command.startsWith("_bbsgetfav") || command.startsWith("bbs_add_fav") || command.startsWith("_bbsdelfav_")) { FavoriteBBSManager.getInstance().parseCmd(command, player); } else if (command.startsWith("_bbsloc")) { RegionBBSManager.getInstance().parseCmd(command, player); } else if (command.startsWith("_bbsclan")) { ClanBBSManager.getInstance().parseCmd(command, player); } else if (command.startsWith("_bbsmemo")) { TopicBBSManager.getInstance().parseCmd(command, player); } else if (command.startsWith("_bbsmail") || command.equals("_maillist_0_1_0_")) { MailBBSManager.getInstance().parseCmd(command, player); } else if (command.startsWith("_friend") || command.startsWith("_block")) { FriendsBBSManager.getInstance().parseCmd(command, player); } else if (command.startsWith("_bbstopics")) { TopicBBSManager.getInstance().parseCmd(command, player); } else if (command.startsWith("_bbsposts")) { PostBBSManager.getInstance().parseCmd(command, player); } else if (command.startsWith("_bbsshowrank")) { RankBBSManager.getInstance().parseCmd(command, player); } else { BaseBBSManager.separateAndSend("<html><body><br><br><center>The command: " + command + " isn't implemented.</center></body></html>", player); } } } public void handleWriteCommands(L2GameClient client, String url, String arg1, String arg2, String arg3, String arg4, String arg5) { final L2PcInstance player = client.getActiveChar(); if (player == null) { return; } if (Config.COMMUNITY_TYPE.equals("off")) { player.sendPacket(SystemMessageId.CB_OFFLINE); return; } if (url.equals("Topic")) { TopicBBSManager.getInstance().parseWrite(arg1, arg2, arg3, arg4, arg5, player); } else if (url.equals("Post")) { PostBBSManager.getInstance().parseWrite(arg1, arg2, arg3, arg4, arg5, player); } else if (url.equals("_bbsloc")) { RegionBBSManager.getInstance().parseWrite(arg1, arg2, arg3, arg4, arg5, player); } else if (url.equals("_bbsclan")) { ClanBBSManager.getInstance().parseWrite(arg1, arg2, arg3, arg4, arg5, player); } else if (url.equals("Mail")) { MailBBSManager.getInstance().parseWrite(arg1, arg2, arg3, arg4, arg5, player); } else if (url.equals("Clan")) { ClanBBSManager.getInstance().parseWrite(arg1, arg2, arg3, arg4, arg5, player); } else if (url.equals("_friend")) { FriendsBBSManager.getInstance().parseWrite(arg1, arg2, arg3, arg4, arg5, player); } else { BaseBBSManager.separateAndSend("<html><body><br><br><center>The command: " + url + " isn't implemented.</center></body></html>", player); } } public ICommunityBoardHandler getCommunityHandler(String bypass) { if (_handlers.isEmpty()) { return null; } for (Map.Entry<String, ICommunityBoardHandler> entry : _handlers.entrySet()) { if (bypass.contains(entry.getKey())) { return entry.getValue(); } } return null; } public void addBypass(L2PcInstance player, String title, String bypass) { _bypasses.put(player.getObjectId(), title + "&" + bypass); } public String removeBypass(L2PcInstance player) { return _bypasses.remove(player.getObjectId()); } public Map<Integer, String> getAllBypass() { return _bypasses; } }  
  • Topics

×
×
  • Create New...