add to model.mrs > weapon > item (copy and past the elu and the texture there)
Code:
[ATTACH]36346._xfImport[/ATTACH]
Add to zitem.xml
Code:
<!-- luckybag -->
<ITEM id="400000011" name="STR:ZITEM_NAME_400000011" mesh_name="luckybag" totalpoint="0" type="custom"
res_sex="a" res_level="5" slot="custom" weapon="food" weight="4" bt_price="2000" delay="1000"
damage="0" ctrl_ability="0" magazine="4" maxbullet="4" 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" snd_fire="we_grenade_fire"
desc="STR:ZITEM_DESC_400000011" />
Add to strings.xml
Code:
<STR id="ZITEM_NAME_400000011">LuckyBag</STR>
<STR id="ZITEM_DESC_400000011">Heals hp and ap by 15</STR>
Add to worlditem.xml
Code:
<!-- luckybag -->
<AddWorldItemElu name ="luckybag">
<AddBaseModel name ="luckybag" filename="model/weapon/item/luckybag.elu"/>
</AddWorldItemElu>
add this one to worlditem.xml 2
Code:
<WORLDITEM id="123" name="luckybag">
<TYPE>hpap</TYPE>
<AMOUNT>15</AMOUNT>
<MODELNAME>luckybag</MODELNAME>
</WORLDITEM>
Add to weapon.xml (sry forgot to post this one)
Code:
<AddWeaponElu name="luckybag" weapon_motion_type = "8" weapon_type = "12" >
<AddBaseModel name="luckybag" filename="model/weapon/item/luckybag.elu" />
</AddWeaponElu>
Add to shop.xml
Code:
<!-- luckybag -->
<SELL itemid="400000011" />
Attachments
Last edited: