Jump to content

safademirel

Inactive Member
  • Posts

    104
  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by safademirel

  1. 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.
  2. Yeah, you can change it right there. 16,14, 13, 13 change like this.
  3. constants.cpp TJobInitialPoints JobInitialPoints[JOB_MAX_NUM] find change first 4 values.
  4. 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))
  5. uiinventory : [Hidden Content] uiprivateshopbuilder : [Hidden Content]
  6. 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
  7. def ShowWindow(self, size): def Close(self): def CommandCloseSafebox(self): add to this methods shop.RefreshInventorySafa()
  8. def BINARY_Highlight_Item(self, inven_type, inven_pos): if self.interface: self.interface.Highligt_Item(inven_type, inven_pos) try this.
  9. 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)
  10. def OnClose(self): and def Open(self, title): self.RefreshInventorySafa() change this to shop.RefreshInventorySafa() You added it wrong
  11. 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()
  12. http://www.elitepvpers.com/forum/metin2-pserver-guides-strategies/3179066-release-c-anti-exp-ring.html
  13. 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.
  14. Thanks for comments, I edited the first post.
  15. M2 Download Center Download Here ( Internal ) InstanceBase.h find NAMECOLOR_WAYPOINT, add NAMECOLOR_METIN, PythonCharacterManagerModule.cpp find PyModule_AddIntConstant(poModule, "NAMECOLOR_MOB", CInstanceBase::NAMECOLOR_NORMAL_MOB); add PyModule_AddIntConstant(poModule, "NAMECOLOR_METIN", CInstanceBase::NAMECOLOR_METIN); InstanceBaseEffect.cpp find else if (IsPoly()) { return NAMECOLOR_MOB; } add else if (IsStone()) { return NAMECOLOR_METIN; } PythonMiniMap.cpp find m_NPCPositionVector.clear(); add m_MetinPositionVector.clear(); find else if (pkInstEach->IsNPC()) { aMarkPosition.m_fX = ( m_fWidth - (float)m_WhiteMark.GetWidth() ) / 2.0f + fDistanceFromCenterX + m_fScreenX; aMarkPosition.m_fY = ( m_fHeight - (float)m_WhiteMark.GetHeight() ) / 2.0f + fDistanceFromCenterY + m_fScreenY; m_NPCPositionVector.push_back(aMarkPosition); } add else if (pkInstEach->IsStone()) { aMarkPosition.m_fX = ( m_fWidth - (float)m_WhiteMark.GetWidth() ) / 2.0f + fDistanceFromCenterX + m_fScreenX; aMarkPosition.m_fY = ( m_fHeight - (float)m_WhiteMark.GetHeight() ) / 2.0f + fDistanceFromCenterY + m_fScreenY; m_MetinPositionVector.push_back(aMarkPosition); } find // NPC STATEMANAGER.SetRenderState(D3DRS_TEXTUREFACTOR, CInstanceBase::GetIndexedNameColor(CInstanceBase::NAMECOLOR_NPC)); aIterator = m_NPCPositionVector.begin(); while (aIterator != m_NPCPositionVector.end()) { TMarkPosition & rPosition = *aIterator; m_WhiteMark.SetPosition(rPosition.m_fX, rPosition.m_fY); m_WhiteMark.Render(); ++aIterator; } add // Metin STATEMANAGER.SetRenderState(D3DRS_TEXTUREFACTOR, CInstanceBase::GetIndexedNameColor(CInstanceBase::NAMECOLOR_METIN)); aIterator = m_MetinPositionVector.begin(); while (aIterator != m_MetinPositionVector.end()) { TMarkPosition & rPosition = *aIterator; m_WhiteMark.SetPosition(rPosition.m_fX, rPosition.m_fY); m_WhiteMark.Render(); ++aIterator; } PythonMiniMap.h find TInstanceMarkPositionVector m_NPCPositionVector; add TInstanceMarkPositionVector m_MetinPositionVector; root/colorinfo.py find CHR_NAME_RGB_WARP = (136, 218, 241) add CHR_NAME_RGB_METIN = (240, 255, 255) You can select another color from here root/introloading.py find chrmgr.NAMECOLOR_WAYPOINT : colorInfo.CHR_NAME_RGB_WAYPOINT, add chrmgr.NAMECOLOR_METIN : colorInfo.CHR_NAME_RGB_METIN,
  16. [Hidden Content] PLAYER_SQL: localhost xxx xxxx account change account with player but already it is for security "xxx" We put. normally connected seamlessly PLAYER_SQL: localhost xxx xxxx player change like this.You are connecting player tables to account database it's wrong.
  17. [Hidden Content] PLAYER_SQL: localhost xxx xxxx account change account with player
  18. input_main.cpp if (((false == ch->IsRiding() && fDist > 25) || fDist > 40) && OXEVENT_MAP_INDEX != ch->GetMapIndex()) For walking change 25, for horse change 40
  19. change CPPFILE with CPPFILE = BattleArena.cpp FSM.cpp MarkConvert.cpp MarkImage.cpp MarkManager.cpp OXEvent.cpp TrafficProfiler.cpp ani.cpp arena.cpp banword.cpp battle.cpp blend_item.cpp block_country.cpp buffer_manager.cpp building.cpp castle.cpp char.cpp char_affect.cpp char_battle.cpp char_change_empire.cpp char_horse.cpp char_item.cpp char_manager.cpp char_quickslot.cpp char_resist.cpp char_skill.cpp char_state.cpp PetSystem.cpp cmd.cpp cmd_emotion.cpp cmd_general.cpp cmd_gm.cpp cmd_oxevent.cpp config.cpp constants.cpp crc32.cpp cube.cpp db.cpp desc.cpp desc_client.cpp desc_manager.cpp desc_p2p.cpp dev_log.cpp dungeon.cpp empire_text_convert.cpp entity.cpp entity_view.cpp event.cpp event_queue.cpp exchange.cpp file_loader.cpp fishing.cpp gm.cpp guild.cpp guild_manager.cpp guild_war.cpp horse_rider.cpp horsename_manager.cpp input.cpp input_auth.cpp input_db.cpp input_login.cpp input_main.cpp input_p2p.cpp input_teen.cpp input_udp.cpp ip_ban.cpp item.cpp item_addon.cpp item_attribute.cpp item_manager.cpp item_manager_idrange.cpp locale.cpp locale_service.cpp log.cpp login_data.cpp lzo_manager.cpp marriage.cpp matrix_card.cpp messenger_manager.cpp mining.cpp mob_manager.cpp monarch.cpp motion.cpp over9refine.cpp p2p.cpp packet_info.cpp party.cpp passpod.cpp pcbang.cpp polymorph.cpp priv_manager.cpp pvp.cpp questevent.cpp questlua.cpp questlua_affect.cpp questlua_arena.cpp questlua_ba.cpp questlua_building.cpp questlua_danceevent.cpp questlua_dungeon.cpp questlua_forked.cpp questlua_game.cpp questlua_global.cpp questlua_guild.cpp questlua_horse.cpp questlua_pet.cpp questlua_item.cpp questlua_marriage.cpp questlua_mgmt.cpp questlua_monarch.cpp questlua_npc.cpp questlua_oxevent.cpp questlua_party.cpp questlua_pc.cpp questlua_quest.cpp questlua_target.cpp questmanager.cpp questnpc.cpp questpc.cpp refine.cpp regen.cpp safebox.cpp sectree.cpp sectree_manager.cpp sequence.cpp shop.cpp skill.cpp start_position.cpp target.cpp text_file_loader.cpp trigger.cpp utils.cpp vector.cpp war_map.cpp wedding.cpp xmas_event.cpp version.cpp panama.cpp threeway_war.cpp map_location.cpp auth_brazil.cpp BlueDragon.cpp BlueDragon_Binder.cpp DragonLair.cpp questlua_dragonlair.cpp HackShield.cpp HackShield_Impl.cpp char_hackshield.cpp skill_power.cpp affect.cpp SpeedServer.cpp questlua_speedserver.cpp XTrapManager.cpp auction_manager.cpp FileMonitor_FreeBSD.cpp ClientPackageCryptInfo.cpp cipher.cpp buff_on_attributes.cpp dragon_soul_table.cpp DragonSoul.cpp group_text_parse_tree.cpp char_dragonsoul.cpp questlua_dragonsoul.cpp shop_manager.cpp shopEx.cpp item_manager_read_tables.cpp spamblock.cpp
  20. With that i'll get the value of the pc.qf? Ex: pc.setqf("testqf", 7) CHARACTER::GetQuestFlag("questname.testqf") = 7 too? pc.setf("questname","testqf",7)
  21. When you start a guild war, you can select how many player can join war and you can set finish score in war.
×
×
  • 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.