Here's an Explanation on how to set up your bot to send TP's up for your group/team when you reach a boss.
I will explain the function on the mainly used bosses as for mfing. (Meph and Andy). Found in d2jsp/scripts/libs/YAMB
1. Copy the vairiable:
if (BXP_ClearFirst) {
say("Clearing tp spot");
XP_ClearPosition(20);
XP_OpenTP();
say(YAM_TPMsg);
}
2. For meph, place the variable underneathe:
MXP_MephDodge=false;
DM_MoveTo(17585,8054);
DM_WalkTo(17560,8067);
DC_DoDel(300);
DM_WalkTo(17563,8072);
DC_DoDel(300);
DM_WalkTo(17585,8083);
DC_DoDel(400);
DM_MoveTo(17611,8087);
}
It should looke like this:
MXP_MephDodge=false;
DM_MoveTo(17585,8054);
DM_WalkTo(17560,8067);
DC_DoDel(300);
DM_WalkTo(17563,8072);
DC_DoDel(300);
DM_WalkTo(17585,8083);
DC_DoDel(400);
DM_MoveTo(17611,8087);
}
if (BXP_ClearFirst) {
say("Clearing tp spot");
XP_ClearPosition(20);
XP_OpenTP();
say(YAM_TPMsg);
}
}
function MXP_AttackMeph() {
// Detecting Mephisto with 3 retries to be sure to get the target
for (var i = 0; i < 3; i+=1) {
var target = DC_FindMonster(242);
if (target) { break; }
3. On Andy, place the variable under:
function AXP_GoToAndy() {
commPather.InitType = 1;
// Move from Catacombs 2 waypoint to Andariel's lair
commPather.GotoLevel(36,false,false);
DC_DoDel(DC_LagDelay);
DM_TakeStairs(18,18);
// Check health/mana, belt and if cursed, go to healer if needed
if (AndySafeCheck) { if (YAM_SafeCheck()) XP_Precasts(); }
commPather.GotoLevel(37,false,false);
DC_DoDel(DC_LagDelay);
DM_TakeStairs(18,18);
// Check health/mana, belt and if cursed, go to healer if needed
if (AndySafeCheck) { if (YAM_SafeCheck()) XP_Precasts(); }
// Move to the final spot
DM_MoveTo(22582,9614);
DM_MoveTo(22570,9591);
if (!AXP_Kamikaze) {
XP_ClearPosition(30,null,ATTACKING_MODE);
XP_ClearPosition(30,null,ALIVE_MODE);
DSN_PickItems(YAM_SafeCheck);
// Check health/mana, belt and if cursed, go to healer if needed
if (AndySafeCheck) { if (YAM_SafeCheck()) XP_Precasts(); }
}
So it should looke like this:
function AXP_GoToAndy() {
commPather.InitType = 1;
// Move from Catacombs 2 waypoint to Andariel's lair
commPather.GotoLevel(36,false,false);
DC_DoDel(DC_LagDelay);
DM_TakeStairs(18,18);
// Check health/mana, belt and if cursed, go to healer if needed
if (AndySafeCheck) { if (YAM_SafeCheck()) XP_Precasts(); }
commPather.GotoLevel(37,false,false);
DC_DoDel(DC_LagDelay);
DM_TakeStairs(18,18);
// Check health/mana, belt and if cursed, go to healer if needed
if (AndySafeCheck) { if (YAM_SafeCheck()) XP_Precasts(); }
// Move to the final spot
DM_MoveTo(22582,9614);
DM_MoveTo(22570,9591);
if (!AXP_Kamikaze) {
XP_ClearPosition(30,null,ATTACKING_MODE);
XP_ClearPosition(30,null,ALIVE_MODE);
DSN_PickItems(YAM_SafeCheck);
// Check health/mana, belt and if cursed, go to healer if needed
if (AndySafeCheck) { if (YAM_SafeCheck()) XP_Precasts(); }
}
if (BXP_ClearFirst) {
say("Clearing tp spot");
XP_ClearPosition(20);
XP_OpenTP();
say(YAM_TPMsg);
}
if (BXP_ClearFirst) {
say("Clearing tp spot");
XP_ClearPosition(20);
XP_OpenTP();
say(YAM_TPMsg);
}
}
function AXP_AttackAndy() {
// Detecting Andariel with 3 retries to be sure to get the target
for (var i = 0; i < 3; i+=1) {
var target = DC_FindMonster(156);
if (target) { break; }
REMEMBER! you can change the ways to do this, for example, if you just want to open a tp without saying "Tp up" all you you have to do is get rid of the line:
say(YAM_TPMsg);
But it has to be set at public mode for this to work.