Quote:
Originally Posted by Daarmy
|
Hm sry wusst jich nicht dachte gehört in Programming :S dann pls verschieben
und den Link den du da gepostet hast ist nicht das was ich suche ;)
Ich weiss noch das ich was in der atkconfig ändern musste mehr leider net das ist kein script an sich das sind einfach nur ein paar Lines in der atk config und noch irgendwo ;(
Edit: Hat sich erledigt habs gefunden
PHP Code:
If you hate having your sorc stand in the middle of a crowd, read this. I wrote it for my cold sorc and it Orbs and teleports around the monsters to keep them from hitting you as much.
Ok, I have made a change to the scripts/libs/common/NTAttack.ntl file. 1. It requires that you set your Untimed Skillls in the NTConfig_Sorceress file to teleport. What this will do, is cast your attack at the enemy and then teleport till it can cast its attack again. It has been working for me so far as an Orb sorc. To make the change, you will need to replace a line of code with my code.
2. In NTAttack.ntl find the line:
return NTC_CastSkill(NTConfig_AttackSkill[index], _NTA_SkillHand[index], target);
Replace that line with:
if ((me.x - target.x <= 4 && me.x - target.x >= -4) || (me.y - target.y <= 4 && me.y - target.y >= -4)) //If target is within 4 of me.
{
if (me.x - target.x >= 0 && me.y - target.y >= 0) //Teleport to other side of target.
return NTC_CastSkill(NTConfig_AttackSkill[index+1], _NTA_SkillHand[index+1], target.x - 8, target.y - 8)
else if (me.x - target.x >= 0 && me.y - target.y < 0)
return NTC_CastSkill(NTConfig_AttackSkill[index+1], _NTA_SkillHand[index+1], target.x - 8, target.y + 8);
else if (me.x - target.x < 0 && me.y - target.y >= 0)
return NTC_CastSkill(NTConfig_AttackSkill[index+1], _NTA_SkillHand[index+1], target.x + 8, target.y - 8);
else
return NTC_CastSkill(NTConfig_AttackSkill[index+1], _NTA_SkillHand[index+1], target.x + 8, target.y + 8);
}
else //Otherwise, cast attack skill.
return NTC_CastSkill(NTConfig_AttackSkill[index], _NTA_SkillHand[index], target.x, target.y);
3. And the line:
return NTC_CastSkill(NTConfig_AttackSkill[index+1], _NTA_SkillHand[index+1], target);
MAKE SURE ITS THE LINE WITH [index+1] and NOT just [index].
Replace it with:
if (me.x - target.x >= 0 && me.y - target.y >= 0) //This all calculates your position in comparison to the enemy and jumps around him.
return NTC_CastSkill(NTConfig_AttackSkill[index+1], _NTA_SkillHand[index+1], target.x - 8, target.y - 8); //The 8's represent teleport distance from enemy.
else if (me.x - target.x >= 0 && me.y - target.y < 0)
return NTC_CastSkill(NTConfig_AttackSkill[index+1], _NTA_SkillHand[index+1], target.x - 8, target.y + 8); //Change to any distance you prefer.
else if (me.x - target.x < 0 && me.y - target.y >= 0)
return NTC_CastSkill(NTConfig_AttackSkill[index+1], _NTA_SkillHand[index+1], target.x + 8, target.y + 8);
else
return NTC_CastSkill(NTConfig_AttackSkill[index+1], _NTA_SkillHand[index+1], target.x + 8, target.y - 8);
Es gibt also 3 Punkte die zu erledigen sind!
Nochmal zu 1., da dieser nicht näher beschrieben wurde: ihr müsst in eurer ...\D2NT\scripts\NTBot\char_configs\NTConfig_Sorceress.ntl die untimed skills auf Teleport umändern! Skillnummer für Teleport ist die 54. Das sieht am Beispiel meiner Blizz/FB Sorc dann so aus:
//------------------------------------------------------------------------------
// Attack configuration
//------------------------------------------------------------------------------
NTConfig_AttackSkill[0] = 59; // First skill. Set to 0 if you won't
NTConfig_AttackSkill[1] = 59; // Primary skill to boss.
NTConfig_AttackSkill[2] = 54; // Primary untimed skill to boss. Set to 0 if you won't
NTConfig_AttackSkill[3] = 59; // Primary skill to others.
NTConfig_AttackSkill[4] = 54; // Primary untimed skill to others. Set to 0 if you won't
NTConfig_AttackSkill[5] = 47; // Secondary skill in case monster is immune to primary skill. Set to 0 if you won't
NTConfig_AttackSkill[6] = 54; // Secondary untimed skill. Set to 0 if you won't