text:
Search the Community
Showing results for tags 'Guide'.
Found 14 results
this guide will go over how to create a new effect for l2 and how to attach it to a npc [Hidden Content]
this guide will go over creating (or importing..) weapons using Unreal. this method allows you to put as many weapons as you want in 1 package! Benefits = organization, less clutter, flexible settings, high quality models, animated [Hidden Content]
this guide will go over how to create monsters PROPERLY with attack effect and sound [Hidden Content] 200 LineageMonster.serpent_slave moob.scapegoat_m00 0 0 2 4416 9 1.58181822 0 3 ItemSound.sword_big_9 ItemSound.spear_2 ItemSound.sword_mid_9 5 MonSound.Hit_normal_3 MonSound.Hit_Shell_3 ItemSound.shield_bone_1 MonSound.Hit_Metal_clang_11 MonSound.Hit_Wet_3 3 MonSound.serpent_slave_dmg_1 MonSound.serpent_slave_dmg_2 MonSound.serpent_slave_dmg_3 0 1 0 LineageEffect.p_u002_a 0 50.00000000 250.00000000 70.00000000 0 1
this guide will go over how to adapt effects and skills from higher chronicles and import them through interlude [Hidden Content] try and delete EditPackages=UnrealEd EditPackages=IpDrv EditPackages=UWeb EditPackages=GamePlay EditPackages=GUI EditPackages=Runtime EditPackages=RTInterface
Guide Creating Costumes For Interlude
big man bear posted a topic in Client Development Discussionthis guide will go over how to create costumes for interlude and provide the resources necessary to do so [Hidden Content]
Guide L2J with Linux for non-SysAdmins
SamDev-Coder posted a topic in Server Shares & Files [L2J]Hello once again, My Apologies for being away for sometime, at this tutorial we gonna discuss working with Linux as Hosting OS for your L2J Server an we will be talking about the advantages of using Linux. so let's cut this off and get started. Table of Contents : – Who can use this tutorial ? – What is Linux ? – Which Distribution to use ? – Installing Linux on Personal PC or Virtual Machine – Getting familiar with Linux Command Line { Terminal } – Connect to Linux Server with through SSH Remotely – Learn to Manage Users, Group and Access Control – Repositories and Software – Installing and Configuring MySQL Server – Connect and Install Your Server Database – Installing and Configuring Oracle Java – Move and Setup your Server Files to Linux Server – Run and Stop Server – Installing and Configuring Apache2 – Host your Site and Domain - Ports and Firewall > To be Added – Manage Processes and Services > To Be Added – Advanced and Helpful Commands > To Be Added – What's Next with Linux …. > To Be Added In the beginning i would like to answer some frequently asked questions . Who can use this Tutorial ? This Guide is meant to be for non System Administrators , so it basically will be a Step by Step guide to help those didn't worked with Linux before, so if you have no experience at all with Linux then don't worry you'll get familiar with it today . What is Linux ? Well, Linux as a name refers to multiple things but mainly it refers to OS Kernel that spreading more and more everyday and guess what most likely you're using Linux too , Huh ?? oh yes actually Android is based on Linux Kernel. For some people Linux is a monster, and actually it is a monster but a monster that fights you , or fighting in your side if you can deal with it Linux is not that thing you can go download and get like that (Ofc you can but this needs alot of advanced skills), instead it comes as packages called Linux Distributions and can be called Linux Distro, this distributions are usable packages for Linux packed with some tools and software and some of them comes with a GUI as well, and actually there are many Distributions out there, for example : Ubuntu, Fedora, CentOS, BackTrack, Kali …. etc Which Distribution to use ? Well there are actually many good distributes but as an advice if you good or moderate with Linux then use Ubuntu Server Distribute if you are not a command line guy/girl then use something with GUI like Ubuntu Desktop, Kubuntu, Fedora. Also you may need a UI to make changes and stuff , but if you're an experienced or a command line lover then u wont need this GUI, since everything can be done via Terminal. Most likely when you buy your dedicated or VPS your hoster will ask your for which Distribute you want to be installed and this options are widely available in most if not all hosting providers like OVH which i recommend. In this Guide i'll use Ubuntu Desktop and Kubuntu Installing Linux on Personal PC or Virtual Machine I don't like to repeat what's already done, since there are alot of good tutorials out there , here is one of the good guides, also i'll add a detailed guide about this later – Getting familiar with Linux Command Line { Terminal } First i expect now you have a clean install of Linux, i have also a clean install of Ubuntu Desktop, so let's login with your password created in installing process or provided by your host, Type your password and hit Enter Once you logged in Click on the Ubuntu Icon on left top corner then type "terminal" in search and click on terminal icon Now we have our terminal up and running so we can start playing around with commands Great, Let's try same on another distribution ? Okay let's go to Kubuntu Distribution Login with your username and password Then Click on Kubuntu Logo on the bottom left corner and type terminal in search then click on Konsole icon Here we go again with our terminal Now it's the time to run some commands and get familiar with the new environment List files in current Directory : To see files in current working directory you can use command ls Here we can see all files and folders in current directory, but actually this is not all files and folders since by default the "ls" command wont show the hidden files, and to show all files including hidden files we can add options "-a" which stands for "list all" ls -a as you may notice in Linux hidden files and folders are those who starting with a dot ".", any file starting with "." will be considered as a hidden file See the current directory : To get the path of the current directory you're working with you can use the command "pwd" which stands for "Print Working Directory" pwd Clear Screen : To Clear Terminal screen you can use the command clear Yes it's as simple as that Make a new Folder : first of all in Linux Community it's usually called Directory not Folder, so in order to make a new directory u can use the command "mkdir", which stands for "Make Directory" followed by Directory name, normally this command will return nothing but this is normal so getting nothing back doesn't mean it's not working mkdir mxc_directory Note : Linux is a case sensitive system unlike windows, so for example mxc directory is not Mxc directory since "m" is not "M" so you can have two directories in same directory with same name but different letter case Change Current Directory : Well in order to move to another directory you can simply use command "cd" which stands for "Change Directory" followed by the patch to go or directory name cd mxc_directory Go to Upper / Parent Folder cd .. If you wanna go to to the very top directory use "cd" without any path, and if you wanna go quickly to user directory you can use that command cd ~ Create a new Empty file : Creating a new files in linux is very simple, let's go to mxc_directory and make a file in it called hello.txt, i think you know how to go to mxc_directory and then create the file using touch command cd mxc_directory touch hello.txt Edit File Content in Terminal : To edit a text based files in terminal you can use nano (available on many distributions, some have vim instead), for example nano hello.txt You'll get GNU nano Editor like this Now you can type or edit whatever you want and to Save Press CTRL+O then confirm file path and hit Enter, To Exist Nano Editor Press CTRL+X Show File Content into Terminal : If you wanna show a text based file contents into Terminal for a fast review you can use command "cat" followed by file name cat hello.txt Print Text to Terminal : To show text to a screen or to print out a message you can use command "echo" followed by message or text quoted echo "My Secret Message" Useless huh ? , Well just stay with me for next trick Send Terminal Output to a file : If you have any terminal output that you want to save to a file instead of printing it to screen, like a log or something which you may need this when working with L2J to quickly redirect out errors to a file for later review then you can use output redirect command which is used by appending ">" followed by output file after any command that you expect an output from echo "My Secret Message" > secret.txt Copy file : To copy a file you can use "cp" command followed by original file name/path followed by new file name/path, you have to provide path if it's not in current working directory also you need to provide the name of the file on the new location cp secret.txt copied.txt But how to copy a folder instead of just a single file ? , well it's simple you can still use "cp" command but this time followed by option "-R" which means Recursive , so let's try to go to upper folder and copy mxc_directory cd .. cp -R mxc_directory copied_directory Move File : Moving files means it will be copied to another location and deleted from original one, and to do this we can use "mv" command followed by original file followed by new location along with the new file name, so for example to move copied.text to the upper directory we can do so mv copied.text ../moved.txt If you wanna move a directory we do as we did in coping directory by adding "-R" option Delete / Remove a File : To delete a file you can use command "rm" which stands for "remove" followed by file name rm secret.txt Same for Deleting Directory you can add -R option but take care since this operation can't be undone Connect to Linux Server with through SSH Remotely Considering that you have a Linux VPS or Dedicated you will have what's called SSH (Secure Shell) access in this case you'll be able to login and control in terminal mode, and to do this there are many ways to connect through SSH but i prefer to use a small application called PuTTY which is free and easy to use. Download PuTTY : Click Here After downloading and installing (Really easy to install not a big deal) you can run this application, you'll get something like this Enter you VPS or Dedicated Host name of IP on selected input and by default port will be 22 and then hit "Open", you'll get a black window like command line and will ask u for a username, put the username u use to login to your Linux then will ask for your password and now you are logged and can issue Linux commands remotely Learn to Manage Users, Group and Access Control Learning how to manage users and groups is very important when dealing with Linux since learning this will save you from a lot of troubles. I'll try to simplify this as possible. In Linux in order to login into the system you must have a user credentials just like windows, so you can have multiple users into a Linux system also this users can be grouped into "Groups", and whenever a user create a file or something this file will be "Owned" by this user and this is the user who has full permission on this file. Talking about Permissions there are 3 permission on each file : Read , Write and Execute, each one of this permission has something like a code as follow : Read (4), Write (2) and Execute (1). so for example full permission will be 4 + 2 + 1 = 7 => 7 is the code for Full Permission, 5 means you can Read and Execute but you can't edit or modify the file, 0 means no permissions at all. When you wanna set a permission for a file you have to set it also for 3 things in order : Owner, Group and Others. Owner : Is the user who create the file. Group : Is users in same group as owner or the group owns the file Others : Is anyone else So for example Setting Permission for a file as 777 means everyone has all permissions, 775 means Owner user and Owner Group has full permissions while others can only Read and Execute but not Write or Modify It's Always preferable to do your stuff using non-root user, since root user have full permission over system files which may cause problems because it's a "Super User", which in shortened called "su" Creating Users : So Let's create our user that we will use to sort our server, to create a new user you have to be on a "Super User" / Root , and we gonna use command "useradd" and we can specify some options for example : -m : this will automatically create user home directory if not exist for example > /home/samdev/ -M : this option is used to tell Linux to no create user home directory even if system automatically create home directories for new users -d : this will allow us to specify custom user home directory location -U : will create a group with same name of username and add the new user to it automatically -e : will allow us to set expiring date which will make the account auto expire at a specific date There are many more options you can use but let's Start small to keep thing as simple as possible, we gonna now create a user with a username of maxcheaters but issue this command useradd -m maxcheaters If you are not on a root user then prefix command with "sudo" then it will ask you for a root password, prefixing any command with "sudo" means that run this command as a "Super User" sudo useradd -m maxcheaters Well it's created, we can confirm this by listing our users by cat the file /etc/passwd cat /etc/passwd Also here is a trick to show only usernames by cutting each line by delimiter ":" and print first one only cut -d : -f 1 /etc/passwd Well we have our new user create but actually we didn't set a password for it , so how we can set a password for a user ? . Simple .. we can use the command "passwd" which stands for Password, and also this needs to be ran as "Super User" so you can prefix with "sudo" if you are not on root sudo passwd maxcheaters Nice, it's not asking you for the new password, just enter a password and hit enter. then confirm it again Note : you wont see what you are typing so make sure you are typing it right Switch Accounts : Now we want to switch to our newly created account, which can be done using command "su" which stands for "Switch User", don't get confused about "su" when talking about "Super User" or "Switch User" , when we talk about commands it's "Switch User" when talking about Terms in Linux Community it's "Super User", so here is how to switch to another user su - maxcheaters It may ask you for the password, so enter it and hit Enter Now if we check our current working directory using "pwd" command we will see that we automatically switched to maxcheaters user home directory About Groups : Each user has two different types of groups, Primary one and Secondary Groups, The primary group is usually a group with same name as username it's created automatically when user created, this doesn't mean it can't be change .. no you can change this primary group but in most cases you wont need to do this. Secondary Groups are the groups that user subscribed to it after being created (ah it makes sense ) , so you can have your group and subscribe to other groups as well. So first let's see what groups our new user has by issuing command "id" followed by username id maxcheaters Now we can start working with groups but to do this we need to be on "Super User" mode so we can do things on root which is not very good choice for security concerns or we can give permissions to our new user. Sudo Permissions : To give a user on a Linux system a permission to run "sudo" commands all we need to do is to switch to root access and add our user to the "sudo" group, so first let's switch to root, and enter required password su - root Now we need to add our user "maxcheaters" to "sudo" group using command "usermod" followed by option -a which means "Append" followed by "G" then group name "sudo" followed by user to add "maxcheaters" usermod -aG sudo maxcheaters Now let's Switch back to "maxcheaters" user, i guess you know how … right ? su - maxcheaters Create Groups : Creating is as simple as creating users with the command "groupadd" followed by new group name, note that this command is needs to be executed via a super user and since we switched to non-super user "maxcheaters" then we prefix it with "sudo" to do it as super user, not that it may ask you for the "maxcheaters password sudo groupadd cheaters To get list of all available groups you can cat the file "/etc/group" cat /etc/group Add a User to Group : Huh ?? we already did this , cant you remember ? … well anyway you can add user to a group by modifying user with "usermod" command followed by -aG, followed by group name then user name, and this is also a super user command so you need to prefix with sudo sudo usermod -aG cheaters maxcheaters Remove user from a Group : To remove user from a group you can use command "deluser" yes it means delete user but no worries if you use it correctly it wont affect user itself, only remove it from a group, also it needs to be used with "sudo" sudo deluser maxcheaters cheaters Delete a Group : Well we deleted the user from the group but we didn't deleted the group it self , it still exist so if we wanna to delete the group "cheaters" we can use command "groupdel" followed by group name, also it will delete the group from all users subscribed to it automatically sudo groupdel cheaters Repositories and Software Repositories are some kind of online sources for downloading and getting software, Linux distributions comes with some default repositories that contains most and commonly used software, so it helps you to download software easy and fast and your system will search available or registered repositories for the software you want to install and download it for you. Note : this part of guide is for Distributions that uses "apt" as packages manager which is very common, some others like for example ArchLinux using "pacman" as packages manager, so if you have a different package manager lemme know the Distribution you use and i'll try to assist you though it Update APT Database : It's always good to update your repositories and this means let your system scan registered repositories and see if anything added or changed, and we do this using command "apt-get" followed by "update" sudo apt-get update Install a Software : To install a software you know first to know it's name (logically ), then you can use command "apt-get" followed by "install" then application name, but actually in Linux community it's usually called Package instead of application and things like this . so let's try by installing "unzip" to be able to unzip .zip files sudo apt-get install unzip Very simple isn't , it's just like that, no annoying pop ups and dialogs … etc Note : Some Packages during installing will ask you about something needs confirm and you'll be able to answer by typing "Y" for yes, and "n" for no Uninstall a Package : Maybe at some point you want to uninstall / remove a package installed before, and it's not hard to do all u need is same "apt-get" command followed by "remove" instead of "install" followed by package name to remove sudo apt-get remove unzip But wait a moment cause this is not best way all the times, it can be good at sometimes and not in some other cases, since this way you removing only the package it self ,but sometimes a packages comes with another package and configuration files so to remove it all we can use another way by using "purge" instead of "remove" sudo apt-get purge unzip Installing and Configuring MySQL Server Now it's time to install MySQL server on our Linux Server, but installing package named "mysql-server" sudo apt-get install mysql-server Congratulations it's installed, but hold on … it's not the time to celebrate … we still need to configure it Currently if we tried to log into our database it will be with username "root" and no password (by default) so it's time to harden our database security a bit. MySQL Security Hardening : First thing after installing mysql server on Linux is to harden its default security configurations and this can be done by running the command that comes with mysql installation "mysql_secure_installation" as a super user sudo mysql_secure_installation At this part you need to enter the current password of root username (which is none by default ) so just hit enter, then it will ask you if you want to set a password for the "root" username (root of mysql server not system), just answer with "Y" for Yes Now it will ask you to set a new password for the "root" user, write a password (it wont show so just type it carefully) and Confirm it again Done, and it's asking you if you wanna remove anonymous users, Of course "Y" we don't want anonymous access to our database The Good Question is here … Do you want to "Disallow" root user to be logged remotely ? well maybe you need remote access to manage your database from your pc or from any where and i also want that but it's really a bad idea to allow remote access for "root" so i would say "Y"es Disallow root login remotely and later i'll tell you how to make a good remote access without root. Do you want to remove test database and access to it ?? Hell yeah who needs a test database .. do you ? Now Let's Reload Privileges ?? YES Now our MySQL Server has a better security . Login to MySQL Server We have our Database Server now ,why not trying to login via Linux , Let's go for it … Note : this method is applicable to all Operating Systems since it's related to MySQL it self not OS. How we gonna do this ? Simple use command "mysql" followed by -h (to identify host default is localhost) followed by host "localhost" followed by -u ( to identify user) followed by username (root is the only one we got now) followed by -p to identify that this username has a password mysql -h localhost -u root -p and it will ask you to enter the password just type it and hit Enter Now we can run any MySQL Queries / Commands for example let's see the databases we have so far SHOW DATABASES; Note : All MySQL Queries and Commands ends with ; (semi-colon) Create a Database : Since in this Guide i'm planning to demonstrate using aCis Server pack so i'll create a database called acis_db, using mysql command "CREATE DATABASE" followed by database name CREATE DATABASE acis_db; Succeed . Create a Database User : Isn't the time to use another user for MySQL instead of root ?, i guess it's good idea to create a new user with limited access using this MySQL Command CREATE USER 'USERNAME'@'HOST' IDENTIFIED BY 'PASSWORD'; USERNAME : is the username you want to create HOST : This is really important since by default this is "localhost" but doing this wont allow you to connect remotely with this user, since connection from this user will be accepted only if it's from "localhost" or same machine , so if you want to allow remote access from anywhere you can set it to (%), or even set it to a specific host if you wanna a very specific security layers PASSWORD : is where you put this user password Now just Hit Enter after you customize this command as you need … and your new user will be created Give Access on Database : You successfully create a database user, but actually this user by default will have no access on any database so it's time to give this user access on our "acis_db" database, using "GRANT" command GRANT ALL ON acis_db.* TO 'maxcheaters'@'%' IDENTIFIED BY 'PASSWORD'; This line of MySQL command means : Give All Permission on the Database "acis_db" including All (*) Tables to the user "maxcheaters" that have remote access and password of "PASSWORD" Amazing , But to be honest with you this wont affect database instantly , we need to force MySQL server to reload permissions and access by issuing this command FLUSH PRIVILEGES; Maintain Remote Access : We Created our user with remote access , so let's try to connect to the host with your favorite MySQL Database App, most L2 Admins uses Navicat but i hate that Application so i use an application called HeidiSQL , so just connect with whatever you want … Oh Come on, we created a user with remote access why it's not working ? …… Actually we set this user to have remote access but MySQL Server it self is not yet configured to support remote access Support, so let's Do this. but first quit MySQL Command Line by typing "exit" and hit Enter. First we need to modify MySQL configuration file which by default on location of /etc/mysql/my.cnf , so i'll use nano editor for this, as we did before to edit files . sudo nano /etc/mysql/my.cnf Scroll down a lil bit using Keyboard Arrows til you find "bind-address" and set its value to your public ip or DNS Then Save it using CTRL+O, then Exit Editor using CTRL+X, and to make this changes has effect we need to restart MySQL Server or Service using this command sudo service mysql restart Now it should work if we test again … Yes it does …. Note : it you may can't login to your database server remotely also if your firewall blocked 3306 port, if that's the case, no worries we will take about Firewalls later. Connect and Install Your Server Database Well i guess you already connected not it's time to export your database and import it into your new database server. To do so on HeidiSQL, right click on your local database and click on Export Database as SQL Now Select your Exporting Preferences and Export Location then click on Export After SQL File Exported Now back to your Remote MySQL Session and Select "acis_db" database and activate "Query" Tab On "Query" Tab Script Area Right Click and Choose "Load SQL File…" and check where you saved the exported SQL Script and then Hit Run Icon Now your Server Database Installed, Congratulations so far Installing and Configuring Oracle Java Since you have your database up and running we still need Java to be installed on our Linux System to be able to run GameServer and LoginServer, so let's learn how to install "Oracle" Java successfully . First some Linux Distributions comes with java already but "Open"JDK not "Oracle" JDK and we need to install Oracle JDK to run without problems, so we can use "apt-get" command as before but the problem is Oracle JDK is not always available on Default Repositories so we may need to add that Repository contains Oracle Java. Adding a Repository : Adding a Repository is just a 1 line command that self explanatory using command "add-apt-repository" followed by repository identifier, and the repository that contains Oracle Java is "ppa:webupd8team/java" , so let's add this sudo add-apt-repository ppa:webupd8team/java It May ask you for Confirming just Hit Enter Since we added a new Repository so we may need to update our APT database as we learned before sudo apt-get update Install Required Packages : Before Proceeding with installing java we need to install a required package to avoid further errors, this is the "python-software-properties" software sudo apt-get install python-software-properties Accept Oracle License : Usually if this is your first time installing Oracle Java then you'll get Error with exit code of -1, and this is happens since you're required to accept Oracle License before installing Java, and to do this via Terminal is very easy , i'll give you the solution, just run this command once echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | sudo /usr/bin/debconf-set-selections Install Java 8 : Now we can Proceed with Installation normally with "apt-get" command to install the package "oracle-java8-installer" sudo apt-get install oracle-java8-installer It may ask you for some confirmations just answer with "Y" for Yes Well it's Installed Successfully Set Default Java : By default Java 8 will set it self as default but if you have multiple java installation you can change default one using command "update-alternatives" followed by option "–config" to set what you wanna configure followed by "java" sudo update-alternatives --config java Here you can type the number of which installation to be default, or leave blank to keep settings as is, and i can see java 8 is selected by default so i'll keep it as is. Also you can confirm this by running java version command java -version Move and Setup your Server Files Now things getting more excited .. so let's stay focused til the end Uploading Files : Since you need to upload your server so let's zip our "compiled" server, and now to upload it actually you have many ways it's all about your taste 1st : Using Files Hosting This way is very simple all you need is just upload to a Files Hosting Service , i prefer mega.nz , or you can use any Hosting you want and go to your Linux Desktop and download it with Firefox (Default Browser for many Linux Distributions) but this way considering that you have Remote Desktop Access to the Linux Server, and you can't simply use "Windows Remote Desktop" directly since it's for Windows Only. Note : You can make "Windows Remote Desktop" able to access a Linux Desktop but installing a package called "xrdp", but actually it's very bad and slow So if you have a way to remotely access your Linux Desktop go for it , if not then i'll tell you how you can do this using VNC. Installing VNC Server : VNC Server is a good way to remotely connect to a Linux Desktop and it's much faster than XRDP, so let's start installing it sudo apt-get install tightvncserver Once installed let's start it by issuing this command tightvncserver At First time it will ask you for a password, enter the password and hit Enter Note : VNC support only 8 characters length for password, so even if you entered more than 8 characters it will use only first 8 characters Then it will ask you if you want a view-only password which means with this view only password you can only see the desktop but not interact Now you need to download and install VNC Viewer on your machine to connect to VNC Server where you can Download Here . Once Downloaded and Install, Run it will you get this window, where you want to add your Linux IP or DNS followed by ( :: ) then default port of 590x then click Connect, where x is the id of your Session ID you got in your Linux when started VNC, for Example "SamDev:1" means port is 5901, SamDev:2 means port is 5902 . After Clicking Connect, it will ask you for the Password you set for this Session , Enter it and Click Ok Now you are finally Connected So lets start downloading our Server Zip file By Default it will be Downloaded to the Current Logged User Downloads Folder Note : More way will be added soon Let's go to User Directory and Downloads Folder cd ~/Downloads Do you still have "unzip" installed ? np if you removed it install it again sudo apt-get install unzip Unzipping a Zipped File : To unzip a file using unzip package it's really easy unzip ACIS_Live.zip Rename File/Directory : Do you need to rename this folder to L2Server for example ? no problem we didn't mentioned this but it's very simple since there is no direct command for renaming but instead we use the moving command "mv" mv Live L2Server Create Starting Shells [OPTIONAL] : Well this Step is optional but i prefer to do it like this since original Shell Scripts are running automatically running with no-hup ( No Hanging Up ), which is really good but actually i prefer to do this manually and to have default Shell Scripts beside the custom HUP Scripts specially in development Level. So let's Create our Shell for GameServer, First head to "gameserver" directory cd ~/Downloads/L2Server/gameserver and then i'll use nano to create and edit a new Shell Script file . Note : Shell Files should end with .sh extension nano StartGame.sh Then Add this Script #!/bin/bash java -Xmx2G -cp ./libs/*:l2jserver.jar net.sf.l2j.gameserver.GameServer Now Save and Exit : CTRL + O > CTRL + X Let's Head to login Directory and do almost same cd ../login And Create our Login Shell nano StartLogin.sh and Add this Script #!/bin/bash nice -n -2 java -Xmx512m -cp ./libs/*:l2jserver.jar net.sf.l2j.loginserver.L2LoginServer Save and Exit Again : CTRL+O > CTRL+X Configure Server : Now you need to Configure your server Database Information, which is located in Login : login/config/loginserver.properties GameServer : gameserver/config/server.properties Configure Game Server : Change Directory to Game Server Config Folder cd ~/Downloads/L2Server/gameserver/config Then i'll use Nano to Edit server.properties nano server.properties Locate this Configs and Change them with your database name , username and password When you done > CTRL + O to Save, CTRL + X to Exit Configure Login : Change Directory to Game Server Config Folder cd ~/Downloads/L2Server/login/config Then i'll use Nano to Edit loginserver.properties nano loginserver.properties Locate this Configs and Change them with your database name , username and password When you done > CTRL + O to Save, CTRL + X to Exit Allow Shells to be Executable : Before you start server you need to know that in Linux you need to run .sh scripts instead of .bat, and by default .sh has no permission to run so we need to give those files permission to run using command "chmod" followed by permissions followed by file name, but changing each file would be time consuming so here is a trick to set a permission for all .sh files in one line by adding a wildcard in file name (*), so let's first go to gameserver directory cd ~/Downloads/L2Server/gameserver Then we change permissions for .sh files sudo chmod -R a+x *.sh Now our .sh files turned Green which means it's executable. So let's do Same with login directory cd ../login sudo chmod -R a+x *.sh Congratulations i think your server now is well configured. Run and Stop Server Well let's log to our server via VNC as we learned before , remember ? then open your terminal Note : if you wanna do this via SSH, you can use a package called Screen , Find more Run Login Server First we need to go to our login folder of the server cd ~/Downloads/L2Server/login Now we need to execute our Shell Script, you can execute original one or our created one depends on the situation and stability level of your server, so it's all up to you sudo ./StartLogin.sh Great, Login Server is Running, now time for Game Server. Run Game Server Open a New Terminal or a new Tab, File > new Tab or CTRL + SHIFT + T on the New Tab go to gameserver Directory location cd ../gameserver Now time to start gameserver sudo ./StartGame.sh You L2 Server is not up and running Close Game / Login Server : To Close either Login or Game Server just close the terminal or click CTRL+C to close but keep Terminal open. Installing and Configuring Apache2 To get Apache Server or a Web Hosting Server you can simply install LAMPP , it's full package of Apache, PHP and MySQL together, but personally i don't like to go this way, since i always prefer to go with non-preconfigured stuff to be able to have full control over every little detail, also it will be good for you to know how everything work and how they linked smoothly together. Install Apache2 : Installing Apache2 is same as installing any package we did before sudo apt-get install apache2 Apache2 Installed Successfully now let's Install PHP as well . Install PHP 7 : In this Guide i'll install PHP 7, but you can install older versions if you want, it's just same procedures .. First we need to add the Repository that has what we need sudo add-apt-repository ppa:ondrej/php Now let's Update our Repositories Database sudo apt-get update After that we gonna install PHP 7 along with some PHP Extensions needed commonly : sudo apt-get install php7.0 php7.0-cli php7.0-common libapache2-mod-php7.0 php7.0-mysql php7.0-fpm php7.0-curl php7.0-gd php7.0-bz2 Here i'm installing PHP 7.0 with some extra PHP library all in one command, then we need to host our site… Host your Site and Domain First of all you need to have your domain which can be bought from any provider, i would suggest GoDaddy.com , very good services, skilled support team and really fast orders and problems processing. For this guide we will try to host the domain "lineage.ninja" on our Linux Server, so first go to your domain provider panel , in this case it's GoDaddy, so go to your domains and click "DNS" : Now we need to modify the "A" record When you get into edit mode, add your server IPv4 into Value/Points to. then save. Sometimes this modification takes time to propagate but in GoDaddy as i been using it for many years i found that it's one of the fastest, most of times it takes less than 10 seconds to take effect. so let's see if our domain working and connected to our server Yeah, as it says "It works!" … But why it show the main page of server, we need it to have a separate content … well then let's do this Create Apache2 Host : To Create an Apache2 Host we need to follow few step, by creating the directory that will contain our site files, then we create a configuration file for this site to tell Apache how this site will work and where its files located, then we have to enable it. So First let's create a directory that will host our site , by default Apache look in files inside Directory /var/www , so i'll create a directory on the path of /var/www/lineage.ninja/public_html , and in this case we gonna use the command "mkdir" to make a directory with option "-p" to automatically create all parent directories required for us. sudo mkdir -p /var/www/lineage.ninja/public_html Maybe now we need to change Owner and Permission to avoid further problems sudo chown -R $USER:$USER /var/www/lineage.ninja/public_html sudo chmod -R 755 /var/www/lineage.ninja/public_html Now we need to create the configuration file, so let's start by copy the default configuration file. sudo cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/lineage.ninja.conf We need now to edit that configuration file … sudo nano /etc/apache2/sites-available/lineage.ninja.conf Note : All Lines starting with ( # ) is just a comments, so it wont affect anything, you can remove it or leave it , doesn't matter At this moment we need to modify this file to look like this CTRL+O to Save, CTRL+X to Exit … One more step to go .. we need now to Enable our new site using command a2ensite (Apache2 Enable Site). sudo a2ensite lineage.ninja.conf To Take Effect we need to restart our Apache2 Server sudo service apache2 restart Let's Create a simple php file to test … sudo echo "<?php echo 'Greetings from PHP';?>" > /var/www/lineage.ninja/public_html/index.php So time to test … Yes, it's working :) Thanks for taking a look into this guide and i hope it's useful for someone out there ... lemme know if you got question and i'll update this topic soon with more parts Thanks and Regard,
Guide How to Adapt Features from other Games
SamDev-Coder posted a topic in Server Shares & Files [L2J]Hello mates, here we back again with a new guide, in this tutorial we will go beyond the rules (not forums rules lol), it could be useful for someone, useless for someone else, but .. i like to share things with you mates xD. Oh God someone shut me up to cut this off and get started …. It's Really boring, don't you think so ? Well Lineage is getting old, same play style, same aspects, it needs a little refreshment, or maybe a rebirth, people keeps changing servers wishing for something to entertain them, so why not adapt few things from other games ?, actually let's be more straight and honest LETS STEAL SOME IDEAS :D, but hold on for a second … there are some talented people already adapted some styles and armors and weapons …. etc, and some adapted some events or stuff…. why not you ? you can also adapt things it's not that hard or impossible if we just thought out of the box . In my opinion i'll categorize adapting into two categories : 1. Client Adaption : Armors, Effects, Weapons, Interfaces …. etc . and i will not talk about this since it needs a good modeler and designer and i'm not 2. Features Adaption : Like Events, Items, Play style …. etc. and this is what we will be learning, it's just needs few things to get familiar with. ------------------------------------------------------------------------------------------------------------- How to Get Started : Well it's Simple, but to get better understanding we need an example to apply what we learn on . so we gonna adapt an idea from another game in this guide. There is a game called "Continent of Ninth Seal" , they keeps updating and adding new items and weapons every time , and one day they added a very good weapons, but some people was complaining about this, since after they got their weapons well enchanted and this is really hard to get, now they need to start over and enchant the new weapons from beginning ….. so they made a new feature which is Enchant Extraction. here is the link for the feature we gonna adapt : Transfer the Enhancement How the Feature Works : For example you have a weapon +16, and you need to change weapons, all you need to do is take your old weapon along with an item called "Weapon Enhancement Extraction Scroll" then go to blacksmith and put your old enhanced weapon with the scroll and you press a button, then your enhanced item will be destroyed and you will get what called "Transcendent Stone +16", then u enhance the other weapon with this stone which will make it instantly +16 without fail. Note : later they added update to lower the stone with 2 levels means +16 items will make +14 stone. because people started to enhance low items and when get ++++ then extract and add it to high item. also this feature made them sell very well since the Extraction Scroll is for about 7 Dollars. ------------------------------------------------------------------------------------------------------------- The Game : Adapting such a feature is just a game that we gonna play together now,The Game of Thieves, we will play as thieves, oh you laughing at me now …. come on and trust me i'll tell you how to be a good thief. First let's make a party and go in our mission….. ------------------------------------------------------------------------------------------------------------- The Mission ( Prove Yourself ) : Hello new thief .. in order to join the Adaption Mafia you have to prove yourself by Proving yourself as a skilled thief . Your first mission is : Our Gaming Spies confirmed that the developers of C9 is working on a new technology which will allow their players to extract their enhancements and contain the enhancement power into some kind of magic stone called "Transcendent Stone" , and with this stone they will be able to put this contained power on another weapon .. we don't have much info about this technology .. and it is your mission to steal their papers and implement this feature to the mother of games "Lineage" .. Our Spies was able to get into their game and was able to take 2 screenshot regarding the feature… use them wisely. ----------------------------------------------------------------------------------------------------------------------- Oh , what we gonna do ? "Start Small, Progress More" It looks like tough mission, but let's calm down and break this down into simpler steps, what this feature is about or what things that makes it : – Enhancement Panel : we already got this in our game – Extraction Panel or window : well we don't have this too, and if we made it like an html with some bypasses it will looks so static, no real on screen interactions …. – Transcendent Stone : well we can easily create an Etc Item, but if it's done this way we'll have to create many of this since one for +1, another for +2, +3 …… etc . and this will so much we need a smarter way. well what about create one Etc item and save it's enhancement level somewhere in server or database … pfff but how players will know if it's +12 or +10, it will has same name showing on the screen they can fool each others and sell a +1 stone as if it's +100 stone, oh no we need another way. – Extraction Scroll : this could be the easier part all we need is to create an Etc Item – Being able to move the enhancement from the Transcendent Stone to another weapon . What about quit and say we can't do this ? ----------------------------------------------------------------------------------------------------------------------- Investigation : "Use what you already have" Before we start we need to make some investigation and see what tools we have and what we can make use of. What things in lineage that "look like" this, this is the first thing you need to think about when you adapting anything to anything, not only Lineage but any software or system you develop, it's like one of the basic rules in Software Development career is to use what you already have. – Extraction Panel : we need some kind of panel where player put two things, the weapon and the extraction scroll …. think, think, think ….. oh we have two things like this , Enchant panel and augment panel … i think we can use one of them – Transcendent Stone : we need an item with dynamic name to be like " +6 Transcendent Stone or +10 Transcendent Stone", hmmmmmmmmmm …. let's do some brain storming … what items that part of it's name controlled by server not the client …. why we didn't thought about this ???? all armors, weapons and jewels has this feature they all can have the +xx thing – Extraction Scroll : it's just an item man, nothing easier than this … wait wait wait .. i think about something, what about making this as a special enchant scroll, so when user click on it it will automatically pop up a window to select a weapon. – Enhance Back with Transcendent Stone : well we can just make it as enhancement scroll, but ….. we said we gonna make it like armors and weapon, how it can be for example a weapon and scroll in same time . well we need a bit of analyzing , weapon when used they get equipped, scrolls when used they get an enhancement panel …. can't we check on Equip Request that if it's our stone then it override the equipping procedure and instead run the enhancement procedure ?? i think we can find a way around. ----------------------------------------------------------------------------------------------------------------------- The Plan : "Going random is the best way to fail" Our plan will split on multi tasks so we can work on one by one as follow Stage .1 : (Preparation) – Create a new UTX File containing the icons for our two items (Transcendent Stone and Extraction Scroll) – Add Items to Itemname-e.dat file with proper names – Add Transcendent Stone to Armorgrp.dat as accessory or something – Add Extraction Scroll to EtcItemgrp.dat – Add both Items to proper XML file in server data files – Estimate current Stage Progress and Check if all work as expected Stage .2 : (Think out of the Box) – Handle player's Equip action with Transcendent Stone to be forbidden and instead open Enhancement Panel – Handle Enhance panel acceptance for our Transcendent Stone as Enhancement Scroll instead of Armor Part – Handle Player's Request of Confirming Enhance Process with Transcendent Stone – Handle Usage of Extraction item differently than enhance scroll to extract Enhancement instead of Enhancing – Clean up and Estimate current Stage Progress to Check if all work as expected ----------------------------------------------------------------------------------------------------------------------- ~*- Challenge Accepted -*~ ----------------------------------------------------------------------------------------------------------------------- Stage .1 : – Create a new UTX File containing the icons for our two items (Transcendent Stone and Extraction Scroll) Note : there are many tutorial on this forum about this thing so we will cover it fast. Okay boss we're on it … at this point we will need to use the screen shots from our spies to get the icons of both and crop them on any image processor, i'll use Photoshop, also we will need to resize them to 32 by 32 pixels, and i'll set my crop aspects on Photoshop to be 1×1 to avoid any ratio problems After that we do same for the other one then we resize, in Photoshop i use shortcut CTRL+ALT+I Now we will save both of them as TGA files, i don't have the DDS plugin installed so i'll save as TGA, and will name them as transcendent_stone_icon.tga and enhancement_extract_scroll.tga then will close photoshop and go to open Unreal Editor and create new UTX File, will name MxCMission, then import the two TGA files we made (Take care of what highlighted Thanks to @Sinister Smile for helping with this) Let's Save this file and encrypt it. I'll use L2Ninja to Encrypt as L2 UTX file Now we add this file to our SysTextures Folder and Task Completed ----------------------------------------------------------------------------------------------------------- – Add Items to Itemname-e.dat file with proper names I'll use L2Ninja Again to edit this file (you can use any editor) and add both items with ids 85850 and 85851, just any the id you want but be unique and make sure you remember them ----------------------------------------------------------------------------------------------------------- – Add Transcendent Stone to Armorgrp.dat as accessory or something After some investigations i found most armor items express their type for example Baium under it's name you will see the word "Ring" and same for most armor items except ….. Belts, so because i'm a lazy coder i'll copy any armorgrp belt code and modify it then add it again to armorgrp.dat, i wont write it from scratch it's so dam long mate xD So here is the code i copied and modified with our new item id and icon, so i used id of 85851 and icon MxCMission.transcendent_stone_icon ----------------------------------------------------------------------------------------------------------- – Add Extraction Scroll to EtcItemgrp.dat What about doing the same, i'll just copy anything from that file and change id and icon xD , we can adjust this later . ----------------------------------------------------------------------------------------------------------- – Add both Items to proper XML file in server data files Now we need to add this items to Server XML files, so i'll create an xml in data/stats/item and will name it mission.xml, then will add the proper code of both item <?xml version="1.0" encoding="UTF-8"?> <list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/items.xsd"> <item id="85851" type="Armor" name="Transcendent Stone"> <set name="icon" val="MxCMission.transcendent_stone_icon" /> <set name="default_action" val="EQUIP" /> <set name="armor_type" val="LIGHT" /> <set name="bodypart" val="waist" /> <set name="immediate_effect" val="true" /> <set name="crystal_count" val="30" /> <set name="crystal_type" val="A" /> <set name="material" val="CLOTH" /> <set name="weight" val="440" /> <set name="price" val="371300" /> <set name="enchant_enabled" val="1" /> </item> <item id="85850" type="EtcItem" name="Enhancement Extraction Scroll"> <set name="icon" val="MxCMission.enhancement_extract_scoll" /> <set name="default_action" val="SKILL_REDUCE" /> <set name="immediate_effect" val="true" /> <set name="material" val="PAPER" /> <set name="weight" val="120" /> <set name="is_oly_restricted" val="true" /> <set name="handler" val="EnchantScrolls" /> </item> </list> ----------------------------------------------------------------------------------------------------------- – Estimate current Stage Progress and Check if all work as expected Let's Start our server and check the items we created …. Yeaaah it's working and even when we use the Extraction scroll it opens the Enhancement Panel … this is a great start ----------------------------------------------------------------------------------------------------------------------- ~*- Stage 1 Completed with Pleasure -*~ ----------------------------------------------------------------------------------------------------------------------- Stage .2 : (Think out of the Box) JAVA TIME ….. this where things get more exciting but it can be messy so let me tell how things working in L2J so we can have better understanding about the process. I'll give you a little Hint about how to be on the right path without keep looking on internet or asking … Please Focus on this Part … Everything in Lineage is based on something called Packets. Consider a Packet as an Envelop that contain a letter being send from your Game Client as player to the Game Server and vice versa From Game Server to Game Client, this letters or packets can contain a request or information like for example You wanna Equip a Weapon so you double click on it : Game Client > Game Server : Oh ! Hey Server i want to equip a weapon that has id 9999 Game Server > Game Client : Well, it's looks fine and allowed for me, Okay No Problem Equip It. Game Client > Game Server : Thank you mate, i have Equiped it, can you tell me my stats after Equip Game Server > Game Client : Yes, Sure thing . Here is your stats ……………. This Sentences between client and server is pack , and we will talk about Two Types of Packets in L2J ServerPackets and ClientPackets. Client Packets : Are the Packets that sent from Client to Server, which located at java/com/l2jserver/gameserver/network/clientpackets Server Packets : Are the Packets that sent from Server to Client, which located at java/com/l2jserver/gameserver/network/serverpackets At This two locations all the magic starts to happen, you can really explore them and see where the code starts at every in-game action for example when we right clicked on "Enhancement Extraction Scroll" it sends a Client Packets called UseItem, so server will try to process this packets and see if it's allowed or not and what this item about, it will say "Oh i see in my XML files that this items is EnchantScroll so let's Open Enchant Panel" , this response from server is also a packet which is ChooseInventoryItem Packet, Then Player try to put his weapon into enchant item slot but it needs a permission so it send to server a Client Packet called RequestExTryToPutEnchantTargetItem, saying "Hello i wanna select this weapon as the Target item to Enchant, is this allowed ?" , At this point we can think of this Packet Java file maybe is the one responsible for accepting or refusing , Let's take a look and see if something useful , yes i found something interesting in this file : Looks like the Yellow Area is just a normal checks, Red Area is where Server Refuse an Item, Green Area is where Server Accept an Item … Try also to Explore more in the Packets Packages that i have mentioned their locations before, at least read files names, it's very useful to know what in there. So Let's Start ----------------------------------------------------------------------------------------------------------- – Handle Usage of Extraction item differently than enhance scroll to extract Enhancement instead of Enhancing I Guess you know where we can go .. Yes RequestExTryToPutEnchantTargetItem.java and we need to make it not refuse our Extraction Scroll since if we try now to add any item to enhance with this scroll it will just refuse it, since it's refusing the scroll it self . so here is the modifications i made, replace : if ( (scrollTemplate == null) || !scrollTemplate.isValid(item, null)) with this : if ( ((scrollTemplate == null) || !scrollTemplate.isValid(item, null)) && scroll.getId() != 85850 ) and then we need to add this after the if statement block to check if the target item is good : //Extraction Scroll else if (scroll.getId() == 85850) { boolean validProcess = true; if(!item.isWeapon()) { activeChar.sendMessage("You Can only Extract Enhancement From a Weapon"); validProcess = false; } else if (item.getEnchantLevel() <= 0) { activeChar.sendMessage("There is no Enhancement on this Item to Extract."); validProcess = false; } //Finally if it's not valid for any Reason then Fail the process if(!validProcess) { activeChar.sendPacket(SystemMessageId.DOES_NOT_FIT_SCROLL_CONDITIONS); activeChar.setActiveEnchantItemId(L2PcInstance.ID_NONE); activeChar.sendPacket(new ExPutEnchantTargetItemResult(0)); return; } } So here what we have done : --------------------------------------------------------------------------------------------------- – Handle player's Equip action with Transcendent Stone to be forbidden and instead open Enhancement Panel – Handle Enhance panel acceptance for our Transcendent Stone as Enhancement Scroll instead of Armor Part We will do those steps together so instead of equip we will send a different packet and to do this we gonna modify UseItem.java Client Packet, so after if (item == null) { return; } We gonna add this check if it's our Transcendent Stone, then don't Equip and instead start enchanting with it : //Forbidden to Equip Transcedent Stone if(item.getId() == 85851) { if (activeChar.isCastingNow()) { return; } if (activeChar.isEnchanting()) { activeChar.sendPacket(SystemMessageId.ENCHANTMENT_ALREADY_IN_PROGRESS); return; } activeChar.setActiveEnchantItemId(item.getObjectId()); activeChar.sendPacket(new ChooseInventoryItem(item.getId())); return; } Well it's should pop up the Enchant Window, but it wont accept any item since it's not an instance of EnchantScroll so we will need to make it able to accept weapons as target items like what we did with Extraction Scroll, so let's Modify the code of RequestExTryToPutEnchantTargetItem Packet again and do another else if, and add the item id to the main if as we did before, so again we replace : if ( ((scrollTemplate == null) || !scrollTemplate.isValid(item, null)) && scroll.getId() != 85850 ) with if ( ((scrollTemplate == null) || !scrollTemplate.isValid(item, null)) && scroll.getId() != 85850 && scroll.getId() != 85851) now we need to add another Else if after the one we added before : //Transcendent Stone else if(scroll.getId() == 85851) { if(!item.isWeapon()) { activeChar.sendMessage("Transcendent Stones are available only to be used with Weapons"); activeChar.setActiveEnchantItemId(L2PcInstance.ID_NONE); activeChar.sendPacket(new ExPutEnchantTargetItemResult(0)); return; } } --------------------------------------------------------------------------------------- – Handle Player's Request of Confirming Enhance Process with Transcendent Stone When a player use an Enchant item and then he add the Target item it's time to press Start which will send the packet RequestEnchantItem, and since it's sent by Client then it's in ClientPackets , so let's look at it's code and see what trouble we can get through when we use this fake belt Transcendent Stone as Enchant Scroll : 1st : in this part it wont work since it's not real scroll so wont have Template : // template for scroll final EnchantScroll scrollTemplate = EnchantItemData.getInstance().getEnchantScroll(scroll); // scroll not found in list if (scrollTemplate == null) { return; } So we need to modify the if statement to be : if (scrollTemplate == null && scroll.getId() != 85851) Also later down we will find this code which will make our fake scroll not work, and will cause an Null Pointer Exception Error since it will try to validate the target item against the scrollTemplate, and actually scrollTemplate is null since this is not a scroll and we skipped this check for being null before : // first validation check if (!scrollTemplate.isValid(item, supportTemplate)) So we need here to do this check only if it's not Null, since it's not null then it's not our fake scroll, logically, so we replace it with : if (scrollTemplate != null &&!scrollTemplate.isValid(item, supportTemplate)) Later if we scroll down, we will see something like this : final EnchantResultType resultType = scrollTemplate.calculateSuccess(activeChar, item, supportTemplate); switch (resultType) Here we will notice few things as follow : – First it lands EnchantResultType into resultType, so we need to land something of same type incase it's our scroll and if you Right Click on EnchantResultType and choose Go To Definition (i guess this is it in Eclipse) or as i use NetBeans it's CTRL+B, you will find that EnchantResultType has possible 3 values as enum (ERROR, SUCCESS, FAILURE), so maybe we will need to add another value to that enum for example TRANSCENDENT to be like this : – Second it uses scrollTemplate and it maybe null so it will cause error so we need to check if it's null or it's our fake enchant item, and if it's not null we do the regular procedure and if null and it's our fake stone then we return TRANSCENDET value that we added , in this case i'll use Ternary Operator : final EnchantResultType resultType = (scrollTemplate == null) ? EnchantResultType.TRANSCENDENT : scrollTemplate.calculateSuccess(activeChar, item, supportTemplate); – Thirdly there is a switch statement which iterate through possible EnchantResultType values and we just add our new one so we need to add at the begging of the switch the case of TRANSCENDENT , which in this part the magic happens and where we will move enchant from stone to the item , but Oops we forgot a little thing, by reaching this line it means that our stone already destroyed, so we dunno about the enchant level of it, so we need to save it anywhere before this line // attempting to destroy scroll scroll = activeChar.getInventory().destroyItem("Enchant", scroll.getObjectId(), 1, activeChar, item); we will add : int transcendentLevel = scroll.getEnchantLevel(); then we back to our switch statement and implement the enchant level replacement by adding another case at the beginning like this : case TRANSCENDENT: { if(transcendentLevel > 1 ) { item.setEnchantLevel(transcendentLevel); item.updateDatabase(); activeChar.sendMessage("Transcendent Stone Power can be felt now on your " + item.getName()); activeChar.sendPacket(new EnchantResult(0, 0, 0)); } else {activeChar.sendMessage("This is an Empty Stone, it's just useless to have it.");} break; } ----------------------------------------------------------------------------------------------- – Handle Usage of Extraction item differently than enhance scroll to extract Enhancement instead of Enhancing In this case we gonna do same of what we did with Transcendent Stone, so again we replace this : // scroll not found in list if (scrollTemplate == null && scroll.getId() != 85851) with this : if (scrollTemplate == null && scroll.getId() != 85851 && scroll.getId() != 85850) And we add another EnchantResultType to be like this : Then we gonna replace the resultType Ternary operator we made before with a nested ternary operator : final EnchantResultType resultType = (scrollTemplate == null) ? (scroll.getId() == 85850) ? EnchantResultType.EXTRACTION : EnchantResultType.TRANSCENDENT : scrollTemplate.calculateSuccess(activeChar, item, supportTemplate); Now we need EXTRACTION case into the Switch Statement : case EXTRACTION : { L2ItemInstance stone = new L2ItemInstance(85851); stone.setEnchantLevel(item.getEnchantLevel()); activeChar.getInventory().destroyItem("Extraction", item, activeChar, activeChar); activeChar.getInventory().addItem("Extraction", stone, activeChar, activeChar); activeChar.sendPacket(new EnchantResult(1, 85851, 1)); break; } ------------------------------------------------------------------------------------------------------ – Clean up and Estimate current Stage Progress to Check if all work as expected Let's Build our Server and restart it and check if it's working Oh it's working !!!!!!!! ----------------------------------------------------------------------------------------------------------- Notes : - You can do it better by implementing a new Item Type, but as you can see the guide is already long so i tried to make it as simple as possible - With same Concept of Investigation and Planning you can implement almost any feature ------------------------------------------------------------------------------------------------------------ Conclusion : - Investigate more and more into sources - Have a Good Plan, never go Random - Start small and progress more - Don't Seek Perfection at the first time, make it work then make it work better ------------------------------------------------------------------------------------------------------------ I hope you like it and i wish it's useful to anyone, and if you have any questions or need help just let me know :)
Guide Adventurer
PrivaTe posted a topic in General Discussion [English]General for Adventurer It's a good class and pretty famous for his posibilities.The most important it's to play with some tactics and of course fast..when i mean fast i mean fast targeting,fast skill use,fast item changing and of course using cause you'll need to spam the CP.The positive of Adventurer is that on many server is a OP class and you can exploitation it to destroy your enemy.Think about for the results that you can do if you backstab your enemy.. !! Why to prefer Adventurer instead of Ghost Hunter or Wind Rider? -You have more CON that means more life so more chances to win instead of other classes. -You got tricks,Two tricks to cancel the target of your enemy. -You got dash to use when it's needed to hunt your enemy or to escape when you're close to death. -You got the skill Mirage that is pretty helpfull to auto-cancel the target of your enemy so he wont hit you. Class Quests You start as Human Fighter At level 20 you change to Roque At level 40 you change to Treasure Hunter but you must follow 3 steps in order to be : 1st , 2nd , 3rd At level 76 you change to Adventurer Skills Attack & Trick skills Bluff : The enemy turn his back and get something like stun and can't hit + lose his target. Lethal strike : Powerfull skill and big chances for Lethal Strike! Deadly blow : One more powerfull skill with big damages as result.Chance for Lethal Strike to. Backstab : Very powerfull skill but if you want to be succesfull then you must do it on the back of your enemy.The damage of backstab going to HP. Trick : Enemy lose his target. Lure : Enemy lose his target. Escape Shackle : Chance to escape when you have root. Switch : Enemy lose his target. Sand Bomb : It lowers accuracy of the enemy. Shadow Step : Going on the back of your enemy and on the same time cancel his target. Buffs,Reinforcements,Toogle Focus Power : Inscreases the chance to success your skills. Focus Chance : Reduse the possibility for critical at face but inscrease from the back & sideway. Ultimate Evasion : Inscreases your evasion and the resistance to debuffs. Dash : Inscrease your speed. Mirage : Has a chance to cancel the target of an enemy who attacks you. Silent Move : You become invisible for the enemy. (actually only for the mobs cause players can see you) Critical wound : Increases the critical damage a target receives. Exciting Adventure : Feel extreme excitement in melee. Instantly increase your Spd./Evasion/Deadly attack rate/Physical skill Evasion ability. Hide : Invisible mode for 30 seconds. Focus skill mastery : For 30 seconds it inscreases many good stats of you.. evasion,speed,resistance etc. Vicious Stance : Inscreases the power of your criticals. Guidance : Increases Accuracy. Armors Wooden Set, From 1-20 level Manticore Set, From 20-40 level Theca Set, From 40-52 level Doom Set, From 52-61 level Majestic Leather Set, From 61-76 level Dragonic Set Dynasty Leather Set Elegia Hauberk Set Moirai Hauberk Set Weapons Sword Breaker, From 0-20 Level Cursed Maingauche, From 20-40 Level Crystal Dagger with Special Ability Mortal Strike,From 40-51 Level Demon Dagger with Special Ability Mortal Strike,From 52-61 Level Νaga storm with Special Ability Crtitical Dmg,From 61-75 Level Αngel Slayer with Special Ability Critical Dmg,From 76-79 Level Icarus disperser with Special Ability Critical Dmg,From 80-83 Level Magma Edge with Special Ability Critical Dmg,From 84-85 Level Jewels Blue Diamond Set,From 1-20 level Elven Set,From 20-40 level Blessed Set,From 40-52 level Black Ore Set,From 52-61 level Majestic Set,From 61-76 level Tateossian Set Dynasty Jewel Set Elegia Jewel Set Try to take also those jewels for better stats and resistance. Ant Queen Valakas Antharas Bauim Zaken Note: Between Valakas,Frintezza and Freya Necklace you must know that all of them have good and negavite but the best and the right one that i suggest you is the Freya Necklace! Buffs For Gracia ++ For Interlude XP Zones 1-10 : At the spawn zone 10-20 : Elven Ruins 24-40 : Kamaloka 40-52 : Cemetary 52-60 : DVC or Forbiden Gateway or Forsaken Plains 60-70 : Wall of Argos 70-80 : Ketra,Varka,FOG 80-85 : Hellbound Island Dyes In my option i prefer to dont use dyes extends of Wit+4 Int-4. But if i'll suggest you some opinions of other players.. 1st suggestion Dex+4 Str-4 Con+4 Str-4 Wit+4 Int-4 2nd suggestion +5dex +4con -9str Misc Items -Soulshots -Spiritshots (Bless) -Elixirs of Life,Cp -Mana potion (if you play on server with them) -Healing Potion -Cp Potion Enchantments Bluff, Chance + Backstab, Earth Deadly Blow, Earth Lethal Blow, Earth Critical Power, Power + Dagger Mastery, Critical Power + Ultimate Evasion, Time + Focus Power, Power + Certifications Skills Counter Haste: 3% chance to increase Atk.Spd. when attacking. +30% Atk.Spd for 15 seconds. Counter Barrier-3% chance to become temporarily invinsible to damage. Physical Defense. Crit.dmg Reduction - Reduce the amount of received critical damage. Attritubes Weapon: Use Earth or Holy Attritube on it,i prefer Earth. Armor: It's accordingly with the server you play but the best for you are Earth,Holy,Fire,Water,Wind. PvP tactics - Vs Tanks Well against this class you dont have many chances to win.Only a bluff or better a lethal can save you.But you must use UE & mirage.There is nothing more you can do.God bless you xD - Vs Mages He'll start hitting..you fastly use mirage and dash and run on him.Then bluff him and start using all of your skills.Wish to dont reveice any debuff cause you lost. - Vs Archers He will start hitting from away..fastly use mirage & dash and move on him and use bluff and then all of your skills.It's not so difficult to win a archer but if he is really strong use UE. - Vs Duelist,Grand Khavatari You're on a damn bad position dude,the only thing you can do is to turn on UE and mirage and then all of your skills.Bless the god to lethal him in order to win otherwise the chances to win is 1% . - Vs Summoners Again the same things with Duelists/GK..you can't dont many things.Only a lethal can save you.Use mirage,UE,dash and try to kill the pet.If you do it then start hitting the player till he dies. - Vs Daggers Dont run to him,let him come to you..meanwhile turn on the mirage and then bluff.After it do all your skills.Play fast and correct and the match is yours! Olympiad tactics The same tactics and for olympiad.But you must take with you before join this staff for Bless the Body and Focus..to buff up yourself into the stadium. Important: When you're for PvP remember to spam always the CP potions and use Elixirs for life.Also,remember to have always open the skills Vicious Stance, Focus skill Mastery , Guidance and Focus Power for better results on your fights inside and outside of olympiad. A good video of Adventurer.. Lineage 2 Adventurer ` Credits to PrivaTe (Me) ` Pmfun for icons
New method Downlaod the latest phx Watch this video by djpliku 1st Method Normally if you try to log with phx you will get this error General protection fault! History: NConsoleWnd::RequestAuthLogin <- NCAuthWnd::OnLoginBtnClick <- NControl::SendEventMessage <- NCButton::OnClickButton <- NCButton::OnLButtonUp <- NCVirtualWndMain::PassToFocusedWindow <- NCVirtualWndMain::PassToFocusedWindow <- NCVirtualWndMain::PassToFocusedWindow <- NCVirtualWndMain::DispatchWndMsg <- NConsoleWnd::DispatchWndMsgX <- NConsoleWnd::MasterConsoleEventProcess <- UEngine::InputEvent <- UWindowsViewport::CauseInputEvent <- UWindowsViewport::UpdateInput <- UViewport::ReadInput <- APlayerController::Tick <- ALineagePlayerController::Tick <- TickAllActors <- ULevel::Tick <- (NetMode=0) <- TickLevel <- UGameEngine::Tick <- UpdateWorld <- MainLoop How to bypass it: Step 1: open your client. Step 2: open the phx. Stpe 3: hit this button Step 4: enter your acc, and select the server till the char selection. Step 5: click again this Now you're in and you can see the packets. 2nd Method You cannot enter in l2 with phx?that's mean your system has a What you must do:Download a clean system and edit your Now i'll show you how to do that You must have L2Fileedit and a clean system(i will post the links above) Ok, first step open the fileedit, click Open and decrypt and target your l2.ini from your "protected system", you will have something like this After copy the ip and open the l2.ini from the clean system and hit Save and decrypt, be careful you must save it with 413 version The last step is, delete the old system(with nophx.dll) and copy the clean system in l2 folder. Patched systems/File Editors/ etc(c4 to Godess of Destruction) Gameguard killers/tools for l2 here Third way here P.S i know it's easy, but many new users come in "our world" and don't know about these simple modifications. [glow=#330099,2,300][shadow=red,left]----<L2Phx Support>----[/shadow][/glow] All L2Phx versions [L2Phx]Enchant Gracia [L2Phx] Ghost Hack [L2Phx]Enchant Interlude [L2Phx]Free Teleport [L2Phx]Learn Skills [L2Phx]Script for Teleporting [L2Phx]Br1nk Mod v.1.0 [L2Phx]Multiply Gold Bars [L2Phx]Make Announcements even you're not gm [L2Phx]Enchant Exploit Gracia 2
Guide Anti-Bot L2Jfrozen
spot55 posted a topic in Server Development Discussion [Greek]Geia sas MaxCheaters toso kairo epsaxna na vrw ena anti-bot system gia to l2jFrozen alla ap' oti diavasa se polla forum eida oti den iparxei kati tetio, alla java code.. To l2jFrozen rev. 1004 pou xrisimopiw ego aftin tin stigmi to exei idi mesa.. Loipon lew na sas di3w pos tha energopihsete to l2walker mesa apo ta config tou server (l2jFrozen) [Den 3erw an iparxei kati tetio an iparxei ego dn to vrika gia na help ton eafto m] an iparxei as ginei delete to topic.. As 3ekinisoume :) Pame C:\l2jFrozen\gameserver\config\protected Vriskoume to arxio other.properties to anigoume patame Ctrl+F (gia anazitisi) grafoume L2Walker kai vriskoume aftin tin lista Sto noumero 1 apo false to vazoume se true gia na energopihsoume tin prostasia.. Sto noumero 2 apo false to vazoume true gia na dexti tin diadromi pou tha valoume s ligo kapia code.. Sto noumero 3 vazoume osa lepta theloume na mas vgei to proto parathiro (ingame) gia na diale3oume tin sosti apantisi (an den epile3oume tin sosti apantisi mas kanei aftomata kick).. Sto noumero 4 vazoume osa lepta theloume gia na mas vgei tin epomeni kai kathe epomeni fora to code.. Kai sto noumero 5 vazoume ton xrono pou tha exoun oi paixtes gia na epile3oun tin sosti apantisi allios tous kanei kick aftomata.. Kanoume save kai proxorame.. tora pigenoume C:\l2jFrozen\gameserver\config Kai vriskoume to arxio questionwords.txt to anigoume kai kanoume paste ton code afton # You can active the anti bot on other.properties # Words to use between 10 and 16 keys. code123987 code321789 code147963 code852369 code159753 code357159 code951357 code159852 code357963 code369248 code758961 code258852 code357895 code123698 code147896 code147982 code321456 code789654 code456321 code654987 Kanoume save kai eimaste etimoi :D
Guide L2 H5 AUTO SOULS
Acorazonado posted a topic in Hacks & Cheats [English]hello I'm looking for something to give me souls of kamael without stopping, if anyone has a program or something I post it please, thank you.
Hello, I was looking for information about the L2OFF platform starting from the basics and couldnt find sufficient stuff in english, mostly russian that I couldn't understand so I thought about starting a series of topics about it, posting what I have found till now, this will be the first one. Here we will try to understand the structure of skilldata.txt that is the basis for skill behavior in a Lineage2 server. If you open skilldata.txt the first skills you will see are Power Strike, Dash, Mortal Blow. Let's take a look at the 1st one. skill_begin //denotes the beginning of a skill entry skill_name = [s_power_strike11] //sets how the skill will be referred by in other files /* [파워 스트라이크] */ //name of the skill ingame skill_id = 3 //the ID of the skill, which is also used to calculate the skill IDs in skill_pch.txt level = 1 //internal counter of skill level, also used for the skill IDs in skill_pch.txt operate_type = A1 //Active skill of Type 1, which means it will have an effect of i_ (instant) type magic_level = 3 //Actual skill level used to calculate land rate effect = {{i_p_attack_over_hit;25;0}} //Instant type effect (i_) which in this case inflicts physical damage (p_attack) with overhit capability (over_hit) adding 25 to caster's P.Atk and 0 skill critical chance operate_cond = {{equip_weapon;{sword;blunt}}} //Here are the conditions that have to be met in order for the skill to be castable is_magic = 0 //As zero means false in programming, when a skill is not magical it is physical mp_consume2 = 10 //In L2 mp is consumed in 2 stages during skill usage, when you start casting a skill and when you finish casting. Physical skills are the exception, and they consume mp only when they are done casting, in this case 10 mp cast_range = 40 //this is the max range that the character can be from its target in order to start casting effective_range = 400 //this is the max range the target of the skill can reach before the skill cast is cancelled skill_hit_time = 1.08 //base skill cast time in seconds, gets modified by Atk.Speed/Cast.Speed to calculate final cast time, depending on the is_magic parameter skill_cool_time = 0.72 //this is the time in seconds the character who cast this skill will stay "locked" in place unable to make another move, waiting for the skill animation to finish skill_hit_cancel_time = 0.5 //this is the time frame during which a skill can be cancelled after being cast reuse_delay = 13 //base skill reuse time in seconds, gets modified by Atk.Speed/Cast.Speed depending on the is_magic parameter attribute = attr_none //attribute of the skill, in these older chronicles everything is attributed, from weapon damage to skill damage and debuffs effect_point = -52 //aggression points to be subtracted from the target and added to the person casting the skill (not sure that is how aggro works internally, only a guess) target_type = enemy //this is where u set what kind of targets can get affected by your skill, enemy means u can use it on anyone, even party members as long as CTRL is pressed. enemy_only on the contrary cannot be used on party members affect_scope = single //here you set the scope of the attack, whether it can hit AOE or only single targets affect_limit = {0;0} //minimum and maximum number of targets that will get hit if the skill is characterized as AOE next_action = attack //what action will be taken after the skill finished casting, here it will start autoattacking ride_state = {@ride_none} //this sets if u can cast the skill while mounted on a strider/wyvern, in this case it's not allowed in any ride state skill_end //denotes the end of a skill entry Ok now let's look at Mortal Blow which has a little more complicated effect, but still very similar otherwise It's also an Active Type 1 skill, which means it has an instant effect on the target and only that. Other types of active skills have different effects which we will see next. Now this effect is a fatal_blow which gets affected by crit. damage buffs/passives/jewels, it adds 73 to P.Atk, almost 3 times as much as Power Strike (that is why stabs are much less affected by your P.Atk stat and even a No-Grade dagger can hit hard), the 200 should be a modifier for the land rate based on the position (front,side,back) of the target but I am not sure, the last 0 is the skill critical chance. An interesting case is with fear type skills, such as Curse Fear, Word of Fear, Sword Symphony, Horror, etc Instead of having an activate rate and a stat that resists it, this effect takes 2 arguments, the first one should be the duration and the second one the land rate (most probably, or else its the reverse). You cannot change the basic property that resists it easily without altering the effect inside the l2server.exe. Sword Symphony as an AOE skill of the same type has half the duration and the same land rate ( effect={{i_p_attack;229;0};{i_run_away;15;20}} ). Antharas & Valakas fear being also 30 seconds, and the fact that several skill enchants of fear type skills for chance or power increase the second parameter, it should be [i_run_away;duration;chance] indeed, except if ncsoft made a mistake there. Now let's look at Dash which is a little different This is a Active Type 2 skill, which means it can have up to 3 types of effects (instant [i_xxx], continuous (pump) [p_xxx] and DoT (tick) [t_xxx]) and all of them can only affect the target of the skill. Dash in particular only has a continuous effect p_speed, {all} means u can get the speed increase in any armor type, "diff" means the number before it will be added to the stat, so it adds 40 to Speed. If it was -40 it would subtract that from Speed. In other skills you may see "per" which means the number before it is a percentage modifier, so 100;per would mean increase by 100% or basically doubling the base stat. target_type is self of course, so it affects the caster only regardless of what target is selected. Let's have a look at another Active Type 2 skill, this time Stun Shot skill_begin skill_name = [s_stun_shot11] /* [스턴 샷] */ skill_id = 101 level = 1 operate_type = A2 //again, Active Type 2 skills can have both a continuous (pump) and instant type effect, and those effects will only affect the target magic_level = 34 effect = {{p_block_act};{i_p_attack_over_hit;287;0}} //continuous effect of stun and instant effect of physical attack damage with overhit capability adding 287 to P.Atk and with 0 skill critical chance operate_cond = {{equip_weapon;{bow}}} is_magic = 0 mp_consume2 = 69 cast_range = 900 effective_range = 1400 skill_hit_time = 3 skill_cool_time = 1 skill_hit_cancel_time = 0.5 reuse_delay = 10 activate_rate = 50 //this is the base land rate of the skill, in percentage. the final land rate takes into account the skill magic_level and the target level (not sure about caster level) lv_bonus_rate = 1 //this is a boost modifier based on the level difference between the target level and the magic_level (my guess), in some skills (entangle,power brake, sleep, etc) you can see an even higher bonus [2] basic_property = con //this is the stat that is used to calculate the resistance to landing the continuous (pump) effect part of the skill abnormal_time = 9 //this is the time the continuous (pump) effect will last onto the target abnormal_lv = 1 //this is the abnormal level of the continuous (pump) effect, used for calculating success of cure poison/bleed and overwriting of abnormal states (buffs as well as debuffs) abnormal_type = stun //this is the category in which the continuous (pump) effect debuff falls into, used in conjuction with the above attribute = attr_shock //the attribute of the skill effect, used for calculating resistances to damage and/or land rates effect_point = -327 target_type = enemy affect_scope = single affect_limit = {0;0} next_action = none //after casting stun the character doesnt autottack, it just stands still if the user doesnt do anything abnormal_visual_effect = ave_stun //this instructs the client on whether to show stars around the head of the target (stunned) or a white sphere (sleeped) etc. debuff = 1 //this instructs the client on which place it will show the skill (de)buff icon, 0 is for buffs, 1 for debuffs, and 3 is the special bar reserved for HoP/CoL/GH heals. What is funny is that in C5 the GH heal over time buff was placed along side Heart of Paagrio and Chant of Life, in Interlude ncsoft decided it should take space in the buff bar, making it even harder to keep up without throwing off buffs when healing in full buffed pvp. ride_state = {@ride_none} skill_end Next are Active Type 3 skills, like Blinding Blow, Punch of Doom, Aura Flare Active Type 3 skills are very similar to the previous type, but the difference here is that the instant effect is always inflicted on the target, whereas the continuous (pump) effect always affects the caster. In this case, the stab damages the target with 2751 added on P.Atk, a 150% modifier for the land rate and 0% chance of a skill critical. The speed bonus is like the one we saw in Dash and it will be present on the caster's buffbar. activate_rate is -1 which means the caster will get the speed bonus buff at a 100% chance, abnormal_time = 10 means it will last 10 seconds. Following is PoD It inflicts a physical attack with 4580 added on P.Atk with 0% skill critical capability on the target, and as a continuous effect it blocks all actions on the caster with an abnormal visual effect of stun with a 80% base land rate. lv_bonus_rate is 2 so if let's say the caster has deleveled 5 levels since he acquired PoD at 55, the difference between his level (50) and the magic level of the skill (55) will be multiplied by 2 and give a 10% bonus land rate on the self stun. Aura Flare is also similar Instant effect of magical damage with 39 added on the square root of M.Atk and a continuous effect of 50% reduction in pvp magical skill damage. The i_ affects the target, the p_ affects the caster like before. Activation rate is again undefined (-1) so the caster will get the damage reduction debuff at a 100% chance, and it will last 3 seconds from each time it finishes casting. Vengeance Same things here, the instant effect targets all non-friendly (N)PCs around the caster with a range of 200, as this skill has a point_blank scope. It will always affect up to 10 targets if it can find them, there is no randomization in that. Adds 5400 to P.Def and 4050 to M.Def regardless of armor type, as the {all} suggests. and Evade Shot follows the same pattern, adds 2020 to P.Atk without being able to crit, and gives +6 to evasion in any armor type the caster is wearing. Next are P type skills which are passive skills Long Shot adds 200 to the attack range as long as a bow is equipped. The effect is always on, as long as the conditions are met. Mana recovery will increase the base mp regen of the character by 20% as long as the main armor piece equipped is of type robe {armor_magic} Final Frenzy will increase the base P.Atk of the character by 32.9 as long as the HP is under 30%. Totem Spirit Bison also contains this same effect for its 30% HP bonuses, but also has the 2nd version of this effect (p_physical_attack_by_hp2) which is activated at below 60% HP. Let us look at some T type skills now Chameleon Rest is a Toggle type skill which means it can contain continuous (pump) effects as well as consuming effects. Toggle skills are always on until the consuming effect doesnt have anything to consume any more. Here, c_rest is very similar to c_mp, but has a hard-coded aggro avoidance inside the effect, consuming MP at a rate of 1 mana point per second. The number 3 after it denotes how many server "ticks" must pass for it to update the consuming process. A tick in L2 is 666ms so the skill will show up as eating away at 1,99 MP every 1,99 seconds in the client. The secondary effect is of continuous (pump) type and will add to the HP regen a total of 5 points in any armor type the character is wearing. This skill will also consume 2 MP each time it is activated apart from the DoT on the MP, next_action is sit and indeed after using the skill the character sits down Fake Death is another skill of the same type, this time c_fake_death consumes 10 MP per second, and ingame it will show up as eating away at 33.3 MP every 3.33 seconds. c_fake_death also sends a signal to every mob attacking the caster that he is dead, the same signal that is sent when a player actually dies. But because of the continuous (pump) effect p_avoid_agro being only 70% chance, some mobs will reagro that same exact moment. In C1 p_avoid_agro didn't have a chance parameter, it was hard-coded 100%. That is why Fake Death was 100% successful back then. Another popular skill of toggle type, Soul Cry will consume 2 MP upon activation, and then 1 MP per second internally on the server. However on the client it will show up as 3.33 MP every 3.33 seconds. Arcane Power is next Everyone is familiar with this skill, it is the bread and butter of high level nukers. It gives a 30% boost on the base M.Atk using all weapon types, it increases the initial cast MP cost of all spells (that's mp_consume1) by 10%, and consumes 50 HP per second appearing as 166.5 HP every 3.33 seconds ingame. Last toggle skill example is Fist Fury, consumes 8 MP upon activation, and then 13 HP per second server-side and 17.3 HP per 1.33 seconds client-side. It will also increase the base Atk.Speed by 25% for all armor types. As we have talked about HP and MP DoT skill effects on toggle skills it's time we also see some examples for DoT skill effects on Active skills. The unique Sorceror/Sorceress skill that noone ever used because ncsoft was so stupid at balancing DoT type spells after soulshots/spiritshots/buffs because the defacto standard in pvp, they are only ok if you pvp without shots and buffs, like in Beta/Prelude. The t in t_hp stands for Tick and specifies damage over time (DoT) effects. In Decay it will consume 77 HP per second showing up as 51.3 HP every 666ms in the game, which makes it one of the fastest updating DoTs in the game, along with Orc Mystic DoTs. To say some things about the rest of the parameters, it's a magical skill so it will consume spiritshots, takes 13 MP on cast and 52 MP on finish, can be started casting at max 600 range, will cancel casting if the target goes further away than 1100 range, has a 4 second base casting time, no "freeze" time as all magical skills, a typical half-second cancel time, 6 seconds base reuse, 70% base land rate with a normal lvl difference bonus, gets resisted by WIT, lasts 15 seconds on the target, has an abnormal level of 5 and a type of dot_attr, it's attribute is Earth type so Earth resistance will make it land less, provides 457 agro points for the mob AI and cannot target party members. It's a single target spell with a visual effect of bleeding type skills (Bleed,Sting/Chilling Flame) and is placed in the debuff bar. Healing potions are a skill too, updating every 1.99 seconds for 16/48/100 HP depending on the type. Touch of Life is an interesting one It has all 3 types of effects, instant/continuous/dot, first it heals 50% of the target's max hp, then it adds 50 HP per second appearing as 166.5 HP every 3.33 seconds, and lastly it adds +60% to the base resistance for buff cancelling and +30% to the resistance for debuff attacks. Also it increases healing effectiveness on the target by 30%. Doesn't consume any mp at all, altho it consumes 1621 HP on cast. Vortex spells also have 3 effect types. Fire Vortex adds 140 to the square root of the caster's M.Atk, hitting with overhit, reducing 10% base Speed, 30% Atk.Speed, 10% Cast.Speed of the target in all armor types, increasing the fire damage received by the target by 20% and consuming his MP by 12 every second, appearing as 39.96 MP every 3.33 seconds. Abnormal_type for all Vortex spells is multi_debuff and they are all of abnormal level 1 so they will overwrite each other when cast on the same target. Interestingly Arcane Chaos also shares the same type and level so it can overwrite and get overwritten by Vortex spells just the same. Next are AOE (Area of Effect) skills This type of skills can have several different affect scopes, like range, point_blank, fan, square, square_pb. Poison Cloud in particular is of type range, which means it casts onto a ranged target, in this case up to 500 units away from you, and when it finishes casting on the target it spreads in a circle around it, in this case in a 200 unit radius. It can't be cast on party members as it's enemy_only, and it will only affect non-party/non-clan members that are hit inside its radius, as the affect_object is not_friend. Below is a schematic of the different types of AOE : Sonic Storm is the ranged AOE skill of the gladiator. It also has a 500 max cast range and it will hit around its target in a 150 unit radius. This one CAN be cast on party members as it of target_type enemy but it will not hit party or clan members around the target. When it lands it will hit a random number of targets between 5 and 12. Sonic Buster is the close range AOE skill of the gladiator. It can only be cast from melee range (40) and as far as who it can be cast and who it can affect it's the same as the previous one. The difference is in the shape of the attack. fan means that it creates a cone like shape, just like the red part in the image above. There are 4 parameters in the fan_range which affect how that will look like. The first one is always zero and I suspect it is used to move the center point of the circle ( or point of origin) forward or backwards. The next one is the center of the viewpoint by which you can direct the "looking" angle of the cone. Imagine it like the following : Angle Mapping 0 means it will create the cone at the exact direction the caster is facing, 180 means it will hit at the back of the caster, -15 means at a slight angle to the right, 15 at a slight angle to the left. In Sonic Buster's case the cone will have a straight ahead orientation. The next number is the circle radius, the blue one in the fan part of the AOE schematic. So it will have a blast range just like Poison Cloud, and 50 more than Sonic Storm. The final number specifies the arc of the attack in degrees, the circular sector formed by centering your view in the viewpoint suggested by the 2nd parameter and then forming an angle as wide as this last parameter. As this is180° Sonic Buster will hit 5-12 targets that are located in front of the caster at a maximum range of 200 units from him. Basically a semicircle. In contrast let's have a look at Wild Sweep that has a much narrower front arc If you ever played a low level pole class and used this skill in catacombs you will remember that it wasn't hitting a lot of mobs if they weren't aligned perfectly in front of you. That is because of it's fan_range parameters. Like the previous ones it casts from melee range, and it's point of origin is 0 so the next calculations will start directly at the point the target resides at. The orientation is straight ahead again since the second parameter is 0°. The 3rd parameter is 80 units and is the radius around the target, which is quite small. The final parameter being the arc width, is 30° less than the other skills, so it will hit 75° to the left and 75° to the right the character is facing. Whirlwind is the bigger brother of Wild Sweep, and is a much better skill for AOE because this one is using point_blank scope, which means it will hit at a circle around the caster. The radius in this case is 150 units and it will not hit party/clan members, randomizing the successful target hits between 6 and 12 if there are more than the minimum in its hit radius. And now some Boss skills which are more interesting This is the attack Antharas does with his mouth spitting red sparkles in front of him, it is a magic attack curiously, it is a ranged attack that can cast on a target up to 500 units afar. The interesting part is that it hits in a rectangle area rather than a circle. The ncsoft programmer made a mistake naming this scope square, as a square has equal length in its sides and this scope produces rectangles, usually of unequal length sides. Anyway the fan_range now changes somewhat as to what it specifies. The first 2 are the same as before, so in order of these parameters, the skill calculations will start from 0 range of the target and the orientation is straight forward. The next 2 numbers are the length and the width of the rectangle, so it will hit those who are 1200 units long and 300 wide in front of the target he casted the skill onto. This one is really nice It's the tail smash he does when he turns to look behind him, this one is like the one before it except now its of type square_pb meaning its the point blank version. As it is PB, it doesnt have a cast or effective range, skills of this type don't need a target, like the warlord's whirlwind. The fan_range though has exactly the same meaning as on the Antharas Mouth attack. In order, range calculations start from 0 range of the caster (Antharas), the orientation is 180° rotated so it hits at the back of where he is facing, the length of the rectangle will be 1500 units and it will hit 400 units wide. These two are the attack Valakas does with his left and right claws on the ground. From the shape the skill animation leaves on the ground it's apparent that the rectangle is about twice as long than it is wide. And that is true if you check the fan_range, it has 250 units length and 160 units width. The angle is 15° for the left, and -15° for the right one which corresponds exactly with the angle mapping given several lines above. Valakas's Tail Stomp leaves a long firey dragon mark on the ground and as you can see from the parameters it is 1000 units long 120 units wide as it should, the orientation being 180° hitting in the back as it should. Quite the opposite happens with his Tail Lash that stuns and throws people away in his back. As you can see from the skill animation the tail goes left and right pretty wide, 500 units wide to be exact, but it will only hit PCs that are close to his tail, 250 units far. The last type of skills we should talk about are the ones that have a static reuse time. All Hero skills fall in that category, Miracle/Berserker/Valor have a set 20 min reuse time, Grandeur/Dread have a 5 min reuse time. What makes them behave as such is the is_magic=2 parameter. This will make them use spiritshots, be affected by M.Atk for their land rate and by Cast.Speed for their cast time but the reuse will remain as set. This was very stupid from ncsoft as non-mystic classes were basically excluded from properly using the Hero debufs. Also Hero UD having an extremely long duration but that is another story... Invocation is another good example. Invocation will use spiritshots and cast faster with Acumen/Zerk/etc many times fooling players into thinking that using all those will make it reset faster. But the truth is it will always reset at 15 minutes no matter what. ============================================================================================================= To sum it up for operate types (what effects can be used): A1 - Active skills with instant effects on the target A2 - Active skills with instant, continuous (pump) and DoT (tick) effects on the target A3 - Active skills with instant effects on the target and continuous (pump) effects on the caster P - Passive skills with continuous (pump) effects T - Toggle skills with consuming and continuous (pump) effects on the caster Target types (what is a valid target for the skill): enemy (without holding CTRL only mobs/wartags, with CTRL pressed anyone) self (skill targets self automatically, happens transparently on L2OFF, only changes client target on L2J) enemy_only (can't be cast on party members or non-flagged non-wartags even with CTRL pressed) none (used for toggle skills that have no target) holything (can only target the castle altar, used for the Seal Engraving skill) target (needs CTRL for mobs or flagged PCs) summon (automatically targets summon) door_treasure (only usable on doors and treasure chests) pc_body (only usable on a dead player body) npc_body (only usable on a dead NPC body) others (cannot target self, only other players) item (only usable on inventory items) Affect scopes (first level of target filtering, also defines the shape of the attack for AOE types) : single (only affects current target) party (affects all party members) range (AOE skill that hits in a radius around a ranged target) fan (close range AOE skill that hits in an arc shape) point_blank (AOE skill that hits in a 360° radius around the caster) dead_pledge (only affects dead clan members) pledge (only affects alive clan members) square (hits in a rectangle shape starting on a ranged target) square_pb (hits in a rectangle shape starting from the caster itself) none (used for weapon SA and cubic skills) Affect objects (second level of target filtering, using the results from affect_scope): friend (will affect party or clan or non-flagged targets) not_friend (will affect any target which is flagged or a wartag or a mob) undead_real_enemy (will affect any object classified as undead) all (will affect anyone for example Battle Symbol skills) clan (used for mob clan buffs) Please provide any info on the things I said I am not sure about if you know something, and also any mistakes I made. Thanks for reading and keep on sharing the knowledge
Guide Creating Hats Using Unreal
big man bear posted a topic in Client Development DiscussionShort guide going over how to import and create hats using Unreal. Although the model used is already pre processed, this logic can be applied to any accessory. you can put as many meshes in this ukx as possible. no more oaukx/1 mesh 1 ukx. [Hidden Content]
Guide L2 Spoiler guide [Money] Based on IL.
SQL Developer posted a topic in General Discussion [English]Hello, check the pdf on the link https://drive.google.com/open?id=1KAgm4GdD37x2R3oEDSijcP6hSWH0ouU8 [Update] Some other areas that the difficulty lvl is high but worth the risk and your time. 1.Garden of Eva 2.(Deep) Devil Island - Dolls 3.Pavel Ruins (very good exp and great spoil) You will find a PDF format guide (tutorial). I am wishing you lucky Spoils!