What's new
  • Visit Rebornbuddy
  • Visit Resources
  • Visit API Documentation
  • Visit Downloads
  • Visit Portal
  • Visit Panda Profiles
  • Visit LLamamMagic

legendary potions still hit or miss?

dan991199

New Member
Joined
Jul 17, 2010
Messages
245
Reaction score
1
seems like my monk uses his from time to time, but my crusader never uses his.

fresh install of db beta, and upto date trinity via, ez updater.
 
Same problem here, doesn't use leg potions at all.
 
I'm still using v. 17 and from what I've seen, you need to have a regular potion in your inventory at all time before the legendary potion is used.
 
using .18 have both regular and legendary and i just watching him slowly trickle down from 100% to dead without potting
 
using .18 have both regular and legendary and i just watching him slowly trickle down from 100% to dead without potting

Yeah, same here, I did the same, it just dies, if I switch to normal potions it works just fine, so it's the legendary potion that it's not working. BTW I have v1.8.19 (auto-updated by EZUpdater).
 
Read around a bit before posting.

Clean install, Trinity .20 (ezupdated or from assembla)

open combat > handletarget.cs

Ok, another fix for the people on .20 Trinity:

Find this block of code (it's the part of "if" condition):
Code:

SpellHistory.TimeSinceUse(SNOPower.DrinkHealthPotion) < TimeSpan.FromSeconds(30)

Replace it with:
Code:

(SpellHistory.TimeSinceUse(SNOPower.DrinkHealthPotion) > TimeSpan.FromSeconds(30) ||
SpellHistory.GetSpellLastused(SNOPower.DrinkHealthPotion) == DateTime.MinValue)

Your condition should look like:
Code:

if (!Player.IsIncapacitated && Player.CurrentHealthPct > 0 &&
(SpellHistory.TimeSinceUse(SNOPower.DrinkHealthPotion) > TimeSpan.FromSeconds(30) ||
SpellHistory.GetSpellLastused(SNOPower.DrinkHealthPotion) == DateTime.MinValue) &&
Player.CurrentHealthPct <= PlayerEmergencyHealthPotionLimit)

Enjoy.


All Credit goes to GuuD /rrrix I just posted it here to make it more visible
 
Read around a bit before posting.

Clean install, Trinity .20 (ezupdated or from assembla)

open combat > handletarget.cs

Ok, another fix for the people on .20 Trinity:

Find this block of code (it's the part of "if" condition):
Code:

SpellHistory.TimeSinceUse(SNOPower.DrinkHealthPotion) < TimeSpan.FromSeconds(30)

Replace it with:
Code:

(SpellHistory.TimeSinceUse(SNOPower.DrinkHealthPotion) > TimeSpan.FromSeconds(30) ||
SpellHistory.GetSpellLastused(SNOPower.DrinkHealthPotion) == DateTime.MinValue)

Your condition should look like:
Code:

if (!Player.IsIncapacitated && Player.CurrentHealthPct > 0 &&
(SpellHistory.TimeSinceUse(SNOPower.DrinkHealthPotion) > TimeSpan.FromSeconds(30) ||
SpellHistory.GetSpellLastused(SNOPower.DrinkHealthPotion) == DateTime.MinValue) &&
Player.CurrentHealthPct <= PlayerEmergencyHealthPotionLimit)

Enjoy.


All Credit goes to GuuD /rrrix I just posted it here to make it more visible

Thanks! That one fixed the problem. I noticed that there are some spaces in the code, like Health*Potion, I tried to reply fixing the code but I had the same problem, so I deleted it. Just a heads-up for anyone having the same problem, just make sure you delete those spaces.
 
Back
Top