Jump to content

Anti mount in combat


Recommended Posts

Char.cpp

bool CAN_NOT_RIDE_IN_THIS_MAP(int32_t map_index)
{
	switch (map_index)
	{
		case 9999: // MAP INDEX OF MAP
			return true;;
	}

	return false;
}

CHAR.H

bool CAN_NOT_RIDE_IN_THIS_MAP(int32_t map_index);

QUESTLUA_PC

//  int pc_mount(lua_State* L)
auto map_index = ch->GetMapIndex();

if (CAN_NOT_RIDE_IN_THIS_MAP(map_index))
{
	ChatPacket(CHAT_TYPE_INFO, LC_TEXT("blabla."));
	return 0;
}

 

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