![]() |
|
Exp/SP rate - Printable Version +- LCKB (https://lckb.dev/forum) +-- Forum: ** OLD LCKB DATABASE ** (https://lckb.dev/forum/forumdisplay.php?fid=109) +--- Forum: Guides & Help Section (https://lckb.dev/forum/forumdisplay.php?fid=193) +---- Forum: Tutorials & Guides (https://lckb.dev/forum/forumdisplay.php?fid=124) +----- Forum: Ep1 Guides (https://lckb.dev/forum/forumdisplay.php?fid=178) +----- Thread: Exp/SP rate (/showthread.php?tid=417) |
- someone - 11-24-2011 Instead of modifying the mobs exp each time isnt it better to put the rate into newStobn.bin. Jumps to the code location. 004E1524 -E9 F8CA3000 JMP PVP_Game.007EE021 ; Jump to our code location Reads from file: 007EE021 68 0EE07E00 PUSH PVP_Game.007EE00E ; ASCII "exp_rate" 007EE026 68 08E07E00 PUSH PVP_Game.007EE008 ; ASCII "other" 007EE02B B9 F0817700 MOV ECX,PVP_Game.007781F0 007EE030 E8 FB26C5FF CALL PVP_Game.00440730 007EE035 50 PUSH EAX 007EE036 E8 D5A6E0FF CALL PVP_Game.005F8710 007EE03B A3 00E07E00 MOV DWORD PTR DS:[7EE000],EAX 007EE040 58 POP EAX 007EE041 68 17E07E00 PUSH PVP_Game.007EE017 ; ASCII "sp_rate" 007EE046 68 08E07E00 PUSH PVP_Game.007EE008 ; ASCII "other" 007EE04B B9 F0817700 MOV ECX,PVP_Game.007781F0 007EE050 E8 DB26C5FF CALL PVP_Game.00440730 007EE055 50 PUSH EAX 007EE056 E8 B5A6E0FF CALL PVP_Game.005F8710 007EE05B A3 04E07E00 MOV DWORD PTR DS:[7EE004],EAX 007EE060 58 POP EAX 007EE061 -E9 C934CFFF JMP PVP_Game.004E152F ; Jumps back running the program After reads the Exp mobs exp from the database: 004F6754 -E9 0D792F00 JMP PVP_Game.007EE066 ; Jumps to our code location Apply Rate: 007EE066 8B01 MOV EAX,DWORD PTR DS:[ECX] ; reads the mobs exp 007EE068 0FAF05 00E07E00 IMUL EAX,DWORD PTR DS:[7EE000] ; multiply bt exp_rate 007EE06F 8901 MOV DWORD PTR DS:[ECX],EAX ; copy over the old mobs exp 007EE071 8B45 B0 MOV EAX,DWORD PTR SS:[EBP-50] 007EE074 69C0 7C010000 IMUL EAX,EAX,17C 007EE07A -E9 DE86D0FF JMP PVP_Game.004F675D ; Jumps back After reads the mobs Sp from the database: 004F67B4 -E9 C9782F00 JMP PVP_Game.007EE082 ; jumps to our code location Apply sp rate: 007EE082 8B01 MOV EAX,DWORD PTR DS:[ECX] ; reads the mobs sp 007EE084 0FAF05 04E07E00 IMUL EAX,DWORD PTR DS:[7EE004] ; multiply by sp_rate 007EE08B 8901 MOV DWORD PTR DS:[ECX],EAX ; copy over the old mobs sp 007EE08D 8B45 B0 MOV EAX,DWORD PTR SS:[EBP-50] 007EE090 69C0 7C010000 IMUL EAX,EAX,17C 007EE096 -E9 2287D0FF JMP PVP_Game.004F67BD ; jumps back to the program |