TheRuleZzZ Posted August 14, 2008 Posted August 14, 2008 Hello people , I will teach you how to change some basic commands . To do this you have to know how to compile a pack , and a little of java language . This Share / Guide , tested on L2JFree pack . First of all you have to compile your pack . Ok lets start : If you compiled your pack as you can see there are some files including java file . go to src\main\java\com\l2jfree\status there you can see a file called GameStatusThread , open this pretty file ;) About announcement now you can see with a little search something like this else if (_usrCommand.startsWith("announce")) { try { _usrCommand = _usrCommand.substring(9); if (Config.ALT_TELNET && Config.ALT_TELNET_GM_ANNOUNCER_NAME) _usrCommand += " [" + gmname + "(offline)]"; Announcements.getInstance().announceToAll(_usrCommand); _print.println("Announcement Sent!"); } catch (StringIndexOutOfBoundsException e) { _print.println("Please Enter Some Text To Announce!"); } Red = The red one is the command . For example you have to write //announce This Share / Guide created by TheRuleZzZ AKA Exofil if you change the announce to say ( for example ) and save it as java file when you log in game you can write with this command //say This Share / Guide created by TheRuleZzZ AKA Exofil Yellow = About the yellow one now . offline means that when you announce something the gm name that created the announce will be hide . if you write there online means that when you announce something the gm name will be show to the normal players with access level 0 . About gmlist now . Ok lets learn you how you can change the command about how can you find if someone gm is online . If you want to change this command " //gmlist " you must change the following there in the file GameStatusThread writting something like that : else if (_usrCommand.equals("gmlist")) { int igm = 0; String gmList = ""; for (String player : GmListTable.getInstance().getAllGmNames(false)) { gmList = gmList + ", " + player; igm++; } _print.println("There are currently " + igm + " GM(s) online..."); if (gmList != "") _print.println(gmList); } Red = The red one can be change with whatever you want . For example you can write " noobs " and when you save it as a java file when you log in the game u will write /noobs and if someone is online will be show there in your chat . About gmchat now If you want to change the command of gmchat you have to read and change the following . The original command is //gmchat . Ok lets learn you some things . there in GameStatusThread writing something like that : else if (_usrCommand.startsWith("gmchat")) { try { _usrCommand = _usrCommand.substring(7); CreatureSay cs = new CreatureSay(0, 9, "Telnet GM Broadcast from " + _cSocket.getInetAddress().getHostAddress(), _usrCommand); GmListTable.broadcastToGMs(cs); _print.println("Your Message Has Been Sent To " + getOnlineGMS() + " GM(s)."); } catch (StringIndexOutOfBoundsException e) { _print.println("Please Enter Some Text To Announce!"); } } Red = The red one is the command that you have to write before write something in gmchat . For example you have to write //gmchat Hi people if you want to change this command to whatever you want just change the red one to whatever you want . For example if you write there " staffchat " when you log in the game you will have to write //staffchat mpla mpla and it will be announce . ATTENTION I cannot learn you how to change all the commands . In this file AKA GameStatusThread have too much command like Announce , gmlist , gmchat . And you can change them with the same way as my guide . Credits goes to TheRuleZzZ - TheRuleZzZ Respect
Frank Posted August 14, 2008 Posted August 14, 2008 Nice guide man! Keep on sharing! I think it is your first "java" work? :D
TheRuleZzZ Posted August 14, 2008 Author Posted August 14, 2008 Yae ;) i worked a lot of time to learn some basic java lessons . Soon more share's coming TheRuleZzZ
weststylaz Posted November 9, 2009 Posted November 9, 2009 help dont spam or flame me am jjust a mengZ QQ I would like to have a command for sharing items to all players who are online For example: if i make an event and i want to share the rewards for the winning team. I saw this on a server, where the gm gave every player items(could be found in inventory) thats kinda unique and fast. 2nd example: If i ask server to vote and they do so i want to reward the whole server how can i make this? with a GM command. Next Question: Is there a command for teleporting a partygroup to a place? instead of teleporting every single player? if not can u give me a short tutorial for doing this? please please. thnx
Levi4than Posted November 10, 2009 Posted November 10, 2009 Great share bro!!!! I was looking for that!!!It rocks!!
Recommended Posts