Metin Spin Wheel Sistemi - DracaryS

Sistem tamamen eksikdir bilginize Client src tarafı eksik game src tarafı eksik python tarafı eksik... bilgisi olan bille uğraşdırır 1 gününü alır hatta :D
 
Sistem tamamen eksikdir bilginize Client src tarafı eksik game src tarafı eksik python tarafı eksik... bilgisi olan bille uğraşdırır 1 gününü alır hatta :D
sistem eksik değil bilginize. sadece setinsiderender kısmı eksik kimsenin de 1 saatten fazlasını almaz :D
 
The system has some deficiencies in the source functions. Here are the deficiencies that you will face.

Open char.cpp
Add at the end of the file
Kod:
Genişlet Daralt Kopyala
void CHARACTER::SetProtectTime(const std::string& flagname, int value)
{
    itertype(m_protection_Time) it = m_protection_Time.find(flagname);
    if (it != m_protection_Time.end())
    {
        it->second = value;
    }
    else
    {
        m_protection_Time.insert(make_pair(flagname, value));
    }
}
int CHARACTER::GetProtectTime(const std::string& flagname) const
{
    itertype(m_protection_Time) it = m_protection_Time.find(flagname);
    if (it != m_protection_Time.end())
    {
        return it->second;
    }
    return 0;
}

Open char.h
Search for
Kod:
Genişlet Daralt Kopyala
void                UpdatePacket();
Add below it
Kod:
Genişlet Daralt Kopyala
    void    SetProtectTime(const std::string& flagname, int value);
    int        GetProtectTime(const std::string& flagname) const;
    
protected:
    std::map<std::string, int>  m_protection_Time;
Open utils.cpp
Add at the end
Kod:
Genişlet Daralt Kopyala
void split_argument(const char *argument, std::vector<std::string> & vecArgs)
{
    std::string arg = argument;
    boost::split(vecArgs, arg, boost::is_any_of(" "), boost::token_compress_on);
}
Open utils.h
Add
Kod:
Genişlet Daralt Kopyala
extern void split_argument(const char *argument, std::vector<std::string> & vecArgs);

You will face the announced problems, which are the question mark, which cannot be opened or clicked on to know what the existing prizes are.

You will also face a problem with the wheel rotation, the wheel will not appear due to the loss of SetInsideRender, and I am still trying to search for the solution, but I cannot find it :cry:
 
I fixed the problems with SetInsideRender function and added it via source client but there is an error

Kod:
Genişlet Daralt Kopyala
1016 23:54:32807 :: Traceback (most recent call last):

1016 23:54:32807 :: File "game.py", line 1913, in BINARY_ServerCommand_Run

1016 23:54:32808 :: File "stringCommander.py", line 63, in Run

1016 23:54:32808 :: File "stringCommander.py", line 31, in __call__

1016 23:54:32808 :: File "stringCommander.py", line 20, in __call__

1016 23:54:32808 :: File "interfaceModule.py", line 1914, in SetSpinReward 1016 23:54:32808 :: File "uiSpinWheel.py", line 313, in SetSpinReward 1016 23:54:32808 :: File "uiSpinWheel.py", in SetSpin 1016 23:54:3 2808 :: File "uiSpinWheel.py", line 128, in __init__ 1016 23:54:32808 :: File "uiSpinWheel.py", line 144, in __Load 1016 23:54:32808 :: TypeError 1016 23:54:32808 :: : 1016 23:54:32808 :: SAFE_SetStringEvent() takes exactly 3 arguments (4 given) 1016 23:54:32808 :: 1016 23:54:32808 :: Unknown Server Command SetSpinReward 51501 10 0|51501|1?1|51501|2?1|51501|4?1| 51501|6?1|51501|8?2|51501|10?2|51501|12?2|51501|14?3|71073|1 | SetSpinReward

I fixed it in an intuitive way and I think it is the worst way to solve this problem. I modified the line and added it in a different way. The system became like this



Also, there is still a problem with the Esc button and the question mark button does not work
 
I fixed the problems with SetInsideRender function and added it via source client but there is an error

Kod:
Genişlet Daralt Kopyala
1016 23:54:32807 :: Traceback (most recent call last):

1016 23:54:32807 :: File "game.py", line 1913, in BINARY_ServerCommand_Run

1016 23:54:32808 :: File "stringCommander.py", line 63, in Run

1016 23:54:32808 :: File "stringCommander.py", line 31, in __call__

1016 23:54:32808 :: File "stringCommander.py", line 20, in __call__

1016 23:54:32808 :: File "interfaceModule.py", line 1914, in SetSpinReward 1016 23:54:32808 :: File "uiSpinWheel.py", line 313, in SetSpinReward 1016 23:54:32808 :: File "uiSpinWheel.py", in SetSpin 1016 23:54:3 2808 :: File "uiSpinWheel.py", line 128, in __init__ 1016 23:54:32808 :: File "uiSpinWheel.py", line 144, in __Load 1016 23:54:32808 :: TypeError 1016 23:54:32808 :: : 1016 23:54:32808 :: SAFE_SetStringEvent() takes exactly 3 arguments (4 given) 1016 23:54:32808 :: 1016 23:54:32808 :: Unknown Server Command SetSpinReward 51501 10 0|51501|1?1|51501|2?1|51501|4?1| 51501|6?1|51501|8?2|51501|10?2|51501|12?2|51501|14?3|71073|1 | SetSpinReward

I fixed it in an intuitive way and I think it is the worst way to solve this problem. I modified the line and added it in a different way. The system became like this



Also, there is still a problem with the Esc button and the question mark button does not work
Çözüm sağlandı mı ?
 
Uyarı: Bu konu açıldığından bu yana baya zaman geçmiş.
Muhtemelen daha fazla tartışma gerekli değildir ki bu durumda yeni bir konu başlatmayı öneririz. Eğer yine de cevabınızın gerekli olduğunu düşünüyorsanız buna rağmen cevap verebilirsiniz.
Geri
Üst