[request] @maintenance Command?

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.

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

 
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#L676clif->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

 
Last edited by a moderator:
i see, im getting insight on how it works now. thank you AnnieRuru for lighten my mind on this kind of stuff Thumbs up!

default_biggrin.png
20%

got my signature already XD

 
Last edited by a moderator:
@Annieruru - If I'm not mistaken, the part that shows Maintenance is set in the config files. So couldn't you just add a check for a variable change? I'd suggest ifdef but, don't think that apply here.

 
you mean login_config.min_group_id_to_connect ?

this value is defined in srcloginlogin.h, and currently plugin not able to read anything outside srcmap folder

so I'm not going to use that

btw ... I pull back the statement saying this is a simple mod

when imagine in theory, I pictured it just about 3 functions and 1 sql table

but when try it out ... there seems to have a lot of limitations ...

none the less, I still can get this done, just take longer time

@others

I used to have AnnieRuru fan club back in 2008

but it was dissolved when ToastofDoom and Nymphycus joined scripting moderator in eathena ( not to mentioned Keyworld too )

so now its no more ... LOL

 
Last edited by a moderator:
Lol, @ the fan club xD. But I guess that means I'm the last remaining " member ". At anyrate, yeah, that's what I meant when I was making the suggestion. I didn't know it was limited to src/map.

 
@others

I used to have AnnieRuru fan club back in 2008

but it was dissolved when ToastofDoom and Nymphycus joined scripting moderator in eathena ( not to mentioned Keyworld too )

so now its no more ... LOL
off topic and have to stop here.. let me be the last *peace*

you should re-open it maam and please let me in need to learn more how and why thit that
default_laugh.png
default_wub.png


 
its been 2 days and still just 70% complete

and the script is getting too large, so I need to save this here to create as a backup

http://upaste.me/9b7fdd

create table maintenance (id int(11) primary key auto_increment,account_id int(11),name varchar(23),reason varchar(99),minlv2connect tinyint(4),order_time datetime,start_time datetime,end_time datetime) engine = archive;..

still have *maintenance script command, and convert into plugin

feel free to try and report any bug

 
Error With the SQL:

[Window Title]

Error

[Content]

SQL Error (1164): The used table type doesn't support AUTO_INCREMENT columns

[OK]

as I was adding the diff lol I'm surprised your plan with this command is very advanced
default_smile.png


Some error return on Chrif.c

1>c:usersasusdesktopherc_localsrcmapchrif.c(501): error C2059: syntax error : 'if'

1>c:usersasusdesktopherc_localsrcmapchrif.c(503): error C2059: syntax error : 'else'

1>c:usersasusdesktopherc_localsrcmapchrif.c(539): error C2059: syntax error : 'if'

1>c:usersasusdesktopherc_localsrcmapchrif.c(547): error C2059: syntax error : 'else'
 
Last edited by a moderator:
huh ? since when archive type table couldn't support auto_increment ?

I still using MySQL 5.1 ... maybe

change 'engine = archive' into 'engine = innodb'

and what's on the line 501,503,539,547 ?

maybe copy paste my code in {code} tag then comment on the line number

if (1) // line501

http://upaste.me/4aea36

create table maintenance (id int(11) primary key auto_increment,account_id int(11),name varchar(23),reason varchar(99),minlv2connect tinyint(4),order_time datetime,start_time datetime,end_time datetime) engine = innodb;
finished the script command, now start converting ...

 
probably because I'm using rAsql lol
default_blush.png


----

Just tested it well what can I say.. for a free version this is awesome everything you need is added. 
default_wub.png


Your work is amazing AnnieRuru 
default_wub.png


screenChaos026_zps83572a55.jpg


 
Last edited by a moderator:
Back
Top