-
Member
yea thats nice, maybe someone knows how to track the rift level? maybe sound only on gr 130 or higher?
-
Legendary
Hud.Game.Me.InGreaterRiftRank
InGreaterRiftRank has a value = 0 if there is no open GR or if you are not inside the GR
that's why this line
Code:
if(SoundEnabled && !Hud.Game.IsInTown && Hud.Game.Me.InGreaterRift && t < 10 && asd + 5000 < Hud.Game.CurrentRealTimeMilliseconds){
could be replaced by ..
Code:
if(SoundEnabled && Hud.Game.Me.InGreaterRiftRank > 0 && t < 10 && asd + 5000 < Hud.Game.CurrentRealTimeMilliseconds){
and in your case for this
Code:
if(SoundEnabled && Hud.Game.Me.InGreaterRiftRank > 129 && t < 10 && asd + 5000 < Hud.Game.CurrentRealTimeMilliseconds){
-
Post Thanks / Like - 2 Thanks
-
Member
maxresdefault.jpg
How to adjust the position of the icon? please help me~
-
Member
Look at the code on initial post.
-
Legendary
Update
I have decided to upload a new and unique version with the suggested changes.
For players who are away, an estimate will be made of the remaining time (assumes the time between one effect and another is 90 seconds always)
The text of the Timer will be green if it is less than 10. In addition, for the lowest of all of them a green frame will be drawn (currently only nearby players are considered, are the ones that can affect our stacks)
Removed SoundEnabled and FileSound
Added SoundEnabledProc, SoundEnabledLast10, FileSoundProc, FileSoundLast10
Sounds will now only work if you play GR (Hud.Game.InGreaterRiftRank > 0) and in very specific moments to make it less annoying
SoundEnabledProc -> Notify Proc . It will only work in GR and will warn a maximum of 1 second after it happens
SoundEnabledLast10 -> Notify 10sec before Proc. It will only work in GR and will warn when 9-10 seconds are missing for the proc of only one of the players
For the green frame, and the last 10 sec sound , only close players will be considered. Change line 229 if you want to include far players:
Code:
if (Search && player.HasValidActor)
to
-
Post Thanks / Like - 3 Thanks
-
Member
My bad had the old customization on.
Last edited by Pe1a0; 07-25-2020 at 03:41 PM.
-
Contributor
I finally got around to testing and tweaking this addon.
One thing I did was move the icon to the Attributes Bar. I made it a bit bigger to be similar to the bar icons.
Maybe you can add that as an optional 3rd anchor point; So, 1st near portait, 2nd near character and 3rd at Attributes Bar.
PS: I initially had it cover the default ToT icon (shown below), but its order seems to change.
Something like this:
Last edited by Stormreaver; 07-26-2020 at 04:02 PM.
-
Legendary
Originally Posted by
Stormreaver
One thing I did was move the icon to the Attributes Bar. I made it a bit bigger to be similar to the bar icons.
Maybe you can add that as an optional 3rd anchor point; So, 1st near portait, 2nd near character and 3rd at Attributes Bar.
Yes, it is a good place for your character's icon. With custom Code you can also achieve something similar. For 1920x1080 these values (approximate) could be used:
Code:
plugin.PortraitMe = false;
plugin.OffsetX = -0.175f;
plugin.OffsetY = +0.374f;
There I placed the icon with the goblins counter :)
Last edited by RNN; 07-26-2020 at 03:16 PM.
-
Contributor
[QUOTE=RNN;4231027]
Code:
plugin.PortraitMe = false;
plugin.OffsetX = -0.175f;
plugin.OffsetY = +0.374f;
How do you get coords like that? Trial and error (like me) or do u have some kind of an easier way?
-
Legendary
With the s4000 MouseCircle plugin https://www.ownedcore.com/forums/dia...ml#post4061050 (I'm looking for Alignment-Grid plugin...)
Although I made some modifications to it: MouseCircle - Pastebin.com (Conditions: play alone, and be in the town of act 5)
You have to subtract the two values (% x,% y) because I take the character as a reference point, which is also not right in the center of the screen
Last edited by RNN; 07-26-2020 at 06:35 PM.
-
Post Thanks / Like - 1 Thanks
rogue00722 (1 members gave Thanks to RNN for this useful post)
-
Member
It will be good information from now on.
-
Member
I am new to programming. Can you please let me know how to get the X/Y offset number using the above example. Many thanks
plugin.OffsetX = -0.175f;
plugin.OffsetY = +0.374f;
By the way, what is the "f" after the number mean?
-
Active Member
Originally Posted by
ciscobass
I am new to programming. Can you please let me know how to get the X/Y offset number using the above example. Many thanks
plugin.OffsetX = -0.175f;
plugin.OffsetY = +0.374f;
By the way, what is the "f" after the number mean?
float number
-
Active Member
Originally Posted by
RNN
Update
I have decided to upload a new and unique version with the suggested changes.
For players who are away, an estimate will be made of the remaining time (assumes the time between one effect and another is 90 seconds always)
The text of the Timer will be green if it is less than 10. In addition, for the lowest of all of them a green frame will be drawn (currently only nearby players are considered, are the ones that can affect our stacks)
Removed SoundEnabled and FileSound
Added SoundEnabledProc, SoundEnabledLast10, FileSoundProc, FileSoundLast10
Sounds will now only work if you play GR (Hud.Game.InGreaterRiftRank > 0) and in very specific moments to make it less annoying
SoundEnabledProc -> Notify Proc . It will only work in GR and will warn a maximum of 1 second after it happens
SoundEnabledLast10 -> Notify 10sec before Proc. It will only work in GR and will warn when 9-10 seconds are missing for the proc of only one of the players
For the green frame, and the last 10 sec sound , only close players will be considered. Change line 229 if you want to include far players:
Code:
if (Search && player.HasValidActor)
to
RNN where do I change to modify 10sec bip variable (FileSoundLast10) to play wav at 5 instead of 10 sec ?
-
Member
if (t < 10)
-> if (t < 5)
if (SoundEnabledLast10 && t > 9 && TicksLast10 < Hud.Game.CurrentGameTick && Hud.Game.Me.InGreaterRiftRank > 0) // 1s=60 ticks. Highly recommended add check t>(1...9)
-> if (SoundEnabledLast10 && t > 4 && TicksLast10 < Hud.Game.CurrentGameTick && Hud.Game.Me.InGreaterRiftRank > 0) // 1s=60 ticks. Highly recommended add check t>(1...9)
Last edited by rogue00722; 07-27-2020 at 12:18 AM.
-
Post Thanks / Like - 1 Thanks
RNN (1 members gave Thanks to rogue00722 for this useful post)