Jump to content

Recommended Posts

Posted

Good evening my friends this is my first topic and i hope you like it :) I didn't find it somewhere in the site so i decided to make on. So today i'll so you how to make a custom weapon AND how to fix the glow on it.Let's start.

1st Step:Making the xml file

First of all to make a custom  you need to make a *.xml file for the stats.So we go to this path:gameserver/data/stats/weapon and here we make the *.xml file with a notepad and we will give him the name 90000.xml as you can see to the photo.

82458263.png

Now how to create this file.We are in the gameserver/data/stats/weapon folder.Right click/create/new file and into the file we make the stats of weapon.Here i'll show you how to make a "Monster Only (Venom Sword)"(Dual) to "Venom"(Greatsword).Here is the stats.

67143888.png

Now we must save this file as a xml file and no as txt.so we must go to file/save as and change 90000.txt to 90000.xml and save it.

70878515.png

When we save this file we're done with the first step and go for the second.

2nd Step:making the weapon into weapongrp.dat

To the second step now i'll show you how to make the weapon from dual to a dual handed sword(greatsword)To do this first of all we need L2 File Edit.Open L2 file edit click the button "Open and Decrypt" and then go to the path that we have the system of Lineage II and find the file "weapongrp.dat" and open it

~NOTE!!!~

When someone try to make his own custom(weapon armor etc.),he MUST be careful cause if you don't know very very good how to use this file when you go to save it,it's better for all to save it into a folder that you made to the desktop cause if you save it onto the old file you will lost both of them.

Well open the weapongrp.dat with file edit.

81917144.png

We see that when we open the "weapongrp.dat" file we see some numbers some words that we don't understand.Don't worry that why i'm here.To make our weapon Ven first of all we need to find the ID of weapon into Database.Open Navica MySQL,click to the localhost to open the files then click to l2jdb and then go to weapon and open it.Now we need to find the "Monster Only (Venom Sword)" that we will convert it.Ctrl + F to show us the search and the we right the weapon.

47951525.png

When we write the name of weapon we click OK and it will show us our weapon and his ID.We take the ID and the go to FileEdit that we have open the "weapongrp.dat"file and find the weapon from his ID.Scroll down till we find it.

width=1024 height=478http://img198.imageshack.us/img198/644/43981139.png[/img]

Wehn we'll find it copy all the line till the end of the weapon and paste it into a notepad.The weapon that we have is dual sword and we want to make it a dual handed sword(Greatsword) we must find an other weapon that it is dual handed.Go to database find for example "Dynasty Blade" and go again to FileEdit that we have open the "weapongrp.dat" and scroll down it find it and the copy all the line of this weapon and paste it to the notepad that we had pasted the "Monster Only (Venom Sword)".Now into the notepad we have 2 weapons.

width=1024 height=111http://img251.imageshack.us/img251/9295/39622354.png[/img]

Becareful now cause here we will make our weapon.Here we will take from first weapon and we will try to make it like the other weapon.First weapon is this.

0	8203	1	1	6	1	0	LineageWeapons.Mon_benom_sword_m00_wp	LineageWeapons.Mon_benom_sword_m00_wp		LineageWeaponsTex.Mon_benom_sword_t00_wp	LineageWeaponsTex.Mon_benom_sword_t00_wp			0	0	0	0	0	1	1	0	icon.weapon_monster_i00					-1	1560	51	1	0	0		1		7	3	2	LineageWeapons.Mon_benom_sword_m00_wp	LineageWeapons.Mon_benom_sword_m00_wp	1	1	2	LineageWeaponsTex.Mon_benom_sword_t00_wp	LineageWeaponsTex.Mon_benom_sword_t00_wp			4	ItemSound.public_sword_shing_10	ItemSound.sword_big_2	ItemSound.public_sword_shing_4	ItemSound.sword_great_4	ItemSound.itemdrop_dualsword	ItemSound.itemequip_dualsword		10	0	0	8	0	8	0	0	0	0	325	0	1	1	1000	0	-1	0			0.00000000	0.00000000	0.00000000	0.00000000	0.00000000	0.00000000	1.00000000	1.00000000	1.00000000	1.00000000	LineageWeapons.rangesample	LineageWeapons.rangesample	1.39999998	0.89999998	0.89999998	1.39999998	0.89999998	0.89999998	13.50000000	0.00000000	0.00000000	13.50000000	0.00000000	0.00000000	-1	-1	-1	-1	-1	-1				

Second weapon is this.

