Jump to content

Traceur3RUN

Inactive Member
  • Posts

    408
  • Joined

  • Last visited

  • Days Won

    1
  • Feedback

    0%

Posts posted by Traceur3RUN

  1. 16 godzin temu, ridetpro napisał:
    
    // PythonNetworkStreamModule.cpp
    
    PyObject* netSendVersionPacket(PyObject* poSelf, PyObject* poArgs)
    {
    	CPythonNetworkStream &rkNetStream = CPythonNetworkStream::Instance();
    	rkNetStream.SendClientVersionPacket();
    	return Py_BuildNone();
    }
    
    // static PyMethodDef s_methods[] =
    
    { "SendVersionPacket", netSendVersionPacket, METH_VARARGS },

    This function have no argument, it will just send the version from this function.

    
    bool CPythonNetworkStream::SendClientVersionPacket()
    // this line
    	strncpy(kVersionPacket.timestamp, 1111111, sizeof(kVersionPacket.timestamp) - 1); // 111111 IS THE CLIENT VERSION

     

     

    Do you want a function in python Like this ?

    
    net.SendClientVersionPacket(123456)

     

    yes something like this

     

    if getClientVersion(12345) then

    --todo

    end

  2. hello my quest doesn't work anyone can help me?

    all functions like npc.get_race etc return null and the same result in syser

     

    quest test begin
        state test begin
            when 2018.chat."shop " begin
                npc.open_shop(5)
                setskin(NOWINDOW)
            end

    end

     

    syser: SYSERR: Jul 16 12:01:49 :: RunState: LUA_ERROR: [string "test"]:5: attempt to call field `open_shop' (a nil value)
    SYSERR: Jul 16 12:01:49 :: WriteRunningStateToSyserr: LUA_ERROR: quest test.start click

  3. On 7/9/2018 at 12:02 PM, Syreldar said:

    .gif

    what you have a problem to understand? please stop spam shit post.

     

    example 

    quest.quest you use something like this

    quest kurwa begin

    state start begin

    when login or levelup begin

    send_letter("kurwa")

    say("kurwa")

    wait()

    say("kurwa")

    end

     

    now example move it to locale.lua

    quest.quest you use something like this

    quest kurwa begin

    state start begin

    when login or levelup begin

    send_letter("kurwa")

    say(locale.kurwa)

    end

     

    locale.lua example

    locale.kurwa = "kurwa [WAIT] kurwa "

     

     

    go learn english and then post there.

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