Jump to content

Recommended Posts

When a mob spawns, SetProto is called.

This retrieves all the data in the protocol.

It is added to the map using RegisterRaceNumMap.

Then, when you want to check for this mob's existence, you create an empty Interactor and fill it with GetCharactersByRaceNum.

But GetCharactersByRaceNum was traversing the entire map.

I changed it to Category.

So;

I want to search for this NPC with Vnumber from the Event Category.

I want to search for this NPC with Vnumber from the Shop Category.

etc.

Increased Performance 👍

This is the hidden content, please

Alternative download links →

This is the hidden content, please

  • Metin2 Dev 61
  • Not Good 1
  • Good 9
  • muscle 1
  • Love 1
  • Love 16
Link to comment
https://metin2.dev/topic/33938-c-metin2-race-map-category/
Share on other sites

  • Active Member

I see no big reason to implement it, there is no major usage on that.
An improvement would be necessary for something else, like m_map_view packet view for example.

Link to comment
https://metin2.dev/topic/33938-c-metin2-race-map-category/#findComment-171998
Share on other sites

7 hours ago, MariusExygo said:

I see no big reason to implement it, there is no major usage on that.
An improvement would be necessary for something else, like m_map_view packet view for example.

It's used when Portal or Event NPCs spawn.

Also, you might not use it, but someone else might use it frequently. This is a very good method in terms of performance. It doesn't matter how often you use it; the important thing is that you use it effectively, even if it's just once.

I think you're a very ignorant person.

Link to comment
https://metin2.dev/topic/33938-c-metin2-race-map-category/#findComment-172005
Share on other sites

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.