Sign in to follow this  
.ZeNu

python Metin2 | Auto Refine Option | Just Python Mode

25 posts in this topic

Auto refine option when you upgrade the item with SCROLL or on NPC.

I did all checks like example :

When you have just one scroll in inventory, refine window will be close.

When the item is already maximum upgrade. (+8 to +9 just in case will be succes) 

and more ..

 

Preview:

https://gyazo.com/63959d63b9acc7d4337e16de061ea747

 

Download :

https://mega.nz/#!SZpDWBKB!EbBTPAThBjFZBuFCdvttRz5Yia4oYrAj5m4r0pNFe6U

 

  • Like 11
  • Thanks 1
  • Haha 1

Share this post


Link to post
Share on other sites
2 hours ago, .Elijah said:

Auto refine option when you upgrade the item with SCROLL or on NPC.

I did all checks like example :

When you have just one scroll in inventory, refine window will be close.

When the item is already maximum upgrade. (+8 to +9 just in case will be succes) 

and more ..

 

Preview:

https://gyazo.com/63959d63b9acc7d4337e16de061ea747

 

Download :

https://mega.nz/#!SZpDWBKB!EbBTPAThBjFZBuFCdvttRz5Yia4oYrAj5m4r0pNFe6U

 

Amazing <3
Thank you!! :)

Best regards
Raylee

  • Like 1

Share this post


Link to post
Share on other sites

Thank you.
But I got 1 Problem, the uppitems doesn't update, it always shows the same, and it also always show me +0, even if I upgraded it to +4.
I hope that you can help me though.

Share this post


Link to post
Share on other sites
Acum 13 ore, BeHappy4Ever a spus:

I cant find this function     def RefineBindAffectShower(self, affectShower):

I am using an old version (i think 2015) of official client.

find this 

    def AppendMaterialToRefineDialog(self, vnum, count):
        self.dlgRefineNew.AppendMaterial(vnum, count)

change with

    def AppendMaterialToRefineDialog(self, vnum, count):
        self.dlgRefineNew.AppendMaterial(vnum, count)

    if app.ENABLE_REFINE_RENEWAL:
        def CheckRefineDialog(self, isFail):
            self.dlgRefineNew.CheckRefine(isFail)    

Acum 23 ore, Moon a spus:

Thank you.
But I got 1 Problem, the uppitems doesn't update, it always shows the same, and it also always show me +0, even if I upgraded it to +4.
I hope that you can help me though.

in uiRefine.py find def CheckRefine(self, isFail):

then find chat.AppendChat(chat.CHAT_TYPE_INFO, "%d %d" % (itemIndex, int(itemIndex %10)))

and delete it try after, or whrite above that line "import chat"

Share this post


Link to post
Share on other sites
4 hours ago, SergiuAndreiM said:

find this 

    def AppendMaterialToRefineDialog(self, vnum, count):
         self.dlgRefineNew.AppendMaterial(vnum, count)

change with

    def AppendMaterialToRefineDialog(self, vnum, count):
         self.dlgRefineNew.AppendMaterial(vnum, count)

    if app.ENABLE_REFINE_RENEWAL:
         def CheckRefineDialog(self, isFail):
            self.dlgRefineNew.CheckRefine(isFail)    

Thanks a lot for your reply!

Spoiler

networkModule.SetSelectCharacterPhase - <type 'exceptions.IndentationError'>:expected an indented block (interfaceModule.py, line 911)
 

I get this error , can you help me please?

Line 910-915:

Spoiler

    def AppendMaterialToRefineDialog(self, vnum, count):
        self.dlgRefineNew.AppendMaterial(vnum, count)
    if app.ENABLE_REFINE_RENEWAL:
        def CheckRefineDialog(self, isFail):
            self.dlgRefineNew.CheckRefine(isFail)    
 

 

Share this post


Link to post
Share on other sites
Acum 18 ore, BeHappy4Ever a spus:

Thanks a lot for your reply!

  Reafișează conținuturi ascunse

networkModule.SetSelectCharacterPhase - <type 'exceptions.IndentationError'>:expected an indented block (interfaceModule.py, line 911)
 

I get this error , can you help me please?

Line 910-915:

  Reafișează conținuturi ascunse

    def AppendMaterialToRefineDialog(self, vnum, count):
        self.dlgRefineNew.AppendMaterial(vnum, count)
    if app.ENABLE_REFINE_RENEWAL:
        def CheckRefineDialog(self, isFail):
            self.dlgRefineNew.CheckRefine(isFail)    
 

 

https://pastebin.com/0gxk9pDy

be careful with the tabs

Share this post


Link to post
Share on other sites

The only purpose for this release is to post someone else's system(anger attempt).

He would never do releases for you guys, only to anger someone else and earn respect from kids.

  • Haha 1
  • Confused 2

