-
Posts
88 -
Joined
-
Last visited
-
Days Won
1
Community Answers
-
Digos's post in rAthena compiling on macOS was marked as the answer
I've successfully compiled on macOS High Sierra with the following steps:
Install the latest Xcode from Apple App Store Install homebrew https://brew.sh Install the following packages using homebrew on Terminal brew install mysql brew install pcre Go to the server directory on Terminal and type ./configure CC=clang CXX=clang++ --with-mysql=/usr/local/opt/mysql/bin/mysql_config --with-pcre=/usr/local/opt/pcre/ make clean && make server -
Digos's post in /breakguild was marked as the answer
Edit the file src/map/guild.c
In the below function
int guild_break(struct map_session_data *sd,char *name)
After
nullpo_ret(sd);
Add
// Cannot break guild during Guild Wars! if(agit_flag || agit2_flag) { clif_displaymessage(sd->fd,"Guilds cannot be broken during Guild Wars!"); return 0; }
Save the file and recompile your src (also restart your server).
Add it in this function too
int guild_broken(int guild_id,int flag)
Below
if(flag!=0 || g==NULL) return 0;
Add
// Cannot break guild during Guild Wars! if(agit_flag || agit2_flag) { clif_displaymessage(sd->fd,"Guilds cannot be broken during Guild Wars!"); return 0; }
It should work now
-
Digos's post in @go failed was marked as the answer
Every change in the src needs that you recompile the server. Even if you use it for offline purposes. See this page http://rathena.org/wiki/Compiling for more help.
-
Digos's post in Only GM's can enter server was marked as the answer
I think that there's an option in conf/login_athena.conf
// Required account group id to connect to server. // -1: disabled // 0 or more: group id group_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 id min_group_id_to_connect: -1 -
Digos's post in idnum2itemdesctable - ^COLOUR was marked as the answer
This one should do the trick:
$data="10000#Lorem ipsum dolor sit amet, ^AAaAaAconsectetur adipisicing elit, sed do^000000 eiusmod tempor incididunt ut labore.# 10001#Lorem ipsum dolor sit amet, ^AAbbCCconsectetur ^000000adipisicing elit, sed do eiusmod tempor incididunt ut labore.# 10002#Lorem ipsum dolor sit amet, consectetur ^0000FFBadipisicing ^000000 elit, sed do eiusmod tempor incididunt ut labore.# 10003#Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore.# 10004#Lorem ipsum dolor sit amet, consectetur adipisicing elit, ^FF0000sed do eiusmod tempor incididunt ut labore.^000000# 10005#Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor ^4323BCi^000000ncididunt ut labore.#"; function preg_callback($match = array()) { // inner text $string = $match[2]; // get the hex color preg_match("/\^([a-fA-F0-9]){6}/", $match[0], $matches); // remove the first ^ $color = ltrim($matches[0],"^"); // html format return "<span style=\"color: #".$color.";\">".$string."</span>"; } $data = preg_replace_callback("/\^([a-fA-F0-9]){6}(.*?)\^([a-fA-F0-9]){6}/s",'preg_callback', $data); echo "<pre>".print_r($data,1)."</pre>"; Output:
10000#Lorem ipsum dolor sit amet, consectetur adipisicing
elit, sed do eiusmod tempor incididunt ut labore.#
10001#Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore.#
10002#Lorem ipsum dolor sit amet, consectetur Badipisicing
elit, sed do eiusmod tempor incididunt ut labore.#
10003#Lorem ipsum dolor sit amet,
consectetur adipisicing elit, sed do eiusmod tempor
incididunt ut labore.#
10004#Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
eiusmod tempor incididunt ut labore.#
10005#Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
eiusmod tempor incididunt ut labore.#
-
Digos's post in Questions about CentOS and Files was marked as the answer
If you want to run only ragnarok server realy there's no need control panel.
You'll use just SSH + FTP (or SFTP).
Follow the guide http://rathena.org/wiki/index.php?title=Installation_(CentOS) and be happy
But if you want to host websites, control panel is very useful. I work with cpanel for two years and I'm happy with it.