Jump to content

IonutRO

Member
  • Posts

    191
  • Joined

  • Last visited

  • Days Won

    5
  • Feedback

    0%

Everything posted by IonutRO

  1. You can make a converter yourself, it's really simple. You use tabs as delimiters and take line by line.
  2. In eterPythonLib/PythonSlotWindow.h search: CGraphicImageInstance * pInstance; Add after: CGraphicImageInstance * pInstanceLevel; Search for: void Destroy(); Insert after: void SetSlotLevelImage(DWORD dwIndex, CGraphicImage * levelImage); Open eterPythonLib/PythonSlotWindow.cpp and search: Slot.pFinishCoolTimeEffect = NULL; Add after: Slot.pInstanceLevel = NULL; Search for: void CSlotWindow::SetSlotCount(DWORD dwIndex, DWORD dwCount) Insert after: void CSlotWindow::SetSlotLevelImage(DWORD dwIndex, CGraphicImage * levelImage) { TSlot * pSlot; if (!GetSlotPointer(dwIndex, &pSlot) || !levelImage) return; assert(NULL == pSlot->pInstanceLevel); pSlot->pInstanceLevel = CGraphicImageInstance::New(); pSlot->pInstanceLevel->SetDiffuseColor(1.0, 1.0, 1.0, 1.0); pSlot->pInstanceLevel->SetImagePointer(levelImage); } Search: pSlot->dwCenterSlotNumber = 0xffffffff; Add after: if (pSlot->pInstanceLevel) { CGraphicImageInstance::Delete(pSlot->pInstanceLevel); pSlot->pInstanceLevel = NULL; } Search: if (rSlot.bActive) Add before: if (rSlot.pInstanceLevel) { rSlot.pInstanceLevel->SetPosition(m_rect.left + rSlot.ixPosition, (m_rect.top + rSlot.iyPosition + rSlot.byyPlacedItemSize*ITEM_HEIGHT) - 32); rSlot.pInstanceLevel->Render(); } Open eterPythonLib/PythonWindowManagerModule.cpp and search: void initwndMgr() Add before: PyObject * wndMgrSetSlotImage(PyObject * poSelf, PyObject * poArgs) { UI::CWindow * pWin; if (!PyTuple_GetWindow(poArgs, 0, &pWin)) return Py_BuildException(); int iSlotIndex; if (!PyTuple_GetInteger(poArgs, 1, &iSlotIndex)) return Py_BuildException(); char * szImagePath; if (!PyTuple_GetString(poArgs, 2, &szImagePath)) return Py_BuildException(); if (!pWin->IsType(UI::CSlotWindow::Type())) return Py_BuildException(); UI::CSlotWindow * pSlotWin = (UI::CSlotWindow *)pWin; CGraphicImage * pImage = (CGraphicImage *)CResourceManager::Instance().GetResourcePointer(szImagePath); if (!pImage) return Py_BuildException(); pSlotWin->SetSlotLevelImage(iSlotIndex, pImage); return Py_BuildNone(); } Search: { "ShowOverInWindowName", wndMgrShowOverInWindowName, METH_VARARGS }, Add after: { "SetSlotLevelImage", wndMgrSetSlotImage, METH_VARARGS }, Open root/ui.py and search for: wndMgr.SetSlotCount(self.hWnd, renderingSlotNumber, ItemCount) Add after: ####Item level text/icon ### itemName=item.GetItemName().strip() itemNameP=item.GetItemName().rfind('+') if itemNameP>0 and len(itemName)>itemNameP+1: level=itemName[itemNameP+1:] if level.isdigit(): wndMgr.SetSlotLevelImage(self.hWnd, renderingSlotNumber, ("icon/level/%d.tga"%int(level))) ####Item level text/icon END ### The 'level' directory will be in icon/level/ . Here are the files. There is also a PSD file ? https://mega.nz/file/VslF2RDa#AVG_5vk3OUd2YhKmCoOmAWZBQkyXBMTv8vPIJB0gQMM
  3. Just change that "10." with "89.". I'm not an expert, is just an ideea. Idk what is used for that var g_szInternalIP.
  4. Simple, and yet a very good idea. Nice work.
  5. I had planned this update for some time. It's just that I haven't published anything yet, because I still have work on it. People who come to me to encode their design receive the latest files, so some of them have already this. I didn't realize it was a security issue. I initially made that change some time ago because many email services need to receive the source email, not one that doesn't exist.
  6. Most people have asked for this. I can do and txt :))
  7. Link: [Hidden Content] It is a tool that converts item_proto and mob_proto between SQL and XML. I understood that before there was a site that did this, but now it doesn't work anymore. I said do something similar. For those who do not want to use the data in the database, just create another that is not related to the server. It was easier for me to make the converter like this.
  8. [Hidden Content] in romania, not very powerfull, but most people use it for small servers.
  9. Update[10.04.2020]: The site has been updated. (4597 items)
  10. I edited your quest. If you ask such a question, good luck,
  11. quest level begin state start begin when 70090.use with pc.get_level() >= 1 begin pc.set_level(pc.get_level()+1) chat("One level up!") end end end
  12. CREATE TABLE `itemshop_logs` ( `id` int(11) NOT NULL, `account_id` int(11) NOT NULL, `coins` int(11) NOT NULL DEFAULT 0, `who` varchar(24) NOT NULL, `what` int(11) DEFAULT NULL, `count` int(11) NOT NULL DEFAULT 0, `date` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; ALTER TABLE `itemshop_logs` ADD PRIMARY KEY (`id`); ALTER TABLE `itemshop_logs` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; COMMIT;
  13. CREATE TABLE `itemshop_logs` ( `id` int(11) NOT NULL, `account_id` int(11) NOT NULL, `coins` int(11) NOT NULL DEFAULT 0, `who` varchar(24) NOT NULL, `what` int(11) DEFAULT NULL, `count` int(11) NOT NULL DEFAULT 0, `date` datetime NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; ALTER TABLE `itemshop_logs` ADD PRIMARY KEY (`id`); ALTER TABLE `itemshop_logs` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; COMMIT;
  14. Update[03.01.2020]: The site has been updated. (4324 items) All the official items that are currently present have been added. You can now view only one type of object.
  15. This is a very nice design. Thank you!
  16. Can someone extract item_names.txt from the all locales? Thank you!
  17. Hello! Some news? I, too, have thought of something similar in the past.
  18. You can do it. Html DOM. You need to select what do you need from official wiki and the compare the name of the item with the item list.
  19. You need to select add item by account or by player name.
  20. I did not do either of them. But if you find him, you can contact me anytime.
  21. There are scripts from darkdev, one friend that creates sites for metin. You updated all scripts to pdo? mysql also it's an extesion, that was removed since php 7, and deprecated since php 5.5.
  22. Here is my function [Hidden Content] Maybe will be helpful for somebody
×
×
  • 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.