Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server
You last visited: Today at 08:56

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

Advertisement



how to make boni of item with quest-mysql extension?

Discussion on how to make boni of item with quest-mysql extension? within the Metin2 Private Server forum part of the Metin2 category.

Closed Thread
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2011
Posts: 395
Received Thanks: 29
how to make boni of item with quest-mysql extension?

how to make boni of item with quest-mysql extension?

and is there any share quest or example?

so example i want make this item as with boni and stones with quest:



so i search for how to?
Laben is offline  
Old 12/07/2013, 13:33   #2
 
elite*gold: 39
Join Date: Jun 2009
Posts: 500
Received Thanks: 212
You can't do this with a mysql extension. You need the quest function "item.set_attr" (only exists in 34k and is named "item.set_value").
Example for 34k game:
Code:
item.set_value(0, apply.MAX_HP, 1000)
-> set bonus on index 0 (1. attr) to max_hp with value 1000.

Kind Regards
.HC'Destrox is offline  
Thanks
1 User
Old 12/07/2013, 13:41   #3
 
elite*gold: 0
Join Date: Nov 2011
Posts: 395
Received Thanks: 29
Quote:
Originally Posted by .HC'Destrox View Post
You can't do this with a mysql extension. You need the quest function "item.set_attr" (only exists in 34k and is named "item.set_value").
Example for 34k game:
Code:
item.set_value(0, apply.MAX_HP, 1000)
-> set bonus on index 0 (1. attr) to max_hp with value 1000.

Kind Regards
sure me too i thought thats so item.set_attr but is there any share/public any quests or made quests for thats

because this will be occupation for me

and thanks for reply informations
Laben is offline  
Old 12/07/2013, 14:52   #4
 
elite*gold: 39
Join Date: Jun 2009
Posts: 500
Received Thanks: 212
I can give you an simple example quest:
Code:
quest example_quest begin
	state start begin
		when 11001.chat."Test" begin
			say("Which item slot you want to change (1-90)?")
			local slot_idx = tonumber(input())
			if item.select_cell(slot_idx-1) then
				say("Which attribute index you want to change (1-7)?")
				local attr_index = tonumber(input())
				if attr_index >= 1 and attr_index <= 7 then
					say("Which attribute type you want to set?")
					local attr_type = tonumber(input())
					say("Which attribute value you want to set?")
					local attr_value = tonumber(input())
					item.set_value(attr_index-1, attr_type, attr_value)
					say("The attributes changed.")
				else
					say("Wrong attribute index: "..attr_index)
				end
			else
				say("Could not select slot by index "..slot_idx.."!")
			end
		end
	end
end
Kind Regards
.HC'Destrox is offline  
Thanks
1 User
Old 12/07/2013, 15:09   #5
 
elite*gold: 0
Join Date: Nov 2011
Posts: 395
Received Thanks: 29
Quote:
Originally Posted by .HC'Destrox View Post
I can give you an simple example quest:
Code:
quest example_quest begin
	state start begin
		when 11001.chat."Test" begin
			say("Which item slot you want to change (1-90)?")
			local slot_idx = tonumber(input())
			if item.select_cell(slot_idx-1) then
				say("Which attribute index you want to change (1-7)?")
				local attr_index = tonumber(input())
				if attr_index >= 1 and attr_index <= 7 then
					say("Which attribute type you want to set?")
					local attr_type = tonumber(input())
					say("Which attribute value you want to set?")
					local attr_value = tonumber(input())
					item.set_value(attr_index-1, attr_type, attr_value)
					say("The attributes changed.")
				else
					say("Wrong attribute index: "..attr_index)
				end
			else
				say("Could not select slot by index "..slot_idx.."!")
			end
		end
	end
end
Kind Regards
very well thanks for labor

but my thought is some different maybe

so I thought to example we can do make boni of item with php scripts its right? yes and that item come to in invertory or player store.i want do it with quests i think its must be posibble with quest or mysql extension quests?
Laben is offline  
Thanks
1 User
Old 12/07/2013, 15:12   #6
 
elite*gold: 39
Join Date: Jun 2009
Posts: 500
Received Thanks: 212
I'm not sure i really got it, but this is a quest that changes the attribute of a item in your inventory if you talk to the NPC with vnum 11001 - nothing with php

Kind Regards
.HC'Destrox is offline  
Thanks
1 User
Old 12/07/2013, 15:34   #7
 
elite*gold: 0
Join Date: Nov 2011
Posts: 395
Received Thanks: 29
Quote:
Originally Posted by .HC'Destrox View Post
I'm not sure i really got it, but this is a quest that changes the attribute of a item in your inventory if you talk to the NPC with vnum 11001 - nothing with php

Kind Regards
then i hope one people will be explain to thats

anybody has any idea for thats?
Laben is offline  
Old 12/07/2013, 16:21   #8
 
elite*gold: 11
Join Date: Nov 2010
Posts: 1,709
Received Thanks: 3,828
You can do it with PHP but only when the item is in safebox. If it's on his inventory you can't change it on the database.
.Shōgun is offline  
Thanks
1 User
Old 12/07/2013, 21:33   #9
 
elite*gold: 0
Join Date: Nov 2011
Posts: 395
Received Thanks: 29
Quote:
Originally Posted by .Shōgun View Post
You can do it with PHP but only when the item is in safebox. If it's on his inventory you can't change it on the database.
ah sadly sad event then but i will be still in the quest
Laben is offline  
Old 12/22/2013, 00:10   #10
 
elite*gold: 0
Join Date: Nov 2011
Posts: 395
Received Thanks: 29
friends what is bonus add "command" like "71051" and "71052" jobs commands its need for me for quest boni

so i want add boni as "71051" and "71052" but with quest

push

push
Laben is offline  
Closed Thread


Similar Threads Similar Threads
[REL]Metin2 Quest database extension
09/05/2013 - Metin2 PServer Guides & Strategies - 79 Replies
Hello, Deutsche Version: die bereits veröffentlichen Schnittstellen, um Datenbankabfragen in einer Quest auszuführen, kann ich nicht empfehlen. Bei jeder Abfrage wird ein neuer Prozess gestartet, der Prozess stellt jedes mal eine neue Verbindung zur Datenbank her und das ist nicht wirklich performant. Gibt es eine bessere Lösung?
Boni via Quest von Item zu Item übertragen
07/23/2013 - Metin2 Private Server - 4 Replies
Hey :) Ich suche eine Möglichkeit, via Quest einen Bonus oder auch mehrere Boni von einem Item auf ein anderes zu übertragen. Beispiel: Ich droppe ein Schwert +1 mit halbmenschen +8%. Ich geh zu einem NPC, der mir im Tausch gegen das Schwert +1 ein Sichelschwert +1 gibt. Mach ich es über pc.remove_item und pc.give_item2 krieg ich ja nur ein neues Sichelschwert (ohne oder mit anderen Boni). Ich hätte aber gern, dass die Boni vom Schwert auf das Sichelschwert übertragen werden. Kennt...
Metin2 Ring Quest [Wie füge ich ein Boni in einer Quest ein?]
04/13/2012 - Metin2 Private Server - 1 Replies
Habe die aktuellen Ringe von Metin2 DE in meinen Server eingefügt mit einer Quest. Aber jetzt ist die Frage wie man für jeden Ring ein Bonis hinzufügen kann?
make a custom "secret item for a quest"
02/22/2012 - Shaiya Private Server - 8 Replies
i want ask if someone know how to make a custom item quest... when click it.. pop a windows quest.. so far i donta found nothing.. maybe questchain?



All times are GMT +1. The time now is 08:57.


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.