Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 02/07/17 in all areas

  1. Here u go for it: [Hidden Content] Unpacked by Raicon (thx) This file just contains the metin2_patch_10th
    3 points
  2. Hello metin2dev community! I'm new here and I'm learning how to mod metin. Yesterday I have been trying to work with item_proto and I must say - it's really difficult to find everything item_proto related (packers, converters, etc...) So I have made 2 converters and now I want to share 'em with this great community. HOW TO UNPACK/CONVERT/PACK ITEM_PROTO (this tutorial is only for people using 40K+ item_proto without TXT files (for example vanilla core) What we are going to do: 1. Unpack item_proto (so we will get XML file) 2. Convert this XML to SQL (for Navicat query) 3. Convert SQL back to XML (so we can pack it again) 4. Pack item_proto (from XML) What we will need: 1. Proto archiver (download) - [Hidden Content] 2. My XML to SQL converter I have written (no download) - [Hidden Content] 3. My SQL to XML converter I have written (no download) - [Hidden Content] PASSWORD: METIN How to do it: 1. First of all we need to download and extract proto_archiver.rar (use WinRar or 7zip) 2. Then we need to move our item_proto to folder, where we have extracted proto_archiver.rar 3. Run unpack_item_proto.bat and item_proto.xml will appear 4. Open item_proto.xml 5. Open XML to SQL converter 5. Make sure, that lines from item_proto.xml looks like example in XML to SQL converter (for example there must be column LocalizedName) 6. Paste the content of item_proto.xml into textarea in XML to SQL converter. 7. Click Convert and wait for action to be done 8. Fix errors if any and try again (for example you can have , in name column so converter will think that that name are 2 columns separated by ,) 9. After you have your conversion done, you can make query to your item_proto table. 10. Do what you want (changes in DB, additional queries, ...) 11. Now you need to dump SQL file (right click to item_proto table - dump SQL file) 12. Save it somewhere and open it 13. Delete everything on the start so only lines with INSERT INTO will remain 14. Copy everything and paste it into SQL to XML converter and click Convert 15. Everything should be ok now, so copy your XML result and save it into file item_proto.xml 16. Run pack_item_proto.bat and it will make from new item_proto.xml packed item_proto DONE
    1 point
  3. M2 Download Center Download Here ( Internal ) This is a revised version of an old thread. Following this How-To, you will have a better customizable solution for the aspect of your quests. You will be able to choice amongst: quest icon, text color, blink effect (like whisper buttons) How To You just need to replace 2 little things: I) In interfaceModule.py, replace BINARY_RecvQuest with: [Hidden Content] II) In questlib.lua, replace send_letter_ex with: [Hidden Content] Explanation: -the 2° argument of send_letter_ex will support multiple parameters: -green|blue|purple|golden|fucsia|aqua and so on (you can add them in BINARY_RecvQuest by adding new colors 0xFF+#HEX; Color Picker Online) -blink (the quest will flash like the whisper messages) -ex (a dummy tag to separate it from "info" and "item") -the 3° argument is the name of the icon to choose, which the current availables are: -scroll_open.tga -scroll_open_green.tga -scroll_open_blue.tga -scroll_open_purple.tga -scroll_open_golden.tga Examples: send_letter_ex(localeInfo.LanguageOptionTitle, "green,blink,ex", "scroll_open_green.tga") send_letter_ex(localeInfo.LanguageOptionTitle, "blue,blink,ex", "scroll_open_blue.tga") send_letter_ex(localeInfo.LanguageOptionTitle, "purple,blink,ex", "scroll_open_purple.tga") send_letter_ex(localeInfo.LanguageOptionTitle, "golden,blink,ex", "scroll_open_golden.tga") send_letter_ex(localeInfo.LanguageOptionTitle, "golden,blink,ex", "scroll_open.tga") Note: As you can imagine, the only limitation is that the color in N won't appear. (it will require additional code and work, so just forget it) Download: Check the attachment (colored-quest-scrolls-v2-res.7z) and add metin2_patch_new_questicon in your client.
    1 point
  4. I dont know if cluster will help.But maybe are to many calls to the same table.Spliting DB will help but i never did that. Check this topic :
    1 point
  5. I dont know about ur serverfiles but that mysql usage is very bad. Try add more ram.Clear logs. look mine :
    1 point
  6. 1 point
  7. Thousands of thanx ! My respect for you!
    1 point
  8. That should work: uiInventory.py: find: ITEM_FLAG_APPLICABLE = 1 << 14 add bellow: CHECK_ACTIVE_PICKUP = 0 find: self.costumeButton = self.GetChild2("CostumeButton") add bellow: self.pickUpButton = self.GetChild2("PickUpButton") find: self.wndCostume = None add bellow: self.pickUpButton.SetEvent(ui.__mem_func__(self.__EnablePickUpItem)) find: def ClickMallButton(self): print "click_mall_button" net.SendChatPacket("/click_mall") add bellow: def __EnablePickUpItem(self): global CHECK_ACTIVE_PICKUP if CHECK_ACTIVE_PICKUP == 0: CHECK_ACTIVE_PICKUP = 1 constInfo.ENABLE_PICKUP = 1 else: CHECK_ACTIVE_PICKUP = 0 constInfo.ENABLE_PICKUP = 0 add in inventorywindow.py bellow costume code / mall code: ## CostumeButton { "name": "pickUpButton", "type": "button", "x": 118, "y": 100, "default_image": "d:/ymir work/ui/game/windows/money_icon.sub", "over_image": "d:/ymir work/ui/game/windows/money_icon.sub", "down_image": "d:/ymir work/ui/game/windows/money_icon.sub", },
    1 point
  9. What happens? Gameforge starts to close Private Servers? Servers down: Hardcore Reloaded Underground Mt2 Shiro2 Shiro3 Cyperia M2Global Vacation2 Lavanda2 Rocknada2 Can anyone tell us what happening? Play on 14:40: The time has come?
    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.