Jump to content

Who know this system ? Boss and respawn time in large map ?


Recommended Posts

27 minutes ago, Hunger said:

I think is going to kill your server if that info is live (i’m talking about the respawn time & coordinates). Better a static message with a dict for each mob/map via python. 

What are you talking about ? That's just the same packet as the NPC position, just need to add an exception for boss and add the respawn time.
Like that:

 

// sectree_manager.h
struct npc_info
{
	BYTE bType;
	const char* name;
	long x, y;
	DWORD dwVnum;
#ifdef ENABLE_SHOW_BOSS_POS
	DWORD dwTime;
	npc_info(BYTE bType, const char* name, long x, long y, DWORD dwVnum, DWORD dwTime) : bType(bType), name(name), x(x), y(y), dwVnum(dwVnum), dwTime(dwTime) {}
#else
	npc_info(BYTE bType, const char* name, long x, long y, DWORD dwVnum) : bType(bType), name(name), x(x), y(y), dwVnum(dwVnum) {}
#endif
};

// sectree_manager.cpp
		{
			np.bType = it->bType;
			strlcpy(np.name, it->name, sizeof(np.name));
			np.x = it->x;
			np.y = it->y;
			np.dwVnum = it->dwVnum;
#ifdef ENABLE_SHOW_BOSS_POS
			np.dwTime = it->dwTime;
#endif
			buf.write(&np, sizeof(np));
		}

 

That's not a complete code, juste to give you hint about it

Link to comment
Share on other sites

  • Premium
Just now, PetePeter said:

What are you talking about ? That's just the same packet as the NPC position, just need to add an exception for boss and add the respawn time.
Like that:

 

// sectree_manager.h
struct npc_info
{
	BYTE bType;
	const char* name;
	long x, y;
	DWORD dwVnum;
#ifdef ENABLE_SHOW_BOSS_POS
	DWORD dwTime;
	npc_info(BYTE bType, const char* name, long x, long y, DWORD dwVnum, DWORD dwTime) : bType(bType), name(name), x(x), y(y), dwVnum(dwVnum), dwTime(dwTime) {}
#else
	npc_info(BYTE bType, const char* name, long x, long y, DWORD dwVnum) : bType(bType), name(name), x(x), y(y), dwVnum(dwVnum) {}
#endif
};

// sectree_manager.cpp
		{
			np.bType = it->bType;
			strlcpy(np.name, it->name, sizeof(np.name));
			np.x = it->x;
			np.y = it->y;
			np.dwVnum = it->dwVnum;
#ifdef ENABLE_SHOW_BOSS_POS
			np.dwTime = it->dwTime;
#endif
			buf.write(&np, sizeof(np));
		}

 

That's not a complete code, juste to give you hint about it

What are you talking about? Npc’s are static. Even Nakajima which is a moving NPC. Are you going to send packages each time a boss moves around the map? Good stuff. Keep up the good work 👍

  • Metin2 Dev 1
Link to comment
Share on other sites

36 minutes ago, Hunger said:

What are you talking about? Npc’s are static. Even Nakajima which is a moving NPC. Are you going to send packages each time a boss moves around the map? Good stuff. Keep up the good work 👍

That's not how the system work, the system he talk about is just an indication of where the boss spawn and how long does it take to respawn. That's not a real time tracker, exactly like the NPC position. And the respawn time is not in real time also, that's just the seconds set on the regen

 

Link to comment
Share on other sites

51 minutes ago, Hunger said:

Sorry i will log out you have 3 layers of brain. Check out Penger’s post about atlas info via text from the client. Cheers! 

lol worst answer ever, no sense.
v7tuQ3l.png

 

2 hours ago, Hunger said:

Better a static message with a dict for each mob/map via python. 

You are very good at coding xD

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • Premium

Some dudes from Webzen decided to better send npc’s from a file instead of the server but there are self-named developers like you installing every single system/release from porkmmo just to look better nevermind performance. 
They didn’t change that just for Penger so he can crack the code they were trying to fix old stupid code. But yes, you are better than Webzen’s developers. He should do as you tell him to because: yes. 

Link to comment
Share on other sites

6 minutes ago, Hunger said:

Some dudes from Webzen decided to better send npc’s from a file instead of the server but there are self-named developers like you installing every single system/release from porkmmo just to look better nevermind performance. 
They didn’t change that just for Penger so he can crack the code they were trying to fix old stupid code. But yes, you are better than Webzen’s developers. He should do as you tell him to because: yes. 

If you use your brain like you said, you will understand than my solution work with the regen from client, not need to do it server side as the data are in the txt file. Good try to show how good you are

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.