Jump to content

[Share][Guide] How to change announce , gmlist , gmchat command


Recommended Posts

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

Link to comment
Share on other sites

  • 1 year later...

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

Link to comment
Share on other sites

  • 3 weeks later...
Guest
This topic is now closed to further replies.


  • Posts

    • Up / still looking /@Pufa bro your prices are to big 
    • As i was going through some old files i found this code that i made a while ago its pretty simple and can be improved for sure but i got no interest on it anymore .   The code checks what type of life stone it is Mid High Top etc. and augments the weapon based on the augment rate of your server if its a skill it will disarm weapon and show you the name and type of skill .   for example player.sendPacket(new CreatureSay(0, SayType.HERO_VOICE, "[" + type + "]", "You got " + name)); sendMessage(player, type + " : You got " + name);   you also have to register it on your net.sf.l2j.gameserver.handler.ItemHandler.java   registerHandler(new FastAugmentation());   and on your items xml file e.g gameserver/data/xml/items/8700-8799.xml   add this add this <set name="handler" val="FastAugmentation" /> It should be like this <item id="8762" type="EtcItem" name="Top-Grade Life Stone: level 76"> <set name="material" val="LIQUID" /> <set name="weight" val="2" /> <set name="price" val="4800000" /> <set name="handler" val="FastAugmentation" /> <set name="is_stackable" val="true" /> <cond msgId="113"> <player level="76" /> </cond> </item>   it can be easily adapted for any l2j pack the code above is for aCis 398? if not mistaken   Pastebin   Have fun and enjoy Author : RKolibri Credits : RKolibri  
    • L2Server IOBufferCount=160000 L2Npc IOBufferCount=4000 Any wrong?
    • Valakas Necklace/Antharas Earring/Baium Ring/DB+16 Focus MW/HD+16 MW/Adena/Tod's on L2 Dex [Union-Interlude x50]   Stock: L2 Dex Union-Interlude x50: ~500kkk DB+16 Focus MW- 200 euro HD+16 MW- 200 euro Valakas Necklace- 500 euro Antharas Earring- 250 euro Baium Ring- 125 euro   Price: 1kkk-2,5euro Payments via paypal or normal bank If you buying a lot adena will be special bonus for you or price very good Message Me or pm here (I use Discord, Skype or E-mail) Contact (discord): alexm5710 Other servers where I sold some adena: http://www.maxcheaters.com/topic/114805-wts-adena-on-l2-ws-x5-h5-off-100kk-5-eurovesper-heavy-leather-robe-set/ http://www.maxcheaters.com/topic/112348-wts-adena-on-l2-dreams-destiny-x10-gf-100kk-5-euro/ You can see people who can recommend Me in my signature and there: TuCafe, Seen, SwaeK47, PillowCase, trolluser, Archer80, srslyziom, Doomsay, akemushi, pietro789, suimasu, tyr309, ozoum, dupazbita, Nimloth, EyesOnly, Silverl, luiss, maleduine, fraarra, zacks, adamantine, esmevan, siwy66, Her0s, dritzzpwnz, miragle, compact, xintholas, Lordavenger, Cryto, Hulda, RafaQQ, romano, denis1992, thetick, mazzam, Sebartus, svxpl, frenchie88, Blox, carax, Rhagabash, dexterro, Perfection, Sbasna, Swatas, Taranette, Unbearable, yearzero1212, Maya, pisqosz, everdream, Shakal, sebahd, ledadi, djmixedad, tru3lov3, Georgio, bergoulan, SomedayStatic, Optimus, Kalhpa, gam, KristetUtseende, xram, Lard, tsin, maico, nekt, Shawtex, gamgian, fanatic012, Etic, Vanity, scrap512, drewn, osvaldas22, fishstick, joello, negeras, Kawa, pmadeja, Anderaos, Fairy, SecretSilence, Ixp, icoDD, 404notfound, floomp, tfvc, fakekowa, KidsWithGuns, bogoss, melibea2, Shakal, IiIZeroIiI, dega34, don-j, erezym, AlmostGood, requiem11, ares123, hyzek, saborzeus, coco14, Leifounet, Porketta, Greenweenie, bunicuta, PARADISE, CattleBruiser, Shamil, aida, shinjun, Armadon, yevonxxx, DrOncho
    • DISCORD : utchiha_market telegram : https://t.me/utchiha_market SELLIX STORE : https://utchihamkt.mysellix.io/ Join our server for more products : https://discord.gg/hoodservices https://campsite.bio/utchihaamkt
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock