Jump to content

xP3NG3Rx

Honorable Member
  • Posts

    839
  • Joined

  • Days Won

    393
  • Feedback

    100%

Posts posted by xP3NG3Rx

  1. Same as iMer's dif but shorter a little:

     

    game_2089M
    
    0010F5C3: 31 EB
    0010F5C4: C0 09
    
     

    And here are those difs which posted by @Sevence™ just for r34k:

    This difference file is created by The Interactive Disassembler
    
    db_r33820_32_u
    000925A5: 01 00

     

    This difference file is created by The Interactive Disassembler
    
    game_r34083_32
    0040DFE5: 01 00
    

     

    • Love 2
  2. You should use other ways, here are two (I prefer the first)

    PyObject * playerGetElk(PyObject* poSelf, PyObject* poArgs)
    {
    	long long llGold = CPythonPlayer::Instance().GetStatus(POINT_GOLD);
    #ifdef _DEBUG
    	Tracef("GetElk(): %lld\n", llGold);
    #endif
    	return PyLong_FromLongLong(llGold);
    }
    
    PyObject * playerGetElk(PyObject* poSelf, PyObject* poArgs)
    {
    	long long llGold = CPythonPlayer::Instance().GetStatus(POINT_GOLD);
    #ifdef _DEBUG
    	Tracef("GetElk(): %lld\n", llGold);
    #endif
    	PyObject *args = PyTuple_New(1);
    	PyTuple_SetItem(args, 0, PyLong_FromLongLong(llGold));
    	Py_BuildValue("()", args);
    }
    

     

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