Hi all I run into this problem and I dont seem to find anyone else who has run into this problem and if they did they probably fix it and did not shar, but now I been 2 weeks at this and I have no idea what to do, I think I have Identify where the problem is but still no luck fixing, the problem is when I ask Animal Trainer for BOD he responds with this: "An offer may be available in about -1218 minutes", and it seems like it is growing and going further in the negative realm, so I narrow it down and I think the problem is on these lines from line 72 to 116 mainly here:

DateTime ts = m_Vendor.GetNextBulkOrder((PlayerMobile)m_From);

int totalSeconds = (int)m_Vendor.GetNextBulkOrder((PlayerMobile)m_From).Subtract(DateTime.Now).TotalSeconds;
int totalHours = (totalSeconds + 3599) / 3600;
int totalMinutes = (totalSeconds + 59) / 60;


if (((Core.SE) ? totalMinutes == 0 : totalHours == 0))

Something in here is not right I think, I attached my AnimalTrainer.cs file I hope some one can give me some light on this issue as it is driving me nuts :)
 

Attachments

  • AnimalTrainer.cs
    21.2 KB · Views: 4
Back