Remove ring and amulet from gamble screen
Moderators: Nefarius, Havvoric
Remove ring and amulet from gamble screen
Hello all
Can you remove the ring and amulet from gambling screen without editing the misc.txt for these items?
If i edit the lines for ring and amulet in misc.txt in a way they don't exist (rarity and spawnable set to 0 and code set to xxx) they don't spwn in the gambling screen as well, but then my game would crash whenever I get these items from a quest completion (Akara and Ormus) because the game can't find them. Unless I can change the quest rewards via code editing?
Thanks in advance
Can you remove the ring and amulet from gambling screen without editing the misc.txt for these items?
If i edit the lines for ring and amulet in misc.txt in a way they don't exist (rarity and spawnable set to 0 and code set to xxx) they don't spwn in the gambling screen as well, but then my game would crash whenever I get these items from a quest completion (Akara and Ormus) because the game can't find them. Unless I can change the quest rewards via code editing?
Thanks in advance
Re: Remove ring and amulet from gamble screen
Have you tried editing Gamble.txt?
My bad, just realised amulet and ring is forced on you.
At 0x6FCDE37A (1.13c D2GAME.DLL) you can modify the 0 to a 2.
It's the count of items put in gamble screen, it adds amulet and ring first, when this count is below 2.
So if you start at 2, it should not add amulet and ring. I don't know if you have to remove them from gamble.txt as well after that.
My bad, just realised amulet and ring is forced on you.
Code: Select all
.text:6FCDE37A mov [esp+2Ch+var_18], 0
It's the count of items put in gamble screen, it adds amulet and ring first, when this count is below 2.
So if you start at 2, it should not add amulet and ring. I don't know if you have to remove them from gamble.txt as well after that.
Re: Remove ring and amulet from gamble screen
Yeah, doesn't make any difference. When I remove the codes from gamble.txt, they still spawn in the gamble screen.
Alternatively, I use the gamblefilter, I removed the codes there as well but they still keep respawning so that's why I think it might be hardcoded.
I changed the misc.txt for the amulet and ring so they won't spawn anymore but I'm not sure if there are other events, objects, rewards, etc that can spawn these items, otherwise me game will crash.
Alternatively, I use the gamblefilter, I removed the codes there as well but they still keep respawning so that's why I think it might be hardcoded.
I changed the misc.txt for the amulet and ring so they won't spawn anymore but I'm not sure if there are other events, objects, rewards, etc that can spawn these items, otherwise me game will crash.
Re: Remove ring and amulet from gamble screen
Works like a charm, Thanks!!stvnc wrote: ↑Tue Oct 13, 2020 1:32 pmHave you tried editing Gamble.txt?
My bad, just realised amulet and ring is forced on you.
At 0x6FCDE37A (1.13c D2GAME.DLL) you can modify the 0 to a 2.Code: Select all
.text:6FCDE37A mov [esp+2Ch+var_18], 0
It's the count of items put in gamble screen, it adds amulet and ring first, when this count is below 2.
So if you start at 2, it should not add amulet and ring. I don't know if you have to remove them from gamble.txt as well after that.
Re: Remove ring and amulet from gamble screen
Hi,
i am interested in removing rings and amulets too, but I am not able to find 6FCDE37A in D2Game.dll (1.13c). I received the message that the offset is beyond the end of file.
i am interested in removing rings and amulets too, but I am not able to find 6FCDE37A in D2Game.dll (1.13c). I received the message that the offset is beyond the end of file.
Re: Remove ring and amulet from gamble screen
This is an in-memory address. To get the dll-offset you have to subtract (e.g. with the windows calculator) the base address for the respective dll:
so for this example it should be: BE37A (not tested)
Re: Remove ring and amulet from gamble screen
Thanks ChaosMarc.
Yes it works. As suggested in the above posts, besides changing 0 to 2 in the correct address, Rings and Amulets must be removed from gamble.txt.