Jump to content

[Share]Community Board (smart names)


Recommended Posts

WARNING: Continue to read this topic only if you are newbie.

 

Hello everyone i wanted to share something so i thought to make an UBER SHARE!! I dont know if its shared b4 so here we go.

 

What thi system does ?

Well with this Code you can name your community board html files with names like index.htm, info.htm etc not 1.htm as it is now.

So the commands will be bbstop;index etc.

 

Choose 1

 

Index: TopBBSManager.java
===================================================================
--- TopBBSManager.java	(revision 5225)
+++ TopBBSManager.java	(working copy)
@@ -52,7 +52,7 @@
		{
			StringTokenizer st = new StringTokenizer(command, ";");
			st.nextToken();
-			int idp = Integer.parseInt(st.nextToken());
+			String idp = st.nextToken();
			String content = HtmCache.getInstance().getHtm(activeChar.getHtmlPrefix(), "data/html/CommunityBoard/" + idp + ".htm");
			if (content == null)
			{

 

Pastebin

http://pastebin.com/VHMwjZXj

 

 

Will i gain karma from this one?

Credits me

Link to comment
Share on other sites

seriously?

-			int idp = Integer.parseInt(st.nextToken());
+			String idp = st.nextToken();

how much time u were doing that code?

Link to comment
Share on other sites

seriously?

-			int idp = Integer.parseInt(st.nextToken());
+			String idp = st.nextToken();

how much time u were doing that code?

:D xaxa i quess more than 2 weeks
Link to comment
Share on other sites

seriously?

-			int idp = Integer.parseInt(st.nextToken());
+			String idp = st.nextToken();

how much time u were doing that code?

 

 

xaxaxa, well there is no prefix [Troll Inside] so sorry for the misslead*

Btw im wondering why l2j doesnt have it this way, maybe i revealed one of their private codes from inner circle!

Link to comment
Share on other sites

Guest Elfocrash

hahaha we all trolling now, well if i shared my cb it could be stickied but not this one :) anyway guys i didnt post it for you* (the good ones)

tumblr_m19mo8DYC21r16w8k.png

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