Retired for a while
Posts: 183
|
Post by HardRain on Dec 9, 2021 12:27:10 GMT 10
Hey there, guys.
I have been asked a few times for creating a tutorial on how to make merchant sell ammo boxes, so now here we are.
First of all I'd like to say that everything I learned here was based on another thread right here, but it seems that some couldn't follow up, so I will try to be more specific.
This tutorial is meant for RE4 PS2 European Version, on USA version it will work as well, but maybe on a different offset. If you want to do this on PC version just follow the mentioned thread above.
Step 01
For this to be achieved, we need to edit the executable file of the game, so open the whole ISO on HxD, press Ctrl + G and go to the offset 27CBA0, then you will get here: If you're using USA version and did not found this, just search for the bytes shown at the first row of the picture. The image is self-explanatory, if you want to insert ammo boxes at buy menu, you should simply swap the item ID bytes for the ammo IDs.Example: changing 23 to 04 will make merchant sell handgun ammo instead of the weapon.If you don't have a list for all items, you can see and download here.Step 02After inserting every ammo box you want, it's time to set the price you want. For this, press Ctrl + G and go to the offset 27CFB0, then you will get here:
- - -
Insert the price you want in those two bytes by editing the UInt16 value (max allowed value is 65535). Always remeber that this value will be multiplied by 10x at BUY screen and cut by half in SELL screen, so if you put 1200, it will be bought by 12000 and sold by 6000 pesetas.
That 01 just after the price is the quantity it will be bought at once, so if you put 05, you will buy 5 unities at once (the total price will also be multiplied by this amount).
- I hope I have been clear enough for everyone to follow up, but if there is any questions left, just ask here!
|
|