Jump to content
  • Join-Us

    https://metin2.dev is the 1st international community on Metin2 development. Join us to develop your skills and share your knowledge with the community, respectful and ethical forum.

  • 0

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


DeYaN.

Question

Posted (edited)

I find this in a presentation server and I think that's a good idea. Who knows this system?

Untitled3.png

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

10 answers to this question

Recommended Posts

  • 0
  • Premium

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. 

Link to comment
Share on other sites

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

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

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

  • 0
  • Premium

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! 

Link to comment
Share on other sites

  • 0
Posted (edited)
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

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

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

  • 0
  • Premium

I wasn’t talking about your code. I said in the first post it’s not a good idea to send them live then you disagreed & posted that. 
 

Link to comment
Share on other sites

  • 0
13 minutes ago, Hunger said:

I wasn’t talking about your code. I said in the first post it’s not a good idea to send them live then you disagreed & posted that. 
 

 

Only you spoke about sending it live, nobody else

Link to comment
Share on other sites

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.