Jump to content

Adrian1428

Inactive Member
  • Posts

    221
  • Joined

  • Last visited

  • Days Won

    1
  • Feedback

    0%

Posts posted by Adrian1428

  1.  

    This solve all problems.

     

     

    ou :D

    char.cpp

     

    In function CHARACTER::ComputePoints()

     

    Search:

    if (iMaxHP != GetMaxHP())
    {
    SetRealPoint(POINT_MAX_HP, iMaxHP); // 기본HP를 RealPoint에 저장해 놓는다.
    }
    
    
    PointChange(POINT_MAX_HP, 0);
    
    
    if (iMaxSP != GetMaxSP())
    {
    SetRealPoint(POINT_MAX_SP, iMaxSP); // 기본SP를 RealPoint에 저장해 놓는다.
    }
    
    
    PointChange(POINT_MAX_SP, 0);
    
    
    if (GetHP() > GetMaxHP())
    PointChange(POINT_HP, GetMaxHP() - GetHP());
    
    
    if (GetSP() > GetMaxSP())
    PointChange(POINT_SP, GetMaxSP() - GetSP());

    Copy this and remove.

     

    After replace before UpdatePacket();

     

     

    I try this a long tine ago and I have big problems with player hp after mount/unmount , hp has increased to all players.

     

    edit: I try only with

    if (GetHP() > GetMaxHP())
    PointChange(POINT_HP, GetMaxHP() - GetHP());
    
    
    if (GetSP() > GetMaxSP())
    PointChange(POINT_SP, GetMaxSP() - GetSP());
  2.  

    visual studio 2008 not support this windows , use xp :)

     

    Use XP? Are you really recommending using Windows XP? Please say no

     

    Btw why just not use google? Here you go: http://stackoverflow.com/questions/4886383/remote-debugging-in-visual-studio

     

    A virtual machine with windows xp , maybe? I try to install vs2008 on my windows 7 ultimate and don't work and I make a vdi with xp and everything works ok.

  3. In InstanceBase.cpp add

    const char * CInstanceBase::GetLevelString()
    {
    	char * str = new char[3];
    	sprintf(str,"%d",m_dwLevel);
    	return str;
    }
    

    in InstanceBase.h add

    const char * GetLevelString();

    Next in PythonNetworkStreamPhaseGame.cpp add in "if (pCharacterInstance){}"

     

    CPythonExchange::Instance().SetTargetLevel(pCharacterInstance->GetLevelString());
    

    Open PythonExchange.cpp and add

    void CPythonExchange::SetTargetLevel(const char *name)
    {
    	strncpy(m_victim.level, name, 3);
    }
    char * CPythonExchange::GetLevelFromTarget()
    {
    	return m_victim.level;
    }
    

    In PythonExchange.h  inside "typedef struct trade{}" add

    char	level[3];
    

    elsewhere in PythonExchange.h add too

    void			SetTargetLevel(const char *name);
    char			*GetLevelFromTarget();
    

    In PythonExchangeModule.cpp add inside  "static PyMethodDef s_methods[] = {}"

    {"GetLevelFromTarget",			exchangeGetLevelFromTarget,			METH_VARARGS},
    

    elsewhere in this file add to 

    PyObject * exchangeGetLevelFromTarget(PyObject * poTarget, PyObject * poArgs)
    {
    	return Py_BuildValue("s", CPythonExchange::Instance().GetLevelFromTarget());
    }
    

    Finally in python you can use 

    exchange.GetLevelFromTarget()
    

    B)

    Thanks. Many thanks.

  4. There's a file shared on epvp about level in trade, but it's a little bit bugged.

    I need function in c ++ for target level.

     

    Like this but for level:

     

    char * CPythonExchange::GetNameFromTarget()
    {
          return m_victim.name;
    }

    I tried this:

     

    DWORD CPythonExchange::GetLevelFromTarget()
    {
      return m_victim.level;   ( and m_victim.dwLevel )
    }

    I defined all stuff needed( in PythonExchange.cpp /PythonExchange.h and PythonExchangeModule.cpp) for this new exchange function but not work.

     

    In exchange dialog appear 0 .

  5.  

     

    Search "INVENTORY_PAGE_SLOT_COUNT" (0 hits in 0 files)

     

    This is not used in game source , so how can it work?

     

     

    It's not working. Read above.

     

    I understand , last night when I read the topic seemed strange to just add a variable.

     

    I see now he edited the subject, and it may work.

  6. Hello, i'ts me (again)

     

    https://metin2.download/picture/0kyi10pLP2Hgq834oYw8T9605629wQSP/.png

     

    Same problem with .pyd or packed .exe, I don't know why there's a "stopped working". Is it because my root are messed up ?

    Indeed, I think it's because the charset, when I put any "coding" at the top, here's my error :

    __pack_import() got an unexpected keyword argument 'level'
    

    Edit : syserr error with normal root fixed, use this charset instead of utf8 : # -*- coding: ISO-8859-1 -*-

     

    Edit : Once I've built a new launcher, here's my current error : https://metin2.download/picture/ORvH221QSCZ5QEcoPC4cK9wdu3lzzYI3/.png

    Have a nice day.

    Try to coding python file in notepad++ with korean or ansi, dont put # -*- coding: x-*-  in file.

×
×
  • 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.