DeYaN. 29 Posted May 11, 2022 Share Posted May 11, 2022 (edited) I find this in a presentation server and I think that's a good idea. Who knows this system? Edited August 16, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Premium Hunger 475 Posted May 11, 2022 Premium Share Posted May 11, 2022 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 More sharing options...
PetePeter 36 Posted May 11, 2022 Share Posted May 11, 2022 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 More sharing options...
Premium Hunger 475 Posted May 11, 2022 Premium Share Posted May 11, 2022 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 1 Link to comment Share on other sites More sharing options...
PetePeter 36 Posted May 11, 2022 Share Posted May 11, 2022 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 More sharing options...
Premium Hunger 475 Posted May 11, 2022 Premium Share Posted May 11, 2022 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 More sharing options...
PetePeter 36 Posted May 11, 2022 Share Posted May 11, 2022 (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. 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 August 16, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Premium Hunger 475 Posted May 11, 2022 Premium Share Posted May 11, 2022 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 More sharing options...
PetePeter 36 Posted May 11, 2022 Share Posted May 11, 2022 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 More sharing options...
Premium Hunger 475 Posted May 11, 2022 Premium Share Posted May 11, 2022 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 More sharing options...
PetePeter 36 Posted May 11, 2022 Share Posted May 11, 2022 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 More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now