Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[Guide]How To Add Weapons To Server *with Pics*

Status
Not open for further replies.
Retired modder
Loyal Member
Joined
Aug 13, 2008
Messages
1,250
Reaction score
126
I can see you have "Golden Top-Hat" everyone leeched that from LG-GunZ... I made that =(

=)
Sorry that you made a hot item =P you must be glad that everyone wants your item =)
But I must say that credit must be given in descryption
That's what I always do with customs.
 
Newbie Spellweaver
Joined
Jun 28, 2008
Messages
72
Reaction score
0
something's wrong when i did this.. it looks like a gun in the game(it is a sword)
what;s wrong with this?
Zitem in both matchserver and system.MRS
<ITEM id="12345"
name="AncientSword"
mesh_name="AncientBruial"
totalpoint="0"
type="melee"
res_sex="a"
res_level="99"
slot="melee"
weapon="katana"
weight="10"
bt_price="0"
delay="80"
damage="50"
range="500"
ctrl_ability="0"
magazine="0"
reloadtime="0"
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="0"
bullet_image_id="0"
magazine_image_id="0"
desc="ancient?" />

Weapon.XML in model.MRS
<AddWeaponElu name="AncientBurial" weapon_motion_type = "1" weapon_type = "1" >
<AddBaseModel name="AncientBurial" filename="model/weapon/katana/AncientBurial.elu" />
</AddWeaponElu>

<AddWeaponElu name="katana01" weapon_motion_type = "1" weapon_type = "1" >
<AddBaseModel name="katana01" filename="model/weapon/katana/katana01.elu" />
</AddWeaponElu>
<AddWeaponElu name="katana02" weapon_motion_type = "1" weapon_type = "1" >
<AddBaseModel name="katana02" filename="model/weapon/katana/katana02.elu" />
</AddWeaponElu> and so on....
 
Junior Spellweaver
Joined
Oct 16, 2008
Messages
121
Reaction score
42
>.> u copied a gun code thats y...ur supposed to copy a sword code and plug in the info
 
Initiate Mage
Joined
Aug 15, 2008
Messages
3
Reaction score
0
Hell additem no ficture
sota808 - [Guide]How To Add Weapons To Server *with Pics* - RaGEZONE Forums

sota808 - [Guide]How To Add Weapons To Server *with Pics* - RaGEZONE Forums

sota808 - [Guide]How To Add Weapons To Server *with Pics* - RaGEZONE Forums
 
Junior Spellweaver
Joined
Sep 12, 2007
Messages
101
Reaction score
0
Don't Double Post -.-
On-Topic: It doesn't show up in my shop...
SHOP.XML :
<!-- Sword -->
<SELL itemid="9000002"/>

<!-- Pistol -->
<SELL itemid="9000000"/>

<!-- Shotgun -->
<SELL itemid="9000001"/>



Zitem.xml<ITEM id="9000000"
name="Gears of War Pistol x2"
iscashitem="false"
mesh_name="gowpistol"
totalpoint="0"
type="range"
res_sex="a"
res_level="32"
slot="range"
weapon="revolverx2"
weight="15"
bt_price="0"
delay="305"
damage="32"
ctrl_ability="74"
magazine="18"
maxbullet="72"
reloadtime="6"
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="1"
bullet_image_id="0"
magazine_image_id="0"
snd_reload="we_revolver_reload"
snd_fire="we_revolver_fire"
snd_dryfire="357magrevolver_dryfire"
desc="A pistol from Gears of War."
effect_id="4" />

<ITEM id="9000001"
name="Gears Of War Shotgun"
mesh_name="gowshotty"
totalpoint="0"
type="range"
iscashitem="false"
res_sex="a"
res_level="50"
slot="range"
weight="10"
bt_price="0"
hp="0"
ap="0"
maxwt="0"
sf="0"
fr="0"
cr="0"
pr="0"
lr="0"
color="#FFFFFFFF"
desc="A shotgun from Gears of War."
weapon="shotgun"
delay="1110"
damage="10"
ctrl_ability="60"
magazine="5"
maxbullet="20"
reloadtime="5"
slug_output="true"
gadget_id="0"
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"
effect_id="7" />




<ITEM id="9000002"
name="Dual Sword "
iscashitem="false"
mesh_name="testdual"
totalpoint="0"
type="melee"
res_sex="a"
res_level="0"
slot="melee"
weapon="katana"
weight="0"
bt_price="0"
delay="320"
damage="25"
range="220"
ctrl_ability="0"
magazine="0"
reloadtime="0"
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="0"
bullet_image_id="0"
magazine_image_id="0"
desc="The new sword smelted together by the Ghost King." />

