Fixing 140 Loop Bug Issue
#18

wonder why you waste time with ollydbg when you can do everything faster and easier with a simple hex editor

 

the lvl up loop bug is caused for a bug in the levelup function.

 

if( player.current_exp >= player.needed_exp )
{
if( player.level < max_level )
{
levelup:
player levelup
if( player.current_exp >= player.needed_exp )
goto levelup
}
}

 

i think the example above shows perfectly where the bug is

 

lets say you kill a mob and the above code gets execute. first it checks if you have the exp required to level up, then checks if your level is below the max level, if both are true, you will level up. the problem comes after leveling up, it checks again if you have the exp required to level up and if so, you will level up again but it does NOT check the max level. so if you gain two or more levelups at the same time, you can past over the max level and since the exp required to level up after the max level is always 0/0, you will get in an infinite levelup loop

 

to fix this bug, you only need to patch these two offsets

 

LevelUp loop bug fix (v2):

0x000FC7F6 B4
0x000FC80D 9D



Messages In This Thread
[No subject] - by BashVendetta - 10-18-2011, 02:17 PM
[No subject] - by someone - 10-18-2011, 02:28 PM
[No subject] - by BashVendetta - 10-18-2011, 02:31 PM
[No subject] - by blankname - 10-18-2011, 03:14 PM
[No subject] - by BashVendetta - 10-18-2011, 07:51 PM
[No subject] - by someone - 10-18-2011, 08:21 PM
[No subject] - by BashVendetta - 10-18-2011, 08:28 PM
[No subject] - by BashVendetta - 10-18-2011, 08:45 PM
[No subject] - by someone - 10-18-2011, 08:49 PM
[No subject] - by BashVendetta - 10-18-2011, 09:07 PM
[No subject] - by someone - 10-18-2011, 10:25 PM
[No subject] - by BashVendetta - 10-18-2011, 10:43 PM
[No subject] - by someone - 10-18-2011, 10:45 PM
[No subject] - by BashVendetta - 10-18-2011, 10:48 PM
[No subject] - by BashVendetta - 10-18-2011, 10:50 PM
[No subject] - by someone - 10-19-2011, 07:09 AM
[No subject] - by BashVendetta - 10-19-2011, 09:03 AM
[No subject] - by blankname - 10-19-2011, 12:06 PM
[No subject] - by damona - 10-19-2011, 01:13 PM
[No subject] - by Gothic - 10-20-2011, 12:39 PM
[No subject] - by BashVendetta - 10-20-2011, 01:45 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)