Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server > Metin2 PServer Guides & Strategies
You last visited: Today at 15:54

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

Advertisement



[RELEASE][PYTHON][GUI]Statuspunkte schnell setzen

Discussion on [RELEASE][PYTHON][GUI]Statuspunkte schnell setzen within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.

Reply
 
Old 04/15/2015, 15:53   #16
 
.Inya's Avatar
 
elite*gold: 50
Join Date: Mar 2013
Posts: 2,401
Received Thanks: 1,613
Quote:
Originally Posted by xGr33n View Post
Nett.

PHP Code:
    def AddStat(selfstat):
        
points int(self.editLineDict[stat].GetText())
        for 
i in xrange(points):
            
net.SendChatPacket("/stat %s" str(stat)) 
So dürfte es auch ohne die SRC Änderungen gehen.
Gibt nen instant kick :P

die befehle
con+
int+
str+
dex+
auf GM_PLAYER setzen in der cmd

und die chatpackets anpassen auf
Code:
net.SendChatPacket("/con+ %u" % int(self.editLineDict[stat].GetText()))
Sollte eig gehen :P
.Inya is offline  
Thanks
1 User
Old 04/15/2015, 19:43   #17


 
Mr. 'Avenue™'s Avatar
 
elite*gold: 222
The Black Market: 101/0/0
Join Date: Oct 2012
Posts: 2,361
Received Thanks: 3,388
Quote:
Originally Posted by °Ace° View Post
Bei mir kommt ein Fehler:

PHP Code:
0415 15:35:29836 :: NameError
0415 15
:35:29836 :: : 
0415 15:35:29836 :: global name 'False' is not defined
0415 15
:35:29836 :: 

0415 15:35:29839 :: Traceback (most recent call last):

0415 15:35:29839 ::   File "game.py"line 1214in OnKeyDown

0415 15
:35:29839 ::   File "game.py"line 360in <lambda>

0415 15:35:29839 ::   File "game.py"line 2455in __OpenStatusUp

0415 15
:35:29839 :: NameError
0415 15
:35:29839 :: : 
0415 15:35:29839 :: global name 'False' is not defined
0415 15
:35:29839 :: 
Ändere mal jedes (in meinen .py-files) vorkommende False oder True mit FALSE oder TRUE
Mr. 'Avenue™ is offline  
Old 04/16/2015, 13:21   #18
 
Alergix2's Avatar
 
elite*gold: 103
Join Date: Aug 2014
Posts: 1,425
Received Thanks: 315
Sehr nice immer geile Arbeit von dir.
Alergix2 is offline  
Old 04/16/2015, 14:36   #19
 
elite*gold: 0
Join Date: Jan 2015
Posts: 110
Received Thanks: 178
Öffnet die CMD.cpp

ändert das

Quote:
{ "con+", do_stat_plus_amount, POINT_HT, POS_DEAD, GM_LOW_WIZARD },
{ "int+", do_stat_plus_amount, POINT_IQ, POS_DEAD, GM_LOW_WIZARD },
{ "str+", do_stat_plus_amount, POINT_ST, POS_DEAD, GM_LOW_WIZARD },
{ "dex+", do_stat_plus_amount, POINT_DX, POS_DEAD, GM_LOW_WIZARD },

zu

Quote:
{ "con+", do_stat_plus_amount, POINT_HT, POS_DEAD, PLAYER },
{ "int+", do_stat_plus_amount, POINT_IQ, POS_DEAD, PLAYER },
{ "str+", do_stat_plus_amount, POINT_ST, POS_DEAD, PLAYER },
{ "dex+", do_stat_plus_amount, POINT_DX, POS_DEAD, PLAYER },
dann einfach ingame /int+ 90 /con+9 etc 100000 mal Besser.
*~*TeacheR*~* is offline  
Thanks
2 Users
Old 04/16/2015, 16:00   #20
 
.Inya's Avatar
 
elite*gold: 50
Join Date: Mar 2013
Posts: 2,401
Received Thanks: 1,613
Quote:
Originally Posted by *~*TeacheR*~* View Post
dann einfach ingame /int+ 90 /con+9 etc 100000 mal Besser.
1. Klau mir nicht meine ideen!
2. GM_PLAYER nicht PLAYER
3. Für diejenigen ohne Source: Schaut ein paar posts weiter oben
.Inya is offline  
Old 04/17/2015, 14:28   #21
 