Weapon.xml

<AddWeaponElu name="testdual" weapon_motion_type = "1" weapon_type = "1" >
<AddBaseModel name="testdual" filename="model/weapon/katana/testdual.elu" />
</AddWeaponElu>
<!-- pistol -->
<AddWeaponElu name="gowpistol" weapon_motion_type = "2" weapon_type = "2" >
<AddBaseModel name="gowpistol" filename="model/weapon/pistol/gowpistol.elu" />
</AddWeaponElu>

<!-- shotgun -->

<AddWeaponElu name="gowshotty" weapon_motion_type = "4" weapon_type = "4" >
<AddBaseModel name="gowshotty" filename="model/weapon/shotgun/gowshotty.elu" />
</AddWeaponElu>




Any ideas?

Thanks. IcEy
 
WowIwasSuperCringeB4
Loyal Member
Joined
Jun 21, 2008
Messages
1,297
Reaction score
226
Woo NICE 10/10 thx for using my decompiler :eek:
 
Junior Spellweaver
Joined
Oct 16, 2008
Messages
121
Reaction score
42
oh lolz my friend gave it to me so i didnt know it was urs XD
 
Junior Spellweaver
Joined
Oct 16, 2008
Messages
121
Reaction score
42
Don't Double Post -.-
On-Topic: It doesn't show up in my shop...
SHOP.XML :
<!-- Sword -->
<SELL itemid="9000002"/>

<!-- Pistol -->
<SELL itemid="9000000"/>

<!-- Shotgun -->
<SELL itemid="9000001"/>



Zitem.xml<ITEM id="9000000"
name="Gears of War Pistol x2"
iscashitem="false"
mesh_name="gowpistol"
totalpoint="0"
type="range"
res_sex="a"
res_level="32"
slot="range"
weapon="revolverx2"
weight="15"
bt_price="0"
delay="305"
damage="32"
ctrl_ability="74"
magazine="18"
maxbullet="72"
reloadtime="6"
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="1"
bullet_image_id="0"
magazine_image_id="0"
snd_reload="we_revolver_reload"
snd_fire="we_revolver_fire"
snd_dryfire="357magrevolver_dryfire"
desc="A pistol from Gears of War."
effect_id="4" />

<ITEM id="9000001"
name="Gears Of War Shotgun"
mesh_name="gowshotty"
totalpoint="0"
type="range"
iscashitem="false"
res_sex="a"
res_level="50"
slot="range"
weight="10"
bt_price="0"
hp="0"
ap="0"
maxwt="0"
sf="0"
fr="0"
cr="0"
pr="0"
lr="0"
color="#FFFFFFFF"
desc="A shotgun from Gears of War."
weapon="shotgun"
delay="1110"
damage="10"
ctrl_ability="60"
magazine="5"
maxbullet="20"
reloadtime="5"
slug_output="true"
gadget_id="0"
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"
effect_id="7" />




<ITEM id="9000002"
name="Dual Sword "
iscashitem="false"
mesh_name="testdual"
totalpoint="0"
type="melee"
res_sex="a"
res_level="0"
slot="melee"
weapon="katana"
weight="0"
bt_price="0"
delay="320"
damage="25"
range="220"
ctrl_ability="0"
magazine="0"
reloadtime="0"
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="0"
bullet_image_id="0"
magazine_image_id="0"
desc="The new sword smelted together by the Ghost King." />

Weapon.xml

<AddWeaponElu name="testdual" weapon_motion_type = "1" weapon_type = "1" >
<AddBaseModel name="testdual" filename="model/weapon/katana/testdual.elu" />
</AddWeaponElu>
<!-- pistol -->
<AddWeaponElu name="gowpistol" weapon_motion_type = "2" weapon_type = "2" >
<AddBaseModel name="gowpistol" filename="model/weapon/pistol/gowpistol.elu" />
</AddWeaponElu>

<!-- shotgun -->

<AddWeaponElu name="gowshotty" weapon_motion_type = "4" weapon_type = "4" >
<AddBaseModel name="gowshotty" filename="model/weapon/shotgun/gowshotty.elu" />
</AddWeaponElu>




Any ideas?

Thanks. IcEy

the only reason y it doesnt show up is because ALL NUMBER CODES ARE NOT VALID
hehehe took me 1 day to figure that out :p
 
