Link chance cap

09/18/2014 22:54 Truth1010#1
Hey all.
First off, I know there is already a thread with a guide on how to change the max cap on blacksmith linking chance to let you link at 100% so please don't just send me the link to that with a smart comment.

I was wondering if anyone knew the method of finding the link chance / cap in the Ps_Game.exe itself (the address)
The guide posted only has direct address values for ep5/4 versions, but with the newer 5.4 releases available here, the addresses aren't the same, nor appear to be close.

I have tried all i know in CE and the best i could find was linking cost as it's a searchable value, yet I'm not sure how you would search for a value that doesn't change, and is just read by the game once the command has been sent.

If anyone can shed some light on this, or is also trying to work it out, then any comments are welcome. Thanks :)
09/18/2014 23:08 nubness#2
I've never tried finding that value on my own, because screw reinventing the wheel.

Here's what you might wanna try:

The ps_game contains information on all the items (like a replica of the PS_GameDefs.dbo.Items). Search for the ItemName of your lapis and look through the following bytes for the ReqIg value (which points to what the linking chance should be, but doesn't represent the exact percent). Once you've found the ReqIg, see what accesses that offset and try linking something. You should most likely find what you're looking for. Good luck.
09/18/2014 23:34 Truth1010#3
Thanks for the hints, i will give it a go and post back here how it went and a short guide with addresses should i manage it.
And yea, i would usually not want to recreate it and go about doing all the work for nothing myself, other than the fact that the addresses aren't noted anywhere here for changing link chance on the newer server side ps_game.exe file... unfortunately.
09/19/2014 12:31 JuuF#4
Well, the easiest way is searching for your gold and see what accesses to it while you're linking.Game compares your gold and linking cost then lets you link if you have enough gold. We know this happens before linking so link chance probably shouldnt be far away :P You will find whole link function with this way. I wont post the address since you want to learn the method of finding address :)
09/19/2014 18:34 Truth1010#5
Thanks for the extra info there Juuf.

That was actually the first thing i tried, and how i managed to make the linking cost free, or whatever value i wanted.. But i didn't manage to find the success chance / cap in that area, i may have just overlooked it (i also believe it doesn't show as mov ebx 32/64 like in the previous server versions)

I will take another look, and try out the method Nubness posted now that i am back from work and free to mess around :)
09/19/2014 18:50 JuuF#6
O.o it exactly shows as like in the previous server versions :) Well maybe not exactly :P just with different register. If you want the addresses i can post them.

Edit: Nubness's method would be alot harder if this is your first time :|