Jump to content

Cube window open check


Go to solution Solved by VegaS™,

Recommended Posts

  • Forum Moderator
  • Solution
  • Srcs/game/questlua_pc.cpp
namespace quest
{
	[...]
	int pc_is_cube_open(lua_State* L)
	{
		LPCHARACTER ch = CQuestManager::instance().GetCurrentCharacterPtr();
		lua_pushboolean(L, ch && ch->IsCubeOpen());
		return 1;
	}
	[...]
}
	
luaL_reg pc_functions[] =
{
	[...]
	{ "is_cube_open",	pc_is_cube_open	},
	[...]
}
  • share/locale/country/quest/quest_functions
pc.is_cube_open
  • your_quest.lua
if pc.is_cube_open() then
	say("CUBE_WINDOW_IS_OPEN")
	return
end

 

Edited by VegaS™
  • Scream 1
  • Good 1
  • Love 1
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



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