cameri / tibiatekbot

Automatically exported from code.google.com/p/tibiatekbot
1 stars 0 forks source link

Show creature to next level not displaying properly #50

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Turn on Creatures for next level in info
2. Kill something
3. Get a strange message like "You need to kill -365676 Trolls to level up."

What is the expected output? What do you see instead?
Something more like "You need to kill 120 Trolls to level up."

What version of TibiaTek Bot are you using?
Both current stable and current SVN

What operating system are you using?
XP :(

Do you have .NET Framework 2.0 installed?
Yes

Please provide any additional information below.

The problem seems to be caused by NextLevelExp not being initialized in
Case &H8C of PacketFromServer section.

I added this and it seems to fix the problem:

' Start New Code
Dim NextLevelExpL As Long = CLng(Floor(((16+(2/3))*Pow(Level+1,3)) -
(100*Pow(Level+1,2))+(((283+(1/3))*(Level+1))-200)))

NextLevelExp = NextLevelExpL

' End New Code

I basically stole the code from ExpCheckerTimerObj_Execute() but I also
added the NextLevelExp = NextLevelExpL to that funtion as well.

Original issue reported on code.google.com by qif...@gmail.com on 11 Dec 2007 at 3:15

GoogleCodeExporter commented 9 years ago

Original comment by sonic5....@gmail.com on 11 Dec 2007 at 2:21

GoogleCodeExporter commented 9 years ago

Original comment by cameri2...@gmail.com on 18 Dec 2007 at 5:09