XP 봇, 클레이골렘 소환되게 하기
분류
봇관련
조회 수
1,128
추천 수
3
scripts\libs\XP\Libs 폴더 XP_Include.d2l 파일에서
XP_NecroPrecast 함수를 다음과 같이 수정.
function XP_NecroPrecast() {
var _isboed = false;
switch (XP_Golem) {
case 1: DC_DoCast(75,0); break; // Clay Golem
case 2: DC_DoCast(85,0); break; // Iron Golem
case 3: DC_DoCast(94,0); break; // Fire Golem
}
if (DA_UseCTA && (me.hpmax <= XP_MaxLife || DA_Refresh || !e.getState(32) === 0)) { DA_UseCTASkills(); _isboed = true; }
// Cast only if we want to refresh or if we are in town
if (DA_Refresh || DC_InTown(me) || _isboed) {
// Bone Armor
if (XP_BoneArmor) { DC_DoCast(68,0); }
// Recast CTA skills for the Golem
if (DA_UseCTA && (me.hpmax <= XP_MaxLife || DA_Refresh || me.getState(32) === 0)) { DA_UseCTASkills(); }
}
}
scripts\libs\common 폴더 d2jsp-attack.d2l 파일에서
function DA_DoPrecasts 함수내에 네크부분을 다음과 같이 수정.
// Necromancer
if (me.classid == 2) {
// Bone Armor
if (!me.getState(14) && DC_CheckSkill(68) >= 1) {
DC_DoCast(68,0);
}
// Autodetect the best Golem to use
var _golem=false;
if(DC_CheckSkill(75) >= 1) { _golem = 75; } //<-수정
else if(DC_CheckSkill(85) >= 1) { _golem = 85; }
else if(DC_CheckSkill(94) >= 1) { _golem = 94; } //<-수정
// Cast a Golem if no one is raised
if (_golem) {
// Fire Golem
if (_golem == 94 && !DC_getNPC(292)) {
DC_DoCast(_golem,0);
}
// Blood Golem
if (_golem == 85 && !DC_getNPC(290)) {
DC_DoCast(_golem,0);
}
// Clay Golem
if (_golem == 75 && !DC_getNPC(289)) {
DC_DoCast(_golem,0);
}
}
}