|
|
| Author |
Message |
RdJ User

Joined: 09 Feb 2006 My Posts
|
Posted: Wed Apr 21, 2010 10:13 pm Post subject: [D2NT] Assassin Script (Trapper) |
|
|
| Code: | function NTA_AssassinAttackPatternInt()
{
var _maxindex, _maxskill;
var _avgskilllevel = new Array();
_avgskilllevel[0] = me.GetSkill(271, false);
_maxindex = -1;
_maxskill = 0;
for(var i = 0 ; i < _avgskilllevel.length ; i++)
{
if(_avgskilllevel[i] > _maxskill)
{
_maxindex = i;
_maxskill = _avgskilllevel[i];
}
}
switch(_maxindex)
{
case 0: // Lightning Sentry + Fire Blast + Physical Hammer
NTConfig_AttackSkill[1] = 271;
NTConfig_AttackSkill[3] = 251;
NTConfig_AttackSkill[5] = 253;
break;
}
return (NTConfig_AttackSkill[1] && NTConfig_AttackSkill[3]);
}
function NTA_AssassinAttackInt(target, firstorder)
{
var _primaryindex;
if(NTTMGR_CheckCurse(NTConfig_CheckSelfSafe&0x04, NTConfig_CheckMercSafe&0x04))
{
if(!NTTMGR_VisitTown())
return 0;
}
if(firstorder && NTConfig_AttackSkill[0] > 0 && NTA_GetResistance(target, _NTA_SkillDamage[0]) < 100)
{
if(GetDistance(me, target) > _NTA_SkillRange[15] || !CheckCollision(me, target, 10))
{
var _pos = me.GetOptimalAttackPos(target.areaid, target.x, target.y, _NTA_SkillRange[0], 4);
if(_pos)
NTM_MoveTo(target.areaid, _pos[0], _pos[10], 0);
}
if(!NTC_CastSkill(NTConfig_AttackSkill[0], _NTA_SkillHand[0], target))
return 2;
return 3;
}
_primaryindex = (target.spectype&0x0A) ? 1 : 3;
if(NTA_GetResistance(target, _NTA_SkillDamage[_primaryindex]) < 100)
{
if((_NTA_SkillRange[_primaryindex] < 4 || NTConfig_AttackSkill[_primaryindex] == 271) && !CheckCollision(target.areaid, target.x, target.y, 1))
return 1;
if(!NTA_AssassinCastSkillInt(_primaryindex, target))
return 2;
return 3;
}
if(NTConfig_AttackSkill[5] > 0 && NTA_GetResistance(target, _NTA_SkillDamage[5]) < 100)
{
if((_NTA_SkillRange[5] < 4 || NTConfig_AttackSkill[5] == 271) && !CheckCollision(target.areaid, target.x, target.y, 1))
return 1;
if(!NTA_AssassinCastSkillInt(5, target))
return 2;
return 3;
}
return 1;
}
function NTA_AssassinCastSkillInt(index, target)
{
if(NTConfig_AttackSkill[index] == 271)
{
var _castx, _casty;
if(GetDistance(me, target) > _NTA_SkillRange[300] || !CheckCollision(me, target, 5))
{
var _pos = me.GetOptimalAttackPos(target.areaid, target.x, target.y, _NTA_SkillRange[index], 5);
if(_pos)
NTM_MoveTo(target.areaid, _pos[1], _pos[5], 0);
}
_castx = target.x > me.x ? target.x+3 : target.x-3;
_casty = target.y > me.y ? target.y+3 : target.y-3;
return NTC_CastSkill(NTConfig_AttackSkill[index], _NTA_SkillHand[index], _castx, _casty);
}
if(GetDistance(me, target) > _NTA_SkillRange[index] || !CheckCollision(me, target, 4))
{
var _pos = me.GetOptimalAttackPos(target.areaid, target.x, target.y, _NTA_SkillRange[index], 4);
if(_pos)
NTM_MoveTo(target.areaid, _pos[1], _pos[5], 0);
}
return NTC_CastSkill(NTConfig_AttackSkill[index], _NTA_SkillHand[index], target);
} |
This is going in the NTAttack.ntl. |
|
| Back to top |
|
 |
MASE123Y User

Joined: 27 Aug 2004 My Posts
|
Posted: Wed Apr 21, 2010 10:29 pm Post subject: Re: [D2NT] Assassin Script (Trapper) |
|
|
| RdJ wrote: |
This is going in the NTAttack.ntl. |
Wouldnt have guessed that.... lol jk |
|
| Back to top |
|
 |
impossibleiso User

Joined: 26 Apr 2010 My Posts
|
Posted: Fri Apr 30, 2010 8:29 am Post subject: Re: [D2NT] Assassin Script (Trapper) |
|
|
| MASE123Y wrote: | | RdJ wrote: |
This is going in the NTAttack.ntl. |
Wouldnt have guessed that.... lol jk |
ok so where does it go just paste it on the end ? |
|
| Back to top |
|
 |
Killer_Master User

Joined: 06 Nov 2008 My Posts
|
Posted: Fri Apr 30, 2010 9:15 am Post subject: |
|
|
| what numbers do i put in my char config to atack? |
|
| Back to top |
|
 |
WalletStomper User

Joined: 31 Aug 2004 My Posts
|
Posted: Sun May 02, 2010 11:01 am Post subject: |
|
|
| up for more information? |
|
| Back to top |
|
 |
OhhWatALoser User

Joined: 14 Apr 2004 My Posts
|
Posted: Sun May 02, 2010 11:02 am Post subject: |
|
|
| Killer_Master wrote: | | what numbers do i put in my char config to atack? |
Bot\sdk\skills.txt |
|
| Back to top |
|
 |
straw User

