Na das acces violation ding wo d2 abstürzt und nur noch diese fehlermeldung im vordergrund ist ...
Naja es ist relativ merkwürdig weil es einfach nur meine 2 Zauberinnen betrifft die regelmäßig abstürzen (bzw eine fängt sich nach 3 stück und läuft dann problemlos und die andere geht gar nicht mehr)
Ich habs jetzt über verschiedene d2 installationen versucht aber erstürzt auf jedenfall immer bei meiner lightning sorc ab und zwar so das diese absolut nicht mehr spielbar ist
Edit: Ok Problem denke ich gefunden... der bot hat angefangen sein komplettes equip weg zu werfen o.O also schuhe und handschuhe sind weg (ok nur sands und magefist aber schon merkwürdig! wäre das 1. mal seitdem ich bots benutze das einer equip weg wirft o.O)
Letzteres klingt wirklich extrem seltsam und ist absolut nicht nachvollziehbar.
Kannst du den Fehler irgendwie reproduzieren? Wenn ja, hätte ich gerne soviele Informationen, wie ich kriegen kann.
Quote:
Originally Posted by Wolfster007
I was viewing in English but now it's all in German.
I have a Muddys 3.1 bot working like a charm (thank you sir). I cannot get my Cow Level to work correctly. My bot just sits there and says something about a syntax error and : I have not changed anything from the original file. Will the script I saw bout 20 pages back be the answer to this?
Actually there are two mistakes in the cow script that is included in the most recent release. First is the syntax error you mentioned, second is a bug that regarding item pick up.
/**
* This file was modified by
* Check the programming section for updates and further scripts
* Last Update: 02/05/2011
*/
const _NTR_STRING_COW_KING = GetLocaleString(2850);
const _NTR_COW_KING_RANGE = 80;
function NTMain()
{
Include("libs/common/NTCommon.ntl");
NTC_IncludeLibs();
NTC_IncludeConfig("NTBot/char_configs");
NT_LoadConfig();
NTSI_LoadNIPFiles("NTBot/item_configs");
MWC_Initialize();
var _wirtbody, _cube, _leg, _portal, _stash, _npc;
var i;
if(!NTTM_CheckAct(me.act, true))
{
NTC_SendMsgToScript("MWBotGame.ntj", NTTM_CheckAct, 24, me.act, true);
return;
}
NTTMGR_TownManager();
if(!NTTM_TownMove("waypoint"))
{
NTC_SendMsgToScript("MWBotGame.ntj", NTTM_TownMove, 32, "waypoint");
return;
}
if(!NTM_TakeWaypoint(4))
{
NTC_SendMsgToScript("MWBotGame.ntj", NTM_TakeWaypoint, 38, 4);
return;
}
NTP_DoPrecast(true);
if(!NTM_MoveToPresetUnit(me.areaid, NTC_UNIT_MONSTER, 737, 10, 10))
{
NTC_SendMsgToScript("MWBotGame.ntj", NTM_MoveToPresetUnit, 46, me.areaid, NTC_UNIT_MONSTER, 737, 10, 10);
return;
}
if(!NTM_UsePortal("Portal", 38))
{
NTC_SendMsgToScript("MWBotGame.ntj", NTM_UsePortal, 52, "Portal", 38);
return;
}
NTM_MoveTo(me.areaid, 25047, 5178);
if(NTA_ClearPosition(10))
NTSI_PickItems();
_wirtbody = NTC_FindUnit(NTC_UNIT_OBJECT, 268);
if(!_wirtbody)
{
NTC_SendMsgToScript("MWBotGame.ntj", NTC_FindUnit, 63, NTC_UNIT_OBJECT, 268);
return;
}
if(NTM_MoveTo(_wirtbody.areaid, _wirtbody.x + 3, _wirtbody.y))
{
if(NTC_OpenChest(_wirtbody))
{
for(i = 0; i < 40; i++)
{
NTC_Delay(NTC_DELAY_FRAME);
_leg = NTC_FindUnit(NTC_UNIT_ITEM, 88, 1);
if(_leg)
break;
}
if(!NTT_CheckSpace(_leg.xsize, _leg.ysize))
NTTMGR_VisitTown();
if(MWSI_PickupItem(_leg.classid))
Print("ÿc4Got Leg");
}
}
if(!_leg)
{
NTC_SendMsgToScript("MWBotGame.ntj", NTC_FindUnit, 79, NTC_UNIT_ITEM, 88, 1);
return;
}
NTTM_CheckAct();
NTTM_TownMove("akara");
for(var i = 0; i < 10; i++)
{
_npc = NTC_FindUnit(NTC_UNIT_NPC, NTC_NPC_ID_AKARA);
if(_npc)
break;
}
if(_npc)
{
if(NTT_DoInteract(_npc))
{
if(NTT_DoTrade(_npc))
{
NTT_FillTome(_npc, 1);
NTT_FillTome(_npc, 0);
NTT_SecondTomeTP(_npc, "tbk", 1);
_portal = NTR_GetTP();
if(!_portal)
{
NTC_SendMsgToScript("MWBotGame.ntj", NTR_GetTP, 121);
return;
}
}
}
me.Cancel(1);
}
if(MWT_OpenStash())
{
_cube = me.GetItems(NTC_UNIT_CUBE);
if(!_cube[0])
{
NTC_SendMsgToScript("MWBotGame.ntj", me.GetItems, 136, NTC_UNIT_CUBE);
return;
}
if(NTCU_CheckCubeInventoryInt() > 0)
{
NTCU_OpenCubeInt(_cube[0]);
if(NTCU_ClearCubeInt() < 1)
{
NTC_SendMsgToScript("MWBotGame.ntj", NTCU_ClearCubeInt, 148);
return;
}
NTCU_CloseCubeInt();
}
NTCU_MoveItemToCubeInt(_cube[0],_leg);
NTCU_MoveItemToCubeInt(_cube[0],_portal);
MWCU_Transmute(_cube[0]);
NTCU_CloseCubeInt();
me.Cancel(1);
NTC_Delay(250);
}
if(!NTR_TakeCowPortal(12))
{
NTC_SendMsgToScript("MWBotGame.ntj", NTR_TakeCowPortal, 169, 12);
return;
}
NTP_DoPrecast();
NTR_ClearRooms(150, NTC_UNIT_MONSTER, 773, _NTR_COW_KING_RANGE);
NTC_SendMsgToScript("MWBotGame.ntj", "SCRIPT_END");
}
// Internal functions
function NTR_GetTP()
{
var _portals = me.GetItems("tbk");
if (_portals)
{
for (var i = 0; i < _portals.length; i++)
{
if (_portals[i].mode == 0 && (_portals[i].itemloc != 0 || NTConfig_Columns[_portals[i].y][_portals[i].x] > 0))
{
return _portals[i];
}
}
}
return false;
}
function NTR_TakeCowPortal(range)
{
var _portal;
_portal = NTC_FindUnit(NTC_UNIT_OBJECT, 60, 5);
if(_portal)
return NTM_UsePortal("Portal", 39, "dummy", _portal);
return false;
}
function NTR_ClearRooms(range, type, id, distance)
{
var i;
var _unit;
var _preRoom;
var _addRooms = new Array();
var _removeRooms = new Array();
if (distance)
{
_unit = GetPresetUnits(me.areaid, type, id);
if (!_unit || _unit.length < 1)
return false;
}
_preRoom = GetRoom();
if (_preRoom)
{
do
{
if (distance)
{
if (GetDistance(_preRoom.x * 5, _preRoom.y * 5, _unit[0].roomx * 5, _unit[0].roomy * 5) < distance)
continue;
}
_addRooms.push([_preRoom.x * 5, _preRoom.y * 5]);
} while (_preRoom.GetNext());
}
if (_addRooms.length < 1)
return false;
_preRoom = [me.x, me.y];
while (_addRooms.length > 0)
{
_addRooms.sort(function (a, b) { return (GetDistance(_preRoom[0], _preRoom[1], a[0], a[1]) - GetDistance(_preRoom[0], _preRoom[1], b[0], b[1])); });
_removeRooms.push([_addRooms[0][0], _addRooms[0][1]]);
for (i = 1; i < _addRooms.length; i++)
{
if (GetDistance(_preRoom[0], _preRoom[1], _addRooms[i][0], _addRooms[i][1]) <= GetDistance(_preRoom[0], _preRoom[1], _addRooms[0][0], _addRooms[0][1]))
{
_removeRooms.push([_addRooms[i][0], _addRooms[i][1]]);
}
else
break;
}
if (_removeRooms.length > 1)
{
_removeRooms.sort(function (a, b) { return (b[0] - a[0]); });
if (_removeRooms[0][0] <= _preRoom[0])
{
_removeRooms.sort(function (a, b) { return (b[1] - a[1]); });
if (_removeRooms[0][1] <= _preRoom[1])
{
_removeRooms.sort(function (a, b) { return (a[0] - b[0]); });
if (_removeRooms[0][0] >= _preRoom[0])
_removeRooms.sort(function (a, b) { return (a[1] - b[1]); });
}
}
}
if (!range || GetDistance(me.x, me.y, _removeRooms[0][0], _removeRooms[0][1]) < range)
{
if (NTR_MoveTo(me.areaid, _removeRooms[0][0], _removeRooms[0][1], 3, true))
_preRoom = _removeRooms[0];
}
for (i = 0; i < _addRooms.length; i++)
{
if (_addRooms[i][0] == _removeRooms[0][0] && _addRooms[i][1] == _removeRooms[0][1])
{
_addRooms.splice(i, 1);
break;
}
}
_removeRooms.length = 0;
}
return true;
}
function NTR_MoveTo(areaId, x, y, retry, isClearPath)
{
if (x == me.x && y == me.y)
return true;
if (arguments.length < 4)
retry = 3;
if (arguments.length < 5)
isClearPath = false;
var j;
var _path;
var _preX, _preY;
_path = GetPath(areaId, me.x, me.y, x, y, true);
if (!_path)
return false;
for (var i = 0; i < _path.length; i++)
{
if (NTR_CheckCowKing() || NTR_CheckSafe(_path[i][0], _path[i][1], 15))
{
for (j = 0; j < retry; j++)
{
if (NTM_MoveTo(me.areaid, _path[i][0], _path[i][1]))
break;
}
if (j >= retry)
return false;
}
if (isClearPath && !NTR_CheckCowKing())
{
_preX = me.x;
_preY = me.y;
if(!MWR_ClearPosition(30, true))
return false;
NTP_DoPrecast();
if (me.x != _preX || me.y != _preY)
{
if (!NTM_MoveTo(me.areaid, _preX, _preY))
return false;
}
}
}
return true;
}
function NTR_CheckCowKing()
{
var _cowKing = NTC_FindUnit(NTC_UNIT_MONSTER, _NTR_STRING_COW_KING);
return (_cowKing && GetDistance(me, _cowKing) < _NTR_COW_KING_RANGE);
}
function NTR_CheckSafe(x, y, range)
{
var i;
var _target = NTC_FindUnit(NTC_UNIT_MONSTER);
if (_target)
{
do
{
if (GetDistance(x, y, _target.x, _target.y) < range && _target.IsAttackable())
{
for (i = 0; i < 6; i++)
{
if (NTConfig_AttackSkill[i] && NTA_GetResistance(_target, _NTA_SkillDamage[i]) < 100)
return false;
}
}
} while (_target.GetNext());
}
return true;
}
function MWR_ClearPosition(range, pickitem, safelevel, openchests, usefinditem)
{
var _orgx, _orgy;
var _skiplist;
var _attackcount = 0;
var _target;
var _distance, _mingid, _mindistance;
var _result;
switch(arguments.length)
{
case 0:
range = 20;
case 1:
pickitem = false;
case 3:
openchests = true;
case 4:
usefinditem = true;
default:
if(NTConfig_CheckSelfSafe < 0x01 && NTConfig_CheckMercSafe < 0x01)
safelevel = 0;
break;
}
_orgx = me.x;
_orgy = me.y;
for(var i = 0; i < 3; i++)
{
_skiplist = new Array();
while(_attackcount < (i+1)*100)
{
if(NTR_CheckCowKing())
return false;
_mindistance = 1E6;
_target = NTC_FindUnit(NTC_UNIT_MONSTER);
if(_target)
{
do
{
if(_skiplist.indexOf(_target.gid) < 0)
{
if(_target.IsAttackable())
{
if(GetDistance(_orgx, _orgy, _target.x, _target.y) <= range && NTA_IsValidMonster(_target))
{
_distance = GetDistance(me, _target);
if(_distance < _mindistance)
{
_mingid = _target.gid;
_mindistance = _distance;
}
}
}
else
_skiplist.push(_target.gid);
}
} while(_target.GetNext());
}
if(_mindistance < 1E6)
{
_target = NTC_FindUnit(NTC_UNIT_MONSTER, _mingid, 1);
if(_target)
{
if(MWConfig_ShowOverheadStatus)
Say("!Attacking " + _target.name + " (" + (_target.hp * 100 / _target.hpmax).toFixed(0) + "%)");
_result = NTA_Attack(_target, (_attackcount % 30) == 0);
if(MWConfig_ShowOverheadStatus)
Say("!Attacking " + _target.name + " (" + (_target.hp * 100 / _target.hpmax).toFixed(0) + "%)");
switch(_result)
{
case 1:
_skiplist.push(_mingid);
break;
case 2:
case 3:
if(MWConfig_PickItemsInstantly && (_target.hp <= 0 || _target.mode == 0 || _target.mode == 12))
NTSI_PickItems();
_attackcount++;
break;
default:
_attackcount = 1E6;
}
}
}
else
break;
}
}
if(_attackcount > 2)
{
switch(me.classid)
{
case NTC_CHAR_CLASS_PALADIN:
if(parseInt(me.hp * 100 / me.hpmax) < NTConfig_UseRedemptionHP || parseInt(me.mp * 100 / me.mpmax) < NTConfig_UseRedemptionMP)
{
if(NTC_PutSkill(124, NTC_HAND_RIGHT))
NTC_PingDelay(1000);
}
break;
case NTC_CHAR_CLASS_BARBARIAN:
if(usefinditem && MWConfig_UseFindItem && !NTR_CheckCowKing())
MWL_FindItem(MWConfig_FindItemRange);
break;
case NTC_CHAR_CLASS_NECROMANCER:
if(!NTR_CheckCowKing())
MWA_RaiseMinions();
break;
}
}
if(pickitem && _attackcount > 0)
NTSI_PickItems();
if(MWConfig_OpenAllNearbyChests && openchests && !NTR_CheckCowKing())
MWL_OpenNearbyChests(MWConfig_OpenChestsRange);
if(MWConfig_ActivateNearbyShrines)
MWL_ActivateNearbyShrines();
switch(safelevel)
{
case 1:
return NTTMGR_CheckSafe(0x00, NTConfig_CheckMercSafe&0x01);
case 2:
return NTTMGR_CheckSafe(NTConfig_CheckSelfSafe, NTConfig_CheckMercSafe);
}
if(MWConfig_IdentAfterPickup)
MWL_IDItemsAfterPickup();
return true;
}
function NTT_SecondTomeTP(npc, type, amount)
{
var _items;
var _counter = 0;
if(arguments.length < 1)
return false;
if(arguments.length < 2)
type = 0;
if(arguments.length < 0)
amount = 1;
if(amount == 0)
return false;
if(type)
_items = npc.GetItems("tbk");
if(_items)
{
if(_items.length > 0)
{
for(var i = 0 ; i < amount ; i++)
{
if(NTT_ShopItem(_items[0], npc, 2))
_counter++;
}
}
}
return (_counter > 0);
}
Quote:
Originally Posted by muh999
Danke Muddy
hab es jetzt so eingestellt wie du es mir gezeigt hast aber meine Rusherin ( Sorc) macht immer noch das gleiche sie läuft zu Warriv und meint act1 complete dann geht sie in akt 2 und redet mit Jerraim und dann mit dem Merschif usw und meint act 2 complete und mein pala (zurushenden char) wartet brav in akt 1 dadrauf das die sorc andariel plättet hast du da eine Lösung?
Ich kann es nach wie vor nicht nachvollziehen. Ich werde dir mal eine aktuellere Version des Rush Scriptes per PM zukommen lassen, in der Hoffnung, dass es dann besser klappt, aber wirklich wissen, wo eigentlich das Problem liegt, tue ich leider nach wie vor nicht.
also das mit dem Cuben klappt jetzt super, aber wenn er mir z.B. eine archonplatte sockelt (sehe es in den Logs... 2 mal 4 Sockel, einmal 3), aber keine davon lässt er im Stash, im Würfel ist auch ncihts, sie ist einfach weg und nicht auffindbar. Was soll ich tun damit er die auch behält, muss ich die nochmal in die Nips reinschreiben extra mit 4 Sockeln?
Hallo dein Bot ist echt top, hatte bis vor kurzem GVETAL nun verwende ich deinen,.... ;-)
GZ zu deinen BOT!
Please try to avoid posts that only contain "thank you". Not that I didn't appreciate it, it's just that we got a
button for that purpose.
Quote:
Originally Posted by Antav
Hey Muddy,
also das mit dem Cuben klappt jetzt super, aber wenn er mir z.B. eine archonplatte sockelt (sehe es in den Logs... 2 mal 4 Sockel, einmal 3), aber keine davon lässt er im Stash, im Würfel ist auch ncihts, sie ist einfach weg und nicht auffindbar. Was soll ich tun damit er die auch behält, muss ich die nochmal in die Nips reinschreiben extra mit 4 Sockeln?
Die Ergebnisse musst du natürlich schon in deinen Nips haben.
Lediglich die Zutaten sollten nicht drin sein, aber die Ergebnisse auf jeden Fall. Woher soll dein Bot auch sonst wissen, ob das, was er da fabriziert, in irgendeiner Weise brauchbar ist?
In deinem Fall solltest du darum sicherstellen, dass in deinen Nips eine Zeile enthalten ist, die etwa so aussieht wie die folgende:
So leute benutzt das jetzt seit 2tagen und hab jetzt versuch dia runs damit zu machen... aber immer wenn er das game betritt leavt er gleich wider komplett schwachsinn... bug fix plz er sagt er hat den run fertig... Dudu hell diarun gehen nich oder wie? muddy :/
ausserdem wrtet er nach jedem run 1:30 minuten obwohl ich ihm o gegeben hab ... was is das?
So leute benutzt das jetzt seit 2tagen und hab jetzt versuch dia runs damit zu machen... aber immer wenn er das game betritt leavt er gleich wider komplett schwachsinn... bug fix plz er sagt er hat den run fertig... Dudu hell diarun gehen nich oder wie? muddy :/
ausserdem wrtet er nach jedem run 1:30 minuten obwohl ich ihm o gegeben hab ... was is das?
Scripts aktivieren sollte helfen!
PS: /* leitet einen mehrzeiligen Kommentar ein, */ schließt diesen wieder.
So leute benutzt das jetzt seit 2tagen und hab jetzt versuch dia runs damit zu machen... aber immer wenn er das game betritt leavt er gleich wider komplett schwachsinn... bug fix plz er sagt er hat den run fertig... Dudu hell diarun gehen nich oder wie? muddy :/
ausserdem wrtet er nach jedem run 1:30 minuten obwohl ich ihm o gegeben hab ... was is das?
Hallo lordwacueric,
wie Crazy bereits schrieb, must Du in der Char-Config unter "Current schedule" das entsprechende Skrpt einfügen. Unter "Available Scripts" findest du lediglich die verfügbaren, eine Aktivierung hier hilft aber nicht. Also einfach nach oben kopieren!
So leute benutzt das jetzt seit 2tagen und hab jetzt versuch dia runs damit zu machen... aber immer wenn er das game betritt leavt er gleich wider komplett schwachsinn... bug fix plz er sagt er hat den run fertig... Dudu hell diarun gehen nich oder wie? muddy :/
ausserdem wrtet er nach jedem run 1:30 minuten obwohl ich ihm o gegeben hab ... was is das?
Wirf bitte außerdem noch einen Blick in , damit dir solche dummen Fehler in Zukunft nicht mehr passieren.
/**
* This file was written by
* Check the programming section for updates and further scripts
* Last Update: 03/02/2011
*/
Include("libs/common/MWSkills.ntl");
function MW_LoadGlobalSettings()
{
//------------------------------------------------------------------------------
// General Configuration
//------------------------------------------------------------------------------
// Set to true to run sorting algorithm whenever managing your stash.
MWConfig_SortStash = true;
// Set to true to form a party even if public mode is deactivated.
MWConfig_AutoParty = true;
// This is the maximum number of errors that may occur in a single game. If more errors occur, your char will exit the game.
MWConfig_GameErrorLimit = 3;
// This is the delay in milliseconds before the first bot script is loaded.
NTConfig_StartDelay = 500;
// This is the delay in milliseconds on area changes. Do not set this too low!
NTConfig_AreaDelay = 250;
// This is the delay in milliseconds before picking up items. Do not set this too low!
NTConfig_SnagDelay = 250;
// Set to true to enable overhead status messages. NOTE: This will be visible for everyone in the game so you might not want to activate it when doing public games.
[highlight]MWConfig_ShowOverheadStatus = false;[/highlight]
// Define which negative states on your char require visiting a healer when in town. Set to 0 not to visit a healer.
// 0x02 : Poison
// 0x04 : Amplify Damage
// 0x08 : Weaken
// 0x10 : Iron Maiden
// 0x20 : Decrepify
// 0x40 : Lower Resist
Danke Muddy, habs in di nips eingestragen, mal schauen was passiert *g*
So... nun schonwieder ein Problem, ich bekomme jetzt sehr oft diesen Fehler:
... dann passiert nix, das Fenster ist eingefroren und startet erst neu wenn ich auf OK geklickt habe. Irgend ne Ahnung?
Leider nichts, die Fehlermeldung sagt mir nichts.
Quote:
Originally Posted by MrMorph
at line 19 for cow script i keep getting MWC_intiliaze is not defined even with the one you posted on page 277
figure it out your cow script latest one, you made mistake at line 19
NTA_Initialize();
isteand of MWC_initialize();
having a problem with that 2nd bug you talked about at line 88, tried everything not sure what to do
nvm new problem failted to take cow portal and randomly waypoints dont work
The second bug I talked about was about picking up items while running cows, not precisely picking up the leg, as this is a different function anyway.
Anyway, both functions are perfectly fine. Since those were adding in the last update, it is very likely that you are currently using an outdated version.
Please make sure to use the most recent version, which is 1.2 and attached to my first post.
There are two possible explanations for your other two problems:
You got the bug that makes object interaction impossible - this bug is more likely to occur when using telekinesis to interact with objects. Only solution is rejoining the game or creating a new one.
The game has crashed, but the char was not kicked out yet.
[Release] D2NT 3.1 1.13c 07/17/2016 - Diablo 2 - 91 Replies hi,
hab eben den d2nt3.1 gefunden. ein neues baba script is dabei.
release thread eon
D2NT3.1
[Realease] Muddy's Waypoint Catcher 08/21/2013 - Diablo 2 Programming - 46 Replies Moin zusammen,
hier mal die erste Release Version eines kleinen Scripts genannt Waypoint Catcher. Das ganze ist jetzt nichtmal 24h alt, dementsprechend sind vermutlich noch einige Bugs vorhanden. Hinweise dazu nehme ich gerne entgegen. ;)
Features:
- Suchen sämtlicher Wegpunkte mit Ausnahme, wobei in Akt ein durch Probleme im Jail Bereich nach dem Wegpunkt Outer Cloister abgebrochen wird
- Wahlweise auch mit TP an jedem gefundenen Wp, sodass man damit auch anderen (nicht-Bots) die...
[D2NT] Long Dia Release 05/10/2011 - Diablo 2 Programming - 28 Replies Ein kleines Script für diablo, es startet beim eingang macht ein tp cleart den weg zum star macht am star noch ein tp dann läufts wie das normale nur cleart es schöner :)
hoffe euch gefällts ich habs noch nicht wirklich getestet (2-3 runs) bugs können gerne hier gepostet werden verbesserungs vorschläge auch :D
installation:
1.)Script in den Bot ordner kopieren
2.)Script im editor oder vergleichbaren öffnen
3.) Msg´s anpassen (ist nicht schwer)
4.) in der char config die zeile...
Muddy's D2NT Help 07/29/2010 - Diablo 2 - 3 Replies hi i just started to use the bot it work's great.
how do i set up the skill's i use on my Sorc and pick up itme's?
.....
if you reply to this post please use english