GilesSmith
New Member
- Joined
- Jun 2, 2012
- Messages
- 1,564
- Reaction score
- 34
hi giles,
i tried the green cold out, replacing with existing // dashing strike stuff.
well he teleported in and after the mob is dead, it teleported to another guy in the same group.
Can we make it teleport into the group and not do it anymore until they are dead ?
To teleport far i need to increase my attack range too ?
Yes you should increase you default kill radius - try set it to 40, see how that works.
And glad it works. It shouldn't be using it again if there's anything within 25 yards range... maybe try change this line;
iAnythingWithinRange[RANGE_25] == 0 && iAnythingWithinRange[RANGE_50] >= 1 &&
(in the new code I gave you) to this;
iAnythingWithinRange[RANGE_30] == 0 && iAnythingWithinRange[RANGE_50] >= 1 &&
Otherwise the cheat-solution will be to add a timer so it can only use dashing strike max once every 10 seconds or so. If you want to do that, then you'll need to add some more code and change a timer too. First, change the timer;
Code:
{SNOPower.Monk_DashingStrike, 1000},
Next, change the code I have you before for dashing strike, to this;
Code:
// Dashing Strike as a teleport
if (!bOOCBuff && !bCurrentlyAvoiding && !playerStatus.bIsIncapacitated && hashPowerHotbarAbilities.Contains(SNOPower.Monk_DashingStrike) &&
iAnythingWithinRange[RANGE_40] == 0 && iAnythingWithinRange[RANGE_50] >= 1 &&
((playerStatus.dCurrentEnergy >= 30 && !playerStatus.bWaitingForReserveEnergy) || playerStatus.dCurrentEnergy >= iWaitingReservedAmount) &&
GilesUseTimer(SNOPower.Monk_DashingStrike))
{
return new GilesPower(SNOPower.Monk_DashingStrike, 50f, vNullLocation, -1, targetCurrent.iThisACDGUID, 1, 2, USE_SLOWLY);
}
^^ Which adds the timer-check to the Dashing Strike code, so it makes sure it uses the new 10 second timer.