Jump to content
Maintenance : Final step ×

Saved locations system with pseudo-caching


Recommended Posts

  • Premium

Hello,

I’d like to share my location-saving and teleportation system with you.

The system uses pseudo-caching, so it doesn’t overload the database.

It has been tested on a server with over 1,000 players online without any issues.

Preview:
spacer.png

You can find it on GitHub: 

This is the hidden content, please

or via metin2.download

This is the hidden content, please

Metin2 Download

  • Metin2 Dev 34
  • Love 5
Link to comment
Share on other sites

  • 1 month later...
  • Premium
1 hour ago, TIMEK said:

saved_locations_manager.cpp:322:6: error: use of undeclared identifier 'IS_REQUIRED_ITEM_MAP'

Gdzie to zadeklarować ?

char.h:

// find:
extern int g_nPortalLimitTime;

// add below:
extern bool IS_REQUIRED_ITEM_MAP(DWORD dwMapIndex);

char.cpp:

// add under includes:
bool IS_REQUIRED_ITEM_MAP(DWORD dwMapIndex);
bool IS_REQUIRED_ITEM_MAP(DWORD dwMapIndex)
{
	switch (dwMapIndex)
	{
	case 71: // pajaki v2
	case 72: // grota
	case 73: // grota v2
		return true;
	}

	if (dwMapIndex > 10000)
	{
		return true;
	}

	return false;
}

 

Edited by jking
Link to comment
Share on other sites

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