Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 04/16/15 in all areas

  1. 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.
    1 point
  2. Hello , first off all , if you don't have any ideea what C++ is and you want Wolfman/Lycan full unbugged on your server and other features , you can contact [Hidden Content] I will give you everything to run a test-server with Lycan , but you have to work a lot to make something stable , there are a lot of major bugs. The server files doesn't contains any data , no drops , no npcs , no quests. Only the basic things to make it work. With these , i will give you a fully compatible client in English with everything already installed. The SLN files to recompile your own launcher , and the source files for the server. The compiled DB on the Test Server will run mob_proto & item_proto only from MySQL. Screens: Test account: Username: syron Password: test Download links & Virustotal: NEW FILES : [Hidden Content] Lycan Test Client (EN) - [Hidden Content] Wolfman Source - [Hidden Content] Wolfman Binary SLN - [Hidden Content] Test Server - [Hidden Content] item_proto.sql update in English (only rewrite , don't delete the one from Test Server, thanks to Asta ! ) - [Hidden Content] Start Positions for Lycan Special Map ( thanks to Denis for some informations! ) (compatible with my Test Server) - [Hidden Content] Wolfman Source - [Hidden Content] Wolfman Binary SLN - [Hidden Content] Test Server - [Hidden Content] Start Positions - [Hidden Content]
    1 point
  3. Right click TorrentPatch project, go to Properties and here click on Build Events and delete everything that you find in Command Line.
    1 point
  4. Here has the following functions in C ++ mysql.query mysql.direct_query mysql.update mysql.real_escape_string mysql.get_table_postfix go to game / src open queslua.cpp under RegisterDragonSoulFunctionTable(); add RegisterMysqlFunctionTable(); open queslua.h under extern void RegisterDragonSoulFunctionTable(); add extern void RegisterMysqlFunctionTable(); add in the makefile questlua_mysql.cpp Download the file [Hidden Content] VirusTotal [Hidden Content]
    1 point
  5. the thing is you can optimize a game core and a client bin to support your client without any kind of changes i dont know why would want to get a 34k client even while editing and recompling the rev will change with the time from r34k to one day r600000k (you must be already long dead by that time)
    1 point
  6. self.TitleName.SetText(localeInfo.EXCHANGE_TITLE % (exchange.GetNameFromTarget(), int(exchange.GetLevelFromTarget())))
    1 point
  7. Yeah i don't have it either dunno how everyone else have it lol.
    1 point
×
×
  • 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.