Jump to content

Extend NPC Shop to 80 Items


Recommended Posts

 

In yout error case, the problem is Tab character. Check "shopdialog.py" file.

 

And Private Shop ? When I make a Private Shop have a Slots problem

Wow, thank you. I totally forgot it!

Today I'll post the fix.

 

Alredy fixed?

Thanks

 

Yes,

I'll post the Fix this evening because now i'm going out.

 

Item_Shop_Fix1.png

Edited by Metin2 Dev
Core X - External 2 Internal
  • Love 1

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

Link to comment
Share on other sites

 

0224 11:07:20062 :: GRANNY: r:/granny/rt/granny_file_info.cpp(145): File has run-time type tag of 0x8000000f, which doesn't match this version of Granny (0x80000010).  Automatic conversion will be attempted.
0224 11:07:25831 :: Failed to load script file : UIScript/shopdialog.py
0224 11:07:25834 :: 
ui.py(line:2767) LoadScriptFile
system.py(line:192) execfile
system.py(line:161) Run
system.py(line:177) __LoadTextFile__
 
LoadScriptFile!!!!!!!!!!!!!! - <type 'exceptions.SyntaxError'>:invalid syntax (UIScript/shopdialog.py, line 43)
 
0224 11:07:25834 :: ============================================================================================================
0224 11:07:25834 :: Abort!!!!
 
 
0224 11:07:25836 :: 
uiShop.py(line:55) LoadDialog
ui.py(line:2784) LoadScriptFile
exception.py(line:36) Abort
 
ShopDialog.LoadDialog.LoadObject - <type 'exceptions.SystemExit'>:
 
0224 11:07:25836 :: ============================================================================================================
0224 11:07:25836 :: Abort!!!!
 
 
 
Error ,

 

 

 

uiscript/shopdialog.py

 

 

find 

 

{ "name":"TitleName", "type":"text", "x":168, "y":4 "text":uiScriptLocale.SHOP_TITLE,"text_horizontal_align":"center" },

 

change to

 

{ "name":"TitleName", "type":"text", "x":168, "y":4, "text":uiScriptLocale.SHOP_TITLE,"text_horizontal_align":"center" },

 

Error is here 

"y":4 

-

"y":4,

  • Love 1
Link to comment
Share on other sites

 
I found another problems
 
 
game.py
 
  1.         def StartShop(self, vid):
  2.                 if chr.IsNPC():
  3.                         self.interface.OpenShopDialog(vid)
  4.                 else:
  5.                         self.interface.OpenShopDialog2(vid)
 
edit to:
 
  1.         def StartShop(self, vid):
  2.                 if chr.IsNPC(vid):
  3.                         self.interface.OpenShopDialog(vid)
  4.                 else:
  5.                         self.interface.OpenShopDialog2(vid)
 
uishop.py (in class ShopDialog2(ui.ScriptWindow))
 
  1.         def Close(self):
  2.                 self.OnCloseQuestionDialog()
  3.                 shop.Close()
  4.                 net.SendShopEndPacket()
  5.                 self.CancelShopping()
  6.                 self.tooltipItem.HideToolTip()
  7.                 self.Hide()
 
edit to
 
 
  1.         def Close(self):
  2.                 self.OnCloseQuestionDialog()
  3.                 shop.Close()
  4.                 net.SendShopEndPacket()
  5.                 self.CancelShopping()
  6.                 self.Hide()
  7.  
 
Now work, thanks

 

xBDSb.jpg

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

I found another problem

 

 

game.py

 

def StartShop(self, vid):

if chr.IsNPC():

self.interface.OpenShopDialog(vid)

else:

self.interface.OpenShopDialog2(vid)

 

edited to

 

def StartShop(self, vid):

if chr.IsNPC(vid):

self.interface.OpenShopDialog(vid)

else:

self.interface.OpenShopDialog2(vid)

 

and delete (in class ShopDialog2)

 

self.tooltipItem.HideToolTip()

 

from

 

def Close(self):

self.OnCloseQuestionDialog()

shop.Close()

net.SendShopEndPacket()

self.CancelShopping()

self.tooltipItem.HideToolTip()

self.Hide()

 

 

 

Now work, thanks

 

xBDSb.jpg

Mmh first correction is Ok, maybe I copied another Client's File.

But I said the second

Anyway thank you!

Edited by Metin2 Dev
Core X - External 2 Internal

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

Link to comment
Share on other sites

I Have bug private shop Hel plz.

loja2.png

loja1.png

 

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! 

 

Thanks bro.

You're welcome! 

Edited by Metin2 Dev
Core X - External 2 Internal

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

Link to comment
Share on other sites

 

I Have bug private shop Hel plz.

loja2.png

loja1.png

 

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! 

 

Thanks bro.

You're welcome! 

 

Its work Thanks bro.

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • Premium

Please help me.

0227 20:43:24972 :: Traceback (most recent call last):

0227 20:43:24972 ::   File "networkModule.py", line 237, in SetGamePhase

0227 20:43:24972 ::   File "system.py", line 130, in __pack_import

0227 20:43:24973 ::   File "
0227 20:43:24973 :: game.py
0227 20:43:24973 :: ", line 
0227 20:43:24973 :: 956
0227 20:43:24973 :: 

0227 20:43:24973 ::     
0227 20:43:24973 :: if chr.IsNPC(vid):

0227 20:43:24973 ::     
0227 20:43:24973 ::  
0227 20:43:24973 :: ^

0227 20:43:24973 :: IndentationError
0227 20:43:24973 :: : 
0227 20:43:24973 :: expected an indented block
0227 20:43:24973 :: 

Link to comment
Share on other sites

 

 

I Have bug private shop Hel plz.

loja2.png

loja1.png

 

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! 

 

Thanks bro.

You're welcome! 

 

Its work Thanks bro.

You're welcome.

 

 

Please help me.

0227 20:43:24972 :: Traceback (most recent call last):

0227 20:43:24972 ::   File "networkModule.py", line 237, in SetGamePhase

0227 20:43:24972 ::   File "system.py", line 130, in __pack_import

0227 20:43:24973 ::   File "
0227 20:43:24973 :: game.py
0227 20:43:24973 :: ", line 
0227 20:43:24973 :: 956
0227 20:43:24973 :: 

0227 20:43:24973 ::     
0227 20:43:24973 :: if chr.IsNPC(vid):

0227 20:43:24973 ::     
0227 20:43:24973 ::  
0227 20:43:24973 :: ^

0227 20:43:24973 :: IndentationError
0227 20:43:24973 :: : 
0227 20:43:24973 :: expected an indented block
0227 20:43:24973 :: 

"IndentationError". Check your [TAB]

Edited by Metin2 Dev
Core X - External 2 Internal
  • 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.

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