Jump to content

Necro

Premium
  • Posts

    236
  • Joined

  • Last visited

  • Days Won

    3
  • Feedback

    0%

Posts posted by Necro

  1. 1 hour ago, FlorinMarian said:

    You do not have idea what i really want :)

    ach sorry, i read logo.. :/ :D

     

    So then:

    find:

    void CGuild::RequestDisband(DWORD pid)

    and insert

    DBManager::instance().DirectQuery("INSERT INTO guild_delete(date, guild_id, leader) VALUES(NOW(), %u, %u)", GetID(), pid);

    make sure that this query is under:

    if (m_data.master_pid != pid)
            return;

    maybe like this.. ;)

  2. There is a small configuration to get bonus of pet.

    Maybe somebody use it. 

    How it looks in game:

     

    In uitooltip.py -. search (item.ITEM_TYPE_QUEST == itemType:)

    and after this statement:

                if itemVnum >= 53001 and itemVnum <= 53026:
                    self.AppendSpace(5)
                    for g in xrange(item.ITEM_APPLY_MAX_NUM):
                        (affectType, affectValue) = item.GetAffect(g)
                        affectString = self.__GetAffectString(affectType, affectValue)
                        if affectString:
                            affectColor = self.GetChangeTextLineColor(affectValue)
                            self.AppendTextLine(affectString, affectColor)

    its all.

    PS: If you dont have a item.ITEM_TYPE_QUEST == itemType:

    Just find         elif item.ITEM_TYPE_USE == itemType:

    and after add item.ITEM_TYPE_QUEST == itemType:

    Looks like:

     elif item.ITEM_TYPE_USE == itemType:
    
    .....
    
    .....
    
    elif  item.ITEM_TYPE_QUEST == itemType:

     

    This is nothing special but i think it looks good :D 

    • Metin2 Dev 1
    • Love 6
  3. game.py

    Spoiler

        def    __PressHKey(self):
            if app.IsPressed(app.DIK_LCONTROL) or app.IsPressed(app.DIK_RCONTROL):
                net.SendChatPacket("/user_horse_ride")
            else:
                self.interface.OpenHelpWindow()

     

  4. Hi guys, i am playing with packet but now i am stuck :D

    i am sending packet to client

    void CHARACTER::SendPacket()
    {
        if (!GetDesc())
            return;

        TPacketGCInfo InfoGC;

        InfoGC.header = HEADER_GC_INFO;
        for (DWORD i = 0; i < 10; ++i)
         {

               InfoGC.equips.vnum[ i ] = 10;
               ChatPacket(CHAT_TYPE_INFO, "%d", i);
          }
         GetDesc()->Packet(&InfoGC, sizeof(InfoGC));
    }

    table structure:

    typedef struct command_info_
    {
        BYTE header;
        struct {
            DWORD vnum;
        } equips[10];
    } TPacketGCInfo;

    client - side

    bool CPythonNetworkStream::RecvInfo()
    {
        TPacketGCInfo InfoPacket;
        if (!Recv(sizeof(InfoPacket), &InfoPacket))
            return false;

        for (int i = 0; i < 10; ++i)
        {
            TInfo & rItemSet = InfoPacket.equips[ i ];
            TraceError("(size:%d)", rItemSet.vnum);
        }

        return true;
    }

     

    table strucutre:

    typedef struct SInfo
    {
        DWORD   vnum;
    } TInfo ;

    typedef struct command_info_
    {
        BYTE header;
        TInfo equips[10];
    } TPacketGCInfo;

    But in syserr i have

    Spoiler

    [29.07 15:24:32920] :: SYSERR: (size:170436819)
    [29.07 15:24:32920] :: SYSERR: (size:167772160)
    [29.07 15:24:32921] :: SYSERR: (size:167772160)
    [29.07 15:24:32921] :: SYSERR: (size:167772160)
    [29.07 15:24:32921] :: SYSERR: (size:167772160)
    [29.07 15:24:32921] :: SYSERR: (size:167772160)
    [29.07 15:24:32921] :: SYSERR: (size:167772160)
    [29.07 15:24:32921] :: SYSERR: (size:167772160)
    [29.07 15:24:32921] :: SYSERR: (size:167772160)
    [29.07 15:24:32921] :: SYSERR: (size:167772160)

     

    instead of 10

    Do you know where can be a problem? Thank you, i am only learning .. :/

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