View Single Post
  #166  
Unread 04-13-2007, 08:43 AM
kojuro kojuro is offline
A Brown Bear
 
Join Date: Aug 2006
Server: Antonia Bayle
Posts: 10
Default XP display solution?

Zonx,

If you have the ability to cache or retrieve the currently displayed whole XP value before you update it (displayedWholePart) with the new information you receive (newWholePart), you should be able to fix the incorrect XP display issue:

if newWholePart NotEqualTo displayedWholePart And
newFractionPart IsGreaterThan .4
then
displayedWholePart = newWholePart - 1
else
displayedWholePart = newWholePart
end if

displayedFractionPart = newFractionPart

Obviously, this is a simple solution, so I suspect there may be more nuances to the XP values returned than you described earlier. I apologize if you have already tried and discounted this approach.
Reply With Quote