.Sanii's Avatar
 
elite*gold: 0
Join Date: May 2013
Posts: 353
Received Thanks: 621
Quote:
Originally Posted by Lord Inya View Post
1. Klau mir nicht meine ideen!
Deine Idee? Aha, das mir neu.
Ach ne garnet, das war ich ja der dir das gezeigt hat! xD
.Sanii is offline  
Old 04/17/2015, 17:07   #22
 
naosou's Avatar
 
elite*gold: 0
Join Date: May 2013
Posts: 391
Received Thanks: 92
Quote:
Originally Posted by xP3NG3Rx View Post
If you use ui.PythonScriptLoader to load your gui why did you write like this?
Code:
self.hthadd = self.GetChild("HTH_Add")
self.hthadd.SetNumberMode()
self.hthadd.SetText("0")
self.editLineDict["ht"] = self.hthadd
Code:
{
	"name" : "INT_Add",
	"type" : "editline",

	"x" : 61/2,
	"y" : 3,

	"width" : 20,
	"height" : 18,

	"text" : "0",#!!
	"only_number" : 1,#!!
	"input_limit" : 2,
	"enable_codepage" : 0,

	"r" : 1.0,
	"g" : 1.0,
	"b" : 1.0,
	"a" : 1.0,
	"text_horizontal_align" : "center",
},
However thanks.
And a little customization by me(shorter&sexier):
Code:
0417 16:03:31742 :: Traceback (most recent call last):

0417 16:03:31743 ::   File "ui.py", line 1020, in CallEvent

0417 16:03:31743 ::   File "game.py", line 2372, in __OpenStatusUp

0417 16:03:31743 :: AttributeError
0417 16:03:31743 :: : 
0417 16:03:31743 :: 'module' object has no attribute 'StatusUp'
0417 16:03:31743 ::
btw, I write 90 and click on '+'.
Wasn't this supposed to give automatically 90 stat points instead of growing one by one?
naosou is offline  
Old 04/22/2015, 00:12   #23
 
elite*gold: 0
Join Date: Apr 2015
Posts: 9
Received Thanks: 0
nice
Singoria2 is offline  
Reply

Tags
gui, python, schnell, setzen, statuspunkte


Similar Threads Similar Threads
[Release] Statuspunkte schnell setzen by [Sensenmann] & Eligara-Network
03/25/2015 - Metin2 PServer Guides & Strategies - 30 Replies
http://pr.eligara-network.com/media/banner.jpg Liebe Community, da der liebe Yiv in exakt 1 Sekunde sein "Statuspunkte schnell setzen"-Script releasen wird, hier meine Version - in Python. Syntax: Es erlaubt euch, eure Statuspunkte folgendermaßen zu setzen: @status <type> +<value> TYPE ist einer dieser Werte: str, vit, int, dex VALUE ist die Anzahl der Statuspunkte, die gesetzt werden sollen
[Release] Statuspunkte schnell setzen by Yiv & Eligara-Network
02/22/2015 - Metin2 PServer Guides & Strategies - 18 Replies
http://pr.eligara-network.com/media/banner.jpg Liebe Community, da der liebe vor exakt 1 Sekunde sein "Statuspunkte schnell setzen"-Script releast hat, hier nun meine Version - im Source. Syntax: Es erlaubt euch, eure Statuspunkte folgendermaßen zu setzen: /stat <TYPE> <VALUE> TYPE ist einer dieser Werte: ht, st, dx, iq VALUE ist die Anzahl der Statuspunkte, die gesetzt werden sollen
Wie muss ich die Statuspunkte für ein p2 Astar setzen?
04/27/2012 - Last Chaos - 0 Replies
Hallo e*pvpers, ich hab nun meine Fledermaus "evoluzioniert" (nun ist es ein Astar) . Wie muss ich nun die Statuspunkte für Astar setzen? Hoffentlich wisst ihr wie man die Punkte setzen muss. LG
[RELEASE]2089R Status 125 & Statuspunkte
08/08/2011 - Metin2 PServer Guides & Strategies - 17 Replies
Hi com, 100% working...:cool:



All times are GMT +2. The time now is 15:54.


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.