Jump to content
  • 0

Can somebody check this c++ function?



	struct FDungeonPIDCollector
		std::vector <DWORD> vecPIDs;
		void operator () (LPCHARACTER ch)
	int dungeon_get_member_pids(lua_State *L)
		CQuestManager & q = CQuestManager::instance();
		LPCHARACTER ch = q.GetCurrentCharacterPtr();
		LPDUNGEON pDungeon = q.GetCurrentDungeon();
		if (NULL == pDungeon)
			return 0;
		FDungeonPIDCollector f;
		for (std::vector <DWORD>::iterator it = f.vecPIDs.begin(); it != f.vecPIDs.end(); it++)
			lua_pushnumber(L, *it);
		return f.vecPIDs.size();

I just changed the party.get_member_pids function to get all members of a dungeon but dont know if it works.

Would be nice if somebody can check this.


Try to put this in:


Link to comment
  • Answers 0
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.