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

Rend/Code help please.

Geniune

New Member
Joined
Oct 29, 2012
Messages
15
Reaction score
0
So on the old Trinity, were giles was in charge, i had made a modification to the rend code that made it spam rend regardless of what fury/or skills availiable so long as health was <=45%. With the new unified version my custom rend code addon no longer works. the code is as follows.

if (playerStatus.dCurrentHealthPct <= 0.45 && hashPowerHotbarAbilities.Contains(SNOPower.Barbarian_Rend) && iAnythingWithenRange [RANGE_12] > 1)
return new GilesPower(SNOPower.Barbarian_Rend, 0f, playerStatus.vCurrentPosition, iCurrentWorldID, -1, 1, 0, SIGNATURE_SPAM);

, So i tryed using this in the new 1 and it makes it so DB no longer reads trinity. its not a huge addon, but it made the old giles almost never let me die with rend. so was wondering if any of the dev team could help me figure out how to make the above lines of code work with the new rend spam please.
 
So on the old Trinity, were giles was in charge, i had made a modification to the rend code that made it spam rend regardless of what fury/or skills availiable so long as health was <=45%. With the new unified version my custom rend code addon no longer works. the code is as follows.

if (playerStatus.dCurrentHealthPct <= 0.45 && hashPowerHotbarAbilities.Contains(SNOPower.Barbarian_Rend) && iAnythingWithenRange [RANGE_12] > 1)
return new GilesPower(SNOPower.Barbarian_Rend, 0f, playerStatus.vCurrentPosition, iCurrentWorldID, -1, 1, 0, SIGNATURE_SPAM);

, So i tryed using this in the new 1 and it makes it so DB no longer reads trinity. its not a huge addon, but it made the old giles almost never let me die with rend. so was wondering if any of the dev team could help me figure out how to make the above lines of code work with the new rend spam please.

No promises... you could have just looked at the code and compared though.

Code:
if (playerStatus.CurrentHealthPct <= 0.45 && hashPowerHotbarAbilities.Contains(SNOPower.Barbari an_Rend) && iAnythingWithenRange [RANGE_12] > 1)
return new GilesPower(SNOPower.Barbarian_Rend, 0f, playerStatus.CurrentPosition, iCurrentWorldID, -1, 1, 0, USE_SLOWLY);
 
whats the difference between what u posted and what i posted? I did look at how the new code is set up, and i cant tell any difference that would keep my added bit from working like it use to. With how its all set up now, im not as sure what to mess with where. All i know for sure is with the old giles i had less then 1 death an hour, no matter what spec i ran that had rend in it. but now im at 4-8 deaths an hour with any spec.
 
Your code:
Code:
if (playerStatus.dCurrentHealthPct <= 0.45 && hashPowerHotbarAbilities.Contains(SNOPower.Barbari an_Rend) && iAnythingWithenRange [RANGE_12] > 1)
return new GilesPower(SNOPower.Barbarian_Rend, 0f, playerStatus.vCurrentPosition, iCurrentWorldID, -1, 1, 0, SIGNATURE_SPAM);

Code I posted for you:
Code:
if (playerStatus.[COLOR="#FF0000"]CurrentHealthPct [/COLOR]<= 0.45 && hashPowerHotbarAbilities.Contains(SNOPower.[COLOR="#FF0000"]Barbarian_Rend[/COLOR]) && iAnythingWithenRange [RANGE_12] > 1)
return new GilesPower(SNOPower.Barbarian_Rend, 0f, playerStatus.[COLOR="#FF0000"]CurrentPosition[/COLOR], iCurrentWorldID, -1, 1, 0, [COLOR="#FF0000"]USE_SLOWLY[/COLOR]);
 
thanks, testing now.

So didnt work, still unable to read Giles upon load of DB. But i went through and just modded other changes that would simulate a situation of >=around 25/40% hp. and so far working ok. thanks for the help though.
 
Last edited:
Back
Top