[1.10] A question on monsters' mouse-hovering
Moderators: Nefarius, Havvoric
[1.10] A question on monsters' mouse-hovering
Hello
I would like to know if there was a known way to alter the monster brightness when they're hovered with your mouse. I would like to lower it or to change into something like the D1's selection method (it draws coloured borders on monsters).
Thanks a lot for your time
I would like to know if there was a known way to alter the monster brightness when they're hovered with your mouse. I would like to lower it or to change into something like the D1's selection method (it draws coloured borders on monsters).
Thanks a lot for your time
Terms of Service
My tutorials:
AIs:
Fixing the Shadow Master's AI
The Shadow Master's AI Compendium
The Shadow Warrior's AI Compendium
The DruidBear's AI Compendium
The DruidWolf's AI Compendium
The Vines AI Compendium
Use every AI as Minion for the Player [Thanks to Necrolis]
Adding simple commands to the Shadow Master's AI
Skills:
Fixing SrvDoFunc 49
Creating a proper summoning skill for enemy monsters
Revive super uniques and bosses
Misc:
Changing reanimated monsters life span [thanks to Necrolis]
My resources:
Ogodei's Diablo I Monster Pack - Final
Ogodei's Diablo I Item Pack v1.00
Ogodei's Autumnal Act I
My tutorials:
AIs:
Fixing the Shadow Master's AI
The Shadow Master's AI Compendium
The Shadow Warrior's AI Compendium
The DruidBear's AI Compendium
The DruidWolf's AI Compendium
The Vines AI Compendium
Use every AI as Minion for the Player [Thanks to Necrolis]
Adding simple commands to the Shadow Master's AI
Skills:
Fixing SrvDoFunc 49
Creating a proper summoning skill for enemy monsters
Revive super uniques and bosses
Misc:
Changing reanimated monsters life span [thanks to Necrolis]
My resources:
Ogodei's Diablo I Monster Pack - Final
Ogodei's Diablo I Item Pack v1.00
Ogodei's Autumnal Act I
-
- Posts: 3
- Joined: Tue Jan 20, 2015 9:26 am
Re: [1.10] A question on monsters' mouse-hovering
I'm not sure, but maybe it handles it by using different color/colormap/shifts. There was a thread on the ranges, but I can't seem to find it.
The point is that there's darker and lighter ranges, some used for transparency.
If it is handled like that, you'd probably have to edit the *.dat files that hold the them and then change the range/entries that are used for that.
For colored borders, I'd think you'd need code editing, but just changing/shifting/mapping the color can probably be done without code editing.
The point is that there's darker and lighter ranges, some used for transparency.
If it is handled like that, you'd probably have to edit the *.dat files that hold the them and then change the range/entries that are used for that.
For colored borders, I'd think you'd need code editing, but just changing/shifting/mapping the color can probably be done without code editing.
Re: [1.10] A question on monsters' mouse-hovering
i think this can be pulled-off by high-jacking / rewriting / hooking the monsterdesc code and the sprite-drawing code...
firstly you need to add a simple script to the monsterdesc code, which will pass the unit_guid to a global variable, then perform a check in the sprite-drawing code and draw a brighter monster if the monster_guid of the monster being drawn, matches with the unit_guid being hovered to.
cheers
firstly you need to add a simple script to the monsterdesc code, which will pass the unit_guid to a global variable, then perform a check in the sprite-drawing code and draw a brighter monster if the monster_guid of the monster being drawn, matches with the unit_guid being hovered to.
cheers
" It's not the size of the dog in the fight, it's the size of the fight in the dog. "
~Mark Twain
~Mark Twain
Re: [1.10] A question on monsters' mouse-hovering
Normally the game just changes the transtbl used (to color mul x2) when you hover over a unit. There isn't really much selection in terms of making it less bright. The outline might also require more memory, as D2 caches these on the fly. Regardless of what you check, here is the starting point:
Code: Select all
/*
Date: Fri May 28 14:19:00 2010
Author: Necrolis
Function: UNITDRAW_CheckSelection
Address: D2Client.0x6FB286B0
Comments:
*/
BOOL __fastcall UNITDRAW_CheckSelection(D2UnitStrc* pUnit)
Netiquette, Do you USE it?!?! | Nefarius' Fixed TXT Files | Terms Of Service
Blackened | Day of Death | D2GFEx
"What was yours is mine. Your land, your people, and now your life." - Lim-Dul, the Necromancer
Judgement is Final, Death is Eternal
Re: [1.10] A question on monsters' mouse-hovering
aw, cool... thanks for sharingNecrolis" wrote:Normally the game just changes the transtbl used (to color mul x2) when you hover over a unit. There isn't really much selection in terms of making it less bright. The outline might also require more memory, as D2 caches these on the fly. Regardless of what you check, here is the starting point:Code: Select all
/* Date: Fri May 28 14:19:00 2010 Author: Necrolis Function: UNITDRAW_CheckSelection Address: D2Client.0x6FB286B0 Comments: */ BOOL __fastcall UNITDRAW_CheckSelection(D2UnitStrc* pUnit)
" It's not the size of the dog in the fight, it's the size of the fight in the dog. "
~Mark Twain
~Mark Twain
Re: [1.10] A question on monsters' mouse-hovering
Thanks! I'll take a look later !
Terms of Service
My tutorials:
AIs:
Fixing the Shadow Master's AI
The Shadow Master's AI Compendium
The Shadow Warrior's AI Compendium
The DruidBear's AI Compendium
The DruidWolf's AI Compendium
The Vines AI Compendium
Use every AI as Minion for the Player [Thanks to Necrolis]
Adding simple commands to the Shadow Master's AI
Skills:
Fixing SrvDoFunc 49
Creating a proper summoning skill for enemy monsters
Revive super uniques and bosses
Misc:
Changing reanimated monsters life span [thanks to Necrolis]
My resources:
Ogodei's Diablo I Monster Pack - Final
Ogodei's Diablo I Item Pack v1.00
Ogodei's Autumnal Act I
My tutorials:
AIs:
Fixing the Shadow Master's AI
The Shadow Master's AI Compendium
The Shadow Warrior's AI Compendium
The DruidBear's AI Compendium
The DruidWolf's AI Compendium
The Vines AI Compendium
Use every AI as Minion for the Player [Thanks to Necrolis]
Adding simple commands to the Shadow Master's AI
Skills:
Fixing SrvDoFunc 49
Creating a proper summoning skill for enemy monsters
Revive super uniques and bosses
Misc:
Changing reanimated monsters life span [thanks to Necrolis]
My resources:
Ogodei's Diablo I Monster Pack - Final
Ogodei's Diablo I Item Pack v1.00
Ogodei's Autumnal Act I