Jump to content

Recommended Posts

Posted

Well Lets start a new Tradition .. This will be about MxC User Awards In Diferent Categorys that i will name :P

 

So It will be Simple , i will give categorys and U people will Vote. For Evry Person u vote He will have 1 >I< next to his name the one whit more >I< at the end of November Win The Award

 

[bEFORE U VOTE CP ALL THE CATEGORYS IN YOUR POST AND PUT THE NAME NEXT TO IT]

 

The Categorys Will Be:

 

 

Most Popular User:

 

K4rMaArr0ws I I I I I I I I I

Maxtor I I I I I I I I I I

Mafia_007 I

A-Style I I

 

Most Funny User:

 

Skaros I I I I I I I I I I I I

GrisoM I I I I I

HaCkz0r I

K4rMaArr0ws I I

Topa I

 

Most Professiona User:

 

Mafia_007 I I

A-Style I I I I I I I I I I I

Blane I

NobLe I I I

Koyfo I

 

Most Missed User:

 

Maxtor I I I I I I I I I

Koyfo I I I I I I I

MewMew I

Zunix I

DvD_GR

 

Most Weird User:

 

HaCkz0r I I

Skaros I I I I I I I I

ALLIG4T0R I I I

Zunix I

mpj123 I I I

GrisoM I I I

XxRxX I I

 

Best Shares User:

 

A-Style I I I I I

GrisoM I I I I

K4rMaArr0ws I I I I

PyroMaker I

Killer_007

DeMev I

Blitztrager I I

 

Best New User [From 2008]:

 

pankostrelos I I I

GrisoM I I I I I I I I I I I I I I I I I

Skaros I

 

Biggest Spammer User:

 

HaCkz0r I I I I I I

Strike I

ALLIG4T0R I I I

XxRxX I

GrisoM I

 

The Best G Mod

 

Noble I I I I I I I I I I I I I I

NITROUS SYSTEM I I

A-Style I I I

Koyfo I

 

The Best L2 Mod

 

K4rMaArr0ws I I I I I I I I I I I I I I I

fakoykas I I I I I

 

The Best Cs Mod

 

NotABastarD I I I I

Blane I I I I I I I I I I I I I I

Hax0r I I I I

 

 

The Votation Will end The First Day Of November So U have Time To vote I will Edit Day to day the votes

 

U can Vote only Once But u can vote the same member for a lot of categorys if u think he diserv it

 

[u cant vote for yourself]

 

Well Start Voting =) And take your time to vote

Posted

Nice =D

My opnions:

 

most popular user: K4rMaArr0ws (His signatures are awesome)

 

most funny user:  Skaros

 

most professiona User:  A-Style (He does well his job as MOD imho)

 

Most Missed User:  Koyfo (I don't know where's he, but when I was noob(spammer mostly) he always warmed me, b4 taking any providence)

 

Most Weird User:  ALLIG4T0R (I really can't understand a single phrase what he writes :D )

 

Best Shares User:  Anubis (Should Be more than a uploader imo)

 

Best New User [From 2008]:  Anubis

 

Biggest Spammer User: ALLIG4T0R (http://www.maxcheaters.com/forum/index.php?topic=36184.msg247500#msg247500 -lol :D)

 

The Best G Mod: Noble

 

The Best L2 Mod: K4rMaArr0ws

 

The Best Cs Mod: Blane

 

Thats my opinion  :D

Posted

Most Popular User:

MAXTOR ...lmao :P

 

Most Funny User:

 

Anubis I Skaros I

 

Most Professiona User:

A-Style

 

 

Most Missed User:

MewMew...lmao :P

 

Most Weird User:

 

Skaros I

 

Best Shares User:

K4rMaArr0ws

 

Best New User [From 2008]:

 

Anubis I I

 

Biggest Spammer User:

 

anyone over 10 posts per day :P

 

The Best G Mod

 

Noble for sho.

 

The Best L2 Mod

 

K4rMaArr0ws I I

 

The Best Cs Mod

 

Blane

 

Posted

Most Popular User : Mafia_007

 

Most Funny User : Skaros

 

Most Professional User : A-Style

 

Most Missed User : Maxtor

 

Most Wierd User : Zunix ( xD )

 

Best Shares User : Pyromaker

 

Best New User [From 2008] : Anubis

 

Biggest Spammer User : Dunno :S

 

The Best G.Mod : NobLe

 

The Best L2 Mod : K4rMaArr0ws

 

The Best CS Mod : Blane

 

The Best Gold Member : XxRxX

 

 

 

P.S: I Made The Best Gold Member.. Cause There Is Not Any :S

 

Posted

Most Popular User : Maxtoras

 

Most Funny User : :@

 

Most Professional User : Mafia_007 :P

 

Most Missed User : Zunix

 

Most Wierd User : :@

 

Best Shares User : :@

 

Best New User [From 2008] : Anubis

 

Biggest Spammer User : HaCkz0r

 

The Best G.Mod : NobLe

 

The Best L2 Mod : K4rMaArr0ws/fakoykas

 

The Best CS Mod : hax0r

 

The Best Gold Member : XxRxX/Mafia_007 :P

 

 

funny :P

Posted

1 i didnt put The Best Uploader - Gold Member beacuse there is few of us and Well beacuse i dont want lol :/

 

2 Those that dont vote according to the rules Their vote will not count

 

Remember 1 vote In each category and u cant vote for yourself

 

:@ <-- Your Vote Dont Count

 

Vote for 2 people <-- Your Vote Dont Count

 

Stick to The rules and keep voting  =)

Posted

Most popular User K4rMaArr0ws (RuleZ^^)

 

Most Funny User Skaros

 

Most Professiona User A-Style

 

Most Missed User Maxtor (Where Is He..?)

 

Most Weird User HaCkz0r

 

Best Shares User A-Style

 

Best New User Anubis

 

Biggest Spammer User HaCkz0r

 

The Best G Mod Noble

 

The Best L2 Mod K4rMaArr0ws

 

The Best Cs Mod Blane

 

Posted

lol i see my name in there :P . what the winner of a category gets?i ll post my votes soon ;)

 

 

