[Tut]Adding your own weapons

war

🚫
Exiled
Joined
Feb 10, 2007
Messages
236
Reaction score
0
Ok, some guy posted some tutorial on how to add weapons. Well It wasn't realy understandable in human language, so I'll make one xP.

What you need:

1) Mrs.Unpacker:
2) Your model.mrs and System.mrs seperated. (make a copy of them so you will always have a back-up, if you screw it up)
3) DDS-converter:
4) A photoShop, I advise, Adobe Elements 5.0, but it will also work with paint,
(with a Pro Photoshop, you will have less limitations.)
5) A Brain.


Basicly It's simple. Open both the .mrs'files with your mrs-unpacker.

1) Put your model.mrs and System.mrs in a new folder.
2) Extract the mrs.exe and the zlib.dll to the folder too.
3) Make a new textdocument.
4) Open it and type: mrs.exe d system.mrs
5) Save it as ''.bat'' (dont forget the ''.'' in the beginning)
6) In your folder, a new ''MS-DOS'' file appeared, click it and the system get unpacked to a folder called: ''System''
7) Do the same for the Model.mrs. in Step 4, just type: mrs.exe d model.mrs

Now both Files are unpacked. That was easy wasn't it?
Now on to the next part.

Open the new ''Model'' Folder. Go to ''weapons''.
Let's try adding a new shotgun, go to ''shotgun''

Let's edit a random shotgun, ''shotgun01'' and ''shotgun01.elu'' to your desktop.
Rename them, hmm let me think, Shotgun11 would be original.

Rename ''shotgun01' and ''shotgun01.elu'' to ''shotgun11'' and ''shotgun11.elu''

Put them back in the folder. Now open the DDS converter.
Go to the folder where the ''shotgun11'' is stored.
Convert it to a ''.bmp''-file, so you can open it much more easy.
(DON'T DELETE THE SHOTGUN11 DDS FILE !)

Now open the ''Shotgun11'' bmp-file with your photoshop.
Add all colours of the rainbow, I don't care. Just don't add Letters, not made with paint.
(It will screw the gun up, and it won't work then)

Save it as: 'Shotgun11''
Now delete the: 'Shotgun11'' DDs-file (the file when you opened the folder f0r the1sttime)
Convert the 'Shotgun11'' Bmp file, to DDS-format.

Now let's pack the model.
Delete the model.mrs first, or it might confuse you.
Now let's pack it again:

I expect you left the mrs-unpacker-files in the folder, if you didn't then extract them again.

1) Make a new textdocument. Type: Mrs.exe c Model , and save as ''.bat'' again.
2) Now again, start the new MS-DOS file, and your model will be packed as ''Model.mrs''

Ok, your Model.mrs is ready, Now let's do the system.mrs,
We already unpacked the system.mrs, if you didnt, then do it again.
Go into the system, and you will see all kinds off XMl-files.
Make sure your system contains: ''zitem.XML'', ''string'.XML'' and '''shop.XML''

First, open Zitem.XML. ''open with'' ''notepad''
Go to the Shotgun part. then go down, down, down.
At this:

<ITEM id="6001" name="STR:ZITEM_NAME_6001" mesh_name="shotgun01" totalpoint="0" type="range"
res_sex="a" res_level="5" slot="range" weapon="shotgun" weight="15" bt_price="200"
delay="1100" damage="6" ctrl_ability="60" magazine="3" maxbullet="15" 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_rocket_fire" snd_dryfire="762arifle_dryfire" desc="STR:ZITEM_DESC_6001"
effect_id="7" />

Now you can choose what the ''damage'', ''delay'', ''weight'' ''ammo'' and required ''lvl''
it will be. I'm not gonna explain what is for what, you'll see what to edit, and what it is for.
Make it the ''damage'', ''delay'', ''weight'' ''ammo'' and required ''lvl'' that you want.
You can also diside if it will give extra hp and ap ''gadget_id="0" hp="0" ap="0" ''

Now, change: name="STR:ZITEM_NAME_6001"
to name="STR:ZITEM_NAME_6021"
(It doesn't mather which name you give it, as long as it's not taken)
and, desc="STR:ZITEM_DESC_6001"
to: desc="STR:ZITEM_DESC_6021"

Remember the names you gave it.


Now close it, and save it.
Now let's do the ''Strings.XML''

add: <STR:ZITEM_NAME_6021">(The name you wanna give it)</STR>
<STR id="ZITEM_DESC_6021">(Description you wanna give it)STR>
Make sure you add it in the wright order as in Zitem.xml.

Now, save it.
Now the easiest thing: ''Shop.XML'''
Add: <SELL itemid="6021" /> in the <Shotgun>-section (make sure in wright order)
Save it.

Now just pack it, let's repeat it like the system.mrs:

1) Make a new textdocument. Type: Mrs.exe c system , and save as ''.bat'' again.
2) Now again, start the new MS-DOS file, and your system will be packed as ''system.mrs''

Put the ''system.mrs'' and ''model.mrs'' in your client.
Voila. You did it !


Gratz + repps go to me, I made it all by my own.

Good Luck,
By Eaker-War
 
Last edited:
Back