Register for your free account! | Forgot your password?

You last visited: Today at 11:41

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

Advertisement



[Dif]Change attribute by quest

Discussion on [Dif]Change attribute by quest within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.

Reply
 
Old   #1
 
Endymion_'s Avatar
 
elite*gold: 0
Join Date: Aug 2011
Posts: 46
Received Thanks: 139
[Dif]Change attribute by quest

This diff will allow you to change item's attributes using quest.Function used is item.set_scoket. I know, about this function is often used, but i don't know how to do it in another function.
(I don't know how change arguments.)

Code:
endymion
001482CF: 4D 9D
001482D0: 8F C4
Code:
quest bony begin
	state start begin
		when 20011.take with item.vnum() != 0 begin
			item.set_socket(0,0)
			chat("Zmiana bonusów zakończona pomyślnie!")
		end
	end
end
Greetings, Endymion.
Endymion_ is offline  
Thanks
3 Users
Old 11/21/2012, 16:46   #2
 
ebert.tonna's Avatar
 
elite*gold: 50
Join Date: Nov 2009
Posts: 865
Received Thanks: 1,229
Quote:
O7J7q : text
Umieszczono: 2012-11-21 16:28:34
Format: Czysty text, HTML, HTML źródło, Plik svg, Plik svg źródło, RTF, LaTeX
Kontrola: usuń
W każdym formacie kodowanie wyjściowe to UTF-8

1
2
3



endymion
001482CF: 4D 9D
001482D0: 8F C4
Das steht in dem Link
ebert.tonna is offline  
Old 11/21/2012, 16:47   #3
 
Endymion_'s Avatar
 
elite*gold: 0
Join Date: Aug 2011
Posts: 46
Received Thanks: 139
Quote:
Originally Posted by ebert.tonna View Post
Das steht in dem Link
:cc
Endymion_ is offline  
Old 11/21/2012, 16:52   #4
 
Mi4uric3's Avatar
 
elite*gold: 405
Join Date: Dec 2007
Posts: 6,615
Received Thanks: 6,356
Quote:
Originally Posted by ebert.tonna View Post
Das steht in dem Link
Wo ist der Sinn das zu posten?
Das kriegt wohl jeder selbst raus.
Mi4uric3 is offline  
Old 11/21/2012, 17:27   #5
 
xCPx's Avatar
 
elite*gold: 20
Join Date: Jun 2011
Posts: 2,897
Received Thanks: 3,336
Hmm i will try to add a 3. command.
But isn´t that a random change oO?

Or can you define what values you want to use?
xCPx is offline  
Old 11/21/2012, 17:34   #6
 
Endymion_'s Avatar
 
elite*gold: 0
Join Date: Aug 2011
Posts: 46
Received Thanks: 139
Quote:
Originally Posted by xCPx View Post
Hmm i will try to add a 3. command.
But isn´t that a random change oO?

Or can you define what values you want to use?
No, becouse it's use ChangeAttribute and it give random attribute. If you want define what values you want to use i think you must use first GetAttributeCount, and second PutAttribute. :P
Endymion_ is offline  
Old 11/21/2012, 17:41   #7
 
xCPx's Avatar
 
elite*gold: 20
Join Date: Jun 2011
Posts: 2,897
Received Thanks: 3,336
Quote:
Originally Posted by Endymion_ View Post
No, becouse it's use ChangeAttribute and it give random attribute. If you want define what values you want to use i think you must use first GetAttributeCount, and second PutAttribute. :P
Hmm you know some unused functions in the gamecore?

if yes pls add me skype: mav2904
i will try to make it a bit better, not replacing the old function, just add a new "if"


#Edit: somebody told me pc.give_exp is buggy oO so i will use this oO
xCPx is offline  
Old 11/21/2012, 19:40   #8
 
elite*gold: 200
Join Date: Oct 2012
Posts: 318
Received Thanks: 594
Ich habe eine Funktion für das Auslesen der Boni und eine für das setzen der Boni. Ist viel einfacher.
Prσfizσckєr94 is offline  
Old 11/21/2012, 19:53   #9

 
IgorGlock's Avatar
 
elite*gold: 1862
Join Date: Jan 2009
Posts: 3,725
Received Thanks: 7,671
Code:
001482CF: 4D 9D
001482D0: 8F C4

quest bony begin
	state start begin
		when 20011.take with item.vnum() != 0 begin
			item.set_socket(0,0)
			chat("Zmiana bonusów zakończona pomyślnie!")
		end
	end
end
Die 2 URLs nicht aufrufen. Sonst wird er noch paar Pfennige bekommen.
IgorGlock is offline  
Old 11/21/2012, 19:55   #10
 
elite*gold: 200
Join Date: Oct 2012
Posts: 318
Received Thanks: 594
Ist eh **** was er da gemacht hat.
Prσfizσckєr94 is offline  
Old 11/21/2012, 20:03   #11
 
.Hiяo's Avatar
 
elite*gold: 0
Join Date: Apr 2010
Posts: 1,712
Received Thanks: 1,075
Quote:
Originally Posted by IgorGlock View Post
Code:
001482CF: 4D 9D
001482D0: 8F C4

quest bony begin
	state start begin
		when 20011.take with item.vnum() != 0 begin
			item.set_socket(0,0)
			chat("Zmiana bonusów zakończona pomyślnie!")
		end
	end
end
Die 2 URLs nicht aufrufen. Sonst wird er noch paar Pfennige bekommen.
Wow wie viel du den Leuten sogar gönnst Igor
.Hiяo is offline  
Old 11/21/2012, 20:08   #12
 
wzy26022's Avatar
 
elite*gold: 0
Join Date: Feb 2010
Posts: 64
Received Thanks: 14
Similar, 71084 convert random attributes
wzy26022 is offline  
Old 11/21/2012, 21:11   #13
 
xCPx's Avatar
 
elite*gold: 20
Join Date: Jun 2011
Posts: 2,897
Received Thanks: 3,336
Also ich find die Idee genial xD
An sich zwar dumm gelöst, aber wenn man bissl mit IDA umgehen kann sehr brauchbar ^^

Hab mir auf der Grundidee davon jetzt mal nen Serverside switchbotfix gebaut
Suche dafür 1 Tester.
Wer will adde mich skype: mav2904
xCPx is offline  
Old 11/21/2012, 21:23   #14
 
lolor2's Avatar
 
elite*gold: 135
Join Date: Oct 2007
Posts: 1,088
Received Thanks: 210
hab dich mal geaddet großer
lolor2 is offline  
Old 11/21/2012, 21:37   #15
 
elite*gold: 0
Join Date: Aug 2012
Posts: 974
Received Thanks: 89
ok und was bringt item.set_socket(0,0)?
thespeedyy is offline  
Reply


Similar Threads Similar Threads
Quest-Attribute gesucht!
07/13/2012 - Metin2 Private Server - 1 Replies
Hallo liebe Community, ich bitte euch heute mal wieder um Hilfe. Ich such derzeit bestimmte Questattribute, die in folgendem Thread nicht enthalten sind: Attribut Belohnungen Die Attribute, die ich suche: •Zaubergeschwindigkeit •INT •Mehr EXP
Metin2 Attribute in einer Quest einfügen Problem
05/05/2012 - Metin2 Private Server - 2 Replies
Ich habe bei den Halbmondring eine Quest dazu gemacht. Allese ging auch perfekt, aber wenn ich das Item anziehe kriege ich ja den Bonus (30% gegen Monster usw.). Dann ziehe ich wieder den Ring aus und nochmal wieder an und kriege nochmal den Bonus. So habe ich jetzt insgesamt 40% gegen Monster usw. Das ganze kann man jetzt immer weiter machen. Ich wollte jetzt Fragen wie man das beheben kann? Der Ring sowie der Bonus darf nur 7 Tage dauern. quest buffs begin state start begin when...
[Help]Change Sub attribute and ini attribute to Main attribute
11/28/2009 - EO PServer Hosting - 0 Replies
I need some help to chage compose Sub attribute and ini attribute to main attribute.. can someone help me?? http://img137.imageshack.us/img137/3025/51830781. jpg
ecsro and fembria quest make vip change quest!!
02/24/2009 - SRO Private Server - 8 Replies
ecsro and fembria quest make vip ecsro change quest *edited*



All times are GMT +2. The time now is 11:41.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.