Share this post


Link to post
Share on other sites
13 hours ago, SergiuAndreiM said:

https://pastebin.com/0gxk9pDy

be careful with the tabs

Spoiler


0830 02:07:38485 ::   File "networkModule.py", line 237, in SetGamePhase

0830 02:07:38485 ::   File "system.py", line 177, in __hybrid_import

0830 02:07:38486 ::   File "
0830 02:07:38486 :: game.py
0830 02:07:38486 :: ", line 
0830 02:07:38486 :: 1311
0830 02:07:38486 :: 

0830 02:07:38486 ::     
0830 02:07:38486 :: if app.ENABLE_REFINE_RENEWAL:

0830 02:07:38486 ::     
0830 02:07:38486 ::  
0830 02:07:38486 :: ^

0830 02:07:38486 :: IndentationError
0830 02:07:38486 :: : 
0830 02:07:38486 :: expected an indented block
0830 02:07:38486 :: 

Here is my interfacemodule.py

https://pastebin.com/mZwg8Lzh

Thanks a lot for your reply!

Share this post


Link to post
Share on other sites
Acum 11 ore, BeHappy4Ever a spus:
  Ascunde conținuturi


0830 02:07:38485 ::   File "networkModule.py", line 237, in SetGamePhase

0830 02:07:38485 ::   File "system.py", line 177, in __hybrid_import

0830 02:07:38486 ::   File "
0830 02:07:38486 :: game.py
0830 02:07:38486 :: ", line 
0830 02:07:38486 :: 1311
0830 02:07:38486 :: 

0830 02:07:38486 ::     
0830 02:07:38486 :: if app.ENABLE_REFINE_RENEWAL:

0830 02:07:38486 ::     
0830 02:07:38486 ::  
0830 02:07:38486 :: ^

0830 02:07:38486 :: IndentationError
0830 02:07:38486 :: : 
0830 02:07:38486 :: expected an indented block
0830 02:07:38486 :: 

Here is my interfacemodule.py

https://pastebin.com/mZwg8Lzh

Thanks a lot for your reply!

your problem is from game.py this time not from interfacemodule

Share this post


Link to post
Share on other sites
La 27.08.2018 la 14:50, Moon a spus:

Thank you.
But I got 1 Problem, the uppitems doesn't update, it always shows the same, and it also always show me +0, even if I upgraded it to +4.
I hope that you can help me though.

Same problem!

I think it need a refreshment function...

 

Edit: i didnt see the solution... Thank you @SergiuAndreiM

Share this post


Link to post
Share on other sites

0831 14:34:38280 :: Traceback (most recent call last):

0831 14:34:38280 ::   File "game.py", line 758, in BINARY_NEW_AddAffect

0831 14:34:38280 ::   File "game.py", line 1759, in BINARY_DragonSoulGiveQuilification

0831 14:34:38280 ::   File "interfaceModule.py", line 1014, in DragonSoulGiveQuilification

0831 14:34:38280 :: AttributeError
0831 14:34:38280 :: : 
0831 14:34:38280 :: 'NoneType' object has no attribute 'SetToolTipText'
0831 14:34:38280 :: 

0831 14:34:40309 :: Exception 
0831 14:34:40309 :: AttributeError
0831 14:34:40309 :: : 
0831 14:34:40309 :: "'CheckBox' object has no attribute 'hWnd'"
0831 14:34:40309 ::  in 
0831 14:34:40309 :: <bound method CheckBox.__del__ of <ui.CheckBox object at 0x051C9050>>
0831 14:34:40309 ::  ignored

0831 14:34:40309 :: Traceback (most recent call last):

0831 14:34:40309 ::   File "game.py", line 735, in OpenRefineDialog

0831 14:34:40309 ::   File "interfaceModule.py", line 823, in OpenRefineDialog

0831 14:34:40309 ::   File "uiRefine.py", line 340, in Open

0831 14:34:40310 ::   File "uiRefine.py", line 278, in __LoadScript

0831 14:34:40310 :: TypeError
0831 14:34:40310 :: : 
0831 14:34:40310 :: __init__() takes at least 5 arguments (1 given)
0831 14:34:40310 :: 

 

???

Share this post


Link to post
Share on other sites

0831 17:03:30351 :: Traceback (most recent call last):

0831 17:03:30351 ::   File "game.py", line 755, in OpenRefineDialog

0831 17:03:30351 ::   File "interfaceModule.py", line 878, in OpenRefineDialog

0831 17:03:30351 ::   File "uiRefine.py", line 340, in Open

0831 17:03:30362 ::   File "uiRefine.py", line 283, in __LoadScript

