Jump to content

problem with a quest function in c++


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
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 5

      Effect weapons

    2. 3

      Crystal Metinstone

    3. 3

      Feeding game source to LLM

    4. 113

      Ulthar SF V2 (TMP4 Base)

    5. 3

      Feeding game source to LLM

    6. 0

      Target Information System

    7. 3

      Feeding game source to LLM

    8. 2

      anti exp explanation pls

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • 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.