sorc problem (static) beim d2nt

07/03/2010 21:47 kothie#1
yo hab in der suchfunktion nichts gefunden, habe folgenden fehler mit meiner sorc:


blablapfad:scripts/libs/common/NTAttack.ntl (604) : ReferenceError: NTConfig_CastStatic is not defined

hier ma der abschnitt in der besagten datei:

return 3;
}

if(NTConfig_CastStatic < 100 && parseInt(target.hp*100/target.hpmax) > NTConfig_CastStatic && NTA_GetResistance(target, NTA_DAMAGE_LIGHTNING) <= 80)
{
var _staticlevel = NTC_GetSkillLevel(42);

if(_staticlevel > 0)
{
var _staticrange;
var _castx, _casty;

_staticrange = Math.floor((5+_staticlevel-1)*2/3);

if(GetDistance(me, target) > _staticrange || !CheckCollision(me, target, 6))
{
var _pos = me.GetOptimalAttackPos(target.areaid, target.x, target.y, _staticrange, 6);

if(_pos)
NTM_MoveTo(target.areaid, _pos[0], _pos[1], 0);
}

if(target.x < me.x)
_castx = me.x - 1;
else if(target.x > me.x)
_castx = me.x + 1;
else
_castx = me.x;

if(target.y < me.y)
_casty = me.y - 1;
else if(target.y > me.y)
_casty = me.y + 1;
else
_casty = me.y;

if(!CheckCollision(target.areaid, _castx, _casty, 1))
{
_castx = me.x;
_casty = me.y;
}

if(!NTC_CastSkill(42, NTC_HAND_RIGHT, _castx, _casty))
return 2;

return 3;


bitte um kurze hilfe :)
07/03/2010 22:19 HcAndi20#2
Bitte damit in den D2NT Thread
07/04/2010 01:17 kal_el#3
jo, und wie du siehst hat andi 3 links zu den threads gleich in seiner signatur

closed