Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server
You last visited: Today at 14:25

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

Advertisement



mysql_query and item_proto

Discussion on mysql_query and item_proto within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
Chikyou's Avatar
 
elite*gold: 0
Join Date: Oct 2012
Posts: 114
Received Thanks: 72
mysql_query and item_proto

Hi !
I was making a quest with mysql_query, to conect to refine_vnum in item_proto.

Code:
quest melhorar begin
 state start begin
  when 20091.take with item.vnum() == 169 begin
   local a = select("Sírius", "Barão", "Sair")
   if a == 1 then
    mysql_query("UPDATE player.item_proto SET refine_item='270' WHERE vnum='169'")
   elseif a == 2 then
    mysql_query("UPDATE player.item_proto SET refine_item='260' WHERE vnum='169'")
   end
  end
 end
end
Here is the quest.
But, to save the changes, i have to do /reload p ingame, and, i want that it save the changes without /reload p.
I don't know if it's possible to do it. But, maybe i receive an answer for it.

Sorry for my bad english.
Thank you.

Best Regrards.
Chikyou is offline  
Old 02/06/2013, 00:34   #2
 
Chikyou's Avatar
 
elite*gold: 0
Join Date: Oct 2012
Posts: 114
Received Thanks: 72
bump
Chikyou is offline  
Old 02/06/2013, 00:46   #3
 
elite*gold: 0
Join Date: Mar 2012
Posts: 765
Received Thanks: 535
refine_item doesn't exist
I think you mean refined_vnum
©by Noa is offline  
Old 02/06/2013, 01:09   #4
 
Chikyou's Avatar
 
elite*gold: 0
Join Date: Oct 2012
Posts: 114
Received Thanks: 72
Quote:
Originally Posted by ©by Noa View Post
refine_item doesn't exist
I think you mean refined_vnum
Yes i know, i just didn't remember the correct name xD

Btw, you know how i should do that? Or anyone else?
Chikyou is offline  
Old 02/06/2013, 01:39   #5
 
elite*gold: 0
Join Date: Mar 2012
Posts: 765
Received Thanks: 535
I dont know what you mean or what you like do.
Change refined_vnum some item with other one or refine it 100%?
©by Noa is offline  
Old 02/06/2013, 14:52   #6
 
Chikyou's Avatar
 
elite*gold: 0
Join Date: Oct 2012
Posts: 114
Received Thanks: 72
I want to make 2 refines in one weapon.

Exemple:

Battle Sword (169) -> Sirius sword (279) or Baron sword (269).

Exemple with quest:

Code:
quest test begin
state start begin
when 20091.take with item.vnum() == 169 begin
say("What weapon you want?")
local a = select ("Sirius", "Baron")
I don't know if you understand me, but it's something like that.
Chikyou is offline  
Old 02/06/2013, 14:59   #7
 
elite*gold: 0
Join Date: Mar 2012
Posts: 765
Received Thanks: 535
PHP Code:
when 20091.take with item.vnum() == 169 begin
say
("What weapon you want?")
local a select ("Sirius""Baron")
if 
a==1 then pc.give_item2(279
elseif 
a==2 then pc.give_item2(269
end
end 
©by Noa is offline  
Old 02/16/2013, 17:04   #8
 
Chikyou's Avatar
 
elite*gold: 0
Join Date: Oct 2012
Posts: 114
Received Thanks: 72
For example the weapon has placed bonus and the player wants to turn it into another weapon, with the way you said the new weapon would have no bonus, you know?
And I wanted that the new weapon had the bonus that had previous weapon.

Sorry for bad englisht ( Translator english <.< )
Chikyou is offline  
Old 02/19/2013, 15:01   #9
 
Chikyou's Avatar
 
elite*gold: 0
Join Date: Oct 2012
Posts: 114
Received Thanks: 72
bump
Chikyou is offline  
Old 02/26/2013, 00:01   #10
 
Chikyou's Avatar
 
elite*gold: 0
Join Date: Oct 2012
Posts: 114
Received Thanks: 72
bump
Chikyou is offline  
Old 02/26/2013, 00:41   #11
 
Mashkin's Avatar
 
elite*gold: 44
Join Date: May 2010
Posts: 2,053
Received Thanks: 1,747
Updating prototype information (item_proto, mob_proto etc.) in the game core requires the reload p command.
I'm not sure whether GM commands can be called from quests. There is the method cmdchat(), but I guess it only works for sending signals to the client.

There is no explicit reload() method in the quest scope, though.
Mashkin is offline  
Old 02/26/2013, 12:31   #12
 
elite*gold: 120
Join Date: Mar 2009
Posts: 3,409
Received Thanks: 1,738
It's not possible to save it without reload or shutdown.
But you shouldnt use reload, because it could crash some tables.
.Remix is offline  
Reply


Similar Threads Similar Threads
Mysql_Query
01/27/2013 - Metin2 Private Server - 1 Replies
Hi, ich suche jemanden der mir mysql_query's schreiben kann. Ich würde auch geldlich entlohnen. Skype: samy02091997 MFG DarkNessWorld2
mysql_query hilfe ...
12/30/2012 - Metin2 Private Server - 1 Replies
Ich hab ein kleines Problem und zwar möchte Ich meine Dungeon GUI auf MySQL basierend machen allerdings möchte der Befehl nicht so ganz wie ich das möchte und das pisst mich schon so ein bisschen an... vielleicht könnt ihr mir weiterhelfen, der reload klappt problemlos die Query wird aber scheinbar nicht ausgeführt, bzw in der Datenbank wird kein Update ausgeführt. Die Query an sich funktioniert einwandfrei habe es unter MySQL Query in Navicat oft genug probiert, Questsehend schlägt...
Syntax Error bei einem Mysql_Query
12/15/2011 - Web Development - 1 Replies
hat sich erledtigt
[Frage]item_proto server in item_proto client umwandeln
10/03/2010 - Metin2 Private Server - 7 Replies
Hallo, Wie schon oben erwähnt such ich einen converter oder sonst irgend etwas, mit dem ich meine serverside item_proto und eine client item_proto oder item_proto_dump(.xml) umwandeln kann. Hab schon gesucht aber nichts gefunden. Ich hoffe auf Hilfe Colossus93



All times are GMT +1. The time now is 14:25.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

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