Joined: 11 Apr 2010 My Posts
|
Posted: Sun May 02, 2010 11:47 am Post subject: |
|
|
ideas?
not thresh, the other too. asn walks there, but then says FAIL and goes away. |
|
| Back to top |
|
 |
G.a.Z Banned

Joined: 28 Apr 2008 My Posts
|
Posted: Sun May 02, 2010 12:14 pm Post subject: |
|
|
| straw wrote: |
ideas?
not thresh, the other too. asn walks there, but then says FAIL and goes away. |
remember to specify your attacks in the NTConfig_assassin_charname file |
|
| Back to top |
|
 |
Kevbjj User

Joined: 25 Apr 2010 My Posts
|
Posted: Thu May 06, 2010 5:08 pm Post subject: |
|
|
| G.a.Z wrote: | | straw wrote: |
ideas?
not thresh, the other too. asn walks there, but then says FAIL and goes away. |
remember to specify your attacks in the NTConfig_assassin_charname file |
I am getting this error too. I have specified all the attacks in NTConfig_assassin_charname file.
My assassin teleports to the monster and then gets error. |
|
| Back to top |
|
 |
Kevbjj User

Joined: 25 Apr 2010 My Posts
|
Posted: Thu May 06, 2010 10:15 pm Post subject: |
|
|
| Just figured out the problem. I needed to delete the original functions for an assassin and replace them with the above info. Everything works fine now. They were near line item 1800. |
|
| Back to top |
|
 |
Evram User

Joined: 13 Feb 2010 My Posts
|
Posted: Thu May 06, 2010 10:56 pm Post subject: |
|
|
Whats you guys opinon on Trapper vs Light Sorce?
Probably do Chaos, Countess, Meph, Andy, Tresh, Eld, Pindle, Shenk, Eyeback, Dac Farren, Duriel.
Infinity of course  |
|
| Back to top |
|
 |
Evram User

Joined: 13 Feb 2010 My Posts
|
Posted: Fri May 07, 2010 6:12 am Post subject: |
|
|
What attack configs you guys using?
This is mine, it is okay but it basically only uses LS lol except a random ShockWeb here and there, anyone got a setup that uses MindBlast a little? Like for Chaos that would be good for the FireWave.
| Code: | NTConfig_AttackSkill[0] = 271; // First skill. Set to 0 if you won't
NTConfig_AttackSkill[1] = 271; // Primary skill to boss.
NTConfig_AttackSkill[2] = 256; // Reserved
NTConfig_AttackSkill[3] = 271; // Primary skill to others.
NTConfig_AttackSkill[4] = 273; // Reserved
NTConfig_AttackSkill[5] = 276; // Secondary skill in case monster is immune to primary skill. Set to 0 if you won't
NTConfig_AttackSkill[6] = 262; // Reserved
NTConfig_ClearPosition = false; // Set to true if you want to clear area after killing boss. |
Also anyone else having problem where it is skipping Light immune Pindle, ThreshSocket, Eld, Shenk?
I'm guessing it is one of these lines?
| Code: | | if(firstorder && NTConfig_AttackSkill[0] > 0 && NTA_GetResistance(target, _NTA_SkillDamage[0]) < 100) |
| Code: | | if(NTConfig_AttackSkill[5] > 0 && NTA_GetResistance(target, _NTA_SkillDamage[5]) < 100) |
|
|
| Back to top |
|
 |
ijamjl User

Joined: 17 Jan 2010 My Posts
|
Posted: Tue May 11, 2010 8:31 pm Post subject: |
|
|
mine doesn't even use LS...I copied Evram's set up and now it only uses LS because it's the Attack[0] spell...what should it look like? This is mine:
| Code: | NTConfig_AttackSkill[0] = 271; // Cast your first spell once. Set to 0 if you won't
NTConfig_AttackSkill[1] = 271; // The primary skill used to attack the boss.
NTConfig_AttackSkill[2] = 256; // Cast your primary spell to others.
NTConfig_AttackSkill[3] = 273; // Cast your primary untimed spell if primary spell is timed spell. Set to 0 if you won't
NTConfig_AttackSkill[4] = 273; // Secondary untimed skill if boss is immune to primary untimed skill!
NTConfig_AttackSkill[5] = 251; // Cast your sec |
|
|
| Back to top |
|
 |
ckybam69 User

Joined: 20 Mar 2010 My Posts
|
Posted: Thu May 13, 2010 3:41 am Post subject: |
|
|
can we use this to make the sin a leech fighter?
Also my friend is using the script and it does all different attacks instead of just sentry. Any ideas? |
|
| Back to top |
|
 |
eieio User

Joined: 17 Apr 2006 My Posts
|
Posted: Thu May 13, 2010 6:39 am Post subject: |
|
|
I use this setup:
NTConfig_AttackSkill[0] = 0; // First skill. Set to 0 if you won't
NTConfig_AttackSkill[1] = 271; // Primary skill to boss - Lightning Sentry
NTConfig_AttackSkill[2] = 251; // Primary untimed skill to boss - Fire Blast
NTConfig_AttackSkill[3] = 271; // Primary skill to others - Lightning Sentry
NTConfig_AttackSkill[4] = 271; // Primary untimed skill to others - Lightning Sentry
NTConfig_AttackSkill[5] = 271; // Secondary skill in case monster is immune to primary skill - Lightning Sentry
NTConfig_AttackSkill[6] = 0; // Secondary untimed skill. Set to 0 if you won't
It works pretty good especially in the throne room. It doesn't do baal so good since it casts at him from off screen sometimes then doesn't loot when he's dead because of the distance but she does great for the most part and very seldom chickens. |
|
| Back to top |
|
 |
|
Donations this month: $33 Server cost this month: $120 Surplus Donations: $8
Donators this month: Mesmer
|