Jump to content
  • 0

@maintenance command


Question

Posted

Hello I was wondering how to create a command that causes the server to enter for maintenance when typing the command giving en kick all players and not letting them connect until the command is enabledagain.

Recommended Posts

Posted

Hello I was wondering how to create a command that causes the server to enter for maintenance when typing the command giving en kick all players and not letting them connect until the command is enabledagain.

@maintenance → kick all players except Admin → change map-server status to Maintenance → tell char-server to change status to Maintenance

Player login → check if (server is in Maintenance and player is not an admin), if yes → block player

at_maintenance.patch

Usage: @maintenance <on/off>

  • Upvote 3
Posted (edited)

yes, this is a brilliant idea.

anyway just to make easy for you Eden,

How about

Check if GM LEVEL = N

N stands for the level of Game Master so we can allow Sub-GMs to test it inside the game.

if GM Level = 0 or 1

autokick.. or they will logout automatically.

Edited by Jezu
Posted (edited)

Sounds the IDEA is very nice, thanks for the 'Diff' FataError.

Release it on 'Source Modifcations' so that it can easily to find the modifications you made.

Thank you Again!

Regards,

Mindless

Edited by Mindless
Posted

If someone could make one for eAthena, because I am still configuring rathena not have much time to move through the emulator then take a while to change.

Posted

Could you possibly provide a diff patch for those who are currently with eAthena still?

oh well..

at_maintenance_eathena_r15077_sql.patch

possible to change the Message Rejected from Server to Server Maintenance?

WFIFOHEAD(fd,3);
WFIFOW(fd,0) = 0x6c;
WFIFOB(fd,2) = 0; // <-- CHANGE 0 TO 1
WFIFOSET(fd,3);
break;

It should change the message to: "You cannot use this ID on this server."

search for that line in msgstringtable.txt and edit it..

Posted

Could you possibly provide a diff patch for those who are currently with eAthena still?

oh well..

at_maintenance_eathena_r15077_sql.patch

possible to change the Message Rejected from Server to Server Maintenance?

WFIFOHEAD(fd,3);
WFIFOW(fd,0) = 0x6c;
WFIFOB(fd,2) = 0; // <-- CHANGE 0 TO 1
WFIFOSET(fd,3);
break;

It should change the message to: "You cannot use this ID on this server."

search for that line in msgstringtable.txt and edit it..

Much better if you could 'UPDATE' the latest rAthena SVN.

Thank you.

Yours,

Mindless

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...