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

04/15/2015 15:53 .Inya#16
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
04/15/2015 19:43 Mr. 'Avenue™#17
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
04/16/2015 13:21 Alergix2#18
Sehr nice immer geile Arbeit von dir.
04/16/2015 14:36 *~*TeacheR*~*#19
Ö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.
04/16/2015 16:00 .Inya#20
Quote:
Originally Posted by *~*TeacheR*~* View Post
dann einfach ingame /int+ 90 /con+9 etc 100000 mal Besser.
1. Klau mir nicht meine ideen! :D
2. GM_PLAYER nicht PLAYER ;)
3. Für diejenigen ohne Source: Schaut ein paar posts weiter oben
04/17/2015 14:28 .Sanii#21
Quote:
Originally Posted by Lord Inya View Post
1. Klau mir nicht meine ideen! :D
Deine Idee? Aha, das mir neu.
Ach ne garnet, das war ich ja der dir das gezeigt hat! xD
04/17/2015 17:07 naosou#22
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): [Only registered and activated users can see links. Click Here To Register...]
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?
04/22/2015 00:12 Singoria2#23
nice