Jump to content

Recommended Posts

Posted (edited)

Hello guys , MXC is dead nowadays , so i decided to code this shit. Also I miss L2J

 

Basically it gets the data from the website (Ex : http://l2leaders.comoj.com/announce) and announce it

You make new file  in your host and name it whatever you want and then put (Announcement here| auto announce time)

 

SO if you put (Vote for US|60) it will announce vote for us every 60 seconds

 

To change website

String websiteURL = "the link containing the announce data";

You don't need to restart server each time you change the text it will update automatically

 

Code : http://pastebin.com/FLuaDDpu

 

Not tested but it should work.

 

Credits : Me aka Marwan

Edited by Ventricle
Posted (edited)

Which is the point of making a connection to a website and get the info from there? Instead of doing it via configs? Imo is the worst way.

You wouldn't need to restart the server via config neither if you load the info from the .properties every time.

 

And this...

 

+ @Override
+               public void run()
+               {
+                       Announcements.getInstance().announceToAll(text);
+                       getInstance();
+               }
way more logical to getInstance() before the announcements, to update the info if it's changed. Edited by ^Wyatt
Guest Elfocrash
Posted

whats the point to make a auto announce from website? from the moment that there are far better ways.

Cuz everyone can log in Lineage from his phone or a pc without lineage and edit auto announcements right?

Oh wait.

Posted (edited)

Cuz everyone can log in Lineage from his phone or a pc without lineage and edit auto announcements right?

Oh wait.

If you can edit a .txt/html file and upload it to the server with the phone, you can edit a .properties file and upload it to the server too, don't you? :x Edited by ^Wyatt
Posted

If you can edit a .txt/html file and upload it to the server with the phone, you can edit a .properties file and upload it to the server too, don't you? :x

Gods, Wyatt.. :D That was a sarcasm :happyforever: :happyforever:

Guest Elfocrash
Posted

Gods, Wyatt.. :D That was a sarcasm :happyforever: :happyforever:

This.

Also i now saw the code and this one is terribly not efficient. Opening a conneciton on top of a vote reward system can be terrible for te server + that the code itself is bad.

You already use a site to upload the shit so why no adding a php file where you have 2 textboxes and a button. One for the content of the announcement and one for the seconds.

You submit and you save these 2 values in a db table. You simply call the text and seconds from db and you did it properly. 

If you wanna take it a step too far you can also make a delete and add more than one button in the site but i doubt it you have such a skill no offense.

Posted (edited)

Gods, Wyatt.. :D That was a sarcasm :happyforever: :happyforever:

Lolz plix plux no sarcasm allowed nowadays, no brain ready to decrypt elfo's sarcam srsly  :happyforever:

Edited by ^Wyatt
Posted (edited)

Lolz plix plux no sarcasm allowed nowadays, no brain ready to deencrypt elfo's sarcam srsly  :happyforever:

Trololol, you should trolloucked your brain. Oh wait, unlloucked.. :D

 

 

Cuz everyone can log in Lineage from his phone or a pc without lineage and edit auto announcements right?

Oh wait.

You should read carefully nigga, or go to a doctor for new pair of glasses :happyforever: :happyforever: :-beep- yeah:

 

big-glasses.jpg

Edited by SweeTs

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.



  • Posts

    • just with this extender that I have shared it is not possible to start with c4 client, you have to make some changes to the extender and it works with c4 client perfectly. regarding the updates in this last revision   🔹dll is not packaged with vmprotect   New custom zone types have been added: 🔹 NO_NOBLESS begin MinX=84638 MaxX=92616 MinY=-87170 MaxY=-82018 MinZ=-6000 MaxZ=0 Type=NO_NOBLESS KickOutPos=83007/148057/-3464 end   ▶️ This zone checks if the character is noble. If it does not meet the condition, it will be automatically kicked to the indicated position (KickOutPos). 🔹 CUSTOM_SPAWN_ZONE begin MinX=77275 MaxX=85704 MinY=10122 MaxY=18066 MinZ=-8000 MaxZ=5000 Type=CUSTOM_SPAWN_ZONE OutPos=83007/148057/-3464 Spawns={{82984/18066/-5256}};{{79275/15147/-5248}};{{82922/14263/-5256}};{{83704/10122/-5288}} end ▶️ This zone allows characters, upon death, to respawn with full buff, CP, HP and MP if they press “Fixed”. They will only be able to revive in one of the positions defined in Spawns. 🔧 Both zones are fully configurable from territorydata.txt
    • Could you tell me what changed in this update?   more one question: Is it possible to log in through the c4 client instead of interlude? That would be great  
    • ➡ Discount for your purchase: JULY2025 (11% discount) ➡ Our Online Shop: https://socnet.store  ➡ Our SMM-Boosting Panel: https://socnet.pro  ➡ Telegram Shop Bot: https://socnet.shop  ➡ Telegram Support: https://t.me/solomon_bog  ➡ Telegram Channel: https://t.me/accsforyou_shop  ➡ Discord Support: @AllSocialNetworksShop  ➡ Discord Server: https://discord.gg/y9AStFFsrh  ➡ WhatsApp Support: https://wa.me/79051904467 ➡ WhatsApp Channel: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n  ➡ Email Support: solomonbog@socnet.store 
    • ➡ Discount for your purchase: JULY2025 (11% discount) ➡ Our Online Shop: https://socnet.store  ➡ Our SMM-Boosting Panel: https://socnet.pro  ➡ Telegram Shop Bot: https://socnet.shop  ➡ Telegram Support: https://t.me/solomon_bog  ➡ Telegram Channel: https://t.me/accsforyou_shop  ➡ Discord Support: @AllSocialNetworksShop  ➡ Discord Server: https://discord.gg/y9AStFFsrh  ➡ WhatsApp Support: https://wa.me/79051904467 ➡ WhatsApp Channel: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n  ➡ Email Support: solomonbog@socnet.store 
  • 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