Register for your free account! | Forgot your password?

Go Back   elitepvpers Popular Games Metin2 Metin2 Private Server
You last visited: Today at 18:52

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



need query for database

Discussion on need query for database within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2010
Posts: 827
Received Thanks: 153
need query for database

I need query to update item@player

I want to change one vnum of all the items in player@table to another..

example: change vnum 19 to 16
RumorUS is offline  
Old   #2
 
.Delta's Avatar
 
elite*gold: 26
Join Date: Mar 2010
Posts: 3,765
Received Thanks: 2,661
UPDATE player.item_proto SET vnum = 16 WHERE vnum = 19;

don't know if that's what you want.

PS: Backup!
.Delta is offline  
Thanks
1 User
Old   #3
 
elite*gold: 0
Join Date: Jul 2010
Posts: 827
Received Thanks: 153
I think it's correct query but I would need it in "item" table. I want to change the vnum of the armors 11979-11982 but I have players already who own the armors.

I think this would be what I was looking for:

UPDATE player.item SET vnum = 11919 WHERE vnum = 11979;
UPDATE player.item SET vnum = 11929 WHERE vnum = 11980;
UPDATE player.item SET vnum = 11939 WHERE vnum = 11981;
UPDATE player.item SET vnum = 11949 WHERE vnum = 11982;


edit: I got it thx
RumorUS is offline  
Reply


Similar Threads Similar Threads
Query
08/03/2011 - Metin2 Private Server - 9 Replies
Hallo, Ich habe mal eine Query von der Tabelle Player gemacht. Aber ich kann die nicht einfügen. Das heißt wen ich Run drücke und dannach abspeicher steht in der Tabelle immer noch nichts.
[Suche]Query für "Alteklinge, Reichsklinge" &' Stichdolche NUR QUERY!
08/18/2010 - Metin2 Private Server - 1 Replies
Ich weiß ich werd nervig aber ich suche die Query's für Alteklinge, Reichsklinge &' Strichdolche Why? Naya, weil ich in der DB i-wie nur Drachenmaulglocke hab ... not more -.- Auf jeden Fall Icon's etc. etc. etc. hab ich ich brauche nur die Query's
[Help] Database query
06/26/2009 - CO2 Private Server - 8 Replies
So, I'm currently trying to add the +12 npc to my TQ binaries server, and I keep getting an issue with the query when I try to run it. INSERT INTO cq_npc VALUES(0453, 0, 0, "MoonGoddess", 0002, 4053, -1, 5000, 0047, 0074, 1400, 0,0,0,0,0,0,0, 0,0,0,0, "", 0, 00, 00, 0000, 01, 0000 ); 1136 - Column count doesn't match value count at row 1 that is the error I am receiving so if anyone knows how to fix it please respond. Also I'm using navicat 8.0.20 lite to edit it.



All times are GMT +2. The time now is 18:53.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.