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!

[ITEM] PKM Ammo Box

Junior Spellweaver
Joined
Jan 29, 2011
Messages
170
Reaction score
48
Since i didn't share anything here .
Here the "Pkm ammo box" (because there's no ammo for the pkm atm).

You have to change the weapon d4 (from Itemdb) and FPSAttach4 (from dbo.items_weapon) of the PKM to the ID of the ammobox

PKM Ammo Box :
dbo.Items_Attachments
Code:
INSERT [dbo].[Items_Attachments] ([ItemID], [FNAME], [Type], [Name], [Description], [MuzzleParticle], [FireSound], [Damage], [Range], [Firerate], [Recoil], [Spread], [Clipsize], [ScopeMag], [ScopeType], [AnimPrefix], [SpecID], [Category], [Price1], [Price7], [Price30], [PriceP], [GPrice1], [GPrice7], [GPrice30], [GPriceP], [IsNew], [LevelRequired], [Weight]) VALUES (400158, N'ATTM_Mag_PKM_01', 4, N'PKM Ammo Box', N'Fix by CCleanerZ', N'', N'', 0, 0, 0, 0, 0, 120, 0, N'', N'', 0, 19, 0, 0, 0, 0, 11, 77, 3030, 15000, 0, 0, 0)

ItemsDB.xml
Code:
<Attachment itemID="400158" category="19" type="4" SpecID="0" Weight="1000">
			<Model file="Data/ObjectsDepot/Weapons/ATTM_Mag_PKM_01.sco" MuzzleParticle="" FireSound="" ScopeAnim="" />
			<Store name="PKM Ammo Box" icon="$Data/Weapons/StoreIcons/ATTM_Mag_PKM_01.dds" desc="Fix by CCleanerZ" LevelRequired="0" />
			<Upgrade damage="0" range="0" firerate="0" recoil="0" spread="0" clipsize="120" ScopeMag="0" ScopeType="" />
		</Attachment>

english.lang
Code:
400158_name=PKM Ammo Box
400158_desc=Box of ammo for the PKM

Don't forget to check IDs and change the weight/price.
 
Last edited:
Newbie Spellweaver
Joined
Apr 15, 2013
Messages
21
Reaction score
1
thanks run good but PKM dropped have no ammo :(
 
Last edited:
Newbie Spellweaver
Joined
Sep 13, 2007
Messages
55
Reaction score
1
Could someone help me?

Cannot insert explicit value for identity column in table 'Items_Attachments' when IDENTITY_INSERT is set to OFF.

How do I fix it? I want to unlock

Screen_30032013_013650 - [ITEM] PKM Ammo Box - RaGEZONE Forums
 

Attachments

You must be registered for see attachments list
Junior Spellweaver
Joined
Jan 29, 2011
Messages
170
Reaction score
48
@Skyline90x : Did you put the id of the pkm ammo box in d4 (in itemdb) and in FpsAttach4 (dbo.items_weapons) ?
You don't if your Pkm don't have ammo when dropped.(Or it's a problem with your server not the item , this was tested on 4 Differents server it work fine.)

@bielz : You have to put a price for GC and Dollar.
 
Last edited:
Newbie Spellweaver
Joined
Sep 13, 2007
Messages
55
Reaction score
1
Where else have this? In the database I can not find: (


Could I get your table to put in my?
 
Junior Spellweaver
Joined
Jan 29, 2011
Messages
170
Reaction score
48
Where else have this? In the database I can not find: (


Could I get your table to put in my?

No.
My database have nothing do to with any of the one you could found on this forum,you couldn't make it work.
Try to search on the forum.
 
Junior Spellweaver
Joined
Jan 29, 2011
Messages
170
Reaction score
48
Hey bro I'm using this in the Community Edition. I'd skype you but your offline.
I'll throw credits for it and I left your Fixed by ccleanerz in the database :D
Cheers

If you want.
You can change the fix by ccleanerz too.
 
Harro
Joined
Mar 29, 2013
Messages
754
Reaction score
284
Shouldn't this be in tutorials?, kinda odd to see it here.
 
Junior Spellweaver
Joined
Jan 29, 2011
Messages
170
Reaction score
48
At first it wasn't a tutorial at all but some people didn't understand anything.
And it's for sharing the item so not it's not a tutorial.
 
Custom Title Activated
Loyal Member
Joined
May 18, 2006
Messages
1,425
Reaction score
119
You have to change the weapon d4 (from Itemdb) and ...
- open itemsDB.xml
- find itemID="101060" >> find next d4="0"
- change 0 to 400158


FPSAttach4 (from dbo.items_weapon) of the PKM to the ID of the ammobox

Code:
use [warz]
go

update [WarZ].[dbo].[Items_Weapons]
set FPSAttach4 = 400158
where FNAME like '%PKM%'
go


thank all to ccleanerz
 
Last edited:
Back
Top