custom shadow item

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
Cresceus
Posts: 238
Joined: Tue Jan 15, 2008 8:20 am
Location: Germany

custom shadow item

Post by Cresceus »

Hello everybody!

May someone tell me how to create a custom shadow item?

I tried with adding the parameter 'duration' in item-xml-data, but this doesn't work for me...

Custom time limited items are simple to create. But I need to make a shadow item.

Thanks in advance!
User avatar
Aikimaniac
L2j Inner Circle
L2j Inner Circle
Posts: 3048
Joined: Sun Aug 07, 2005 11:42 pm
Location: Slovakia

Re: custom shadow item

Post by Aikimaniac »

can you post the whole XML code for that item here please?
Image
User avatar
godfreyouwens
Posts: 21
Joined: Wed May 11, 2011 10:49 pm
Location: CheeseLand USA !

Re: custom shadow item

Post by godfreyouwens »

I would just copy an existing shadow item to a new file, change the item ID, rename the file to the corresponding item(s), and move the file to the custom items folder..also make sure you have custom items turned on.

Once you do that, you can easily change the corresponding item icon, image etc..
Cresceus
Posts: 238
Joined: Tue Jan 15, 2008 8:20 am
Location: Germany

Re: custom shadow item

Post by Cresceus »

Thanky for your quick replies!

Here's the xml for the item i'm trying to make "shadow"

Code: Select all

	<item id="485" type="Armor" name="Tattoo of Power">
	<!-- +5% P.Atk		-5% P.Def -->
		<set name="icon" val="icon.weapon_voodoo_doll_i00" />
		<set name="default_action" val="EQUIP" />
		<set name="armor_type" val="LIGHT" />
		<set name="bodypart" val="lbracelet" /> <!-- default: "chest"  -->
		<set name="immediate_effect" val="true" />
		<!--<set name="duration" val="900" />-->
		<set name="time" val="10080" /> <!-- in MINUTES (=7 days) -->
		<set name="crystal_type" val="S" />
		<set name="material" val="DYESTUFF" />
		<set name="weight" val="4200" />
		<set name="price" val="10" />
		<for>
			<mul order="0x30" stat="pvePhysDmg" val="1.05" />
			<mul order="0x30" stat="pvePhysSkillsDmg" val="1.05" />
			<mul order="0x30" stat="pDef" val="0.95" />
			<mul order="0x30" stat="pvpPhysDef" val="0.1" />
		</for>
	</item>
For now i comment it out, because it doesn't work.
User avatar
godfreyouwens
Posts: 21
Joined: Wed May 11, 2011 10:49 pm
Location: CheeseLand USA !

Re: custom shadow item

Post by godfreyouwens »

What is the reason you need it to be a 'shadow' item? Just wondering.. because you can make the stats to be just like a shadow item... such as non-sellable, tradeable, enchantable etc.. along with a time duration.



edited* - seeing the 0x30, you are most likely having it be overwritten by another buff/skill such as a prophecy etc. If you use the item unbuffed, it will most likely work, but once buffed, it gets overwritten by the stronger buff.
Cresceus
Posts: 238
Joined: Tue Jan 15, 2008 8:20 am
Location: Germany

Re: custom shadow item

Post by Cresceus »

Ah ok? Thanks for the explanation! (:
But i think it's ok, if it's is overwritten by a stronger buff. it makes sense to me in this case.

the reason why i need the tattoos to be shadow item is because the duration of shadow items is only used when the item is equiped. right? but the duration of time limited items is running out no matter the item is equiped or not.

so a player who has less time to play than a player who has much time to play will be at a disadvantage, because the tattoos on our server cost adena and some other items which have to be farmed.

you understand? (:
User avatar
godfreyouwens
Posts: 21
Joined: Wed May 11, 2011 10:49 pm
Location: CheeseLand USA !

Re: custom shadow item

Post by godfreyouwens »

ahhhh I understand. Unfortunately using an item that isnt originally a shadow item may make the client not see the time left ( uncertain )

I quickly made this item using an existing shadow item and adding the patk and pdef you wanted along with a duration and equip location

everything seems to work, even when buffed. You can use the code below to change any shadow item you'd like. Hope this helps ! :)

Code: Select all

	
	<item id="13075" type="Armor" name="Shadow Item - Black Mask">
		<set name="icon" val="icon.event_energy_belt_i00" />
		<set name="default_action" val="equip" />
		<set name="armor_type" val="light" />
		<set name="bodypart" val="lbracelet" />
		<set name="immediate_effect" val="1" />
		<set name="crystal_count" val="277" />
		<set name="crystal_type" val="s" />
		<set name="duration" val="10080" />
		<set name="material" val="dyestuff" />
		<set name="weight" val="3800" />
		<set name="price" val="2000000" />
		<set name="is_tradable" val="false" />
		<set name="is_dropable" val="false" />
		<set name="is_sellable" val="false" />
		<set name="enchant_enabled" val="0" />
		<for>
			<mul order="0x10" stat="pDef" val="0.95" />
			<mul order="0x10" stat="pAtk" val="1.05" />
		</for>
	</item>
Cresceus
Posts: 238
Joined: Tue Jan 15, 2008 8:20 am
Location: Germany

Re: custom shadow item

Post by Cresceus »

aww damn... ):

well ok, i'm going to make it this way.


thanks!! (:
Post Reply