Exemplo n.º 1
0
 public function getNpcConversationsForPlayerAfterViewingNode($gameId, $intNpcId, $intPlayerId, $intNodeId)
 {
     //update the player log
     Players::nodeViewed($gameId, $intPlayerId, $intNodeId);
     //get the options for this npc and player
     $conversationsReturnData = Npcs::getConversationsForPlayer($gameId, $intNpcId, $intPlayerId);
     if ($npcReturnData->returnCode > 0) {
         return $optionsReturnData;
     }
     $conversationsArray = $conversationsReturnData->data;
     return new returnData(0, $conversationsArray);
 }