kolton / d2bot-with-kolbot

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

Cast Life Tap from Marrowalk Boot Charges #1831

Open croboy opened 5 years ago

croboy commented 5 years ago

Hello

Trying to cast life tap from my Marrowalk boots in Uber trist on Mephisto.

I've added this line to my Paladin.js:

if (unit.classid === 242 && unit.getState != 58) { me.castChargedSkill(82, 242); }

But i get the error "(prototypes.js line 1193): Must supply skillid on me.castChargedSkill"

Can anyone help me getting my bot to cast Charged skill life tap from my Marrowalk boots onto Uber Mephisto?

Any help appreciated

Cheers

croboy commented 5 years ago

UPDATE I have updated these two lines as instructed: Prototypes.js Changed: if (this !== me && this.type === 4) { to if (this !== me && this.type !== 4) {

Changed: if (!stats.hasOwnProperty(204)) { to if (stats.hasOwnProperty(204)) {

But now I get the error that it cant find skill 82 or there are no charges.

But there are charges, and I have the boots on. I'm using this in my Paladin.js now

if (unit.classid === 242 && unit.getState != 58) { me.castChargedSkill(82, unit.x, unit.y); }

Any help appreciated

mayphilc commented 5 years ago

im almost 100% positive kolbot never has had a way to cast from charges so you are shit out of luck

croboy commented 5 years ago

All good, I got it working :) bot pwns ubers now :)

ckelly44 commented 5 years ago

All good, I got it working :) bot pwns ubers now :)

Awesome! Can you share what worked?