safademirel
Member-
Posts
104 -
Joined
-
Last visited
-
Feedback
0%
About safademirel
Informations
-
Gender
Male
Recent Profile Visitors
2705 profile views
safademirel's Achievements
-
Get skill count - New Pet System
safademirel replied to Metin2 Dev's topic in Community Support - Questions & Answers
int CNewPetActor::GetSkillCount() { int skillCount = 0; for (int i = 0; i < 3; i++) { if (m_dwskillslot[i] >= 0) ++skillCount; } return skillCount; } pSummonItem->SetForceAttribute(7, 1, GetSkillCount()); try something like that. -
[C++]Some requests
safademirel replied to FlorinMarian's topic in Community Support - Questions & Answers
For the first problem check this out. -
C++ Change default Stats
safademirel replied to Siverbot's topic in Community Support - Questions & Answers
Yeah, you can change it right there. 16,14, 13, 13 change like this. -
C++ Change default Stats
safademirel replied to Siverbot's topic in Community Support - Questions & Answers
constants.cpp TJobInitialPoints JobInitialPoints[JOB_MAX_NUM] find change first 4 values. -
Line 1050 self.toolTip.AutoAppendNewTextLine(uiScriptLocale.SELECT_PLAYTIME % (playTime), grp.GenerateColor(1.0, 1.0, 0.0, 1.0)) change like that self.toolTip.AutoAppendNewTextLine(uiScriptLocale.SELECT_PLAYTIME % (str(playTime)), grp.GenerateColor(1.0, 1.0, 0.0, 1.0))
-
uiinventory : [Hidden Content] uiprivateshopbuilder : [Hidden Content]
-
try this uiprivateshopbuilder.py def OnClose(self): def Open(self, title,days): add to this methods shop.RefreshInventorySafa() if doesn't work send your uiinventory and uiprivateshopbuilder
-
def ShowWindow(self, size): def Close(self): def CommandCloseSafebox(self): add to this methods shop.RefreshInventorySafa()
-
def BINARY_Highlight_Item(self, inven_type, inven_pos): if self.interface: self.interface.Highligt_Item(inven_type, inven_pos) try this.
- 5 replies
-
- 10
-
Yeah it should work or if it didnt work try like this. PythonNetworkStreamPhaseGame.cpp case SHOP_SUBHEADER_GC_START: add __RefreshInventoryWindow(); case SHOP_SUBHEADER_GC_END change like that case SHOP_SUBHEADER_GC_END: { PyCallClassMemberFunc(m_apoPhaseWnd[PHASE_WINDOW_GAME], "EndShop", Py_BuildValue("()")); __RefreshInventoryWindow(); } and thats my uiinventory if ((exchange.isTrading() and item.IsAntiFlag(item.ANTIFLAG_GIVE)) or (shop.IsOpen() and not shop.IsPrivateShop() and item.IsAntiFlag(item.ITEM_ANTIFLAG_SELL)) or (uiPrivateShopBuilder.IsBuildingPrivateShop() and item.IsAntiFlag(item.ITEM_ANTIFLAG_MYSHOP))): self.wndItem.SetUnusableSlot(i) self.listUnusableSlot.append(i) elif ((not exchange.isTrading() and item.IsAntiFlag(item.ANTIFLAG_GIVE) and slotNumber in self.listUnusableSlot) or (not shop.IsOpen() and shop.IsPrivateShop() and item.IsAntiFlag(item.ITEM_ANTIFLAG_SELL) and slotNumber in self.listUnusableSlot) or ( not uiPrivateShopBuilder.IsBuildingPrivateShop() and item.IsAntiFlag(item.ITEM_ANTIFLAG_MYSHOP) and slotNumber in self.listUnusableSlot )): self.wndItem.SetUsableSlot(i) self.listUnusableSlot.remove(i)
-
def OnClose(self): and def Open(self, title): self.RefreshInventorySafa() change this to shop.RefreshInventorySafa() You added it wrong
-
can you show me your uiPrivateShopBuilder.py
-
PythonShop.cpp search PyObject * shopGetTabCount(PyObject * poSelf, PyObject * poArgs) { return Py_BuildValue("i", CPythonShop::instance().GetTabCount()); } add PyObject * shopRefreshSafa(PyObject * poSelf, PyObject * poArgs) { CPythonNetworkStream::Instance().__RefreshInventoryWindow(); return Py_BuildNone(); } search { "GetTabCoinType", shopGetTabCoinType, METH_VARARGS }, add { "RefreshInventorySafa", shopRefreshSafa, METH_VARARGS }, PythonNetworkStream.h change __RefreshInventoryWindow() and REFRESH_WINDOW_TYPE to public uiprivateshopbuilder.py find def Open(self, title,days): add shop.RefreshInventorySafa() find def OnClose(self): add shop.RefreshInventorySafa()
-
http://www.elitepvpers.com/forum/metin2-pserver-guides-strategies/3179066-release-c-anti-exp-ring.html
-
int pc_get_ip(lua_State* L) { LPCHARACTER ch = CQuestManager::instance().GetCurrentCharacterPtr(); if(!ch) return 0; lua_pushstring(L, ch->GetDesc()->GetHostName()); return 1; } quest iptest begin state start begin when kill begin local vid = npc.get_vid() local old_pc = pc.select(vid) if old_pc != 0 then local e_ip = pc.get_ip() local e_name = pc.get_name() pc.select(old_pc) local m_ip = pc.get_ip() local m_name = pc.get_name() if e_ip == m_ip then syschat("same ip") syschat(""..e_name.." : "..e_ip.."") syschat(""..m_name.." : "..m_ip.."") else syschat("not same ip") end end end end end Try this one.