|
You last visited: Today at 13:10
Advertisement
Mephistomoat Script
Discussion on Mephistomoat Script within the Diablo 2 Programming forum part of the Diablo 2 category.
05/18/2011, 13:00
|
#1
|
elite*gold: 20
Join Date: May 2009
Posts: 3,887
Received Thanks: 439
|
Mephistomoat Script
moin,
ja wie im Titel schon beschrieben geht es um das Mephisto moat script und zwar würde ich dieses script in ein anderes script mit einbauen aber leider hab ich davon null ahnung  weswegen ich hier poste^^ was allerdings beachtet werden muss ist das dieses script in das das moat rien soll eine sorc steuert die von einem bo barb bo bekommt (falls das eine rolle spielt)
mephisto moat:
Code:
function NTMain()
{
Include("libs/common/NTCommon.ntl");
NTC_IncludeLibs();
NTC_IncludeConfig("NTBot/char_configs");
NT_LoadConfig();
NTSI_LoadNIPFiles("NTBot/item_configs");
NTA_Initialize();
if(!NTTM_CheckAct())
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTTM_CheckAct()");
return;
}
NTTMGR_TownManager();
if(!NTTM_TownMove("waypoint"))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTTM_TownMove()");
return;
}
if(!NTM_TakeWaypoint(101))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTM_TakeWaypoint()");
return;
}
NTP_DoPrecast(true);
if(!NTM_MoveToStair(me.areaid, 102))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTM_MoveToStair()");
return;
}
if(!NTM_TakeStair(102))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTM_TakeStair()");
return;
}
if(!NTTMGR_CheckSafe(NTConfig_CheckSelfSafe, NTConfig_CheckMercSafe))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTTMGR_CheckSafe()");
return;
}
if(!NTM_MoveTo(me.areaid, 17564, 8069))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTM_MoveTo()");
return;
}
NTC_Delay(200);
NTM_MoveTo(me.areaid, 17560, 8072);
NTC_Delay(350);
NTM_WalkTo(17563, 8072)
NTC_Delay(350);
NTM_WalkTo(17585, 8095)
NTC_Delay(350);
NTM_MoveTo(me.areaid, 17611, 8085)
NTC_Delay(350);
if(!NTA_KillMonster(242))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTA_KillMonster()");
return;
}
NTSI_PickItems();
NTC_SendMsgToScript("NTBotGame.ntj", "SCRIPT_END");
}
das script wo es rein soll:
Code:
/////////////////////////////////////////
///////////////Meph//////////////////////
/////////////////////////////////////////
if(KillMephisto)
{
NTTMGR_TownManager();
NTTM_TownMove("waypoint");
NTM_TakeWaypoint(101);
NTM_MoveTo(me.areaid, me.x+5, me.y);
NTP_DoPrecast();
NTM_MoveToStair(me.areaid, 102);
NTM_TakeStair(102);
NTP_DoPrecast();
NTM_MoveTo(me.areaid, 17590, 8070);
NTA_KillMonster(242);
NTC_PingDelay(1000);
NTSI_PickItems();
}
NTC_SendMsgToScript("NTBotGame.ntj", "SCRIPT_END");
}
habe es natürlich auch schon selber versucht wo aber leider ein syntaxerror bei rausgekommen ist :P
Code:
/////////////////////////////////////////
///////////////Meph//////////////////////
/////////////////////////////////////////
if(KillMephisto)
{
NTTMGR_TownManager();
NTTM_TownMove("waypoint");
NTM_TakeWaypoint(101);
NTM_MoveTo(me.areaid, me.x+5, me.y);
NTP_DoPrecast();
if(!NTM_MoveToStair(me.areaid, 102))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTM_MoveToStair()");
return;
}
if(!NTM_TakeStair(102))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTM_TakeStair()");
return;
}
if(!NTTMGR_CheckSafe(NTConfig_CheckSelfSafe, NTConfig_CheckMercSafe))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTTMGR_CheckSafe()");
return;
}
if(!NTM_MoveTo(me.areaid, 17564, 8069))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTM_MoveTo()");
return;
}
NTC_Delay(200);
NTM_MoveTo(me.areaid, 17560, 8072);
NTC_Delay(350);
NTM_WalkTo(17563, 8072)
NTC_Delay(350);
NTM_WalkTo(17585, 8095)
NTC_Delay(350);
NTM_MoveTo(me.areaid, 17611, 8085)
NTC_Delay(350);
if(!NTA_KillMonster(242))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTA_KillMonster()");
return;
}
NTSI_PickItems();
NTC_SendMsgToScript("NTBotGame.ntj", "SCRIPT_END");
}
|
|
|
05/19/2011, 08:00
|
#2
|
elite*gold: 0
Join Date: Mar 2010
Posts: 539
Received Thanks: 418
|
Für die Verständnis wäre es schon fein, das gesamte Script zu kennen.
Folgende Zeilen sind in deinem Script vorhanden?
Code:
Include("libs/common/NTCommon.ntl");
NTC_IncludeLibs();
NTC_IncludeConfig("NTBot/char_configs");
NT_LoadConfig();
NTSI_LoadNIPFiles("NTBot/item_configs");
NTA_Initialize();
Die Variable KillMephisto hast du auch in der NTConfig.ntl deklariert?
Versuchs mal mit diesem Code:
Code:
function NTMain()
{
Include("libs/common/NTCommon.ntl");
NTC_IncludeLibs();
NTC_IncludeConfig("NTBot/char_configs");
NT_LoadConfig();
NTSI_LoadNIPFiles("NTBot/item_configs");
NTA_Initialize();
if(!NTTM_CheckAct())
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTTM_CheckAct()");
return;
}
NTTMGR_TownManager();
[COLOR="Green"]/////////////////////////////////////////
/////Hier sollte dein Bo-Teil stehen/////
/////////////////////////////////////////[/COLOR]
/////////////////////////////////////////
///////////////Meph//////////////////////
/////////////////////////////////////////
if(KillMephisto)
{
if(!NTTM_CheckAct())
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTTM_CheckAct()");
return;
}
NTTMGR_TownManager();
if(!NTTM_TownMove("waypoint"))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTTM_TownMove()");
return;
}
if(!NTM_TakeWaypoint(101))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTM_TakeWaypoint()");
return;
}
NTP_DoPrecast(true);
if(!NTM_MoveToStair(me.areaid, 102))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTM_MoveToStair()");
return;
}
if(!NTM_TakeStair(102))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTM_TakeStair()");
return;
}
if(!NTTMGR_CheckSafe(NTConfig_CheckSelfSafe, NTConfig_CheckMercSafe))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTTMGR_CheckSafe()");
return;
}
if(!NTM_MoveTo(me.areaid, 17564, 8069))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTM_MoveTo()");
return;
}
[COLOR="Red"]NTC_Delay(200);
NTM_MoveTo(me.areaid, 17560, 8072);
NTC_Delay(350);
NTM_WalkTo(17563, 8072);
NTC_Delay(350);
NTM_WalkTo(17585, 8095);
NTC_Delay(350);
NTM_MoveTo(me.areaid, 17611, 8085);
NTC_Delay(350);[/COLOR]
if(!NTA_KillMonster(242))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTA_KillMonster()");
return;
}
NTSI_PickItems();
}
[COLOR="green"]/////////////////////////////////////////
////////weitere Bosse/Scriptteile////////
/////////////////////////////////////////[/COLOR]
NTC_SendMsgToScript("NTBotGame.ntj", "SCRIPT_END");
}
Sollte unter den oben genannten Bedingungen funktionieren, habe leider momentan keine Möglichkeit es zu testen.
Wenn dein altes Script läuft, dann kannst du auch den rot markierten Codeteil vor dem NTA_KillMonster(242); in deinem Script einfügen.
Dann hast du jedoch keine Fehlerüberprüfung in deinem Script.
|
|
|
05/19/2011, 18:13
|
#3
|
elite*gold: 20
Join Date: May 2009
Posts: 3,887
Received Thanks: 439
|
Quote:
Originally Posted by TheCrazy11
Für die Verständnis wäre es schon fein, das gesamte Script zu kennen.
Folgende Zeilen sind in deinem Script vorhanden?
Code:
Include("libs/common/NTCommon.ntl");
NTC_IncludeLibs();
NTC_IncludeConfig("NTBot/char_configs");
NT_LoadConfig();
NTSI_LoadNIPFiles("NTBot/item_configs");
NTA_Initialize();
Die Variable KillMephisto hast du auch in der NTConfig.ntl deklariert?
Versuchs mal mit diesem Code:
Code:
function NTMain()
{
Include("libs/common/NTCommon.ntl");
NTC_IncludeLibs();
NTC_IncludeConfig("NTBot/char_configs");
NT_LoadConfig();
NTSI_LoadNIPFiles("NTBot/item_configs");
NTA_Initialize();
if(!NTTM_CheckAct())
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTTM_CheckAct()");
return;
}
NTTMGR_TownManager();
[COLOR="Green"]/////////////////////////////////////////
/////Hier sollte dein Bo-Teil stehen/////
/////////////////////////////////////////[/COLOR]
/////////////////////////////////////////
///////////////Meph//////////////////////
/////////////////////////////////////////
if(KillMephisto)
{
if(!NTTM_CheckAct())
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTTM_CheckAct()");
return;
}
NTTMGR_TownManager();
if(!NTTM_TownMove("waypoint"))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTTM_TownMove()");
return;
}
if(!NTM_TakeWaypoint(101))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTM_TakeWaypoint()");
return;
}
NTP_DoPrecast(true);
if(!NTM_MoveToStair(me.areaid, 102))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTM_MoveToStair()");
return;
}
if(!NTM_TakeStair(102))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTM_TakeStair()");
return;
}
if(!NTTMGR_CheckSafe(NTConfig_CheckSelfSafe, NTConfig_CheckMercSafe))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTTMGR_CheckSafe()");
return;
}
if(!NTM_MoveTo(me.areaid, 17564, 8069))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTM_MoveTo()");
return;
}
[COLOR="Red"]NTC_Delay(200);
NTM_MoveTo(me.areaid, 17560, 8072);
NTC_Delay(350);
NTM_WalkTo(17563, 8072);
NTC_Delay(350);
NTM_WalkTo(17585, 8095);
NTC_Delay(350);
NTM_MoveTo(me.areaid, 17611, 8085);
NTC_Delay(350);[/COLOR]
if(!NTA_KillMonster(242))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTA_KillMonster()");
return;
}
NTSI_PickItems();
}
[COLOR="green"]/////////////////////////////////////////
////////weitere Bosse/Scriptteile////////
/////////////////////////////////////////[/COLOR]
NTC_SendMsgToScript("NTBotGame.ntj", "SCRIPT_END");
}
Sollte unter den oben genannten Bedingungen funktionieren, habe leider momentan keine Möglichkeit es zu testen.
Wenn dein altes Script läuft, dann kannst du auch den rot markierten Codeteil vor dem NTA_KillMonster(242); in deinem Script einfügen.
Dann hast du jedoch keine Fehlerüberprüfung in deinem Script.
|
funktioniert perfekt (musste zwar noch das mim warten für bo einfügen aber das konntest du nicht wissen^^)
thread kann geschlossen werden
|
|
|
 |
