Changeset 3154

Show
Ignore:
Timestamp:
02/06/2010 08:56:35 PM (5 weeks ago)
Author:
dfighter
Message:

This should fix some quest related issues, patch by Terrorblade and Shauren.

Location:
trunk/src/arcemu-world
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/arcemu-world/Quest.cpp

    r3153 r3154  
    3737        *data << uint32(qst->max_level);                                // Quest level 
    3838        *data << uint32(qst->min_level);                                // Quest required level 
     39 
    3940        if(qst->quest_sort > 0) 
    4041                *data << int32(-(int32)qst->quest_sort);        // Negative if pointing to a sort. 
     
    5960        *data << uint32(qst->quest_flags);                              // Quest Flags 
    6061        *data << qst->rewardtitleid;                                    // 2.4.0 unk 
    61         *data << uint32( 0 );                                                           // playerkillcount 
     62        *data << uint32(0);                                                             // playerkillcount 
    6263        *data << qst->rewardtalents; 
    6364        *data << uint32(0);                                                             // 3.3.0 Unknown 
    6465        *data << uint32(0);                                                             // 3.3.0 Unknown 
    65     for( i = 0; i < 5; ++i ) 
    66         *data << uint32( 0 ); 
    67  
    68     for( i = 0; i < 5; ++i ) 
    69         *data << uint32( 0 ); 
    70  
    71     for( i = 0; i < 5; ++i ) 
    72         *data << uint32( 0 ); 
    7366 
    7467        // (loop 4 times) 
     
    123116                *data << uint8(0);                                                      // most 3.3.0 quests i seen have something like "Return to NPCNAME" 
    124117        } 
    125  
    126     *data << uint8( 0 ); 
    127118 
    128119        for(i = 0; i < 4; ++i) 
  • trunk/src/arcemu-world/QuestMgr.cpp

    r3153 r3154  
    319319        //uint32 a = 0, b = 0, c = 1, d = 0, e = 1; 
    320320 
    321         *data << uint8( qst->next_quest_id ? uint8( 1 ) : uint8( 0 ) );// next quest shit 
     321        *data << ( qst->next_quest_id ? uint8(1) : uint8(0) );// next quest shit 
    322322        *data << uint32(0);                                                                             // maybe required money 
    323323 
     
    363363        *data << (qst->bonushonor * 10); 
    364364        *data << float(0); 
    365     *data << float( 0 ); 
    366365        *data << uint32(0); 
    367366        *data << qst->reward_spell; 
     
    408407        *data << uint8(0); //VLack: some 3.1.x thing 
    409408        *data << uint8(0); //new 3.3 
     409 
     410 
    410411        ItemPrototype *ip; 
    411412        uint32 i; 
     
    440441        *data << (qst->bonushonor * 10);                                        // Honor reward 
    441442        *data << float(0); //New 3.3 
    442     *data << float( 0 ); 
    443443        *data << qst->reward_spell;                                     // this is the spell (id) the quest finisher teaches you, or the icon of the spell if effect_on_player is not 0 
    444444        *data << qst->effect_on_player;                         // this is the spell (id) the quest finisher casts on you as a reward 
     
    453453        for(int i = 0; i < 5; ++i)  
    454454        *data << uint32(0);  
    455     for( i = 0; i < 5; ++i ) 
    456         *data << uint32( 0 ); 
    457  
    458     for( i = 0; i < 5; ++i ) 
    459         *data << uint32( 0 ); 
    460  
    461     for( i = 0; i < 5; ++i ) 
    462         *data << uint32( 0 ); 
     455 
    463456 
    464457        *data << qst->detailemotecount;                         // Amount of emotes (4?)