Page 1 of 1
custom shadow item
Posted: Thu Mar 05, 2015 8:17 am
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!
Re: custom shadow item
Posted: Thu Mar 05, 2015 10:55 am
by Aikimaniac
can you post the whole XML code for that item here please?
Re: custom shadow item
Posted: Thu Mar 05, 2015 7:29 pm
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..
Re: custom shadow item
Posted: Thu Mar 05, 2015 8:15 pm
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.
Re: custom shadow item
Posted: Thu Mar 05, 2015 10:24 pm
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.
Re: custom shadow item
Posted: Thu Mar 05, 2015 11:16 pm
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? (:
Re: custom shadow item
Posted: Fri Mar 06, 2015 1:24 am
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>
Re: custom shadow item
Posted: Fri Mar 06, 2015 1:41 am
by Cresceus
aww damn... ):
well ok, i'm going to make it this way.
thanks!! (: