Welcome!

Join our community of MMORPG enthusiasts and private server developers! By registering, you'll gain access to in-depth discussions on source codes, binaries, and the latest developments in MMORPG server files. Collaborate with like-minded individuals, explore tutorials, and share insights on building and optimizing private servers. Join us today and unlock the full potential of MMORPG server development!

Join Today!

Adding items to dbo.character

Junior Spellweaver
Joined
Jun 7, 2009
Messages
195
Reaction score
24
Location
Bedroom
I tried to look up a way to put items into the dbo.character but no luck.

Can someone please tell me how I can give GM weapons via dbo.character? I know how to edit primaryitemid/secondaryitemid with the item id, but, but I dont know what to fill in for primary_slot or secondary_slot.
 
Last edited:
Re: modding dbo.character

Why? dbo.CharacterItem works just fine.
If you want to do it that way, though, you will need to edit a few places in MatchServer and probably the Client.
 
Upvote 0
Re: modding dbo.character

Why? dbo.CharacterItem works just fine.
If you want to do it that way, though, you will need to edit a few places in MatchServer and probably the Client.

I don't think you understand what I meant. I know it works fine, I'm just trying to edit a character's current primary weapon with another, and that requires filling in boxes for primary_slot, and primaryitemid.

I do not know what to fill in for primary_slot. I'm pretty sure I can do this all in dbo.character.
 
Last edited:
Upvote 0
Log into SQL, Click New Query, copy this:
UPDATE Character SET primary_itemid='ITEMID' WHERE Name=NAME

Just edit the name that marked, and itemid.
Then right click on master, choose GunzDB then hit Excute and done.
 
Upvote 0
Log into SQL, Click New Query, copy this:
UPDATE Character SET primary_itemid='ITEMID' WHERE Name=NAME

Just edit the name that marked, and itemid.
Then right click on master, choose GunzDB then hit Excute and done.

Isnt that just replacing the primary_item id of the character?
 
Last edited:
Upvote 0
Log into SQL, Click New Query, copy this:
UPDATE Character SET primary_itemid='ITEMID' WHERE Name=NAME

Just edit the name that marked, and itemid.
Then right click on master, choose GunzDB then hit Excute and done.

Code:
UPDATE Character SET primary_itemid='4001' WHERE Name=Admin
Tried this, came up with
Code:
Invalid column name 'Admin'.
 
Upvote 0
Nope, you don't need to save it. After it's completed, you can just close everything w/o saving.


I logged in after executing: (no errors after adding the quotes around admin)

Code:
UPDATE Character SET primary_itemid='4001' WHERE Name='Admin'

and my primary weapon is still the same as before I executed the query.

I don't need to restart the server do I?
 
Last edited:
Upvote 0
Back