Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server
You last visited: Today at 22:51

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

Advertisement



Socket erhöhen statt ersetzen ?

Discussion on Socket erhöhen statt ersetzen ? within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
CoTzRaiZ-PaiNx's Avatar
 
elite*gold: 30
Join Date: Oct 2012
Posts: 1,388
Received Thanks: 243
Socket erhöhen statt ersetzen ?

Hi,
Mit dem Questcommand item.set_socket(2,604800) setze ich den socket2 eines Items's auf 604800. Ich will ihn aber um 604800 erhöhen, nicht darauf setzen. Wie stell ich das an ?
CoTzRaiZ-PaiNx is offline  
Old 10/08/2013, 16:14   #2
 
.Inya's Avatar
 
elite*gold: 50
Join Date: Mar 2013
Posts: 2,401
Received Thanks: 1,613
Gibts nen item.get_socket? Wenn ja:

item.set_socket(2, 604800+item.get_socket(2))
.Inya is offline  
Thanks
1 User
Old 10/08/2013, 16:19   #3
 
CoTzRaiZ-PaiNx's Avatar
 
elite*gold: 30
Join Date: Oct 2012
Posts: 1,388
Received Thanks: 243
Ja, wenn dann: item.set_socket(2, item.get_socket(2) +604800). Sonst wird der Socket erst gesetzt und dann nochmal draufgerechnet. Geht Danke
CoTzRaiZ-PaiNx is offline  
Old 10/08/2013, 16:26   #4
 
ebert.tonna's Avatar
 
elite*gold: 50
Join Date: Nov 2009
Posts: 865
Received Thanks: 1,228
Darf ich mal ganz blöde fragen für was das ist?
ebert.tonna is offline  
Old 10/08/2013, 17:01   #5
 
CoTzRaiZ-PaiNx's Avatar
 
elite*gold: 30
Join Date: Oct 2012
Posts: 1,388
Received Thanks: 243
Quote:
Originally Posted by ebert.tonna View Post
Darf ich mal ganz blöde fragen für was das ist?
Göheim
CoTzRaiZ-PaiNx is offline  
Old 10/08/2013, 20:25   #6
 
elite*gold: 20
Join Date: Aug 2012
Posts: 714
Received Thanks: 1,168
Quote:
Originally Posted by (_8(|) View Post
Ja, wenn dann: item.set_socket(2, item.get_socket(2) +604800). Sonst wird der Socket erst gesetzt und dann nochmal draufgerechnet. Geht Danke
Momentmal bin ich blind oder hast du noch was anderes geändert?
So hast du lediglich die Reihenfolge der addition geändert und die ist bekanntlich ja egal.


Gruß,
Chuck
'ChuckNorris is offline  
Thanks
1 User
Old 10/08/2013, 20:30   #7
 
CoTzRaiZ-PaiNx's Avatar
 
elite*gold: 30
Join Date: Oct 2012
Posts: 1,388
Received Thanks: 243
item.set_socket 604800 dann wird socket 2 ausgelesen, in dem Fall 604800. Also 604800+604800. Ich will aber das alte Socket2 und dann 604800 addieren.
CoTzRaiZ-PaiNx is offline  
Old 10/08/2013, 20:33   #8
 
.Inya's Avatar
 
elite*gold: 50
Join Date: Mar 2013
Posts: 2,401
Received Thanks: 1,613
Quote:
Originally Posted by (_8(|) View Post
item.set_socket 604800 dann wird socket 2 ausgelesen, in dem Fall 604800. Also 604800+604800. Ich will aber das alte Socket2 und dann 604800 addieren.
Nein xD

Das ist item.set_socket(2, 604800+item.get_socket(2)) dann wird erst der alte wert aus item.get_socket(2) gelesen und dann der neue reingeschrieben. Die rechnung innen drin wird ausgeführt bevor iwas in set_socket reingeschrieben wird
.Inya is offline  
Thanks
1 User
Old 10/08/2013, 20:35   #9
 
CoTzRaiZ-PaiNx's Avatar
 
elite*gold: 30
Join Date: Oct 2012
Posts: 1,388
Received Thanks: 243
Achso, hab's drotzdem lieber andersrum
CoTzRaiZ-PaiNx is offline  
Reply




All times are GMT +1. The time now is 22:51.


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.