Question about customization

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
User avatar
terrance
Posts: 14
Joined: Mon Dec 20, 2010 5:15 pm

Question about customization

Post by terrance »

A really basic question: when customize something in the datapack, should I copy the whole xml into the "custom" folder and modify it in there or only copy the stuff that I want to customize?

For example, if I want to change item 14739 in 14700-14799.xml, what I'm doing now is copying the 14700-14799.xml into "custom" folder and delete all the items I don't want to modify and only leave the basic xml structure and item 14739 in there, is this the correct way of doing this?
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Question about customization

Post by jurchiks »

If you modify existing items, you don't copy anything anywhere, you modify the existing xml file and that's it. I'm pretty sure the stats aren't overwritten if you copy an item to a custom XML and modify it there. If they are though, then what you're doing is good as it is.
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
User avatar
terrance
Posts: 14
Joined: Mon Dec 20, 2010 5:15 pm

Re: Question about customization

Post by terrance »

jurchiks wrote:If you modify existing items, you don't copy anything anywhere, you modify the existing xml file and that's it. I'm pretty sure the stats aren't overwritten if you copy an item to a custom XML and modify it there. If they are though, then what you're doing is good as it is.
I thought the custom folder is there so you don't have to modify the existing xml? So if you update your datapack your custom changes will not get overwritten? Anyway, I already did a few successful changes this way, but the reason I'm making this post is because I'm not sure what's happening to the other items I omitted in the xml in custom folder, is the server smart enough to use the original stats for those items or is it going to think those items do not exist?
User avatar
Zoey76
L2j Inner Circle
L2j Inner Circle
Posts: 7005
Joined: Tue Aug 11, 2009 3:36 am

Re: Question about customization

Post by Zoey76 »

terrance wrote:For example, if I want to change item 14739 in 14700-14799.xml, what I'm doing now is copying the 14700-14799.xml into "custom" folder and delete all the items I don't want to modify and only leave the basic xml structure and item 14739 in there, is this the correct way of doing this?
This is correct, I believe you could even use custom names and merge different ID ranges.
Powered by Eclipse 4.30 ๐ŸŒŒ | Eclipse Temurin 21 โ˜• | MariaDB 11.2.2 ๐Ÿ—ƒ๏ธ | L2J Server 2.6.3.0 - High Five ๐Ÿš€

๐Ÿ”— Join our Discord! ๐ŸŽฎ๐Ÿ’ฌ
User avatar
terrance
Posts: 14
Joined: Mon Dec 20, 2010 5:15 pm

Re: Question about customization

Post by terrance »

Zoey76 wrote:
terrance wrote:For example, if I want to change item 14739 in 14700-14799.xml, what I'm doing now is copying the 14700-14799.xml into "custom" folder and delete all the items I don't want to modify and only leave the basic xml structure and item 14739 in there, is this the correct way of doing this?
This is correct, I believe you could even use custom names and merge different ID ranges.
Good to know, thanks Zoey.
User avatar
terrance
Posts: 14
Joined: Mon Dec 20, 2010 5:15 pm

Re: Question about customization

Post by terrance »

Zoey76 wrote:
terrance wrote:For example, if I want to change item 14739 in 14700-14799.xml, what I'm doing now is copying the 14700-14799.xml into "custom" folder and delete all the items I don't want to modify and only leave the basic xml structure and item 14739 in there, is this the correct way of doing this?
This is correct, I believe you could even use custom names and merge different ID ranges.
Zoey, could you please also take a look at my other question about EXP runes? I tried so many different ways but it still doesn't work the way it supposed to. viewtopic.php?f=81&t=30700
johanzo01
Posts: 6
Joined: Mon Feb 09, 2015 1:57 am

Re: Question about customization

Post by johanzo01 »

my way to do it is make the original skill a comment using <!--Item Data -->
like the example:

Code: Select all


<!-- <item id="21401" type="EtcItem" name="Gold Maned Lion Mount Bracelet Pack">
		<!-- Description: Dimensional item pack. Gift box containing 1 Gold Maned Lion Mount Bracelet. Cannot be exchanged or dropped. Can be shared between characters within an account through the Dimensional Merchant. Can be stored in a private warehouse. -->
		<set name="icon" val="BranchSys.icon.br_four_leaf_clover_box_i00" />
		<set name="material" val="STEEL" />
		<set name="is_tradable" val="false" />
		<set name="is_dropable" val="false" />
		<set name="is_stackable" val="true" />
		<set name="is_freightable" val="true" />
	</item>  -->
	
	
Then copy the original item into Custom.xml
there you can edit everithing without much problem and keep the original untouched no need to change the ID so is easy to do it again if you update,
just need to make it like comment again.
Greetings
Post Reply