Junior Spellweaver
Joined
Oct 16, 2008
Messages
121
Reaction score
42
Hell additem no ficture
sota808 - [Guide]How To Add Weapons To Server *with Pics* - RaGEZONE Forums

sota808 - [Guide]How To Add Weapons To Server *with Pics* - RaGEZONE Forums

sota808 - [Guide]How To Add Weapons To Server *with Pics* - RaGEZONE Forums

you did something wrong within the model.mrs...gotta check the WEAPON.XML to see if the weapon you inserted was in the right directory and in the right folder eg.

Code:
<AddWeaponElu name="[color=red]ELU FILE NAME[/color]" weapon_motion_type = "1" weapon_type = "1" >
                  <AddBaseModel name="[color=red]ELU FILE NAME[/color]" filename="model/weapon/blade/[color=red]ELU FILE NAME[/color].elu" />  <---- make sure that the file name directory is correct
</AddWeaponElu>
 
Junior Spellweaver
Joined
Jul 4, 2008
Messages
175
Reaction score
0
To Suolrock:
At zitem, change your current 'red shotgun' to something like this[ remember to edit the item id name and the mesh_name of it]
Code:
<ITEM id="22246" name="Red Shotgun" mesh_name="Red Shotgun" totalpoint="0" type="range" res_sex="a" res_level="0" slot="range" weapon="shotgun" weight="10" bt_price="0" delay="900" damage="12" ctrl_ability="60" magazine="25" 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" desc="The Legendary Red Shotgun!" snd_reload="we_shotgunpa_reload" snd_fire="we_shotgunpa_fire" snd_dryfire="762arifle_dryfire" maxbullet="50" effect_id="7" />
 
Newbie Spellweaver
Joined
Jan 14, 2009
Messages
13
Reaction score
0
wow, you maked much work of it, nice dude...
 
Joined
Dec 23, 2008
Messages
725
Reaction score
54
Erm.. I put my own dagger in it but I want to edit the WEAPON.XML.
Now my problem:
I open the file, but it's empty.
The file has 0 kb ...

Could you help me? (Send original WEAPON.XML or something?:8:)
 
Newbie Spellweaver
Joined
Aug 25, 2007
Messages
59
Reaction score
0
Here's my problem:
It's as if the weapon I tried to add doesn't even exist!

In zitem.xml:
Code:
<ITEM id="1234567890" name="Kerdex's Shotgun" mesh_name="shotgun11" totalpoint="0" type="range"
		res_sex="a" res_level="60" slot="range" weapon="shotgun" weight="21" bt_price="30000"
		delay="1000" damage="10" ctrl_ability="60" magazine="5" maxbullet="20" 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="WOW LOL IT'S SILVUR"
		effect_id="7" />

In weapon.xml:
Code:
	<AddWeaponElu name="shotgun11" weapon_motion_type = "4" weapon_type = "4" >
		<AddBaseModel name="shotgun11" filename="model/weapon/shotgun/shotgun11.elu" />
	</AddWeaponElu>

In shop.xml:
Code:
<SELL itemid="1234567890" />

All help is much appreciated. Thanks in advance,

Kerdex
 
Banned
Banned
Joined
Jan 13, 2007
Messages
1,898
Reaction score
65
you might wanna add this:
ok whats what:
res_sex="a": what sex can use this item
iscashitem="false":prem or not
totalpoint="0": unknown (to me)
type="melee":type of weapon or clothing
res_level="20": minmal level
slot="melee":where you equip it
damage="21": damage
delay="275":attack speed
ctrl_ability="0":ctrl_ability means how you weapons spreads and recoil the higher the number the accuraty will be beter
magazine="0":how meny clips it can hold
reloadtime="0": how long it takes to reload
slug_output="false":slug_output can be true or false False means no bullets are coming out of the weapon Ture means bullets out of you weapon
So melee = False and ranged = true
gadget_id="0":unknown
hp="0":hp
ap="0":ap
weapon="greatsword":where it will show up(buying group)
bullet_image_id="0":unknown or dosent work(tested not much tho)
image_id="0":unknown
weight="21":weight
bt_price="12000": how much it costs
maxwt="0": +weight(gives more)
sf="0":bonus(unknown to me)
fr="0":Fire
cr="0":Cold/Ice
pr="0":poision restance
lr="0":Lighting
color="#FFFFFFFF":unknown
magazine_image_id="0":unknown or dosent work(tested not much tho)
desc="":decsrpition(cant spell sorry)

10/10 for tut
 
Status
Not open for further replies.
Back
Top