Most popular User -

 

Most Funny User Anubis(i rly laugh some times with his avatars and his way of thinking)

 

Most Professional User Blane

 

Most Missed User -

 

Most Weird User mpj123(he surely is so mystical and close)

 

Best Shares User xxrxx / k4rmaarr0ws

 

Best New User -

 

Biggest Spammer User -

 

The Best G Mod NS(NITROUS SYSTEM)

 

The Best L2 Mod K4rMaArr0ws

 

The Best Cs Mod NAB(aka NotABastard)

Posted

Most popular User -

 

Most Funny User Anubis

 

Most Professional User -

 

 

Most Missed User -

 

Most Weird User Skaros(he thinks too much bout life) lmao :P

 

Best Shares User -

 

Best New User - Anubis(quite new :D)

 

Biggest Spammer User -

 

The Best G Mod Noble and NS (can't choose :D)

 

The Best L2 Mod fakoykas, K4rMaArr0ws

 

The Best Cs Mod NAB

Posted

Most Weird User:

 

HaCkz0r I I

 

Also im the biggest spammer :X cmon dude i have awesome shares too ;( emos vote for the gmods >.>

 

 

Most Popular User : Maxtor

 

Most Funny User : You are all lame

 

Most Professional User : Bah wtf is this everyone is special.

 

Most Missed User : Maxtor i miss you too :X

 

Most Wierd User : Anubis [big friend of mine take care biatch]

 

Best Shares User : many people have awesome share so noone can't tell a tleast no one with

true opinion many vote so they can say smth like "adena please" to the one they post >.>

 

Best New User [From 2008] : skaros [luv ya nubcake]

 

Biggest Spammer User : I am the biggest spammer you all know that >.>

 

The Best G.Mod : DemonicSoul when he was G.Mod now no one...

 

The Best L2 Mod : Anubis if he ever becomes one xD

 

The Best CS Mod : All of you guys are awesome but i vote for Hax0r .

 

The Best Gold Member : OfC me... -.-'

 

My best friends of the forum : Skaros / Gropcas [well not so big but i like his style] / DemoNiCSouL / Anubis [ don't worry you are nubcake but cool friend too =] ] Stefoulis15 [well dunno about you mate its like you have forgotten me we used to be big friends on UW but :S....] HaX0r / Nab [both of you guys are very awesome and very chatable friends...] Mafia_007 [yes tard you are here too like it or not :D] A-Style [ What we will do without you, if it wasn't for you maybe i wouldn't know the forum :X] And last but not least FightToTheDeath one of the first guys that i met that is awesome and we have much things in common great friend great mate , Fight To The Death for the good and for the bad.

 

 

Sorry if i not listed some friend of mine but it you are angry of me just say %*(^$#&% You at MSN and that's that. That's my opinion cya all :X.

 

 

Posted

Most Popular User:

 

 

Maxtor

 

 

Most Funny User:

 

Skaros

 

 

Most Professiona User:

 

-

 

Most Missed User:

 

-

 

Most Weird User:

 

 

mpj123

 

Best Shares User:

 

 

 

K4rMaArr0ws

 

 

Best New User [From 2008]:

 

 

Anubis

 

 

Biggest Spammer User:

 

 

ALLIG4T0R

 

The Best G Mod

 

Noble

 

 

The Best L2 Mod

 

K4rMaArr0ws I I I I I

 

 

The Best Cs Mod

 

NotABastarD

 

Posted

My opnions:

 

most popular user: A-Style (teh Best XD)

 

most funny user:  Anubis

 

most professiona User:  A-Style

 

Most Missed User:  Koyfo

 

Most Weird User:  ALLIG4T0R

 

Best Shares User:  Anubis

 

Best New User [From 2008]:  Anubis

 

Biggest Spammer User: ALLIG4T0R

 

The Best G Mod: Noble

 

The Best L2 Mod: Fakoykas

 

The Best Cs Mod: Blane

 

Thats All from me Bitches :D

Posted

at the beggining the topic was saying : "you can vote for yourself"

 

Now, Not..

 

But, I already putted my votes, so...Peace :D

Posted

Most Popular User : K4rMaArr0ws (Best known archer xD ^_^  0ax0x )

 

Most Funny User :  :@

 

Most Professional User : Blane

 

Most Missed User : Koyfo

 

Most Wierd User : mpj123

 

Best Shares User : Me again. oO wtF :P

 

Best New User [From 2008] : Anubis

 

Biggest Spammer User : Strike

                                ALLIG4T0R

 

The Best G.Mod : NobLe

 

The Best L2 Mod : :@

 

The Best CS Mod : :@

 

The Best Gold Member : Mafia_007

Guest
This topic is now closed to further replies.



  • Posts

    • 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; } }  
    • Γεια σας ψαχνω ενα pride style interlude pack me patch αν ειναι ευκολο ευχαριστω πολυ
    • Greetings looking for interlude pride style pack  with patch if anyone can give me thank you 
  • Topics

×
×
  • Create New...