Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- else if (Mob.FloorPacket.m_ID == Game.MsgFloorItem.MsgItemPacket.AuroraLotus && DateTime.Now > Mob.FloorStampTimer)
- {
- Mob.FloorStampTimer = DateTime.Now.AddYears(1);
- using (var rec = new ServerSockets.RecycledPacket())
- {
- var stream = rec.GetStream();
- Mob.FloorPacket.DropType = MsgFloorItem.MsgDropID.RemoveEffect;
- foreach (var user in Mob.View.Roles(client.Map, Role.MapObjectType.Player))
- {
- if (user.Alive == false)
- {
- if (Role.Core.GetDistance(user.X, user.Y, Mob.X, Mob.Y) < 5)
- {
- var player = user as Role.Player;
- if (player.ContainFlag(MsgUpdate.Flags.SoulShackle) == false)
- player.Revive(stream);
- }
- }
- // user.Send(Mob.GetArray(stream, false));
- }
- ActionQuery action;
- action = new ActionQuery()
- {
- ObjId = Mob.FloorPacket.m_UID,
- Type = ActionType.RemoveEntity
- };
- Mob.View.SendScreen(stream.ActionCreate(&action), Mob.GMap);
- Mob.GMap.View.LeaveMap<Role.IMapObj>(Mob);
- Mob.HitPoints = 0;
- client.Map.SetMonsterOnTile(Mob.X, Mob.Y, false);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement