kolton / d2bot-with-kolbot

d2bot game manager by D3STROY3R with kolbot libs by kolton for d2bs
345 stars 332 forks source link

Feature Request - Cast Item Charged Skill #1099

Closed braxtonKappes closed 5 years ago

braxtonKappes commented 5 years ago

I didn't do a ton of looking into the scripts but is there anyway to precast "Sage Oak" when Wisp Projector is equipped?

DirtNasti commented 3 years ago

@DarkHorseDre what are you referring to as np?

Slamzorer commented 3 years ago

Hi! Works well! But have issue with Wind druid it use a oak from charges, how to put it in exception?

DarkHorseDre commented 3 years ago

Either do an if statement for the me.classid so that 'if my classid is not druid' then it runs the rest of the charges code

or

Within the code, check if you have hard points in the skill before casting (I can't recall the command for that)

@DirtNasti np - naturespeace

Slamzorer commented 3 years ago

Either do an if statement for the me.classid so that 'if my classid is not druid' then it runs the rest of the charges code

or

Within the code, check if you have hard points in the skill before casting (I can't recall the command for that)

@DirtNasti np - naturespeace

Can I copy paste this code

PrecastChargedSkill(!me.getState(149) && (getTickCount() - this.BOTick >= 30 - 30000)); //dhd added - cast charged skill (oak) before cta BO
        this.precastCTA(!me.getState(32) || force || (getTickCount() - this.BOTick >= this.BODuration - 30000));

in each class and remove it before this lines:

this.doPrecast = function (force) {
        var buffSummons = false;
Slamzorer commented 3 years ago

I find the solution. In precast.js After this line I add : // Force BO 30 seconds before it expires

if (me.classid!=5)
  {
  PrecastChargedSkill(!me.getState(149) && (getTickCount() - this.BOTick >= 30 - 30000)); //dhd added - cast charged skill (oak) before cta BO
  this.precastCTA(!me.getState(32) || force || (getTickCount() - this.BOTick >= this.BODuration - 30000));
  }
DarkHorseDre commented 3 years ago

if (me.classid!=5)

Yep gj - this is what I was describing in my previous post