Jump to content
mastabomba

Notes Setting Server Public

Recommended Posts

1. Config locations and variable need to be edited to your server's IP (example: 192.168.130.133)

Hercules/conf/login/login-server.conf:           bind_ip: "192.168.130.133"
Hercules/conf/map/map-server.conf:               char_ip: "192.168.130.133"
Hercules/conf/map/map-server.conf:               bind_ip: "192.168.130.133"
Hercules/conf/map/map-server.conf:               map_ip: "192.168.130.133"
Hercules/conf/char/char-server.conf:             login_ip: "192.168.130.133"
Hercules/conf/char/char-server.conf:             bind_ip: "192.168.130.133"
Hercules/conf/char/char-server.conf:             char_ip: "192.168.130.133"

 

2. Copy s1 row to create new user with id 2 and replace default s1/p1 in Hercules/conf/char/char-server.conf & Hercules/conf/map/map-server.conf

 

3. Use GFR Editor to open GRF in data.ini & find clientinfo.xml, change IP and save.

 

I followed this guide:

If you want to migrate to Debian 10:

 

1. Install mysql 5 from oracle repo

2. Stop mysql

3. Rename /var/lib/mysql on debian 10

4. Copy /var/lib/mysql over from debian 8

5. Start mysql

6. Upgrade (mysql_upgrade -u root -p --force)

7. Restart mysql.

8. Copy over Hercules folder from debian 8 an install packages like before

 

I'm using client from https://drive.google.com/drive/folders/1RQkJbfqr0t1dieiz_jmz_1nCDUxRhhwY

 

Configure parameter for pre:

./configure --enable-packetver=20190605 --disable-renewal

 

Hercules/src/common/mmo.h pre-renewal & client setting

#ifndef PACKETVER
        #define PACKETVER 20190605

//#define ENABLE_PACKETVER_RE

 

To redirect logs into Hercules/log/ folder, modify athena-start script to


 

case $1 in
    'start')
        print_start
        check_files

        exec ./${L_SRV}>>log/${L_SRV}.log&
        echo $! > .${L_SRV}.pid
        exec ./${C_SRV}>>log/${C_SRV}.log&
        echo $! > .${C_SRV}.pid
        exec ./${M_SRV}>>log/${M_SRV}.log&
        echo $! > .${M_SRV}.pid

        echo "Now Started Athena."

 

Log rotation

 

 /etc/logrotate.d/hercules
 

/home/ragnarok/Hercules/log/*.log {
        daily
        rotate 7
        missingok
        create 640 ragnarok ragnarok
        compress
}

 

Put Warper in Eden HQ (need restart)

in npc/custom/warper.txt

moc_para01,34,20,4      duplicate(Warper)       Warper#prt      4_F_VALKYRIE

 

Kafra smack in the middle of Prontera?

 

edit npc/kafras/kafras.txt

 

prontera,160,187,3      script  Kafra Employee::kaf_prontera    4_F_KAFRA6,{
        cutin "kafra_06",2;
        callfunc "F_KafSet";
        mes "[Kafra Employee]";
        mes "Welcome to the";
        mes "Kafra Corporation~";
        mes "The Kafra Services are";
        mes "always here to support";
        mes "you. So how can I be";
        mes "of service today?";
        callfunc "F_Kafra",5,0,0,40,800;
        savepoint "prontera",159,183;
        callfunc "F_KafEnd",0,1,"in the city of Prontera";
}

Item not available from monster drop? Put it in NPC item mall (prontera)

Hercules/npc/custom/itemmall.txt

Edited by mastabomba
addendum

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...

Important Information

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