Jump to content

Owsap

Honorable Member
  • Posts

    262
  • Joined

  • Last visited

  • Days Won

    29
  • Feedback

    91%

Community Answers

  1. Owsap's post in Affect Limit (Visuals) was marked as the answer   
  2. Owsap's post in Assign an item/quest to a keyboard's key button. was marked as the answer   
    Although I'm not entirely sure why you would want something like this, I will leave you an example for items.
    Python Method Only
    Python & C++ Method
    I did not test before posting, excuse me if something goes wrong.
  3. Owsap's post in Disable keyboard while warping was marked as the answer   
    Just to answer the question of the topic, this is one way you can disable any key input while in the loading phase.
    /* * NOTE: This will only prevent inputting any key while in the loading phase. * Be aware that you can still hit any key when selecting the character until it changes into the loading phase. */ /// 1. @ UserInterface/PythonNetworkStream.h // Search public: CPythonNetworkStream(); // Add above bool IsLoadingPhase() { return (m_strPhase == "Loading"); } /// 2. @ UserInterface/PythonNetworkStream.h // Search bool __DirectEnterMode_IsSet(); // Add below public: bool DirectEnterMode_IsSet() { return __DirectEnterMode_IsSet(); } /// 3. @ UserInterface/PythonApplicationEvent.cpp // Search void CPythonApplication::OnKeyDown(int iIndex) // Add below (You might need to include "InstanceBase.h" CPythonNetworkStream& rkInstance = CPythonNetworkStream::Instance(); if (rkInstance.DirectEnterMode_IsSet() || rkInstance.IsLoadingPhase()) return;  
  4. Owsap's post in "packet.h" Can I use vector while transferring data? was marked as the answer   
    I would suggest using the common approach, the use of structs, as it has always been used and the reason behind the file @ "Srcs/Server/common/tables.h" for this purpose.
    Of course, there are other ways you can do this without using vectors but if you're trying to send multiple data you could also consider and should use dynamic packets for this approach.
    In the other hand, we can't guarantee that the size of the vector will be the same as the host and client and we mainly don't use it by its dynamic structure if the packet is static.

    Regardless, I'm not saying it's not possible, in fact, I haven't tried to test this but I'm sure this wouldn’t work with static packets.
  5. Owsap's post in Filtering the chat was marked as the answer   
    Use a static variable instead for szTmpBuf.
    static char szTmpBuf[1024 + 1] = {};
  6. Owsap's post in notice_all_color was marked as the answer   
    function notice_all_yellow(text) notice_all("|cFFFFFF00|H|h" .. text) end  
  7. Owsap's post in Owsap Alignment Affect was marked as the answer   
    /// 1. @ game/char_affect.cpp // Search @ void CHARACTER::ClearAffect if (IS_NO_CLEAR_ON_DEATH_AFFECT(pkAff->dwType) || IS_NO_SAVE_AFFECT(pkAff->dwType)) { ++it; continue; } // Add below #if defined(__ALIGNMENT_AFFECT__) if (pkAff->dwType >= AFFECT_ALIGNMENT) { ++it; continue; } #endif  
  8. Owsap's post in Problem With KnockBack was marked as the answer   
    Here is your problem.
    Change
    int iRet; if(iRet != BATTLE_NONE) { pkVictim->SetSyncOwner(this); if (pkVictim->CanBeginFight()) pkVictim->BeginFight(this); } With
    pkVictim->SetSyncOwner(this); if (pkVictim->CanBeginFight()) pkVictim->BeginFight(this); int iRet;  
  9. Owsap's post in Align bonus was marked as the answer   
    GitHub Repository: 
    This is the hidden content, please Sign In or Sign Up Preview: https://metin2.download/picture/3m27cf351hv67tz592fY1akdHlKKN5Zs/.gif
  10. Owsap's post in Gameforge npc_talk was marked as the answer   
    https://pastebin.com/bfWs65JK
  11. Owsap's post in Vote for the best locale file structure was marked as the answer   
    2 it is, thanks for all the votes.
×
×
  • 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.