Woo NICE 10/10 thx for using my decompiler :o
This is a discussion on [Guide]How To Add Weapons To Server *with Pics* within the GunZ Tutorials forums, part of the Gunz Online category; Don't Double Post -.- On-Topic: It doesn't show up in my shop... SHOP.XML : <!-- Sword --> <SELL itemid="9000002"/> <!-- ...
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
very good tutorial, Clean and very good. Many People Asked for This (Begginers xD) God Job ;D
hello :D
---------------------------------------------------------
oh lolz my friend gave it to me so i didnt know it was urs XD
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="ELU FILE NAME" weapon_motion_type = "1" weapon_type = "1" > <AddBaseModel name="ELU FILE NAME" filename="model/weapon/blade/ELU FILE NAME.elu" /> <---- make sure that the file name directory is correct </AddWeaponElu>
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" />
iTeachDiee
Nice guide.
I'll be adding weapons.
Started GFX 12/14/08
Latest:
Spoiler:
wow, you maked much work of it, nice dude...
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?)
Here's my problem:
It's as if the weapon I tried to add doesn't even exist!
In zitem.xml:
In weapon.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 shop.xml:Code:<AddWeaponElu name="shotgun11" weapon_motion_type = "4" weapon_type = "4" > <AddBaseModel name="shotgun11" filename="model/weapon/shotgun/shotgun11.elu" /> </AddWeaponElu>
All help is much appreciated. Thanks in advance,Code:<SELL itemid="1234567890" />
Kerdex
/bump
yea thx man
Thank you i needed this =d
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