Jump to content

Recommended Posts

  • Honorable Member

M2 Download Center

This is the hidden content, please
( Internal )

Here ( Required )

Hi everyone.

 

The time has come, and sorry for this late.

What is this? Check the base version on this video:

Spoiler

 

 

 

Necessary functions:

 

It doesn't hurt to know:

  1. Need a bit of knowledge of programming, especially for implementing the python parts.
  2. You need to see the whole python core of metin2 how it works to understand what, why and how.
  3. Regarding to 1. and 2. this release is not for beginners.
  4. It has been tested on test and a live server too, small problems what appeared has been fixed.
  5. MouseWheel is not included, but public on the internet.

 

Special thank to @masodikbela for testing and @Tatsumaru for the gui elements(wider tab buttons).

This is the hidden content, please

 

PS.: If I missed something out from the guide feel free to let me know.

  • Metin2 Dev 118
  • Dislove 1
  • Angry 1
  • Not Good 1
  • Think 2
  • Confused 1
  • Lmao 1
  • Good 23
  • muscle 2
  • Love 9
  • Love 116
Link to comment
https://metin2.dev/topic/23323-won-exchange-window/
Share on other sites

  • 1 month later...


0519 08:58:47776 ::   File "ui.py", line 2006, in CallEvent

0519 08:58:47777 ::   File "ui.py", line 90, in __call__

0519 08:58:47777 ::   File "ui.py", line 72, in __call__

0519 08:58:47778 ::   File "uiTaskBar.py", line 80, in OpenWonExchangeWindow

0519 08:58:47778 :: AttributeError
0519 08:58:47778 :: : 
0519 08:58:47778 :: 'ExpandedMoneyTaskBar' object has no attribute 'Interface'
0519 08:58:47778 :: 
help me please?

click icon but not open won exchange window

badass hei GIF

Link to comment
https://metin2.dev/topic/23323-won-exchange-window/#findComment-128060
Share on other sites

  • Honorable Member

It seems you don't have the interface bound into the ExpandedMoneyTaskBar class.

Search this line in the interfaceModule.py: "self.wndExpandedMoneyTaskBar.LoadWindow()" and add below this:

		self.wndExpandedMoneyTaskBar.BindInterface(self)

Then open the uiTaskBar.py and put the following line into the ExpandedMoneyTaskBar.__init__ function:

		self.interface = None

Last the following function anywhere inside the ExpandedMoneyTaskBar class:

	def BindInterface(self, interface):
		from _weakref import proxy
		self.interface = proxy(interface)

 

But I don't get it, how did you get 'Interface' instead of 'interface'. ?

  • Love 1
Link to comment
https://metin2.dev/topic/23323-won-exchange-window/#findComment-128061
Share on other sites

'ExpandedMoneyTaskBar' object has no attribute 'Interface'

 

 

problem is fixed and under!

 

My uitaskbar.py changed
 

import interfaceModule  # add your file

class ExpandedMoneyTaskBar(ui.ScriptWindow):
    def __init__(self):
        ui.ScriptWindow.__init__(self)
        self.LoadWindow()
        self.interface = interfaceModule.Interface()  # add your file

 

and interfacemodule.py function def __init__(self): add under code

 

		self.wndWonExchange = uiWonExchange.WonExchangeWindow()

 

badass hei GIF

Link to comment
https://metin2.dev/topic/23323-won-exchange-window/#findComment-128326
Share on other sites

  • 3 weeks later...

@xP3NG3Rx Thanks for the subject, but there is 1 problem and 1 missing.

 

 

the missing one:

 

problem:

https://metin2.download/picture/cU3o7q3SxIsnhznBE93hI2MpxA2v8OCv/.gif

 

thanks again.

Spoiler

Edited by Metin2 Dev
Core X - External 2 Internal
  • Metin2 Dev 2
Link to comment
https://metin2.dev/topic/23323-won-exchange-window/#findComment-129187
Share on other sites

  • 1 month later...

