Jump to content

IonutRO

Member
  • Posts

    191
  • Joined

  • Last visited

  • Days Won

    5
  • Feedback

    0%

Posts posted by IonutRO

  1. 88o2aV.png

    In eterPythonLib/PythonSlotWindow.h search:

    CGraphicImageInstance * pInstance;

    Add after:

    CGraphicImageInstance * pInstanceLevel;

    7AZXQW.png

    Search for:

    void Destroy();

    Insert after:

    void SetSlotLevelImage(DWORD dwIndex, CGraphicImage * levelImage);

    qEn8Q5.png

     

    Open eterPythonLib/PythonSlotWindow.cpp and search:

    Slot.pFinishCoolTimeEffect = NULL;

    Add after:

    Slot.pInstanceLevel = NULL;

    0yANA8.png

    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);
    
    }

    znql1j.png

    Search:

    pSlot->dwCenterSlotNumber = 0xffffffff;

    Add after:

    if (pSlot->pInstanceLevel)
    {
    	CGraphicImageInstance::Delete(pSlot->pInstanceLevel);
    	pSlot->pInstanceLevel = NULL;
    }

    Mk4gQ1.png

    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();
    }

    A3P6Mv.png

     

    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();
    }

    G3X2rb.png

    Search:

    { "ShowOverInWindowName",        wndMgrShowOverInWindowName,            METH_VARARGS },

    Add after:

    { "SetSlotLevelImage",            wndMgrSetSlotImage,                    METH_VARARGS },

    9Glqj8.png

     

    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 ###

    mEZ7nZ.png

    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

    Quote

    Source: turkmmo

     

    • Metin2 Dev 1
    • Love 5
  2. 2 minutes ago, metho said:

    @⚡FlasH⚡  Strange, i downloaded the lastest version, encountered the issue, fixed it, posted it on another forum and get in contact with him personally. My guess would be, he implemented it as a sort of feature and now reverted it back to its original state. Maybe he will answer too here @Ionuț

    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. :) 

    • Love 1
  3. Link: https://metin2cms.cf/tools/

     

    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. :) 

    • Metin2 Dev 11
    • Confused 1
    • Good 7
    • Love 1
    • Love 7
  4. 2 hours ago, Domik309 said:

     

     

    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;

     

  5. 
    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;
    
    

  6. La 05.09.2016 la 18:25, Optimus a spus:

     

    a7dy68w.png

    Update[05.01.2019]:

    The site has been updated.  (2727 items)

    All the official items that are currently present have been added.

    I have also changed the theme of the site.

    Objects can be found in 16 languages.

    An Android app has been created that does not require Internet connection.  ( https://play.google.com/store/apps/details?id=work.ionut.itemdb  ) 

     

  7. There are scripts from darkdev, one friend that creates sites for metin. You updated all scripts to pdo?

     

    Acum 2 ore, Fleon a spus:

    from this i understood that you know nothing about it, pdo is a php extension/driver and MySQL is a database so this must be some ripoff that i won't even look at.

    mysql also it's an extesion, that was removed since php 7, and deprecated since php 5.5.

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