You last visited: Today at 04:45
Advertisement
[Release] Muddy's D2NT
Discussion on [Release] Muddy's D2NT within the Diablo 2 Programming forum part of the Diablo 2 category.
06/13/2011, 22:37
#2236
elite*gold: 0
Join Date: Jun 2011
Posts: 16
Received Thanks: 0
Thanks so much I thought I had broken it or something :-) thanks again Steve
06/13/2011, 23:31
#2237
elite*gold: 0
Join Date: Jun 2011
Posts: 14
Received Thanks: 1
Kann man mit deinem Bot auch random Baalruns zum leechen joinen?
06/14/2011, 12:08
#2238
Administrator
elite*gold: 42005
Join Date: Jan 2010
Posts: 22,728
Received Thanks: 12,659
Quote:
Originally Posted by
wolfman95
Thanks so much I thought I had broken it or something :-) thanks again Steve
Nicht, dass ich etwas gegen deine Dankbarkeit hätte, aber genau dafür haben wir unter jedem Beitrag den
Button. Dadurch kann man sich die Beiträge, die nicht direkt etwas zum Thema beitragen, sparen und es bleibt alles etwas übersichtlicher.
Quote:
Originally Posted by
grorg
Kann man mit deinem Bot auch random Baalruns zum leechen joinen?
Du meinst irgendwelche Baalruns, in denen dann irgendwelche Bitscripte ausgeführt werden? Wenn ja, schau dir dazu mal
an.
Wenn du das im Sinne eines Bots meinst, der irgendeinem Leader hinterher dackelt, schau dir am besten mal
äußerst hilfreichen Beitrag von ldevil an.
LG
Muddy
06/14/2011, 21:49
#2239
elite*gold: 0
Join Date: Mar 2010
Posts: 76
Received Thanks: 12
grüss euch
hab auch ma wieder ne Frage ... bei meiner Light Soso hab ich festgestellt das sie die Rüstung nicht castet ... also die 2 bei den Eisfertigkeiten (Shiver Armor)
Könnte mir bitte jemand den Befehl und wo er hingehört posten ? ich komm ja jetzt echt gut klar mit allen D2NT bots aber das mit den Attack befehlen und den Rüstungen casten unso ist echt ein weisses Blatt für mich weils früher ja immer automatisch ging
06/14/2011, 23:00
#2240
elite*gold: 0
Join Date: Aug 2004
Posts: 233
Received Thanks: 39
Hey hey, ich hab ein kleines problem mit meinem gf baba, der läuft ständig voll mit magic rings zum craften (hatte gerade 15 stück im inventar)
kann man dagegen was unternehmen?
gruß
06/14/2011, 23:06
#2241
Administrator
elite*gold: 42005
Join Date: Jan 2010
Posts: 22,728
Received Thanks: 12,659
Tja, ich traue dem Nutzer eben zu, solche Entscheidungen selbst zu treffen.
In deiner Char Config findest du eine Variable
MWConfig_PrecastSkills , welches du einfach mit einem Array initialisiert, welches die Skill IDs der Skills beinhaltet, die du gerne beim Precast verwenden würdest.
Das könnte dann in etwa so aussehen:
Code:
[COLOR="Green"]// Your precast skills can be defined in the array below. NOTE: Battle Command, Battle Orders and Shout will be cast automatically. Constants for all skill ids can be found in "scripts\libs\common\MWSkills.ntl".[/COLOR]
MWConfig_PrecastSkills = [MWS_SHIVER_ARMOR, MWS_ENCHANT];
Ob du hier Konstanten verwendest, oder absolute IDs spielt übrigens keine Rolle, ich würde dir der Lesbarkeit halber aber zu Konstanten raten, die passenden Bezeichner kannst du wie schon im Kommentar erwähnt in der MWSkills library finden.
LG
Muddy
06/14/2011, 23:49
#2242
elite*gold: 0
Join Date: Mar 2009
Posts: 12
Received Thanks: 0
hi...^^ ich hab mal ne frage... ständig kommt bei mir Nt_Load config is not defined Line 87.... ich hab schon alles mögliche versucht aber nix hilft iwie.... ständig kommt der gleiche kack error -.- wäre cool wenn ihr mir helfen könntet
06/15/2011, 00:20
#2243
Administrator
elite*gold: 42005
Join Date: Jan 2010
Posts: 22,728
Received Thanks: 12,659
Quote:
Originally Posted by
letsid
Hey hey, ich hab ein kleines problem mit meinem gf baba, der läuft ständig voll mit magic rings zum craften (hatte gerade 15 stück im inventar)
kann man dagegen was unternehmen?
gruß
Jein, ist ein Bug im Cubing Algorithmus, den ich mir erst noch näher anschauen muss.
Du könntest deine NTTownManager library durch die nachfolgende ersetzen, eventuell hilft das etwas:
Code:
/**
* This file was modified by
* Check the programming section for updates and further scripts
* Last Update: 12:26 10.05.2011
*/
var _NTTMGR_BuyPots;
var _NTTMGR_BuyTP;
var _NTTMGR_BuyKey;
var _NTTMGR_DoHeal;
var _NTTMGR_DoID;
var _NTTMGR_DoRepair;
var _NTTMGR_DoRevive;
var _NTTMGR_RemoveCurse;
var _MWTMGR_SellTrash;
var _MWTMGR_VisitMerchantForSelling;
function NTTMGR_TownManager(simple)
{
var _cubing, _trash;
if(arguments.length < 1)
simple = false;
NTC_ClearCursor();
NTT_CleanPotions();
_NTTMGR_BuyPots = NTT_CheckBelt();
_NTTMGR_BuyTP = (NTTMGR_CheckScrolls(1) < 5);
_NTTMGR_BuyKey = (MWConfig_CarryKeys && MWTMGR_GetKeyQuantity() <= 10);
_NTTMGR_DoHeal = NTT_CheckHeal();
_NTTMGR_DoID = NTT_CheckUnids();
_NTTMGR_DoRepair = (NTT_CheckRepair(40) && MWT_CheckRepairCost());
_NTTMGR_DoRevive = NTT_CheckMerc();
_trash = MWT_GetTrashItems();
_MWTMGR_SellTrash = (_trash && _trash.length > 0);
_MWTMGR_VisitMerchantForSelling = (MWConfig_AlwaysSellTrashItems && _MWTMGR_SellTrash && !(_NTTMGR_BuyPots || _NTTMGR_BuyTP || _NTTMGR_DoID || _NTTMGR_DoRepair || _NTTMGR_DoRevive && me.act == 3 || _NTTMGR_RemoveCurse || _NTTMGR_DoHeal));
_NTTMGR_RemoveCurse = NTTMGR_CheckCurse(MWConfig_CheckSelfSafeTown, MWConfig_CheckMercSafeTown);
_MWTMGR_VisitCain = (MWConfig_IdentAtCain && !MWT_CarryForcedUnids() && _NTTMGR_DoID);
if(me.classid == NTC_CHAR_CLASS_PALADIN)
NTC_PutSkill(MWS_VIGOR, NTC_HAND_RIGHT);
else if(me.classid == NTC_CHAR_CLASS_ASSASSIN && !me.GetState(157))
NTC_CastSkill(MWS_BURST_OF_SPEED, NTC_HAND_RIGHT);
if(_MWTMGR_VisitCain && (_NTTMGR_DoID > 1 || me.act == 2))
MWTMGR_VisitCain();
switch(me.act)
{
case 1:
if(_NTTMGR_DoHeal || _NTTMGR_RemoveCurse || _NTTMGR_BuyPots || _NTTMGR_BuyTP || _NTTMGR_DoID || _MWTMGR_VisitMerchantForSelling)
NTTMGR_VisitAkara();
if(_NTTMGR_DoRevive)
NTTMGR_VisitKashya();
if(_NTTMGR_DoRepair)
NTTMGR_VisitCharsi();
break;
case 2:
if(_NTTMGR_DoHeal || _NTTMGR_RemoveCurse || _NTTMGR_DoRepair || _MWTMGR_VisitMerchantForSelling)
NTTMGR_VisitFara();
if(_NTTMGR_BuyPots || _NTTMGR_BuyTP || _NTTMGR_DoID)
NTTMGR_VisitDrognan();
if(_NTTMGR_DoRevive)
NTTMGR_VisitGreiz();
break;
case 3:
if(_NTTMGR_DoHeal || _NTTMGR_RemoveCurse || _NTTMGR_BuyPots || _NTTMGR_BuyTP || _NTTMGR_DoID || _MWTMGR_VisitMerchantForSelling)
NTTMGR_VisitOrmus();
if(_NTTMGR_DoRevive)
NTTMGR_VisitAsheara();
if(_NTTMGR_DoRepair)
NTTMGR_VisitHratli();
break;
case 4:
if(_NTTMGR_DoHeal || _NTTMGR_RemoveCurse || _NTTMGR_BuyPots || _NTTMGR_BuyTP || _NTTMGR_DoID || _MWTMGR_VisitMerchantForSelling)
NTTMGR_VisitJamella(false);
if(_NTTMGR_DoRevive)
NTTMGR_VisitTyrael();
if(_NTTMGR_DoRepair)
NTTMGR_VisitHalbu();
break;
case 5:
if(_NTTMGR_DoHeal || _NTTMGR_RemoveCurse || _NTTMGR_BuyPots || _NTTMGR_BuyTP || _NTTMGR_DoID)
NTTMGR_VisitMalah();
if(_NTTMGR_DoRevive)
NTTMGR_VisitQualKehk();
if(_NTTMGR_DoRepair || _MWTMGR_VisitMerchantForSelling)
NTTMGR_VisitLarzuk();
break;
}
_cubing = (!simple && NTCU_CheckCubing());
if(_cubing || NTT_CheckInventory() && NTT_CheckStash() || NTC_MyGoldCarry() > NTConfig_MinGoldToStash)
NTTMGR_VisitStash(_cubing);
if(!simple && NTConfig_Gamble && NTC_MyGold() > NTConfig_GambleStartGold)
{
switch(me.act)
{
case 1:
NTTMGR_VisitGheed();
break;
case 2:
NTTMGR_VisitElzix();
break;
case 3:
NTTMGR_VisitAlkor();
break;
case 4:
NTTMGR_VisitJamella(true);
break;
case 5:
NTTMGR_VisitAnya();
break;
}
_cubing = (!simple && NTCU_CheckCubing());
if(_cubing || NTT_CheckInventory() && NTT_CheckStash())
NTTMGR_VisitStash(_cubing);
}
_trash = MWT_GetTrashItems(false);
if(_trash && _trash.length > 0)
NTT_ClearInventory();
}
function NTTMGR_VisitTown()
{
var _prearea = me.areaid;
if(MWConfig_ShowOverheadStatus)
MWC_PrintOverheadStatus("Visiting Town...");
if(!NTTM_CheckAct())
return false;
NTTMGR_TownManager(true);
if(!NTTM_TownMove("portalspot"))
return false;
if(!NTM_UsePortal("BluePortal", _prearea))
return false;
if(NTConfig_PublicMode)
NTM_MakeTP();
return true;
}
function NTTMGR_VisitStash(cubing)
{
var _stash;
if(MWConfig_ShowOverheadStatus)
MWC_PrintOverheadStatus("Visiting Stash...");
if(!cubing && !NTT_CheckStash() && NTC_StashGoldFull())
return;
_stash = NTC_FindUnit(NTC_UNIT_OBJECT, NTC_UNIT_STASH);
if(!_stash || GetDistance(me, _stash) > 3)
NTTM_TownMove("stash");
if(!_stash)
_stash = NTC_FindUnit(NTC_UNIT_OBJECT, NTC_UNIT_STASH);
if(_stash)
{
if(NTT_DoInteract(_stash))
{
if(!cubing)
NTT_ManageStash();
if(cubing)
{
NTCU_DoCubing();
if(NTT_DoInteract(_stash))
NTT_ManageStash();
me.Cancel(1);
NTT_ClearInventory();
}
else
me.Cancel(1);
}
}
}
function NTTMGR_VisitAkara()
{
var _npc;
if(MWConfig_ShowOverheadStatus)
MWC_PrintOverheadStatus("Visiting Akara...");
NTTM_TownMove("akara");
_npc = NTC_FindUnit(NTC_UNIT_NPC, NTC_NPC_ID_AKARA, 5);
if(_npc)
{
if(NTT_DoInteract(_npc))
{
if(_NTTMGR_BuyPots || _NTTMGR_BuyTP || _NTTMGR_BuyKey || _NTTMGR_DoID || _MWTMGR_SellTrash)
{
if(NTT_DoTrade(_npc))
{
if(_NTTMGR_DoID)
NTTMGR_IDItems(_npc);
if(_MWTMGR_SellTrash)
MWTMGR_SellTrashItems(_npc);
if(_NTTMGR_BuyPots)
MWT_FillBelt(_npc);
if(_NTTMGR_BuyTP)
NTT_FillTome(_npc, 1);
if(_NTTMGR_BuyKey)
NTT_FillKey(_npc);
}
}
me.Cancel(1);
}
}
}
function NTTMGR_VisitKashya()
{
var _npc;
if(MWConfig_ShowOverheadStatus)
MWC_PrintOverheadStatus("Visiting Kashya...");
NTTM_TownMove("kashya");
_npc = NTC_FindUnit(NTC_UNIT_NPC, NTC_NPC_ID_KASHYA, 5);
if(_npc)
{
if(NTT_DoInteract(_npc))
{
if(NTT_DoInteract(_npc))
{
NTT_ReviveMerc();
me.Cancel(1);
}
}
}
}
function NTTMGR_VisitCharsi()
{
var _npc;
if(MWConfig_ShowOverheadStatus)
MWC_PrintOverheadStatus("Visiting Charsi...");
NTTM_TownMove("charsi");
_npc = NTC_FindUnit(NTC_UNIT_NPC, NTC_NPC_ID_CHARSI, 5);
if(_npc)
{
if(NTT_DoInteract(_npc))
{
if(NTT_DoTrade(_npc))
{
if(_MWTMGR_SellTrash)
MWTMGR_SellTrashItems(_npc);
if(_NTTMGR_DoRepair)
NTT_RepairItems(_npc);
}
me.Cancel(1);
}
}
}
function NTTMGR_VisitGheed()
{
var _npc;
if(MWConfig_ShowOverheadStatus)
MWC_PrintOverheadStatus("Visiting Gheed...");
NTTM_TownMove("gheed");
_npc = NTC_FindUnit(NTC_UNIT_NPC, NTC_NPC_ID_GHEED, 5);
if(_npc)
MWTMGR_DoGambling(_npc);
}
function NTTMGR_VisitFara()
{
var _npc;
if(MWConfig_ShowOverheadStatus)
MWC_PrintOverheadStatus("Visiting Fara...");
NTTM_TownMove("fara");
_npc = NTC_FindUnit(NTC_UNIT_NPC, NTC_NPC_ID_FARA, 5);
if(_npc)
{
if(NTT_DoInteract(_npc))
{
if(_NTTMGR_DoRepair || _MWTMGR_SellTrash)
{
if(NTT_DoTrade(_npc))
{
if(_MWTMGR_SellTrash)
MWTMGR_SellTrashItems(_npc);
if(_NTTMGR_DoRepair)
NTT_RepairItems(_npc);
}
}
me.Cancel(1);
}
}
}
function NTTMGR_VisitDrognan()
{
var _npc;
if(MWConfig_ShowOverheadStatus)
MWC_PrintOverheadStatus("Visiting Drognan...");
NTTM_TownMove("drognan");
_npc = NTC_FindUnit(NTC_UNIT_NPC, NTC_NPC_ID_DROGNAN, 5);
if(_npc)
{
if(NTT_DoInteract(_npc))
{
if(NTT_DoTrade(_npc))
{
if(_NTTMGR_DoID)
NTTMGR_IDItems(_npc);
if(_MWTMGR_SellTrash)
MWTMGR_SellTrashItems(_npc);
if(_NTTMGR_BuyPots)
MWT_FillBelt(_npc);
if(_NTTMGR_BuyTP)
NTT_FillTome(_npc, 1);
}
me.Cancel(1);
}
}
}
function NTTMGR_VisitLysander()
{
var _npc;
if(MWConfig_ShowOverheadStatus)
MWC_PrintOverheadStatus("Visiting Lysander...");
NTTM_TownMove("lysander");
_npc = NTC_FindUnit(NTC_UNIT_NPC, NTC_NPC_ID_LYSANDER, 5);
if(_npc)
{
if(NTT_DoInteract(_npc))
{
if(NTT_DoTrade(_npc))
{
if(_MWTMGR_SellTrash)
MWTMGR_SellTrashItems(_npc);
if(_NTTMGR_BuyKey)
NTT_FillKey(_npc);
}
me.Cancel(1);
}
}
}
function NTTMGR_VisitGreiz()
{
var _npc;
if(MWConfig_ShowOverheadStatus)
MWC_PrintOverheadStatus("Visiting Greiz...");
NTTM_TownMove("greiz");
_npc = NTC_FindUnit(NTC_UNIT_NPC, NTC_NPC_ID_GREIZ, 5);
if(_npc)
{
if(NTT_DoInteract(_npc))
{
NTT_ReviveMerc();
me.Cancel(1);
}
}
}
function NTTMGR_VisitElzix()
{
var _npc;
if(MWConfig_ShowOverheadStatus)
MWC_PrintOverheadStatus("Visiting Elzix...");
NTTM_TownMove("elzix");
_npc = NTC_FindUnit(NTC_UNIT_NPC, NTC_NPC_ID_ELZIX, 5);
if(_npc)
MWTMGR_DoGambling(_npc);
}
function NTTMGR_VisitOrmus()
{
var _npc;
if(MWConfig_ShowOverheadStatus)
MWC_PrintOverheadStatus("Visiting Ormus...");
NTTM_TownMove("ormus");
_npc = NTC_FindUnit(NTC_UNIT_NPC, NTC_NPC_ID_ORMUS, 5);
if(_npc)
{
if(NTT_DoInteract(_npc))
{
if(_NTTMGR_BuyPots || _NTTMGR_BuyTP || _NTTMGR_DoID || _MWTMGR_SellTrash)
{
if(NTT_DoTrade(_npc))
{
if(_NTTMGR_DoID)
NTTMGR_IDItems(_npc);
if(_MWTMGR_SellTrash)
MWTMGR_SellTrashItems(_npc);
if(_NTTMGR_BuyPots)
MWT_FillBelt(_npc);
if(_NTTMGR_BuyTP)
NTT_FillTome(_npc, 1);
}
}
me.Cancel(1);
}
}
}
function NTTMGR_VisitAsheara()
{
var _npc;
if(MWConfig_ShowOverheadStatus)
MWC_PrintOverheadStatus("Visiting Asheara...");
NTTM_TownMove("asheara");
_npc = NTC_FindUnit(NTC_UNIT_NPC, NTC_NPC_ID_ASHEARA, 5);
if(_npc)
{
if(NTT_DoInteract(_npc))
{
if(_MWTMGR_SellTrash)
{
if(NTT_DoTrade(_npc))
{
MWTMGR_SellTrashItems(_npc);
me.Cancel(1);
}
}
NTT_ReviveMerc();
me.Cancel(1);
}
}
}
function NTTMGR_VisitHratli()
{
var _npc;
if(MWConfig_ShowOverheadStatus)
MWC_PrintOverheadStatus("Visiting Hratli...");
NTTM_TownMove("hratli");
_npc = NTC_FindUnit(NTC_UNIT_NPC, NTC_NPC_ID_HRATLI, 5);
if(_npc)
{
if(NTT_DoInteract(_npc))
{
if(NTT_DoTrade(_npc))
{
if(_MWTMGR_SellTrash)
MWTMGR_SellTrashItems(_npc);
if(_NTTMGR_DoRepair)
NTT_RepairItems(_npc);
if(_NTTMGR_BuyKey)
NTT_FillKey(_npc);
}
me.Cancel(1);
}
}
else
{
NTTM_TownMove("meshif");
_npc = NTC_FindUnit(NTC_UNIT_NPC, NTC_NPC_ID_HRATLI, 5);
if(_npc)
{
if(NTT_DoInteract(_npc))
{
if(NTT_DoTrade(_npc))
{
if(_MWTMGR_SellTrash)
MWTMGR_SellTrashItems(_npc);
if(_NTTMGR_DoRepair)
NTT_RepairItems(_npc);
if(_NTTMGR_BuyKey)
NTT_FillKey(_npc);
}
me.Cancel(1);
}
}
}
}
function NTTMGR_VisitAlkor()
{
var _npc;
if(MWConfig_ShowOverheadStatus)
MWC_PrintOverheadStatus("Visiting Alkor...");
NTTM_TownMove("alkor");
_npc = NTC_FindUnit(NTC_UNIT_NPC, NTC_NPC_ID_ALKOR, 5);
if(_npc)
MWTMGR_DoGambling(_npc);
}
function NTTMGR_VisitJamella(gamble)
{
var _npc;
if(MWConfig_ShowOverheadStatus)
MWC_PrintOverheadStatus("Visiting Jamella...");
NTTM_TownMove("jamella");
_npc = NTC_FindUnit(NTC_UNIT_NPC, NTC_NPC_ID_JAMELLA, 5);
if(_npc)
{
if(gamble)
MWTMGR_DoGambling(_npc);
else
{
if(NTT_DoInteract(_npc))
{
if(_NTTMGR_BuyPots || _NTTMGR_BuyTP || _NTTMGR_BuyKey || _NTTMGR_DoID || _MWTMGR_SellTrash)
{
if(NTT_DoTrade(_npc))
{
if(_NTTMGR_DoID)
NTTMGR_IDItems(_npc);
if(_MWTMGR_SellTrash)
MWTMGR_SellTrashItems(_npc);
if(_NTTMGR_BuyPots)
MWT_FillBelt(_npc);
if(_NTTMGR_BuyTP)
NTT_FillTome(_npc, 1);
if(_NTTMGR_BuyKey)
NTT_FillKey(_npc);
}
}
me.Cancel(1);
}
}
}
}
function NTTMGR_VisitHalbu()
{
var _npc;
if(MWConfig_ShowOverheadStatus)
MWC_PrintOverheadStatus("Visiting Halbu...");
NTTM_TownMove("halbu");
_npc = NTC_FindUnit(NTC_UNIT_NPC, NTC_NPC_ID_HALBU, 5);
if(_npc)
{
if(NTT_DoInteract(_npc))
{
if(NTT_DoTrade(_npc))
{
if(_MWTMGR_SellTrash)
MWTMGR_SellTrashItems(_npc);
if(_NTTMGR_DoRepair)
NTT_RepairItems(_npc);
}
me.Cancel(1);
}
}
}
function NTTMGR_VisitTyrael()
{
var _npc;
if(MWConfig_ShowOverheadStatus)
MWC_PrintOverheadStatus("Visiting Tyrael...");
NTTM_TownMove("tyrael");
_npc = NTC_FindUnit(NTC_UNIT_NPC, NTC_NPC_ID_TYRAEL_ACT_4, 5);
if(_npc)
{
if(NTT_DoInteract(_npc))
{
NTT_ReviveMerc();
me.Cancel(1);
}
}
}
function NTTMGR_VisitMalah()
{
var _npc;
if(MWConfig_ShowOverheadStatus)
MWC_PrintOverheadStatus("Visiting Malah...");
NTTM_TownMove("malah");
_npc = NTC_FindUnit(NTC_UNIT_NPC, NTC_NPC_ID_MALAH, 5);
if(_npc)
{
if(NTT_DoInteract(_npc))
{
if(_NTTMGR_BuyPots || _NTTMGR_BuyTP || _NTTMGR_BuyKey || _NTTMGR_DoID || _MWTMGR_SellTrash)
{
if(NTT_DoTrade(_npc))
{
if(_NTTMGR_DoID)
NTTMGR_IDItems(_npc);
if(_MWTMGR_SellTrash)
MWTMGR_SellTrashItems(_npc);
if(_NTTMGR_BuyPots)
MWT_FillBelt(_npc);
if(_NTTMGR_BuyTP)
NTT_FillTome(_npc, 1);
if(_NTTMGR_BuyKey)
NTT_FillKey(_npc);
}
}
me.Cancel(1);
}
}
}
function NTTMGR_VisitLarzuk()
{
var _npc;
if(MWConfig_ShowOverheadStatus)
MWC_PrintOverheadStatus("Visiting Larzuk...");
NTTM_TownMove("larzuk");
_npc = NTC_FindUnit(NTC_UNIT_NPC, NTC_NPC_ID_LARZUK, 5);
if(_npc)
{
if(NTT_DoInteract(_npc))
{
if(NTT_DoTrade(_npc))
{
if(_MWTMGR_SellTrash)
MWTMGR_SellTrashItems(_npc);
if(_NTTMGR_DoRepair)
NTT_RepairItems(_npc);
}
me.Cancel(1);
}
}
}
function NTTMGR_VisitQualKehk()
{
var _npc;
if(MWConfig_ShowOverheadStatus)
MWC_PrintOverheadStatus("Visiting Qual-Khek...");
NTTM_TownMove("qual-kehk");
_npc = NTC_FindUnit(NTC_UNIT_NPC, NTC_NPC_ID_QUALKEHK, 5);
if(_npc)
{
if(NTT_DoInteract(_npc))
{
NTT_ReviveMerc();
me.Cancel(1);
}
}
}
function NTTMGR_VisitAnya()
{
var _npc;
if(MWConfig_ShowOverheadStatus)
MWC_PrintOverheadStatus("Visiting Anya...");
NTTM_TownMove("anya");
_npc = NTC_FindUnit(NTC_UNIT_NPC, NTC_NPC_ID_ANYA_TOWN, 5);
if(_npc)
MWTMGR_DoGambling(_npc);
}
function MWTMGR_VisitCain()
{
var _npc, _unids;
if(MWConfig_ShowOverheadStatus)
MWC_PrintOverheadStatus("Visiting Cain...");
NTTM_TownMove("cain");
switch(me.act)
{
case 1:
_npc = NTC_FindUnit(NTC_UNIT_NPC, NTC_NPC_ID_CAIN_ACT_1);
break;
case 2:
_npc = NTC_FindUnit(NTC_UNIT_NPC, NTC_NPC_ID_CAIN_ACT_2, 5);
break;
case 3:
_npc = NTC_FindUnit(NTC_UNIT_NPC, NTC_NPC_ID_CAIN_ACT_3, 5);
break;
case 4:
_npc = NTC_FindUnit(NTC_UNIT_NPC, NTC_NPC_ID_CAIN_ACT_4, 5);
break;
case 5:
_npc = NTC_FindUnit(NTC_UNIT_NPC, NTC_NPC_ID_CAIN_ACT_5, 5);
break;
}
if(_npc)
{
if(NTT_DoInteract(_npc))
{
_unids = NTT_GetUnidItems();
for(var i = 0; i <= 4; i++)
{
if(i % 2 == 0)
me.SelectNPCMenu(0x0FB4);
NTC_Delay(500);
if(!NTT_CheckUnids())
break;
}
for(var i = 0; i < _unids.length; i++)
{
if(NTSI_CheckItem(_unids[i], true) == 1)
MWI_WriteManagerLog(_unids[i], 0, true);
}
me.Cancel(1);
_NTTMGR_DoID = NTT_CheckUnids();
if(!(_NTTMGR_BuyPots || _NTTMGR_BuyTP || _NTTMGR_DoID || _NTTMGR_DoRepair || _NTTMGR_DoRevive && me.act == 3 || _NTTMGR_RemoveCurse || _NTTMGR_DoHeal))
{
if(!MWConfig_AlwaysSellTrashItems)
{
NTT_ClearInventory();
_MWTMGR_VisitMerchantForSelling = false;
}
else
_MWTMGR_VisitMerchantForSelling = true;
}
_MWTMGR_SellTrash = (MWT_GetTrashItems().length > 0);
}
}
}
function NTTMGR_CheckScrolls(scrolltype)
{
var _tome = NTT_GetTome(scrolltype);
if(_tome)
return _tome.GetStat(70);
return 0;
}
function MWTMGR_GetKeyQuantity()
{
var _keys, _count;
if(me.classid == NTC_CHAR_CLASS_ASSASSIN)
return 12;
_keys = MWC_GetItems(MWC_LOC_INVENTORY, 0, 543);
_count = 0;
if(_keys)
{
for(var i = 0; i < _keys.length; i++)
_count += _keys[i].GetStat(70);
}
return _count;
}
function MWTMGR_SellTrashItems(npc)
{
var _items, _retValue;
_items = MWT_GetTrashItems();
_retValue = true;
for(var i = 0; i < _items.length; i++)
{
if(MWConfig_UseXMLItemlog)
MWI_WriteLog(_items[i], 1);
if(MWConfig_LogSoldItems)
MWI_WriteManagerLog(_items[i], 3);
if(!NTT_ShopItem(_items[i], npc, 1))
_retValue = false;
}
return _retValue;
}
function NTTMGR_IDItems(npc)
{
var _tome, _scroll;
var _result, _check;
var _items = NTT_GetUnidItems();
if(!_items || _items.length < 1)
return;
_tome = NTT_GetTome();
if(_tome && _tome.GetStat(70) < _items.length)
NTT_FillTome(npc);
for(var i = 0 ; i < _items.length ; i++)
{
switch(NTSI_CheckItem(_items[i], true))
{
case 1:
MWI_WriteManagerLog(_items[i], 0, true);
case 2:
break;
case 0:
if(_items[i].GetItemCost(1) >= 35E3)
break;
case -1:
if(_tome)
_result = NTT_IdItem(_tome, _items[i]);
else
{
_scroll = NTT_GetScroll();
if(!_scroll)
{
NTT_BuyScrolls(npc);
_scroll = NTT_GetScroll();
}
_result = NTT_IdItem(_scroll, _items[i]);
}
if(!_result)
break;
_check = NTSI_CheckItem(_items[i], true);
if(_check == 1)
MWI_WriteManagerLog(_items[i], 0, true);
else if(_check == 0 || _check == 3)
{
if(MWConfig_UseXMLItemlog)
MWI_WriteLog(_items[i], 1);
if(MWConfig_LogSoldItems)
MWI_WriteManagerLog(_items[i], 3, true);
NTT_ShopItem(_items[i], npc, 1);
}
break;
}
}
}
function MWTMGR_DoGambling(npc)
{
var _logString, _date, _deltaTime, _timeString, _gamblingData, _time;
if(arguments.length < 1 || !npc)
return false;
_gamblingData = new Array();
_gamblingData["itemsgambled"] = 0;
_gamblingData["itemskept"] = 0;
_gamblingData["goldmax"] = NTC_MyGold() - NTConfig_GambleStopGold;
_gamblingData["goldspent"] = 0;
_gamblingData["abort"] = false;
while(NTC_MyGold() > NTConfig_GambleStopGold)
{
if(MWConfig_ShowOverheadStatus)
MWC_PrintOverheadStatus("Gambling (" + (_gamblingData["goldspent"] / _gamblingData["goldmax"] * 100.0).toFixed(1) + "%)");
if(NTT_DoInteract(npc))
{
if(NTT_DoTrade(npc, 1))
_gamblingData = NTT_GambleIt(npc, _gamblingData);
me.Cancel(1);
if(_gamblingData["abort"])
break;
}
else
break;
}
_logString = "ÿ008040Gambling completed!;";
_logString += "ÿc0Items Gambled:ÿc8 " + _gamblingData["itemsgambled"] + " [" + _gamblingData["itemskept"] + "]";
_logString += "\nÿc0Gold Spent:ÿc8 " + MWC_InsertDigitSeperator(_gamblingData["goldspent"]);
_logString += "\nÿc0Total Items Gambled:ÿc8 " + MWC_InsertDigitSeperator(MWI_GetGamblingData("total")) + " [" + MWC_InsertDigitSeperator(MWI_GetGamblingData("kept")) + "]";
_logString += "\nÿc0Total Gold Spent:ÿc8 " + MWC_InsertDigitSeperator(MWI_GetGamblingData("gold"));
_logString += "\nÿc0Gambling Sessions:ÿc8 " + (MWI_GetGamblingData("sessions") + 1);
_date = new Date();
if(_date)
{
_deltaTime = _date.getTime() - MWI_GetGamblingData("lastupdate");
_timeString = "";
_date = new Date(MWI_GetGamblingData("lastupdate"));
if(!isNaN(_deltaTime) && _date)
{
// Days passed
_time = parseInt(_deltaTime / 864E5);
if(_time > 0)
{
_timeString += _time + " Day";
if(_time > 1)
_timeString += "s ";
else
_timeString += " ";
}
_timeString += MWC_ConvertTicksToTimeString(_deltaTime);
_logString += "\nÿc0Last Session:ÿc8 " + _date.toLocaleFormat("%a %m/%d/%y %H:%M:%S") + " [-" + _timeString + "]";
}
}
_date = new Date(MWI_GetGamblingData("creation"));
if(_date)
_logString += "\nÿc0Logfile Created:ÿc8 " + _date.toLocaleFormat("%a %m/%d/%y %H:%M:%S");
NTC_SendLogToOOG(NTC_LOG_COMMON, _logString);
SetStatusText("ÿc8Gambling completed!");
NTC_SendMsgToScript("MWBotGame.ntj", "RESET_TICKS");
NTC_SendMsgToScript("MWBotGame.ntj", "SET_DEFAULT_STATUS");
MWI_WriteGamblingData(0, new Array(0, 0), true, true);
return true;
}
// mask - 0x02 : Poison, 0x04 : Amplify Damage, 0x08 : Weaken, 0x10 : Iron Maiden, 0x20 : Decrepify, 0x40 : Lower Resist
function NTTMGR_CheckCurse(selfmask, mercmask)
{
if(selfmask > 0x01)
{
if((selfmask&0x02) && me.GetState(2))
return true;
if((selfmask&0x04) && me.GetState(9))
return true;
if((selfmask&0x08) && me.GetState(19))
return true;
if((selfmask&0x10) && me.GetState(55))
return true;
if((selfmask&0x20) && me.GetState(60))
return true;
if((selfmask&0x40) && me.GetState(61))
return true;
}
if(mercmask > 0x01)
{
var _merc = NTC_GetMerc();
if(_merc)
{
if((mercmask&0x02) && _merc.GetState(2))
return true;
if((mercmask&0x04) && _merc.GetState(9))
return true;
if((mercmask&0x08) && _merc.GetState(19))
return true;
if((mercmask&0x10) && _merc.GetState(55))
return true;
if((mercmask&0x20) && _merc.GetState(60))
return true;
if((mercmask&0x40) && _merc.GetState(61))
return true;
}
}
return false;
}
// self - 0x01 : Potion
// merc - 0x01 : Death
// common - 0x02 : Poison, 0x04 : Amplify Damage, 0x08 : Weaken, 0x10 : Iron Maiden, 0x20 : Decrepify, 0x40 : Lower Resist
function NTTMGR_CheckSafe(selfmask, mercmask)
{
if(((selfmask&0x01) && NTT_CheckBelt()) || ((mercmask&0x01) && NTT_CheckMerc()) || NTTMGR_CheckCurse(selfmask, mercmask))
return NTTMGR_VisitTown();
return true;
}
Quote:
Originally Posted by
Burningfire5
hi...^^ ich hab mal ne frage... ständig kommt bei mir Nt_Load config is not defined Line 87.... ich hab schon alles mögliche versucht aber nix hilft iwie.... ständig kommt der gleiche kack error -.- wäre cool wenn ihr mir helfen könntet
Dafür gibt es zwei mögliche Ursachen:
Deine Char Config ist falsch benannt, du hast die Default Config kopiert, sondern direkt umbenannt, sodass diese nicht Inkludiert werden kann.
Deine Char Config enthält grobe Syntaxfehler, sodass das Inkludieren fehlschlägt.
Die Herangehensweise liegt auf der Hand: Config richtig benennen, JavaScript Syntaxregeln einhalten.
LG
Muddy
06/15/2011, 00:53
#2244
elite*gold: 0
Join Date: Mar 2009
Posts: 12
Received Thanks: 0
naja also ich hab im char config ordner einmal ne paladin.ntl und ne paladin mit meinem namen ntl.^^ und in der char config hab ich auch keine syntaxfehler da ich alles durchgegangen bin/ausprobiert habe :S
06/15/2011, 11:28
#2245
elite*gold: 16
Join Date: Apr 2009
Posts: 40
Received Thanks: 1
hey,
ich hab nen problem und zwar will der bot am anfang immer zu akara etc...und bekommt dann nen error...woran könnte das liegen?
der error lautet:
Halt
Location:, line #2245
Expression: Unrecoverable internal error 6fb422e5
06/15/2011, 11:36
#2246
Administrator
elite*gold: 42005
Join Date: Jan 2010
Posts: 22,728
Received Thanks: 12,659
Quote:
Originally Posted by
Burningfire5
naja also ich hab im char config ordner einmal ne paladin.ntl und ne paladin mit meinem namen ntl.^^ und in der char config hab ich auch keine syntaxfehler da ich alles durchgegangen bin/ausprobiert habe :S
Die Fehlermeldung bestätigt aber das Gegenteil.
In dem Fall solltest du es noch einige male durchgehen, oder im Zweifel mal die Charconfig posten, dann gucke ich mal drüber. Denk dabei aber an die [Code]-Box.
Quote:
Originally Posted by
mindplay
hey,
ich hab nen problem und zwar will der bot am anfang immer zu akara etc...und bekommt dann nen error...woran könnte das liegen?
der error lautet:
Halt
Location:, line #2245
Expression: Unrecoverable internal error 6fb422e5
Sieht mir nach einem nicht englischen D2 aus. Wie man das umstellt, kannst du der Erklärung im Startpost entnehmen.
LG
Muddy
06/15/2011, 11:59
#2247
elite*gold: 16
Join Date: Apr 2009
Posts: 40
Received Thanks: 1
*** das wars xD ty
hab nochn prob und zwar mit meinem logfile wenn ich es in Firefox öffne kommt das... :
XML-Verarbeitungsfehler: Kein Element gefunden
Adresse: file:///C:/Users/serenix/Desktop/Muddy%27s%20D2NT/scripts/Logs/(mein charname)/06-15-11_itemlog.xml
Zeile Nr. 1, Spalte 1:
^
hab ich was falsch gemacht? muss ich das überhaupt in firefox öffnen?
kann der bot kurast travel machen?
außerdem macht er baal und dia net...sind aber in config eingestellt :S
06/15/2011, 12:33
#2248
Administrator
elite*gold: 42005
Join Date: Jan 2010
Posts: 22,728
Received Thanks: 12,659
Lösch einfach mal das Logfile und schau nach, ob das bei dem neu erstellten auch auftritt. Warte aber zunächst mal, bis dort auch tatsächlich Daten enthalten sind. Und ja, Firefox passt schon.
Nein, von Haus aus nicht. Wenn du auf die Tempel in Akt 3 aus bist, könntest du aber mal MWKurastTemples versuchen.
Bei dem letzten Punkt wird entweder nicht die Config verwendet, in der du die Veränderungen vorgenommen hast, oder du hast diese einfach falsch durchgeführt. Letzteres passiert häufig, wenn kein Editor mit Syntaxhighlighting verwendet wird. Sollte das bei dir ebenfalls nicht der Fall sein, schau dir bei Zeiten mal
an.
LG
Muddy
06/15/2011, 13:05
#2249
elite*gold: 16
Join Date: Apr 2009
Posts: 40
Received Thanks: 1
kk ich schau ma..danke
Edit by Muddy:
wie meinst config wird net verwendet? Ich habs ganz normal in dem char config geändert
Gibt es ne möglichkeit den standort zu ändern an dem er Andariel killt? Der steht immer neben so ner säule und kann dann kein dmg machen..
06/15/2011, 16:16
#2250
Administrator
elite*gold: 42005
Join Date: Jan 2010
Posts: 22,728
Received Thanks: 12,659
Ich meine damit, dass die Config falsch benannt ist und die Default Config ausgeführt wird, auch wenn das nach dem was ich so höre nicht der Fall zu sein scheint. Aber wenn du jetzt mit Notepad++ arbeitest solltest du genau sehen, was du tust und derartige Fehler werden dir vermutlich nicht mehr passieren.
Und ja, das kann man natürlich schon, aber dazu müsste man das Script umschreiben und Andariel erstmal etwas weglocken. Ich persönlich sehe den Sinn aber nicht, bei mir funktioniert das jedenfalls wunderbar. Welche Art von Char verwendest du denn?
LG
Muddy
Similar Threads
[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...
D2NT 3.0 Pickit release
10/22/2010 - Diablo 2 - 77 Replies
edit
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
All times are GMT +2. The time now is 04:46 .