Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case "removeMonster":
- {
- using (var rect = new ServerSockets.RecycledPacket())
- {
- var stream = rect.GetStream();
- uint mapID;
- uint monsterID;
- if (uint.TryParse(data[1], out mapID) && uint.TryParse(data[2], out monsterID))
- {
- Role.GameMap map;
- if (Database.Server.ServerMaps.TryGetValue(mapID, out map))
- {
- Database.Server.RemoveMapMonster(stream, map, monsterID, 0);
- }
- else
- {
- Console.WriteLine($"Map ID {mapID} not found.");
- }
- }
- else
- {
- Console.WriteLine("Invalid map ID or monster ID.");
- }
- }
- break;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement