Help Please to created damage kits Thx ^^!
Help Please to created damage kits Thx ^^!
worlditem.xml..
instead of using normal value
use negative ones
hehehe Code please?? Worlditem.xml and zitem.xml Please ^^! Respect
Like i said use negative values..
Code:<WORLDITEM id="100" name="medikit"> <TYPE>hpap</TYPE> <AMOUNT>-10</AMOUNT> <MODELNAME>medikit</MODELNAME> </WORLDITEM>
hey what is the code zitem please posted ^^!
Zitem.xml CODE :
<ITEM id="28282" name="Damage Kit" mesh_name="Damagekit" totalpoint="0" type="custom" res_sex="a" res_level="1" slot="custom" weapon="Damagekit" weight="1" bt_price="0" delay="1000" damage="0" ctrl_ability="0" magazine="10" reloadtime="10" slug_output="false" gadget_id="0" hp="0" ap="0" maxwt="0" sf="0" fr="0" cr="0" pr="0" lr="0" color="#FFFFFFFF" image_id="3" bullet_image_id="0" magazine_image_id="0" desc="Damage Kit" snd_fire="we_grenade_fire" maxbullet="10" />
Worlditem.xml Code:
<WORLDITEM id="260" name="Damagekit">
<TYPE>hpap</TYPE>
<AMOUNT>-20</AMOUNT>
<MODELNAME>Damagekit</MODELNAME>
</WORLDITEM>
---------------------------------
the Code is perfect??
Try it instead of asking if it works..
Why dont you look through some files?
Its a lot better, and you start to learn more about them files :P
EDIT: The worlditem.xml , copy a block of code, paste it in another spot in worlditem.xml
edit that block of code so you can call it in zitem.xml.
Put a negative value in worlditem.
Edit zitem.xml so that particular item will reduce hp when tripped over.
Example Please??
My Codes..!
Zitem.xml CODE :
<ITEM id="28282" name="Damage Kit" mesh_name="Damagekit" totalpoint="0" type="custom" res_sex="a" res_level="1" slot="custom" weapon="Damagekit" weight="1" bt_price="0" delay="1000" damage="0" ctrl_ability="0" magazine="10" reloadtime="10" slug_output="false" gadget_id="0" hp="0" ap="0" maxwt="0" sf="0" fr="0" cr="0" pr="0" lr="0" color="#FFFFFFFF" image_id="3" bullet_image_id="0" magazine_image_id="0" desc="Damage Kit" snd_fire="we_grenade_fire" maxbullet="10" />
Worlditem.xml Code:
<WORLDITEM id="260" name="Damagekit">
<TYPE>hpap</TYPE>
<AMOUNT>-20</AMOUNT>
<MODELNAME>Damagekit</MODELNAME>
</WORLDITEM>
<ITEM id="28282" name="Damage Kit" mesh_name="Damagekit" totalpoint="0" type="custom" res_sex="a" res_level="1" slot="custom" weapon="medikit" weight="1" bt_price="0" delay="1000" damage="0" ctrl_ability="0" magazine="10" reloadtime="10" slug_output="false" gadget_id="0" hp="0" ap="0" maxwt="0" sf="0" fr="0" cr="0" pr="0" lr="0" color="#FFFFFFFF" image_id="3" bullet_image_id="0" magazine_image_id="0" desc="Damage Kit" snd_fire="we_grenade_fire" maxbullet="10" />
weapon="medikit"