0	9443	1	1	7	10	0	LineageWeapons.dynasty_twohand_sword_m00_wp			LineageWeaponsTex.dynasty_twohand_sword_t00_wp				0	0	0	0	0	1	0	0	icon.weapon_dynasty_twohand_sword_i00					-1	1740	8	1	0	0		1		7	2	1	LineageWeapons.dynasty_twohand_sword_m00_wp		1		1	LineageWeaponsTex.dynasty_twohand_sword_t00_wp				4	ItemSound.sword_great_7	ItemSound.sword_great_4	ItemSound.sword_big_9	ItemSound.public_sword_shing_8	ItemSound.itemdrop_poleweapon	ItemSound.itemequip_sword		10	405	151	1	6	8	0	0	0	0	325	0	1	1	1000	0	-1	0	LineageEffect.c_u006		3.00000000	0.30000001	0.00000000	0.80000001	1.00000000						LineageWeapons.rangesample		1.60000002	0.80000001	0.80000001	11.00000000	0.50000000	0.00000000							6	-1	-1	-1	-1	-1			

The weapon that we made is this

0	90001	1	1	7	10	0	LineageWeapons.Mon_benom_sword_m00_wp			LineageWeaponsTex.Mon_benom_sword_t00_wp				0	0	0	0	0	1	0	0	icon.weapon_monster_i00					-1	1740	8	1	0	0		1		7	2	1	LineageWeapons.Mon_benom_sword_m00_wp		1		1	LineageWeaponsTex.Mon_benom_sword_t00_wp				4	ItemSound.sword_great_7	ItemSound.sword_great_4	ItemSound.sword_big_9	ItemSound.public_sword_shing_8	ItemSound.itemdrop_poleweapon	ItemSound.itemequip_sword		10	405	151	1	6	8	0	0	0	0	325	0	1	1	1000	0	-1	0	LineageEffect.c_u006		2.50000000	0.30000001	0.00000000	1.60000002	2.50000000						LineageWeapons.rangesample		2.79999995	1.20000005	1.20000005	11.00000000	0.50000000	0.00000000							6	-1	-1	-1	-1	-1			   

Please see EXACTLY THE 3 CODES TO UNDERSTAND THE CHANGES OF WEAPON!!!

When we finish the weapon the only that we have to do is to change the ID and write our ID(90001)and then we go to th FileEdit and paste our finaly weapon there.Warning!we must allway leave one line empty at the end of the file.When we finish this the only that we have to do is to click on "Save and encrypt and save it to the folder that we made into the desktop with HEADER 413.

85659934.png

Now we go to the system of Linage II folder and paste it there th file "weapongrp.dat"

Step 3rd:Making the weapon into "itemname-e.dat"

Here i'll show you how to enter the name of your weapon.We need to open the FileEdit and the click to open and decrypt choose the "itemname-e.dat" from Lineage II system folder and click open to open it.Scroll down now and find a weapon that we can use it for our weapon.This is the code that i used for this weapon.

90001	Venom		a,	-1	0	0						a,	0	0		a,	0	0	0	0	0	0	0	0	0	0	a,	1

59

Put it into the "itemname-e.dat" at the end and leave one line empty down and click "Save and encrypt" and the save it with Header 413.

Step 4th:Add the weapon into Database.

Here we have to add our weapon into database and the only that we have to do is to take from one other Dual Handed weapon the stats and c/p them into a notepad.When we do this the only thing that we have to do is to open the database go to weapon and open it.down it has one + we click the + and then we take the stats from the other weapon and put them into the new weapon exept from id and Name of weapon and at the end we have this.

90001	Venom		lrhand	true	1740	1	0	wood	s80	405	10	bigsword	8	0	0	0	0	325	0	151	-1	-1	74946000	3597	true	true	true	true	true	0	0	0	0	0	0	0	0	0	0-0;

.

Our weapon is ready BUT the glow isn't fixed yet because our weapon have th glow from dynasty blade and these 2 weapon are not the same(different sape,different size etc.)Now i'll show you how to fix the weapon's glow.

Step 5th:Fixing weapon's Glow

To fix the weapon's glow first of all we need to open the file edit,the click to "open and decrypt" choose the "weapongrp.dat" file and go to the end and find our weapon.The thing that we have to do is to find the target that says effect_006 and copy form the effect till the end all the file and paste it into a notepad. the line that you took is this.

LineageEffect.c_u006		2.50000000	0.30000001	0.00000000	1.60000002	2.50000000						LineageWeapons.rangesample		2.79999995	1.20000005	1.20000005	11.00000000	0.50000000	0.00000000							6	-1	-1	-1	-1	-1				

this code is fixed but i want to show you what is exactly every piece.

LineageEffect.c_u006 2.50000000 0.30000001 0.00000000 1.60000002 2.50000000<-----This is the animation into the glow,the "flame" that it has into it and evey number shows the size.For exmaple the first number(2.50000000)show the along of the "flame".The LineageEffect.c_u006 is the effect inside the weapon and if you change the number you change the style of it.

LineageWeapons.rangesample 2.79999995 1.20000005 1.20000005 11.00000000 0.50000000 0.00000000<-----This is the glow and the first number(2.79999995)is the along of the glow on the weapon.

And we finaly have this.

finaly.png

 

 

I don't know very good what is the other number but i promish when i learn i'll update the topic and show you what is the orther numbers.

P.S The 3 fist codes a wrong at the end cause i want you to make the weapon alone and succeed :)

It's not very good cause i don't know very good english but i hope this guide be help full.

This giude is mine and weapon i made it alone cause this custom there isn't into Epilogue.There is only into Interlude.

I want to know your opinion :) :) :)

CREDITS:ME

Posted

Omg leki read CAREFULLY the title cause if you see i have and how to make a custom weapon.

 

 

Edit:i forgot something to tell you.to my topic i show to other people how to fix the glow and now how to change it!Next time ready all the topic and don't try to make your bad opinion.

Guest
This topic is now closed to further replies.


  • Posts

    • First, don't really follow the "main voice", moreover if you consider it an hobby. Simply do what you want, you got only one life so use it as you want. If you make it an hobby, it's exactly like piano, or velo - only practice makes you better.   Secondly, how do you learn things ? It's actually a really important question, since some can simply be scholar, read books (theory) then practice ; and some simply can't read books. I'm the second type, I hated school, I find it boring - my knowledge in Java comes from try-and-fail. You improve your coding style every year or so, I can myself rewrite my own code (which I already considered top-notched) after a while. You always learn something new - even if Java barely evolves. L2J is a fun way to learn programming, it's a giant sandbox where you can edit anything, and I believe it should be taken as it.   My own way of learning was as follow : Add existing customs, no matter what they are : the point is to know main classes used by L2J / customs. L2J is barely Java knowledge ; the true knowledge is to know WHAT to search in WHICH location (what I call, organization). You have to understand than EVERYTHING you think already exists, in a form on another, in the source code. A custom is only the association of the different mechanisms you found "here and there", glued together in a proper goal. Once you know main classes to edit, and the customs you added are compiling fine, the main point is to know WHAT exactly you DID. Try to understand WHY and WHERE you actually copied the code. Third point would be to MANIPULATE the customs you added in order to fit your wish. First edit little values, then logic conditions ; eventually add a new Config, or a new functionality to the custom. Fourth point would be to begin to craft your own ideas. Once again, EVERYTHING already exists, in a form or another. You want a cycled event ? You got Seven Signs main task as exemple. Npc ? Search any type of Npc and figure out what it does. Fifth point would be to understand Java - mostly containers (WHAT and WHERE to use them), variables types and main Java mechanisms (inheritance, static modifier, etc). You should also begin to cut your code into maintainable classes or methods. Java can actually run without optimization, but bigger your ideas, more optimized and well-thought it should be. It's direct saved time in the future, and you would thank yourself doing so. Main tips : ALWAYS use any type of versioning system - GIT or SVN. It allows to save your work, step by step and eventually revert back anytime you want if you terribly messed up. L2J is 80% organization knowledge, and 20% Java knowledge. Basically, if you know WHAT and WHERE to search, if you aren't dumb, it's easy to replicate and re-use things. Cherry on top is to use a already good coded pack to avoid copy-paste crap and get bad habits. Avoid any type of russian or brazilian packs, for exemple - their best ability is to leak someone's else code. Obviously you need some default sense of logic, but Java and programming in general help you to improve it.   Finally, most of your questions could be solved joining related Discord (at least for aCis, I can't speak for others) - from the moment your question was correctly asked (and you seemed to search for the answer). My community (and myself) welcomes newbies, but got some issues with noobies.   The simpliest is to try, fail and repeat until you succeed - it sounds stupid, but that's basically how life works.   PS : about Java ressources, before ChatGPT, it was mostly about stackoverflow website, and site like Baeldung's one. With ChatGPT and alike, you generally double-cross AI output to avoid fucked up answers. Also, care about AI, they are often hallucinating really hard, even today. They can give you complete wrong answer, you tell them they are wrong, and they say "indeed, I suck, sorry - here's a new fucked up answer". You shouldn't 100% rely over AI answer, even if that can give sometimes legit answers, full code or just skeletons of ideas.   PPS : I don't think there are reliable ressources regarding L2J itself, also most of the proposed code decays pretty fast if the source code is actually maintained (at least for aCis). Still, old coded customs for old aCis sources are actually a good beginner challenge to apply on latest source.
    • WTS: - AQ - Baium - Zaken  - Frintezza - Vesper Fighter Focus Fire Element   pm for detalis
    • We have the best price! L2Reborn.org Signature x1 Franz NEW!! 1KK = $20 HURRY TO BUY AT THE TOP PRICE discord - adver745645
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock