Jump to content

Extend NPC Shop to 80 Items


Recommended Posts

  • Premium

0228 15:28:21892 :: CPythonPlayer::SetItemData(window_type : 1, dwSlotIndex=228, itemIndex=14390) - Failed to item data

0228 15:28:21892 :: CPythonPlayer::SetItemData(window_type : 1, dwSlotIndex=231, itemIndex=17479) - Failed to item data

0228 15:28:22237 :: CMapOutdoor::Load - LoadMonsterAreaInfo ERROR
0228 15:28:28867 :: Traceback (most recent call last):

0228 15:28:28868 ::   File "networkModule.py", line 239, in SetGamePhase

0228 15:28:28868 ::   File "game.py", line 106, in __init__

0228 15:28:28868 ::   File "interfaceModule.py", line 292, in MakeInterface

0228 15:28:28868 ::   File "interfaceModule.py", line 215, in __MakeDialogs

0228 15:28:28868 ::   File "uiShop.py", line 82, in LoadDialog

0228 15:28:28868 :: AttributeError
0228 15:28:28868 :: : 
0228 15:28:28868 :: 'ShopDialog' object has no attribute 'Close'
0228 15:28:28868 :: 
New error, please help me.
  • Metin2 Dev 1
Link to comment
Share on other sites

 

0228 15:28:21892 :: CPythonPlayer::SetItemData(window_type : 1, dwSlotIndex=228, itemIndex=14390) - Failed to item data

0228 15:28:21892 :: CPythonPlayer::SetItemData(window_type : 1, dwSlotIndex=231, itemIndex=17479) - Failed to item data

0228 15:28:22237 :: CMapOutdoor::Load - LoadMonsterAreaInfo ERROR
0228 15:28:28867 :: Traceback (most recent call last):

0228 15:28:28868 ::   File "networkModule.py", line 239, in SetGamePhase

0228 15:28:28868 ::   File "game.py", line 106, in __init__

0228 15:28:28868 ::   File "interfaceModule.py", line 292, in MakeInterface

0228 15:28:28868 ::   File "interfaceModule.py", line 215, in __MakeDialogs

0228 15:28:28868 ::   File "uiShop.py", line 82, in LoadDialog

0228 15:28:28868 :: AttributeError
0228 15:28:28868 :: : 
0228 15:28:28868 :: 'ShopDialog' object has no attribute 'Close'
0228 15:28:28868 :: 

New error, please help me.

 

Contact me in private, I'll help you.

  • Metin2 Dev 1
  • Love 1

- To know how to hide one's ability is great skill. -

Link to comment
Share on other sites

  • Premium

 

 

0228 15:28:21892 :: CPythonPlayer::SetItemData(window_type : 1, dwSlotIndex=228, itemIndex=14390) - Failed to item data

0228 15:28:21892 :: CPythonPlayer::SetItemData(window_type : 1, dwSlotIndex=231, itemIndex=17479) - Failed to item data

0228 15:28:22237 :: CMapOutdoor::Load - LoadMonsterAreaInfo ERROR
0228 15:28:28867 :: Traceback (most recent call last):

0228 15:28:28868 ::   File "networkModule.py", line 239, in SetGamePhase

0228 15:28:28868 ::   File "game.py", line 106, in __init__

0228 15:28:28868 ::   File "interfaceModule.py", line 292, in MakeInterface

0228 15:28:28868 ::   File "interfaceModule.py", line 215, in __MakeDialogs

0228 15:28:28868 ::   File "uiShop.py", line 82, in LoadDialog

0228 15:28:28868 :: AttributeError
0228 15:28:28868 :: : 
0228 15:28:28868 :: 'ShopDialog' object has no attribute 'Close'
0228 15:28:28868 :: 

New error, please help me.

 

Contact me in private, I'll help you.

 

messages send.

  • Metin2 Dev 1
Link to comment
Share on other sites

 

 

 

0228 15:28:21892 :: CPythonPlayer::SetItemData(window_type : 1, dwSlotIndex=228, itemIndex=14390) - Failed to item data

0228 15:28:21892 :: CPythonPlayer::SetItemData(window_type : 1, dwSlotIndex=231, itemIndex=17479) - Failed to item data

0228 15:28:22237 :: CMapOutdoor::Load - LoadMonsterAreaInfo ERROR
0228 15:28:28867 :: Traceback (most recent call last):

0228 15:28:28868 ::   File "networkModule.py", line 239, in SetGamePhase

0228 15:28:28868 ::   File "game.py", line 106, in __init__

0228 15:28:28868 ::   File "interfaceModule.py", line 292, in MakeInterface

0228 15:28:28868 ::   File "interfaceModule.py", line 215, in __MakeDialogs

0228 15:28:28868 ::   File "uiShop.py", line 82, in LoadDialog

0228 15:28:28868 :: AttributeError
0228 15:28:28868 :: : 
0228 15:28:28868 :: 'ShopDialog' object has no attribute 'Close'
0228 15:28:28868 :: 

New error, please help me.

 

Contact me in private, I'll help you.

 

messages send.

 

Done.

  • Metin2 Dev 1
  • Love 1

- To know how to hide one's ability is great skill. -

Link to comment
Share on other sites

  • 1 month later...
  • 4 weeks later...

uiShop.py(line:73) LoadDialog
ui.py(line:2708) GetChild

ShopDialog.LoadDialog.BindObject - <type 'exceptions.KeyError'>:'MiddleTab1'

0513 21:40:21098 :: ============================================================================================================
0513 21:40:21098 :: Abort!!!!

 

 

73:             middleTab1 = GetObject("MiddleTab1")

  • Metin2 Dev 1
Link to comment
Share on other sites

  • 1 month later...
  • 1 month later...
  • 1 month later...

i need shopdialog.py with

## MiddleTab1
				{
					"name" : "MiddleTab1",
					"type" : "radio_button",

					"x" : 21,
					"y" : 295,

					"width" : 61,
					"height" : 21,

					"default_image" : "d:/ymir work/ui/public/middle_button_01.sub",
					"over_image" : "d:/ymir work/ui/public/middle_button_02.sub",
					"down_image" : "d:/ymir work/ui/public/middle_button_03.sub",
				},

				## MiddleTab2
				{
					"name" : "MiddleTab2",
					"type" : "radio_button",

					"x" : 104,
					"y" : 295,

					"width" : 61,
					"height" : 21,

					"default_image" : "d:/ymir work/ui/public/middle_button_01.sub",
					"over_image" : "d:/ymir work/ui/public/middle_button_02.sub",
					"down_image" : "d:/ymir work/ui/public/middle_button_03.sub",
				},

				## SmallTab1
				{
					"name" : "SmallTab1",
					"type" : "radio_button",

					"x" : 21,
					"y" : 295,

					"width" : 43,
					"height" : 21,

					"default_image" : "d:/ymir work/ui/public/small_button_01.sub",
					"over_image" : "d:/ymir work/ui/public/small_button_02.sub",
					"down_image" : "d:/ymir work/ui/public/small_button_03.sub",
				},

				## SmallTab2
				{
					"name" : "SmallTab2",
					"type" : "radio_button",

					"x" : 71,
					"y" : 295,

					"width" : 43,
					"height" : 21,

					"default_image" : "d:/ymir work/ui/public/small_button_01.sub",
					"over_image" : "d:/ymir work/ui/public/small_button_02.sub",
					"down_image" : "d:/ymir work/ui/public/small_button_03.sub",
				},

				## SmallTab3
				{
					"name" : "SmallTab3",
					"type" : "radio_button",

					"x" : 120,
					"y" : 295,

					"width" : 43,
					"height" : 21,

					"default_image" : "d:/ymir work/ui/public/small_button_01.sub",
					"over_image" : "d:/ymir work/ui/public/small_button_02.sub",
					"down_image" : "d:/ymir work/ui/public/small_button_03.sub",
				},

 

Link to comment
Share on other sites

  • 2 years later...

ihave problem  in shop packet  

 

0219 22:58:52592 :: Traceback (most recent call last):

0219 22:58:52592 ::   File "uiShop.py", line 647, in OnUpdate

0219 22:58:52593 ::   File "uiShop.py", line 453, in Close

0219 22:58:52593 :: AttributeError
0219 22:58:52593 :: : 
0219 22:58:52593 :: 'int' object has no attribute 'HideToolTip'
0219 22:58:52593 :: 

Link to comment
Share on other sites

  • 3 months later...
  • Forum Moderator
vor 8 Stunden schrieb gheara009:

uiShop.py(line:63) LoadDialog
ui.py(line:3324) LoadScriptFile

ShopDialog.LoadDialog.LoadObject - <type 'exceptions.KeyError'>:'window'

0608 05:24:22997 :: ============================================================================================================
0608 05:24:22997 :: Abort!!!!
 

 

help pls?

Seems like a tabstop is wrong.

Best regards
Raylee

Link to comment
Share on other sites

  • 3 years later...
  • 4 months later...

1222 22:33:20042 ::
uiShop.py(line:73) LoadDialog
ui.py(line:2704) GetChild

ShopDialog.LoadDialog.BindObject - <type 'exceptions.KeyError'>:'MiddleTab1'

1222 22:33:20043 :: ============================================================================================================
1222 22:33:20043 :: Abort!!!!

Edited by I bims 1 WLAN
Link to comment
Share on other sites

  • 3 months later...
On 2/27/2015 at 12:06 PM, SamuR said:

 

 

Hi,

 

I think that you make changes in "game.py" too. I said "NOTE: If you want Only NPC Shop's with 80 Items follow this guide, else if you want NPC Shop & Private Shop follow the Update Istruction.".

 

Anyway, now open you "pack/root/game.py" and search:

def StartShop(self, vid):if chr.IsNPC(vid):
  self.interface.OpenShopDialog(vid)
else:
  self.interface.OpenShopDialog2(vid)

 

Replace with:

def StartShop(self, vid):
  self.interface.OpenShopDialog(vid)

 

Enjoy! 

 

You're welcome! 

Its Work tanks men 👍

Link to comment
Share on other sites

  • 2 months later...

Help Plies...

 

0531 21:15:17998 :: 
uiShop.py(line:73) LoadDialog
ui.py(line:2768) GetChild

ShopDialog.LoadDialog.BindObject - <type 'exceptions.KeyError'>:'MiddleTab1'

0531 21:15:17998 :: ============================================================================================================
0531 21:15:17998 :: Abort!!!!

  • Metin2 Dev 1
Link to comment
Share on other sites

  • 3 months later...
On 6/1/2022 at 2:32 AM, Marcos17 said:

Help Plies...

 

0531 21:15:17998 :: 
uiShop.py(line:73) LoadDialog
ui.py(line:2768) GetChild

ShopDialog.LoadDialog.BindObject - <type 'exceptions.KeyError'>:'MiddleTab1'

0531 21:15:17998 :: ============================================================================================================
0531 21:15:17998 :: Abort!!!!

Just add it in shopdialog.py

  • Metin2 Dev 1
Link to comment
Share on other sites

Announcements



×
×
  • 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.