Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 09/20/17 in all areas

  1. Need the latest kRO Install folder for your private server? Look no further! ----> Download <---- Latest: 2023-04-04 Installation: Official kRO Updated: 04/04/2023 Download Link: https://mega.nz/folder/jUsDgRxQ#ttLmLjPY9p9cfU5_ShWVCw Package contains RSU RO Patcher Lite for kRO and kRO RE by [Ai4rei] This package is maintained by [Akkarin] Note: Due to continued abuse of my webservers, the files have been moved to MEGA. You can download an extractable .zip of an installed kRO directory, or you can download the official installer from kRO's website. Note: If you require older maps that are compatible with 2021 and older clients, download the 2021 .zip. A fan of this topic? Hit the rep button
    1 point
  2. Some peoples had asked me for this guide, so I thought it was a good idea to post here. I'm not a pro on things like this so maybe I'll not can help you, btw you can suggest to this guide very helpful informations, I'll be grateful for you. Introduction I'll teach you guys how to setup a rAthena Server in a Virtual Machine (VM) for training VPS before buying one and enable connection to another peoples for co-working or something using VirtualBox and CentOS 7 as Operating System (OS) for it. VirtualBox is widely used to perform this tasks because is secured, UI-friendly and very easy to configure. Prerequisites Windows XP SP3 or later VirtualBox Latest Version (or VMware) CentOS 7 minimal ISO PuTTY (or any similar software) FileZilla (or any similar software) (Optionals) No-IP DDNS and DUC Notepad++ Requirements Static IP (Host and Guest) Port Forwarding (22 for SSH, 80 for HTTP, FluxCP, phpMyAdmin and 6900, 6121, 5121 for the server) If you want, you can use another port different than 80 for HTTP for security reasons, but I'll not teach you how to do that. Warnings If you don't have any knowledgement in port forwarding or how port forwarding can be very risky, I really don't recommend this guide for you. I'm not liable for any damages in your PC or Network, make this by your own risk. If you want to not port forwarding and use this guide only for use the server in a VM only for you, it's okay, you just need to open ports on your Host-machine Firewall instead port forwarding, but you'll not able to open the server for another peoples. Creating the VM and Installing the CentOS 7 1. Open the VirtualBox and click in New or use Ctrl + N. 2. Enter the name and switch Type to Linux and Version to Red Hat (64-bit) and click in Next. 3. Set 1024 for the amount of memory (RAM) in megabytes to be allocted to the virtual machine and click next. 4. Select Create a virtual hard disk now and click in create and next. 5. Select Fixed size and click in next. 6. Set the size for the virtual hard disk in gigabytes. I'll set 20,00GB but you can put a different valor (minimum 5,00GB) and click in Create. 7. Click in Settings and go to Storage, click on the Empty below Controller: IDE and click on the small CD icon and click in Choose Virtual Optical Disk File... and select the CentOS 7 ISO file. 8. Go to Network and change NAT to Bridged Adapter and press the OK button. 9. Start your VM by pressing the Start button. 10. In the VM, choose Install CentOS Linux 7 option and press enter. 11. Choose your language and click and next. 12. On Localization configure your date and time by clicking in the Date & Time button and next you configure your keyboard by clicking in the Keyboard button. 13. Go to System and click in Installation Destination and just click in Done. 14. Click on Network & Host Name and click in the Off button to turn On. Now click in the Configure... button and go to IPv4 Settings, switch Automatic (DHCP) to Manual and click in Add. In Address you put the LAN IP that you want (normally is something like that: 192.168.xx.xx), in Netmask put 255.255.255.0 and in Gateway you put your Router Gateway (192.168.xx.xx) and click in Save. In Host name you can change to whatever you want, but add ".localhost" in the end like 'server.localhost' and click in Apply and next in Done. 15. Click on Begin Installation and next you set the root password by clicking on the button Root Password(don't forget that password, its very important) and wait the installation be done. After that just click in Reboot. 16. After the reboot you'll see anything like that: Just type root for Login and root password for Password. 17. After that type yum -y update and press Enter and wait the update finish. 18. Now create a new user non-root: Pick a different number from 4444. # useradd --create-home --shell /bin/bash rathena4444 # passwd rathena4444 Configuring the VM via Terminal using PuTTY. I recommend to use PuTTY because you can scroll up and down the terminal without having to install Gnome GUI on the VM and it's a good training before buying a VPS. 1. Connect to your VM on the PuTTY by typing the Guest Machine IP and the port that you have forwarded, then type root and root password. 2. Now type the following commands: # yum -y install centos-release-scl # yum -y install devtoolset-4-gcc-c++ # yum -y install make mysql mysql-devel mariadb-server pcre-devel zlib-devel git # systemctl start mariadb.service Optional, it will make this start for every system boot. # systemctl enable mariadb.service Run this command and follow the prompts: # mysql_secure_installation Login to your MariaDB Server as root: When prompted, enter your root MySQL password. # mysql -u root -p Now your prompt should look like this (the MariaDB command prompt): MariaDB [(none)]> 3. At the MySQL prompt, type this to create a database (replace rathena4444 with the Linux username you created earlier): MariaDB [(none)]> CREATE DATABASE rathena4444_rag; Create a separate database for logs: MariaDB [(none)]> CREATE DATABASE rathena4444_log; 4. Create a MySQL user for rAthena and grant privileges. MariaDB [(none)]> CREATE USER 'rathena4444'@'localhost' IDENTIFIED BY 'secretpassword'; MariaDB [(none)]> GRANT SELECT,INSERT,UPDATE,DELETE ON rathena4444_rag.* TO 'rathena4444'@'localhost'; MariaDB [(none)]> GRANT SELECT,INSERT ON rathena4444_log.* TO 'rathena4444'@'localhost'; Type 'exit' to close the MariaDB prompt. 5. Now we will open ports on the VM Firewall for accept the clients. Type the following commands: # firewall-cmd --zone=public --add-port=6900/tcp # firewall-cmd --zone=public --add-port=6121/tcp # firewall-cmd --zone=public --add-port=5121/tcp # firewall-cmd --reload If you want to enable this on all system boot startup just add --permanent on the final like that: # firewall-cmd --zone=public --add-port=6900/tcp --permanent 6. Installing and configuring phpMyAdmin for FluxCP and MySQL tables (you can skip that if you will use only MySQL Workbench) Remembering: I REALLY DON'T RECOMMEND YOU TO OPEN PORT 80 IF YOU DON'T HAVE ANY KNOWLEDGEMENT IN PORT FORWARDING. # firewall-cmd --zone=public --add-port=80/tcp # firewall-cmd --reload Step 1: # rpm -iUvh http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm Step 2: # yum -y update # yum -y install httpd php phpmyadmin Step 3: Open the FileZilla and login on your VM. Now go to /etc/httpd/conf.d/ and open the phpMyAdmin.conf using Notepad++ and modify this: Alias /phpMyAdmin /usr/share/phpMyAdmin Alias /phpmyadmin /usr/share/phpMyAdmin <Directory /usr/share/phpMyAdmin/> AddDefaultCharset UTF-8 <IfModule mod_authz_core.c> # Apache 2.4 <RequireAny> Require ip 127.0.0.1 Require ip ::1 </RequireAny> </IfModule> <IfModule !mod_authz_core.c> # Apache 2.2 Order Deny,Allow Deny from All Allow from 127.0.0.1 Allow from ::1 </IfModule> </Directory> To this: Alias /phpMyAdmin /usr/share/phpMyAdmin Alias /phpmyadmin /usr/share/phpMyAdmin #<Directory /usr/share/phpMyAdmin/> # <IfModule mod_authz_core.c> # # Apache 2.4 # <RequireAny> # Require ip 127.0.0.1 # Require ip ::1 # </RequireAny> # </IfModule> # <IfModule !mod_authz_core.c> # # Apache 2.2 # Order Deny,Allow # Deny from All # Allow from 127.0.0.1 # Allow from ::1 # </IfModule> #</Directory> <Directory /usr/share/phpMyAdmin/> Options none AllowOverride Limit Require all granted </Directory> Save and return to FileZilla, a little popup will be show, just click Yes. Back to PuTTY terminal and type the following commands: # systemctl start httpd Optional, it will make this start for every system boot. # systemctl enable httpd Now open your browser and put your IP or your No-IP DDNS with /phpmyadmin like that: "250.251.252.253/phpmyadmin" or "myragnaroknoip.ddns.net/phpmyadmin" to have access to it. 7. Logout from root SSH (or minimize the window) and login as your non-root Linux user that you created earlier. 8. Clone the rAthena repository: # git clone https://github.com/rathena/rathena.git ~/rAthena 9. Import MySQL tables Step 1: Change directory to the "sql-files" folder. # cd rAthena/sql-files/ Step 2: # mysql -u root -p rathena4444_rag < main.sql # mysql -u root -p rathena4444_rag < item_db.sql # mysql -u root -p rathena4444_rag < item_db2.sql # mysql -u root -p rathena4444_rag < mob_db.sql # mysql -u root -p rathena4444_rag < mob_db2.sql # mysql -u root -p rathena4444_log < logs.sql 10. Configure the server by editting the files using FileZilla + Notepad++ (Normally the rAthena server folder is inside the non-root user folder (/home/rathena4444).) 11. Compile the source code Step 1: # cd .. # scl enable devtoolset-4 bash # ./configure Step 2: # make server How to Recompile: # ./configure # make clean # make server 12. Start your rAthena server. This will start the rAthena Server: # ./athena-start start To stop the server just use: # ./athena-start stop You can restart your server if is already running # ./athena-start restart Links that I have used for make this guide (Special Credits): https://github.com/rathena/rathena/wiki/Install-on-Centos https://www.liquidweb.com/kb/how-to-install-and-configure-phpmyadmin-on-centos-7/
    1 point
  3. you welcome but to make sure did you intend to kick the players level 111 only in moc_fild04 and 121 only in moc_fild05 and 131 only in moc_fild06 etc ?
    1 point
  4. try this //================================================================================================ // // ==================================== NPC Padrao % Feats ==================================== // //================================================================================================ - script OnFeatures -1,{ OnInit: setarray .blvl,111,121,131,141,151,161; setarray .maps$,"moc_fild04","moc_fild05","moc_fild06","moc_fild08","moc_fild09","moc_fild10","moc_fild14","moc_fild15"; end; OnPCLoadMapEvent: for ( .@i = 0; .@i < getarraysize(.maps$); .@i++) { if(strcharinfo(3) == .maps$[.@i]) { percentheal 100,100; sc_start SC_FOOD_STR_CASH,36000000,7; sc_start SC_FOOD_AGI_CASH,36000000,7; sc_start SC_FOOD_INT_CASH,36000000,7; sc_start SC_FOOD_VIT_CASH,36000000,7; sc_start SC_FOOD_DEX_CASH,36000000,7; sc_start SC_FOOD_LUK_CASH,36000000,7; mes "[^ff0000Ajudante^000000]"; mes "Bom up!"; close; } } end; OnPCBaseLvUpEvent: for ( .@i = 0; .@i < getarraysize(.blvl); .@i++) { if(strcharinfo(3) == .maps$[.@i] && BaseLevel == .blvl[.@i]) { mes "[^ff0000Alerta^000000]"; mes "Voce alcançou o nivel maximo"; mes "desse mapa!"; mes " "; mes "Voce sera teleportado em 5 segundos!"; close2; warp "prontera",157,173; } } end; } - script Manager::Ajudante -1,{ mes "[^ff0000Ajudante^000000]"; mes "Em que posso ajudar?"; if(select("~ Quero me Buffar!:~ Quero voltar!") == 1) { mes "[^ff0000Ajudante^000000]"; mes "Ok... La vai!"; sc_start SC_FOOD_STR_CASH,18000000,7; sc_start SC_FOOD_AGI_CASH,18000000,7; sc_start SC_FOOD_INT_CASH,18000000,7; sc_start SC_FOOD_VIT_CASH,18000000,7; sc_start SC_FOOD_DEX_CASH,18000000,7; sc_start SC_FOOD_LUK_CASH,18000000,7; close; } else { mes "[^ff0000Ajudante^000000]"; mes "Certo, volte sempre!"; close2; warp "prontera",157,173; } end; } moc_fild04 mapflag loadevent moc_fild05 mapflag loadevent moc_fild06 mapflag loadevent moc_fild08 mapflag loadevent moc_fild09 mapflag loadevent moc_fild10 mapflag loadevent moc_fild14 mapflag loadevent moc_fild15 mapflag loadevent
    1 point
  5. Version 1.0.0

    399 downloads

    Mob from MS. Nightmare Golem.
    Free
    1 point
  6. Refine Database Reworked As of Git Hash: e24d30a, rAthena's refine database has been reworked. Changes: refine_db.txt has been converted to YAML format with new name, refine_db.yml. This should help with readability and easier customizations. Refine rates can now be set in the refine_db.yml once and for all. rAthena's provided refiners have been updated to follow these adjustments in refine_db.yml. Official smelting event is now available. You can toggle event_refine_chance config in conf/battle/items.conf to enable smelting event. Refine rates will be increased significantly when smelting event is turned on. If you find any issues after updating, please let us know via our issue tracker!
    1 point
  7. This is what im like about you emistry... ^ ^ Thanks for the info... I just want to learn more about scripting... hahaha The variable i mean... Or something you all scripter call it... Hahahahah **Edit** How can put an amount of needed item?..?
    1 point
×
×
  • Create New...