How to add items:
Decompile model.mrs, browse through model/weapon/ and if you want to add a shotgun, put the shotgun elu and texture in the shotgun folder, rocket in rocket, etc.
Press back, open weapon.xml with Notepad and find w.e type of item you were adding's category, if you're adding a shotgun go to the Shotgun section it should look something like this;
Code:
<!-- shotgun -->
<AddWeaponElu name="shotgun01" weapon_motion_type = "4" weapon_type = "4" >
<AddBaseModel name="shotgun01" filename="model/weapon/shotgun/shotgun01.elu" />
</AddWeaponElu>
<AddWeaponElu name="shotgun02" weapon_motion_type = "4" weapon_type = "4" >
<AddBaseModel name="shotgun02" filename="model/weapon/shotgun/shotgun02.elu" />
</AddWeaponElu>
<AddWeaponElu name="shotgun03" weapon_motion_type = "4" weapon_type = "4" >
<AddBaseModel name="shotgun03" filename="model/weapon/shotgun/shotgun03.elu" />
</AddWeaponElu>
<AddWeaponElu name="shotgun04" weapon_motion_type = "4" weapon_type = "4" >
<AddBaseModel name="shotgun04" filename="model/weapon/shotgun/shotgun04.elu" />
</AddWeaponElu>
<AddWeaponElu name="shotgun05" weapon_motion_type = "4" weapon_type = "4" >
<AddBaseModel name="shotgun05" filename="model/weapon/shotgun/shotgun05.elu" />
</AddWeaponElu>
<AddWeaponElu name="shotgun06" weapon_motion_type = "4" weapon_type = "4" >
<AddBaseModel name="shotgun06" filename="model/weapon/shotgun/shotgun06.elu" />
</AddWeaponElu>
<AddWeaponElu name="shotgun07" weapon_motion_type = "4" weapon_type = "4" >
<AddBaseModel name="shotgun07" filename="model/weapon/shotgun/shotgun07.elu" />
</AddWeaponElu>
<AddWeaponElu name="shotgun08" weapon_motion_type = "4" weapon_type = "4" >
<AddBaseModel name="shotgun08" filename="model/weapon/shotgun/shotgun08.elu" />
</AddWeaponElu>
<AddWeaponElu name="shotgun09" weapon_motion_type = "4" weapon_type = "4" >
<AddBaseModel name="shotgun09" filename="model/weapon/shotgun/shotgun09.elu" />
</AddWeaponElu>
<AddWeaponElu name="shotgun10" weapon_motion_type = "4" weapon_type = "4" >
<AddBaseModel name="shotgun10" filename="model/weapon/shotgun/shotgun10.elu" />
</AddWeaponElu>
Click underneath <!-- shotgun --> and press enter once to make a new line, on the new line copy any of the default shotgun codes and edit it accordingly. Not to hard to figure out;
The above would turn into;
Code:
<!-- shotgun -->
<AddWeaponElu name="ShotgunYou'reAdding" weapon_motion_type = "4" weapon_type = "4" >
<AddBaseModel name="ShotgunYou'reAdding" filename="model/weapon/shotgun/ShotgunYou'reAdding.elu" />
</AddWeaponElu>
<AddWeaponElu name="shotgun01" weapon_motion_type = "4" weapon_type = "4" >
<AddBaseModel name="shotgun01" filename="model/weapon/shotgun/shotgun01.elu" />
</AddWeaponElu>
<AddWeaponElu name="shotgun02" weapon_motion_type = "4" weapon_type = "4" >
<AddBaseModel name="shotgun02" filename="model/weapon/shotgun/shotgun02.elu" />
</AddWeaponElu>
<AddWeaponElu name="shotgun03" weapon_motion_type = "4" weapon_type = "4" >
<AddBaseModel name="shotgun03" filename="model/weapon/shotgun/shotgun03.elu" />
</AddWeaponElu>
<AddWeaponElu name="shotgun04" weapon_motion_type = "4" weapon_type = "4" >
<AddBaseModel name="shotgun04" filename="model/weapon/shotgun/shotgun04.elu" />
</AddWeaponElu>
<AddWeaponElu name="shotgun05" weapon_motion_type = "4" weapon_type = "4" >
<AddBaseModel name="shotgun05" filename="model/weapon/shotgun/shotgun05.elu" />
</AddWeaponElu>
<AddWeaponElu name="shotgun06" weapon_motion_type = "4" weapon_type = "4" >
<AddBaseModel name="shotgun06" filename="model/weapon/shotgun/shotgun06.elu" />
</AddWeaponElu>
<AddWeaponElu name="shotgun07" weapon_motion_type = "4" weapon_type = "4" >
<AddBaseModel name="shotgun07" filename="model/weapon/shotgun/shotgun07.elu" />
</AddWeaponElu>
<AddWeaponElu name="shotgun08" weapon_motion_type = "4" weapon_type = "4" >
<AddBaseModel name="shotgun08" filename="model/weapon/shotgun/shotgun08.elu" />
</AddWeaponElu>
<AddWeaponElu name="shotgun09" weapon_motion_type = "4" weapon_type = "4" >
<AddBaseModel name="shotgun09" filename="model/weapon/shotgun/shotgun09.elu" />
</AddWeaponElu>
<AddWeaponElu name="shotgun10" weapon_motion_type = "4" weapon_type = "4" >
<AddBaseModel name="shotgun10" filename="model/weapon/shotgun/shotgun10.elu" />
</AddWeaponElu>
Rocket launcher, same thing, sword, same thing, etc. etc.
Now you need to add it into the Zitem.xml in system.mrs so decompile system.mrs and open up Zitem.xml.
Copy and paste this underneath any of the already existing shotgun codes;
Code:
<ITEM id="NEWID"
name="Name Your Shotgun"
mesh_name="ShotgunYou'reAdding"
totalpoint="0"
type="range"
res_sex="a"
res_level="Level Req."
slot="range"
weapon="shotgun"
weight="0"
bt_price="0"
delay="0"
damage="0"
ctrl_ability="60"
magazine="0"
maxbullet="0"
reloadtime="5"
slug_output="true"
gadget_id="0"
hp="0"
ap="0"
maxwt="0"
sf="0"
fr="0"
cr="0"
pr="0"
lr="0"
color="#FFFFFFFF"
image_id="2"
bullet_image_id="0"
magazine_image_id="0"
snd_reload="we_shotgunpa_reload"
snd_fire="we_shotgunpa_fire"
snd_dryfire="762arifle_dryfire"
desc="Add your description"
effect_id="7" />
Now re-compile system.mrs, and put your new zitem.xml inside of your Match Server folder replacing the old one. Now if you want the item to be in the shop, you have to add it into shop.xml (If you don't want the item in the shop then don't read further)
Go to your matchserver folder and open Shop.xml, then scroll to the Category of your weapon. Make a new line under the category name and add in;
Code:
<SELL itemid="ID You Put In Zitem.xml" />
Restart matchserver and it should work if you followed this correctly.