Jump to content

hemagx

Core Developers
  • Content Count

    248
  • Joined

  • Days Won

    10

Posts posted by hemagx


  1.  

    Hi guys, I'm new to the Hercules, although I used eAthena txt in the past (like 6 years ago lol).

     

    So I'm configuring 2 machines, one that will run the server itself and another one that will be just the database + website.

    What do I need to do to make the login, char and map servers look at the database on the separate machine?

     

    Thanks.

    conf/inter-server.conf

    sql.db_hostname: 127.0.0.1sql.db_port: 3306sql.db_username: ragnaroksql.db_password: ragnaroksql.db_database: ragnaroksql.codepage:// MySQL Character SQL serverchar_server_ip: 127.0.0.1char_server_port: 3306char_server_id: ragnarokchar_server_pw: ragnarokchar_server_db: ragnarok// MySQL Map SQL Servermap_server_ip: 127.0.0.1map_server_port: 3306map_server_id: ragnarokmap_server_pw: ragnarokmap_server_db: ragnarok// MySQL Log SQL Databaselog_db_ip: 127.0.0.1log_db_port: 3306log_db_id: ragnaroklog_db_pw: ragnaroklog_db_db: ragnaroklog_codepage:log_login_db: loginlog

    Although I suggest SQL and server to be on same machine and website on different machine, so that server can communicate with SQL much faster(Server needs to connect to SQL much often)

     

    as long as the two servers in the same network or data center it will not hurt :)

    anyway it's always better to make SQL server alone without anything else.


  2. Try this.

     

    diff --git a/src/login/login.c b/src/login/login.cindex 43883c6..6c5b567 100644--- a/src/login/login.c+++ b/src/login/login.c@@ -845,7 +845,7 @@ int parse_fromchar(int fd) 					WFIFOHEAD(fd,183); 					WFIFOW(fd,0) = 0x2737; 					safestrncpy((char*)WFIFOP(fd,2), acc.userid, NAME_LENGTH);-					if (u_group >= acc.group_id) {+					if (u_group >= 98) { 						safestrncpy((char*)WFIFOP(fd,26), acc.pass, 33); 					} 					safestrncpy((char*)WFIFOP(fd,59), acc.email, 40);

  3. The code get the value from conf/battle/client.conf in this line

     

     

    setarray .@styles[1],getbattleflag("max_cloth_color"),getbattleflag("max_hair_style"),getbattleflag("max_hair_color"); 

     

    you can edit it there, or you can edit this line and make it like the follow

     

     

    setarray .@styles[1],553,57,251; 

  4. i can't find the problem.

    the plugin after check the code, i think it's ok.

    so mostly you did not install it in the right way.

    do you mind to share those files :

    conf/plugins.conf

    src/plugins/Makefile.in

     

    and the output of command dir

    in path/to/server/plugins


  5.  

    if you updated the structs then i can't see any problem in the code but clif_displaymessage it should be changed to clif->message.

     

    Sorry, what does "if you updated the structs then i can't see any problem in the code" mean? I dont understand, Im so sorry.

     

    sorry, i wrote it in sucks way using mobile phone :)

    as i see here :

     

     

    if (!sd->state.pet_no_talk) {		sd->state.pet_no_talk = 1;	} else {		sd->state.pet_no_talk = 0;	}

    you have some custom variables added to state struct so make sure you have pet_no_talk in your struct

    if you don't have it then you should add it.

    you can find struct code at pc.h

     

    also in your code you use clif_displaymessage and you can't call this function anymore after interface updates.

    so you should call it from the interface.

    simply change it to.

     

     

    clif->message(fd, atcmd_output); 

     that all.

     

    @Dastgir Pojee thank you explain what i meant :)

×
×
  • Create New...

Important Information

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