[Configuration] How to make a working Quest Log

Discussion in 'Basic' started by Shadowsong, Nov 4, 2011.

  1. kaszanalubizryc

    kaszanalubizryc Member

    Joined:
    Sep 10, 2015
    Messages:
    93
    Likes Received:
    0
    Best Answers:
    0
    its bugged max 1 mission showed completed.

    i have 8 mission completed but only the highest show

    im not sure but its problem on clientside or serverside

    its looks limit to show 1 higher values

    Code (C++):
    1. void ProtocolGame::parseQuestLine(const InputMessagePtr& msg)
    2. {
    3.     std::vector<std::tuple<std::string, std::string>> questMissions;
    4.     int questId = msg->getU16();
    5.     int missionCount = msg->getU8();
    6.     for(int i = 0; i < missionCount; i++) {          // 1?
    7.         std::string missionName = msg->getString();
    8.         std::string missionDescrition = msg->getString();
    9.         questMissions.push_back(std::make_tuple(missionName, missionDescrition));
    10.     }
    11.  
    12.     g_game.processQuestLine(questId, questMissions);
    13. }
     

Share This Page

Loading...