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. 1

      Auto Bravery Cape

    2. 18

      Metin2 Closed Beta Content (2003-2004)

    3. 1425

      [40250] Reference Serverfile + Client + Src [15 Available Languages]

    4. 25

      Experimental Renderer

    5. 1

      Auto Bravery Cape

    6. 0

      Very strange bug, when creating new char

    7. 5

      Horus Maps & Design

  • 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.