Jump to content

xP3NG3Rx

Honorable Member
  • Posts

    855
  • Joined

  • Days Won

    402
  • Feedback

    100%

Everything posted by xP3NG3Rx

  1. Because it store the option what you set and keep it the last option in every client start. So if you disable it, and close the client itt will be disabled unti you don't enable it again an so on, better and sexier
  2. Do you know what are you talking about or I do not understand you? The chenking of the flag of the block in python now, but if you put the checking into c++ is similar and faster a little bit(s) I mean this: if systemSetting.IsShowMoneyText() == True: Same with this c++ code before the binary calls the python method: CPythonSystem::Instance().IsShowMoneyText()
  3. Thanks. I think better way if the flag is active do not call the python method in game.py PythonNetworkStreamPhaseGame.cpp Replace this: if (POINT_GOLD == PointChange.Type) { if (PointChange.amount > 0) { PyCallClassMemberFunc(m_apoPhaseWnd[PHASE_WINDOW_GAME], "OnPickMoney", Py_BuildValue("(i)", (int)PointChange.amount)); } } With this: if (POINT_GOLD == PointChange.Type) { if (PointChange.amount > 0 && CPythonSystem::Instance().IsShowMoneyText()) { PyCallClassMemberFunc(m_apoPhaseWnd[PHASE_WINDOW_GAME], "OnPickMoney", Py_BuildValue("(i)", (int)PointChange.amount)); } }
  4. Watafak are you talking about, txt-sql? xD Anyway this system is a part of the full system.
  5. void CHARACTER::DetermineDropMetinStone() { if (g_bDisabledStoneDrop) { m_dwDropMetinStone = 0; return; } //.... } The g_bDisabledStoneDrop is a configurable variable via CONFIG in config.h/.cpp
  6. In the first version of this system had an ugly (+) mark(from v15.2, and deleted by v15.3) icon(/item/trade.tga) on every items which are not tradeable. The actual version(I mean this grayscale) came with v15.4. Btw I planned to release it, but I don't know yet.
  7. 1.-2. Complicate to explain it, but with one word: Affect 3. char_item.cpp > UseItemEx > ITEM_BLEND case 4. Google > "metin2 restart time c++"
  8. That isn't image, c++ code. if (IS_SET(rSlot.dwState, SLOT_STATE_UNUSABLE)) { CPythonGraphic::Instance().SetDiffuseColor(1.0f, 1.0f, 1.0f, 0.3f); CPythonGraphic::Instance().RenderBar2d(m_rect.left + rSlot.ixPosition, m_rect.top + rSlot.iyPosition, m_rect.left + rSlot.ixPosition + rSlot.byxPlacedItemSize * ITEM_WIDTH, m_rect.top + rSlot.iyPosition + rSlot.byyPlacedItemSize * ITEM_HEIGHT); }
  9. I do not know what is this and why need this, but the code is ugly a little. And what those commented lines are? If you release smthg do not put inside unnecessary codes. Here is a little code which is much sexier: import app, chat szText = "banword" fHandle = app.OpenTextFile("locale/en/block_words_python.txt") if not fHandle: return False if szText in [app.GetTextFileLine(fHandle, i).strip() for i in xrange(app.GetTextFileLineCount(fHandle))] chat.AppendChat(chat.CHAT_TYPE_INFO, "[SYSTEM] Blocked words were introduced!") return
  10. Wow, it's so cool idea, thank you!
  11. Seems syntax error. But what's the problem? If you unequip the new weapon, the effect will not removed?
  12. And what about with the header file?
  13. I know. ch is not declared, but no need pointer to finish the action. You may use "this->" or nothing (or... LPCHARACTER pc = this;). I just wanted to know why exists that pc-> tag.
  14. LPITEM item2 = pc->GetInventoryItem(i); error: 'pc' was not declared in this scope.
  15. You're welcome. Here you can find the useless new masked item_proto(en) as .txt: Protos m2_16.1.4_20752.7z
  16. I think this change is not neccessary. That is not so good if every monster will be aggregated in the user's viewrange. The standard is more than enough, but thanks.
  17. Attached proto to .xml dumper. ProtoTool_m2_16.1.4_20752.exe
  18. ps.: May someone send me(in PM) a correct media tag with spoiler, how can I post a direct video from youtube? 'Coz I can't post it, just their links :c
  19. Build as Distribute and forget Release.. The release mode is a half debug mode.
  20. Only am I know what does it means "clean"? HyperSuperMegaGiga-Clean Test für is not clean, seriously.
  21. Oh, dear...
×
×
  • 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.