Loading...   


void handle_rc_quest_interface(const std::string &method, const std::string &connection_id, const std::string &request_id, const std::vector<std::string> &params) {
	std::string error;
	std::map<std::string, std::string> res;

	/*
	if (params.size() != 1) {
	error = "Expected only one zone_id.";
	RemoteCallResponse(connection_id, request_id, res, error);
	return;
	}
	*/

	std::string str;
	std::ifstream file("quests/global/Waypoint.pl", std::ios::in);
	if (file) {
		while (!file.eof()) str.push_back(file.get());
	}
	// std::cout << str << '\n';

	res["quest_text"] = str; 
	RemoteCallResponse(connection_id, request_id, res, error); 
}

Raw Paste Data