Jump to content

SamuR

Inactive Member
  • Posts

    24
  • Joined

  • Last visited

  • Days Won

    1
  • Feedback

    0%

Everything posted by SamuR

  1. You should increase first "Width" parameter
  2. Contact me in private, I'll help you. messages send. Done.
  3. Contact me in private, I'll help you.
  4. 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 Thanks bro. You're welcome. "IndentationError". Check your [TAB]
  5. 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!
  6. Hello, I will explain how you can have 24 slots item in exchange/trade dialog. ServerSide Open your "game/exchange.cpp" in Source File and search: m_pGrid = M2_NEW CGrid(4,3); Replace with: m_pGrid = M2_NEW CGrid(6,4); Open "game/exchange.h" and search: EXCHANGE_ITEM_MAX_NUM = 12 Replace with: EXCHANGE_ITEM_MAX_NUM = 24 Now you can compile your Game File. ClientSide Open "UserInterface/PythonExchange.h" from your Binary Source files and search: EXCHANGE_ITEM_MAX_NUM = 12 Replace with: EXCHANGE_ITEM_MAX_NUM = 24 Now you can compile your Client Binary. Extract "pack/uiscript" from your Client and open "exchangedialog.py", replace all content with: ExchangeDialog.py ~ 24 Slot Item Now you can compress your UiScript. Good work, Bye.
  7. #Update [26-02-15] Added PrivateShop with 80 Items.
  8. I think bin -> lenght.h Edit: Ok, you mean in Client Binary
  9. No problem! Today I'll update this post with this changes too
  10. Mmh first correction is Ok, maybe I copied another Client's File. But I said the second Anyway thank you!
  11. #Update[24-02-15] Fixed Client Bug. Changes in "shop_manager.cpp" added. Thanks all for your help, i forgot some String and Bug.
  12. 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.
  13. He release something and you insult him... His tutorial is correct, I'm pretty sure. If you doing something wrong, it's your fault. And you still can reverse the tutorial (use original files). Thank you man
  14. I'll give you my Skype contact and I'll help you. I'm out now, when I come back home I'll fix your error.
  15. Then you should make changes in novaline too and compile db.
  16. It works fine. Have you compiled Game File and Db File after changes?
  17. In yout error case, the problem is Tab character. Check "shopdialog.py" file. Wow, thank you. I totally forgot it! Today I'll post the fix.
  18. This is right, I have just explained it better.
  19. M2 Download Center Download Here ( Internal ) Hello, To extend NPC Shop to 80 Items follow these steps. ServerSide Open "common/length.h" and search: SHOP_HOST_ITEM_MAX_NUM = 40 Replace with: SHOP_HOST_ITEM_MAX_NUM = 80 In the same file search: SHOP_PRICELIST_MAX_NUM = 40 Replace with: SHOP_PRICELIST_MAX_NUM = 80 Now open "game/shop.cpp" and search: m_pGrid = M2_NEW CGrid(5, 9) Replace with: m_pGrid = M2_NEW CGrid(10, 9) Now open "game/shop_manager.cpp" and search: CGrid grid = CGrid(5, 9) Replace with: CGrid grid = CGrid(10, 9) Now compile Db File & Game File and ServerSide's steps complete. ClientSide 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. Extract "pack/uiscript" from your Client and open "shopdialog.py". Now reaplace all content with: Shopdialog.py ~ 80 Items Now create "shopdialog2.py" and insert this content: ShopDialog2 ~ 80 Items for Shop Ok, at this point you can compress your UiScript with the new file "shopdialog2.py". Extract "pack/root" from your Client and open "interfacemodule.py" Search this: self.dlgShop = uiShop.ShopDialog() self.dlgShop.LoadDialog() self.dlgShop.Hide() After add: self.dlgShop2 = uiShop.ShopDialog2() self.dlgShop2.LoadDialog() self.dlgShop2.Hide() Same file, search this: def OpenShopDialog(self, vid): self.wndInventory.Show() self.wndInventory.SetTop() self.dlgShop.Open(vid) self.dlgShop.SetTop() After add: def OpenShopDialog2(self, vid): self.wndInventory.Show() self.wndInventory.SetTop() self.dlgShop2.Open(vid) self.dlgShop2.SetTop() Now open "game.py" and Search: def StartShop(self, vid): self.interface.OpenShopDialog(vid) Replace with: def StartShop(self, vid): if chr.IsNPC(vid): self.interface.OpenShopDialog(vid) else: self.interface.OpenShopDialog2(vid) Now open "uishop.py" and Search: def Close(self): self.OnCloseQuestionDialog() shop.Close() net.SendShopEndPacket() self.CancelShopping() self.tooltipItem.HideToolTip() self.Hide() Replace with: def Close(self): self.OnCloseQuestionDialog() shop.Close() net.SendShopEndPacket() self.CancelShopping() self.Hide() Same file, search: def OnUpdate(self): USE_SHOP_LIMIT_RANGE = 1000 (x, y, z) = player.GetMainCharacterPosition() if abs(x - self.xShopStart) > USE_SHOP_LIMIT_RANGE or abs(y - self.yShopStart) > USE_SHOP_LIMIT_RANGE: self.Close() After add: UiShop.py ~ ShopDialog2 Now you can compress "root" file. #Update [24-02-15] Fixed Client Bug. Changes in "shop_manager.cpp" added. #Update [26-02-15] Added PrivateShop with 80 Items. NPC & PrivateShop with 80 Items ClientSide: Open "UserInterface/Packet.h" in you Binary Client Source and Search: SHOP_HOST_ITEM_MAX_NUM = 40 Replace with: SHOP_HOST_ITEM_MAX_NUM = 80 Now you can compile your Binary Source. Open your Client File and extract "pack/uiscript". Open "shopdialog.py" and replace all contentwith: Shopdialog.py ~ 80 Items Now open "privateshopbuilder.py" and replace all content with: PrivateShopBuilder ~ 80 Items Now you can compress your UiScript. Screen Private Shop: [Hidden Content] Et Voilà, we ended. [Hidden Content] Good work, Bye.
  20. If you still need that I can make you a small tutorial.
  21. Hi, The problem is describe in your DB's Log. (Process: FDWATCH: peer null in event: ). I saw the Source Files for understand the problem and I saw that this error appears in several cases. In the past I had this error too and i solved it by changing locale with a clean version. Test and let me know!
×
×
  • 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.