Jump to content
  • 0
Vy Low

[request] @maintenance Command?

Question

35 answers to this question

Recommended Posts

  • 0

Wow I think this would be a nice feature. What will it do? Backup database and etc?

Share this post


Link to post
Share on other sites
  • 0

No, @maintenance will make the server unable to join normal players with group id: 0 

 

Only 99 group id can enter on the server. The reason why it is important is to avoid people entering the server while the server is online so you can test your npc or any scripts freely.

Share this post


Link to post
Share on other sites
  • 0

You can already do this, but you'd have to reboot the server by using these settings located at login-server.conf:

// Required account group id to connect to server.// -1: disabled// 0 or more: group idgroup_id_to_connect: -1// Minimum account group id required to connect to server.// Will not function if group_id_to_connect config is enabled.// -1: disabled// 0 or more: group idmin_group_id_to_connect: -1

Share this post


Link to post
Share on other sites
  • 0

 

You can already do this, but you'd have to reboot the server by using these settings located at login-server.conf:

// Required account group id to connect to server.// -1: disabled// 0 or more: group idgroup_id_to_connect: -1// Minimum account group id required to connect to server.// Will not function if group_id_to_connect config is enabled.// -1: disabled// 0 or more: group idmin_group_id_to_connect: -1

 

yep this will do, but need to restart server unlike @maintenance it will automatically kick all the players and only group 99 can connect :)

Share this post


Link to post
Share on other sites
  • 0

This can't be made for the moment because the HPM system allows only map-server plugins.

The part that deny players from logging in is in the login server so you will have to wait unitil plugins are avalable for login and char servers.

 

PS :

There is still a "dirty" way to do that, you could @kick all the players and then load a NPC that will reject the players when they log in.

I don't think it's a good way since all the players will thought the server is online until being kicked by the NPC.

Share this post


Link to post
Share on other sites
  • 0

:)  bump

Edited by pr3p

Share this post


Link to post
Share on other sites
  • 0

Mod or whatnot it should be free for christ sake!
 

I wont hesitate releasing some mods just to get rid of "PM ME", gross. disgusting.


Me want this too :3

Share this post


Link to post
Share on other sites
  • 0

Mod or whatnot it should be free for christ sake!

 

I wont hesitate releasing some mods just to get rid of "PM ME", gross. disgusting.

 

Me want this too :3

well i agree it should be free =)

Share this post


Link to post
Share on other sites
  • 0

I have a plugin that'd work with this, just waiting for some HPM stuff to be implemented.

I could also provide it with a basic really small change in the source that'd be required (At least until the HPM's required updates go through)

Share this post


Link to post
Share on other sites
  • 0

I have a plugin that'd work with this, just waiting for some HPM stuff to be implemented.

I could also provide it with a basic really small change in the source that'd be required (At least until the HPM's required updates go through)

thanks Xgear!

Share this post


Link to post
Share on other sites
  • 0

does someone know about this?

@maintenance <group_id can stay 1-99> <delay to kick in minute> <maintenance duration in minute>

Edited by AnnieRuru
Topic merge

Share this post


Link to post
Share on other sites
  • 0

wow ... don't do anything stupid ... ima gonna write one ...

$20 for this simple mod ? omg ... its overpriced in my opinion ...

Share this post


Link to post
Share on other sites
  • 0

wow ... don't do anything stupid ... ima gonna write one ...

$20 for this simple mod ? omg ... its overpriced in my opinion ...

 

woah.. surely your fans will line up more..

Share this post


Link to post
Share on other sites
  • 0

wow ... don't do anything stupid ... ima gonna write one ...

$20 for this simple mod ? omg ... its overpriced in my opinion ...

 

(X_X)/) 20$ if only i can MOD this kind of stuff i would Release it for FREE! after all Hercules provide us a Free Source Code, so why not give in Return!

 

Thumbs up for Annie.

Share this post


Link to post
Share on other sites
  • 0

wow ... don't do anything stupid ... ima gonna write one ...

$20 for this simple mod ? omg ... its overpriced in my opinion ...

That is definitely so nice of you Annie.. God Bless you

Share this post


Link to post
Share on other sites
  • 0

of course everything that I write will be free

.

.

I am trying to make similar one. but I can't seem to figure out how to show "on maintenance" on service select.. ^^

https://github.com/HerculesWS/Hercules/blob/master/src/map/clif.c#L676

clif->authfail_fd( sd->fd, 1 );

will display 'Server Closed (1)'

note that the packet header is 0x81

 

if you change 'min_group_id_to_connect', you'll get this

https://github.com/HerculesWS/Hercules/blob/master/src/login/login.c#L1107

the packet header is also 0x81

 

somehow *athena core developer dunno who, doesn't make use of clif->authfail_fd function

 

I know about this topic

http://herc.ws/board/topic/1286-requesting-maintenance-plugin/?p=10266

where people says plugin not supported, because they edit the login_auth_ok function inside srcloginlogin.c

but I found out HPMHooking allow to hook pc->authok inside srcmappc.c

so mine can support plugin ... well in theory

 

I'm about 20% done now ...

now writing the sql table to make it persist after server shutdown ... because it seems roservice they have that

Edited by AnnieRuru

Share this post


Link to post
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.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  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.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.