All pastes #289209 Raw Edit

Something

public text v1 · immutable
#289209 ·published 2006-12-22 23:24 UTC
rendered paste body
    for(int i=0;i<0x32;i++)
        ADDBYTE( pak, 0x00 ); 
    for(int i=0;i<10;i++)
    {
        if( thisclient->MyQuest[i].QuestID == 0 )
        {
            for(int j=0;j<0x4e;j++)
                ADDBYTE( pak, 0x00 );
        }
        else
        {
            ADDWORD( pak, thisclient->MyQuest[i].thisquest->id ); //# Quest
            ADDQWORD( pak, 0x00000000 ); //Time            
            for(int j=0;j<0x14;j++)
                ADDBYTE( pak, 0x00 ); //??
            for(int j=0;j<5;j++)
            {
                if( thisclient->MyQuest[i].thisquest->CItem[j] != 0 && thisclient->MyQuest[i].Items[j]!= 0 )
                {
                    CItem item;
                    item.itemnum = thisclient->MyQuest[i].thisquest->CItem[j];
                    item.itemtype = 13;
                    item.count = 1;
                    ADDDWORD( pak, BuildItemHead( item ) );
                    ADDDWORD( pak, thisclient->MyQuest[i].Items[j] );
                }
                else
                {
                    ADDQWORD( pak, 0x00000000 );
                }
            }
            ADDQWORD( pak, 0x00000000 );
        }
    }        
    for(int i=0;i<0x130;i++)//???
        ADDBYTE( pak, 0x00 );
    thisclient->SendPacket( &pak );//1134