0831 17:03:30362 :: AttributeError
0831 17:03:30362 :: : 
0831 17:03:30362 :: 'RefineDialogNew' object has no attribute 'AutoRefine'
0831 17:03:30362 :: 

 

I have this problem ! PLEASE HELP ME !!!

Share this post


Link to post
Share on other sites

networkModule.py(line:208) SetSelectCharacterPhase
system.py(line:130) __pack_import
system.py(line:110) _process_result
introSelect.py(line:30) <module>
system.py(line:130) __pack_import
system.py(line:110) _process_result
interfaceModule.py(line:12) <module>
system.py(line:130) __pack_import
system.py(line:110) _process_result
uiInventory.py(line:12) <module>
system.py(line:130) __pack_import

networkModule.SetSelectCharacterPhase - <type 'exceptions.IndentationError'>:expected an indented block (uiRefine.py, line 97)

0417 16:40:05870 :: ============================================================================================================
0417 16:40:05870 :: Abort!!!!

My uiRefine

def Destroy(self):
	self.ClearDictionary()
		self.board = 0
		self.successPercentage = 0
		self.titleBar = 0
		self.toolTip = 0
		self.dlgQuestion = 0
	if app.ENABLE_REFINE_RENEWAL:
		def __InitializeOpen(self):
			self.children = []
			self.vnum = 0
			self.targetItemPos = 0
			self.dialogHeight = 0
			self.cost = 0
			self.percentage = 0
			self.type = 0
			self.xRefineStart = 0
			self.yRefineStart = 0	

your code that i should put:

## 0.2 Search :

	def Destroy(self):
			..
			
## 0.2 Add after:

	if app.ENABLE_REFINE_RENEWAL:
		def __InitializeOpen(self):
			self.children = []
			self.vnum = 0
			self.targetItemPos = 0
			self.dialogHeight = 0
			self.cost = 0
			self.percentage = 0
			self.type = 0
			self.xRefineStart = 0
			self.yRefineStart = 0	

 

bu in uiRefine.py there is 2x def Destroy(self):.. 

 

So where should i put??
 

uirefine.py

  • Like 1

Share this post


Link to post
Share on other sites
On 8/26/2018 at 6:26 PM, .ZeNu said:

Auto refine option when you upgrade the item with SCROLL or on NPC.

I did all checks like example :

When you have just one scroll in inventory, refine window will be close.

When the item is already maximum upgrade. (+8 to +9 just in case will be succes) 

and more ..

 

Preview:

https://gyazo.com/63959d63b9acc7d4337e16de061ea747

 

Download :

https://mega.nz/#!SZpDWBKB!EbBTPAThBjFZBuFCdvttRz5Yia4oYrAj5m4r0pNFe6U

 

Help pls

https://gyazo.com/6952ad34a6aefef5fd4146cd9bf9fdf9

https://gyazo.com/f4bcd6f66fbd36eba80992d08ede99b8

no syserr 

Share this post


Link to post
Share on other sites
En 17/4/2019 a las 16:53, alicization dijo:

networkModule.py(line:208) SetSelectCharacterPhase
system.py(line:130) __pack_import
system.py(line:110) _process_result
introSelect.py(line:30) <module>
system.py(line:130) __pack_import
system.py(line:110) _process_result
interfaceModule.py(line:12) <module>
system.py(line:130) __pack_import
system.py(line:110) _process_result
uiInventory.py(line:12) <module>
system.py(line:130) __pack_import

networkModule.SetSelectCharacterPhase - <type 'exceptions.IndentationError'>:expected an indented block (uiRefine.py, line 97)

0417 16:40:05870 :: ============================================================================================================
0417 16:40:05870 :: Abort!!!!

My uiRefine


def Destroy(self):
	self.ClearDictionary()
		self.board = 0
		self.successPercentage = 0
		self.titleBar = 0
		self.toolTip = 0
		self.dlgQuestion = 0
	if app.ENABLE_REFINE_RENEWAL:
		def __InitializeOpen(self):
			self.children = []
			self.vnum = 0
			self.targetItemPos = 0
			self.dialogHeight = 0
			self.cost = 0
			self.percentage = 0
			self.type = 0
			self.xRefineStart = 0
			self.yRefineStart = 0	

your code that i should put:


## 0.2 Search :

	def Destroy(self):
			..
			
## 0.2 Add after:

	if app.ENABLE_REFINE_RENEWAL:
		def __InitializeOpen(self):
			self.children = []
			self.vnum = 0
			self.targetItemPos = 0
			self.dialogHeight = 0
			self.cost = 0
			self.percentage = 0
			self.type = 0
			self.xRefineStart = 0
			self.yRefineStart = 0	

 

bu in uiRefine.py there is 2x def Destroy(self):.. 

 

So where should i put??
 

uirefine.py

same error, can someone help us?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.