Jump to content

Recommended Posts

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

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

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

 

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

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

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

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



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.