Jump to content

Recommended Posts

hey guys,

i implemented a dungeon and there is a mast which is being attacked from Monsters, everything works fine.

but if the mast is dead this quest function dont work: d.get_mast() == 0 then ..

 

	int dungeon_get_mast(lua_State* L)
	{
		CQuestManager & q = CQuestManager::instance();

		LPDUNGEON pDungeon = q.GetCurrentDungeon();

		if (pDungeon && (pDungeon->GetMast()->IsStun() || pDungeon->GetMast()->IsDead()))
			lua_pushboolean(L, 0);
		else
			lua_pushboolean(L, 1);

		return 0;
	}

 

I hope someone can help me, if needed i can provide other files too. 

Link to comment
https://metin2.dev/topic/21230-problem-with-a-quest-function-in-c/
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



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.