Similar Threads
|
L2Walker script: Solo rebuff/restock/return script
08/08/2012 - Lin2 Exploits, Hacks, Bots, Tools & Macros - 63 Replies
Hello!
I've been reading alot and not really contributing so i'll start off here with a very well working script im using to bot my SK outside ivory tower in oren. I've tried to structure the code so it easily can be modified for another level of character, town, and hunting spot.
The script is made for CT2 Retail, mainly to get advantage of the newbie buffs (which now lasts all the way until level 62)
Change log:
Update 2008-09-01
Version 1.14 -Download
|
[suche] d2nt level rush script 1-25 / follow script
06/23/2010 - Diablo 2 Programming - 5 Replies
moin
erstmal sry falls es da doch schon was passendes zu gab - hab schonmal gesucht aber nur alte sachen gefunden oder eben antworten in richtung "geht so schnell dafür braucht man keinen bot" ^^
mein problem besteht darin dass ich für lvl 1 bis 20 immer x stunden brauche - trist geht ja noch halberwegs aber mit tombruns such ich mich immer dusselig ^^ - bzw cows sind noch schlimmer (dafür geht das cow-script für d2nt ausm bluebird zumindest halberwegs)
die frage ist jetz die - giebt...
|
All times are GMT +1. The time now is 13:10.
|
|