Quote:
Originally Posted by Nostale-SP
Hello, i need help for my server. I want to restrict access of certain map with Level mini. But i don't know how to do. Can you explain me how to do? It's in DB or in source?
|
it is in source i guess if i understand you
and if you need help just pm me on Discord
Inno#1911
if you mean this
i have it on BasicPacketHandler.cs -> PreqPacket
it works and idk if its the right place but it works
Code:
//portal.DestinationMapId == {Portal to Map here}
//Session.Character.Level < 10 <-- ("Character Level")
if(portal.DestinationMapId == 1 && Session.Character.Level < 10)
{
//Your Text which you want to pop up when Character have not enough Level
Session.SendPacket(Session.Character.GenerateSay("You need to be Level 10 to Join this map !", 10));
// returns the code which means when he is on the Portal and have not enough Level he wont get in there.
return;
}