Jump to content
  • 0

C++ npc.get_level() is possible?


ѕeмa™

Question

3 answers to this question

Recommended Posts

  • 0
CQuestManager& q = CQuestManager::instance();
LPCHARACTER npc = q.GetCurrentNPCCharacterPtr();
		
lua_pushnumber(L, npc->GetLevel());
return 1;
int npc_get_level(lua_State * L)
{
	LPCHARACTER npc = CQuestManager::instance().GetCurrentNPCCharacterPtr();
	lua_pushnumber(L,npc ? npc->GetLevel() : 0);
	return 1;
}

Conditions :)

 

Kind Regards

Ken ~ TA

  • Love 3

Do not be sorry, be better.

Link to comment

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.