0803 02:41:20599 :: Traceback (most recent call last):

0803 02:41:20599 ::   File "ui.py", line 1048, in CallEvent

0803 02:41:20600 ::   File "ui.py", line 87, in __call__

0803 02:41:20601 ::   File "ui.py", line 69, in __call__

0803 02:41:20602 ::   File "uiTaskBar.py", line 112, in OpenWonExchangeWindow

0803 02:41:20603 :: AttributeError
0803 02:41:20603 :: : 
0803 02:41:20603 :: 'NoneType' object has no attribute 'ToggleWonExchangeWindow'
0803 02:41:20603 :: 

badass hei GIF

Link to comment
https://metin2.dev/topic/23323-won-exchange-window/#findComment-130842
Share on other sites

  • 3 months later...
  • 2 weeks later...

Nice work, thank you very much.

Everything works very well but but when clicking on the slot i have this error.

 

 

1212 15:41:49375 ::   File "ui.py", line 2516, in OnMouseLeftButtonDown

1212 15:41:49376 :: AttributeError
1212 15:41:49376 :: : 
1212 15:41:49376 :: 'EditLineCentered' object has no attribute 'canEdit'

 

image

Edited by Metin2 Dev
Core X - External 2 Internal
  • Metin2 Dev 1
Link to comment
https://metin2.dev/topic/23323-won-exchange-window/#findComment-134125
Share on other sites

  • 1 month later...
0124 19:01:45504 :: Traceback (most recent call last):

0124 19:01:45504 ::   File "ui.py", line 1593, in CallEvent

0124 19:01:45504 ::   File "ui.py", line 95, in __call__

0124 19:01:45504 ::   File "ui.py", line 77, in __call__

0124 19:01:45505 ::   File "uiTaskBar.py", line 354, in OpenWonExchangeWindow

0124 19:01:45505 :: AttributeError
0124 19:01:45505 :: : 
0124 19:01:45505 :: 'NoneType' object has no attribute 'ToggleWonExchangeWindow'
0124 19:01:45505 :: 

 

I'm getting this error. Can you help me? @xP3NG3Rx

Link to comment
https://metin2.dev/topic/23323-won-exchange-window/#findComment-135448
Share on other sites

On 12/12/2020 at 9:49 PM, mebe said:

Nice work, thank you very much.

Everything works very well but but when clicking on the slot i have this error.

 

 


1212 15:41:49375 ::   File "ui.py", line 2516, in OnMouseLeftButtonDown

1212 15:41:49376 :: AttributeError
1212 15:41:49376 :: : 
1212 15:41:49376 :: 'EditLineCentered' object has no attribute 'canEdit'

 

image

same problem

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
https://metin2.dev/topic/23323-won-exchange-window/#findComment-135507
Share on other sites

  • 3 years later...
  • Honorable Member

USELESS INFO BEGIN

Spoiler

Now the tax on won-yang conversion has been removed.

Instead, shop item sale taxes are set to 3% for normal shop and 1% for the premium(offline) shop.

USELESS INFO END

  • Think 1
  • Love 1

 

Link to comment
https://metin2.dev/topic/23323-won-exchange-window/#findComment-164040
Share on other sites

  • 4 months later...

0801 09:08:28459 :: 
uiWonExchange.py(line:158) __LoadWindow
uiWonExchange.py(line:197) __BindObject
uiWonExchange.py(line:69) Open
uiWonExchange.py(line:96) __SetDescriptionEvent

WonExchangeWindow.__LoadWindow.__BindObject.UIScript/WonExchangeWindow.py - <type 'exceptions.AttributeError'>:'module' object has no attribute 'SetFontColor'

0801 09:08:28459 :: ============================================================================================================
0801 09:08:28459 :: Abort!!!!

Help-me ? plssss
 

Link to comment
https://metin2.dev/topic/23323-won-exchange-window/#findComment-166385
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.