[1.13c] Fixed Gamble cost
Moderators: Nefarius, Havvoric
- Tomkomaster
- Posts: 96
- Joined: Thu Feb 07, 2008 1:15 am
[1.13c] Fixed Gamble cost
Hi
I've created some new items via misc.txt, and wanted to be able to gamble for them. However, the game creates very high gold costs for them. Wanted to try to set the Gamblecost column, but it doesn't work. Has anyone a fix for that? (the game uses the gamblecost column, like for rings and amulets, but for all items) I've searched the forum, but found only codes for older versions of the game.
I've created some new items via misc.txt, and wanted to be able to gamble for them. However, the game creates very high gold costs for them. Wanted to try to set the Gamblecost column, but it doesn't work. Has anyone a fix for that? (the game uses the gamblecost column, like for rings and amulets, but for all items) I've searched the forum, but found only codes for older versions of the game.
-
- Paladin
- Posts: 144
- Joined: Sun Nov 11, 2012 9:46 am
Re: [1.13c] Fixed Gamble cost
Correct me if I'm wrong, but I think that rings and amulets are the only hardcoded items and gamblecost column doesn't do anything for other items. Maybe lowering overall item's cost will help?
Edit: I found this topic and there was the code posted by Myhrginoc. So here's the code for 1.13c:
All you need to do is to change JE to JMP in D2Common.
This:
to this:
I tested it and it works as it should.
Edit: I found this topic and there was the code posted by Myhrginoc. So here's the code for 1.13c:
All you need to do is to change JE to JMP in D2Common.
This:
Code: Select all
000248C4 0F84 76010000 JE 00024A40
Code: Select all
000248C4 E9 77010000 JMP 00024A40
- Tomkomaster
- Posts: 96
- Joined: Thu Feb 07, 2008 1:15 am
Re: [1.13c] Fixed Gamble cost
Yes, this is exactly what I wanted!!! Thank you jessedazebra
Re: [1.13c] Fixed Gamble cost
Replace function in 1.13d, d2common.6FD93100jessedazebra wrote: ↑Mon Feb 18, 2019 3:49 pmto this:Code: Select all
000248C4 0F84 76010000 JE 00024A40
I tested it and it works as it should.Code: Select all
000248C4 E9 77010000 JMP 00024A40
Code: Select all
int __stdcall D2COMMON_GetItemGamblePrice(UnitAny* pItem, int nPlayerLevel)
{
//calculate the price
return price;
}
- Attachments
-
- GetItemGamblePrice.7z
- (898 Bytes) Downloaded 100 times
-
- Posts: 2
- Joined: Sun Nov 15, 2020 4:50 pm
Re: [1.13c] Fixed Gamble cost
Moved from D2Common to 000248C0 with the hex editor.
There it is expressed as 89 6C 24 10 0F 84 76 01 00 00 3D 61 6D 75 20 0F.
How do I change this?
There it is expressed as 89 6C 24 10 0F 84 76 01 00 00 3D 61 6D 75 20 0F.
How do I change this?