Automatically assign best Weapon slot for Pre and Post CTA buffs#763
Automatically assign best Weapon slot for Pre and Post CTA buffs#763Timmynat0r wants to merge 8 commits intohectorgimenez:mainfrom
Conversation
internal/action/buff.go
Outdated
| } | ||
| for _, kb := range preKeys { | ||
| utils.Sleep(100) | ||
| utils.Sleep(200) |
There was a problem hiding this comment.
did you have issues with the lower sleep values?
There was a problem hiding this comment.
Yes, i sometimes missed cta buffs on characters with low fcr, atleast thats what i think what caused it, i saw the skil switch happen, but the rightclick did not "happen" or register, with higher sleep values i get all the casts done on any class
|
|
||
| if len(preKeys) > 0 { | ||
| ctx.Logger.Debug("PRE CTA Buffing...") | ||
| if ctx.WeaponBonusCache.IsValid { |
There was a problem hiding this comment.
right now this is not true if we have dont have a cta, because that is relevant in the current code (this propably will change) and if we for what reason ever have not build a gearcache, so it will fall back to the old version of buffing
There was a problem hiding this comment.
kept ctx.WeaponBonusCache.IsValid in case of error while calculating GearCache, so we can always fall back on original buff logic
…nt, reduced weaponSwapping
|
Does this help for the tabskill issue? Where 1,2,3 is the skill.Desc().Page |
|
ctx.Data.PlayerUnit.Stats.FindStat(stat.AddSkillTab, tabskills) This already gives me a predetermined list: My problem right now is that those "layers" are not connected to skills.go (atleast not that i know of) So for example: and my BuffSkills() has FrozenArmor [skill.id] 40 and no other informations Now i need a "connection" from [skill.id] 40 to tabskills=10 Whats the easiest way to do that ? |
|
Why not do something like this? 6 is the number of non-class skills at the start of skills.go. 30 is the number of skills for each class |
|
that would still only leave me with the class skills, because they are not ordered by tabs |
|
Sorry I don't understand what you mean. My example takes 40 and returns 10, isn't that what is needed? |
|
you have 5 different kinds of "stats" as +skills that you can have +skills to All Skills (example: anihinilus +1allskills) and the last example is not mapped in skills.go in d2go right now this would be maybe i just overcomplicate stuff, but if i want to really calculate the best slot for every possibility, i would need this If i had this, a BO Barb script, would automaticly use +3warcries sticks in the second slot, and cast his bo/bc |
|
Nah it sounds good, but I don't see why my suggestion wouldn't work, this is untested but it seems exactly what's needed, sorry if I'm being stupid: |
|
btw: i send a DM on discord @CarlPoppa1 but this: does not give out [skillID], this will give value and skilltab (value would be +X to skilltab) |
It took some time and another pair of eyes to get what you ment here. And since the skillIDs for Assasin and Druid skills, are much higher (propably due to LOD Expansion) , even with the Information for the Page, your calculation propably wouldnt have worked. But the tabskill Layer is 42 for elemental (druid) |
Automatically assign best Weapon slot for Buffs
V1:
V2:
V3: (not working as intended right now)
V4:
V5:
Right now PR is working as intended