-
Posts
191 -
Joined
-
Last visited
-
Days Won
5 -
Feedback
0%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Everything posted by IonutRO
-
[Problem]Convert Actually Item/mob_proto
IonutRO replied to arcathiel's topic in Community Support - Questions & Answers
You can make a converter yourself, it's really simple. You use tabs as delimiters and take line by line. -
On item, showing the "+9+8-etc" level
IonutRO replied to Ulthar's topic in Paid Support / Searching / Recruiting
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 -
can not get public ip address
IonutRO replied to Syrex's topic in Community Support - Questions & Answers
Just change that "10." with "89.". I'm not an expert, is just an ideea. Idk what is used for that var g_szInternalIP. -
Simple, and yet a very good idea. Nice work.
-
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.
-
Most people have asked for this. I can do and txt :))
-
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.
- 3 replies
-
- 27
-
Hosting and copyrights
IonutRO replied to BeHappy4Ever's topic in Community Support - Questions & Answers
[Hidden Content] in romania, not very powerfull, but most people use it for small servers. -
Update[10.04.2020]: The site has been updated. (4597 items)
-
I edited your quest. If you ask such a question, good luck,
-
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
-
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;
-
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;
-
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.
-
This is a very nice design. Thank you!
-
Metin2 Python Loader [GF] ?
IonutRO replied to kevin's topic in Community Support - Questions & Answers
Hello! Some news? I, too, have thought of something similar in the past. -
Did you try to set the time on a socket?
-
You need to select add item by account or by player name.
- 54 replies
-
- php
- javascript
-
(and 1 more)
Tagged with:
-
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.
- 13 replies
-
- javascript
- css
-
(and 1 more)
Tagged with:
-
How To Check Position for Slot Free in Item Shop
IonutRO replied to Zorke's topic in Programming & Scripts
Here is my function [Hidden Content] Maybe will be helpful for somebody