Quote:
Sometimes if i hunt it tells me that a meteor has been dropped but i didn't see one.. what's wrong with that code?=O
Code:if (Common.PercentSuccess(DropManager.CHANCE_METEOR)) { var killer = Map.Search<Player>(_killer); if (killer != null && killer.Character.LuckyTimeExpires > DateTime.Now) { DropItemByID(1088001, _killer); killer.Send(new TalkPacket(ChatType.Whisper, "[LuckyTime] Meteor has been dropped!")); } }
Is the ground already coated in items?
If so then you're triggering the drop but the item cannot successfully drop on the ground because it's already covered in items.
Not sure if I made DropitemByID a bool but logically it should be (because it can fail).
If so you just need to check if it succeeds before sending the message.