Failer to complete pindle skin in time?

polixo

Member!
Joined
Oct 14, 2002
Messages
33
Reaction score
0
Location
USA
Website
Visit site
i keep getting this error and can never be in it... what so do? oh and how do i make it so it doesn't auto mini.?
 

polixo

Member!
Joined
Oct 14, 2002
Messages
33
Reaction score
0
Location
USA
Website
Visit site
Javascript

Kind of long but here is teh javascript i'm using: again srry it is so long...

// Javascript 1.5
// Diablo II Hackit 0.57 Scripter
//====================================================================
// Pindleskin bot script designed for a Frozen Orb sorceress with Nova as option
// Author: Arathorn
// Some code from cigamit, mikbre and SH-demon & fruitbar fodetectspeed
// -------------------------------------------------------------------
// contact info:
// prjunior@iqm.unicamp.br


//Configure anything you want. Consider tweaking everything for speed.
//Note: all true and false statements must be left in lower case.

//====================
// Immunities to skip
//====================

//Skip immunities
var skip=true;

//Show immunities
var immunitesshow=true;

//Pindle properties to skip - List at the end of customs
//skiptheseimmunites=new Array("Lightning Enhanced"."Aura Enchanted");
skiptheseimmunites=new Array("Lightning Enhanced");

//==========================
// Precast defensive spells
//==========================

//Shiver Armor
var sa=true;

//Chilling Armor
var carm=false;

//Frozen Armor
var far=false;

//Thunderstorm
var ts=false;

//Energy Shield
var es=false;

//precasts delay
var pcdel=400;

//======================
// Attack configuration
//======================

//Number of orbs before teleport to other side of the room
//Useful when using orb only
var orbn=4;

//Delay for frozen orb
var orbdel=1800;

//===========================
// Secondary Optional Attack
//===========================

//Use nova between orbs
var nova=true;

//Set the number of novas before orb again
var novan=2;

//Delay for nova
var novadel=600;

//======================
// Other customizations
//======================

//Ressurect mercenary
var merc=false;

//Chicken when your hp is below than value
var chickenhp=350;

//Chicken when your mana is below than value
var chickenmn=50;

//If you have more life than this, it won't go to malah
var life=1000;

//If you have more mana than this, it won't go to malah
var mana=1000;

//Delay to pick itens after Pindle die
var pick=3000;

//Turn off Pickit while running for safety
var onoff=true;

//This sets how often you want to repair
//.99 means 99 runs without repairing, 1 with
//.01 means 1 run without repairing, 99 with
var lar=.99;

//Sleep time for going down portal to pindle.
var port=200;

//Sleep for approaching Malah
//Change this if your character is not healing properly.
var mal=500;

//===========================
// Attacking zombies outside
//===========================

//Attack zombies for exp
var zomb=true;

//Use nova on zombies until out of mana
var zombi=true;

//Number of Nova casted on zombs - Ignore if true earlier
var zombn=10;

//========================
// Teleport configuration
//========================

//Ignore this if script working well

//Teleport to Pindle room variation
var xTP=7;
var yTP=7;

//Teleport to Pindle body after kill
var tpp=true;

//This is the delay for teleport
var tpdel=400;

//=======================================
// End of customizations
// After this point, you are on your own
//=======================================

// Global Variables

immunites = new Array();
immunites[5]= "Extra Strong";
immunites[6]="Extra Fast";
immunites[7]="Cursed";
immunites[8]="Magic Resistant";
immunites[9]="Fire Enhanced";
immunites[16]="Champion";
immunites[17]="Lightning Enhanced";
immunites[18]="Cold Enhanced";
//immunites[22]="Cold Immune"; //This isn't right :( Can also be Poison it seems...
immunites[23]="Magic Immune";
immunites[24]="Thief";
immunites[25]="Mana Burn";
immunites[26]="Teleportation";
immunites[27]="Spectral Hit";
immunites[28]="Stone Skin";
immunites[29]="Multishot";
immunites[30]="Aura Enchanted";
immunites[36]="Ghostly";
immunites[37]="Fanatic";
immunites[38]="Possessed";
immunites[39]="Berserker";

var StoneSkin = false;

var TeleportSucceeded = false;
var idpindle = 0;
var pindledead = false;
var xPindle = 0;
var yPindle = 0;

// Init Function: Start the Pindleskin run!

function JSMain()
{

if(Player.Class != 1)
{
Print("You must be a sorceress to use this script!");
return;
}

if(onoff)
{
Command("pickit disable");
}
Print("ÿc4Script made by Arathorn with some code from mikbre, cigamit and sh-demon & fruitbar fodetectspeed");

PickupBody();

if(PindleRun())
{
Disconnect();
return;
}

Print("The Pindleskin run failed!");
Sleep(5000);
Disconnect();

}

// Detect/pick up corpse

function PickupBody()
{
EntityList = Entity.GetEntities("JEDCustom");
for(i = 0; i < EntityList.length; i++)
{
body = EntityList;

if(body.IsACorpse && body.ParentID == Player.ID)
{
Print("Picking up corpse...");

body.Interact();
Sleep(1000);
}
}
}

// Event Handler Functions

function HealthEventFunc(health)
{
if(health < chickenhp)
{
Disconnect();
return;
}
}

function ManaEventFunc(mana)
{
if(mana < chickenmn)
{
Sleep(pick);
Disconnect();
return;
}
}

// Helper functions for Moving around and talking with NPCs

function PositionCheck(orig_x, orig_y, distance)
{
loc = Player.Location;
if(Math.abs(loc.x - orig_x) > distance || Math.abs(loc.y - orig_y) > distance)
{
TeleMove(orig_x, orig_y);
}
}

function GetCharClass()
{
var cclass = Player.Class;
if (cclass == 0) return "Amazon";
if (cclass == 1) return "Sorceress";
if (cclass == 2) return "Necromancer";
if (cclass == 3) return "Paladin";
if (cclass == 4) return "Barbarian";
if (cclass == 5) return "Druid";
if (cclass == 6) return "Assassin";
}

function Move(x, y)
{
notThere = true;

origloc = Player.Location;
while(notThere)
{
Player.Run(x, y);
Sleep(5);
while(Player.IsRunning || Player.IsWalking) Sleep(100);

loc = Player.Location;

if(Math.abs(loc.x - x) < 4 && Math.abs(loc.y - y) < 4) return;

if(!(loc.x == origloc.x && loc.y == origloc.y))
{
origloc = loc;

if(Math.abs(loc.x - x) < 2) x++;
if(Math.abs(loc.y - y) < 2) y++;
}
}
}

function TeleMove(x, y)
{
if(Player.Class != 1)
{
Move(x, y);
return;
}

Player.SetRightSkill("Teleport", 1);
Sleep(50);

TeleportSucceeded = false;
SetEventHandler("onRecvPacket", "RecvPacketParser");

var r= 0
while(!TeleportSucceeded)
{

if(r >10)
{
Disconnect();
return;
}

Player.UseRightSkill(x, y);
Sleep(tpdel);
r++
}

}

function RecvPacketParser()
{

// Detect what immunities Pindleskin has. If he's too much for us then quit.
if (skip) {
if (arguments[0] == 86)
{
if (arguments[19] == 241 && arguments[20] == 255)
{
if(immunitesshow) {Print("ÿc4Pindle is immune to:")}
for (i = 37; arguments > 0; i++)
{
if(immunites[arguments] != undefined)
{
if (immunitesshow) {Print("ÿc4 + " + immunites[arguments])}
for (j = 0; j < skiptheseimmunites.length; j++) {if(immunites[arguments] == skiptheseimmunites[j]) {Sleep(1000);Disconnect()}}
}
}
}
}}

if(TeleportSucceeded == false && arguments[0] == 21) {TeleportSucceeded = true}

}

function TalkToMalah()
{

EntityList = Entity.GetEntities("Malah");
for(i = 0; i < EntityList.length; i++)
{
malah = EntityList;
if(malah.Class == Entity.Monster)
{
malah.Approach();
Sleep(mal);
while(Player.IsRunning || Player.IsWalking)
{
Sleep(5);
}
malah.Interact();
Sleep(mal);
malah.Cancel();
Sleep(mal);
}
}
}

function TalkToLarzuk()
{
Print("Talking to Larzuk");

EntityList = Entity.GetEntities("Larzuk");
for(i = 0; i < EntityList.length; i++)
{
larzuk = EntityList;

if(larzuk.Class == Entity.Monster)
{
larzuk.Approach();
Sleep(300);
while(Player.IsRunning || Player.IsWalking)
{
Sleep(100);
}

larzuk.Interact();
Sleep(300);

larzuk.RepairAll();
Sleep(300);

larzuk.Cancel();
}
}
}

function TalkToQualKehk()
{
Print("Talking to Qual-Kehk");

EntityList = Entity.GetEntities("Qual-Kehk");
for(i = 0; i < EntityList.length; i++)
{
qualkehk = EntityList;

if(qualkehk.Class == Entity.Monster)
{
qualkehk.Approach();
Sleep(1000);
while(Player.IsRunning || Player.IsWalking)
{
Sleep(300);
}

qualkehk.Interact();
Sleep(400);

Print("Resurrecting Merc");
qualkehk.ResurrectMerc();
Sleep(300);

qualkehk.Cancel();
}
}
}

function GoThroughPortal()
{

EntityList = Entity.GetEntities("Permanent town portal");
for(i = 0; i < EntityList.length; i++)
{

portal = EntityList;

while(portal.Class == Entity.Object && portal.Valid)
{
portal.Approach();
Sleep(50);
while(Player.IsRunning || Player.IsWalking)
{
Sleep(5);
}
portal.Interact();
Sleep(port);

var p = 0;

if(p == 7)
{
Move(Player.Location.x + 3, Player.Location.y +3);
}

if(p > 15)
{
Disconnect();
return;
}
p++;
}
}
}

function IsPortal()
{
EntityList = Entity.GetEntities("Permanent town portal");
for(i = 0; i < EntityList.length; i++)
{
portal = EntityList;

if(portal.Class == Entity.Object && portal.Valid)
{
return true;
}
}
return false;
}

function Cast(cSkill, cDelay, cXpos, cYpos, cArg)
{
Player.SetRightSkill(cSkill, cArg);
Sleep(50);
Player.UseRightSkill(cXpos, cYpos);
Sleep(cDelay);
return true;
}

function LocateMonster()
{
// ID Class Type Location Valid Dead MonsterType
// IsACorpse CharacterClass CharacterName ParentID
EntityList = Entity.GetEntities();
for(i = 0; i < EntityList.length; i++)
{
monster = EntityList;
if( (monster.MonsterType >= 0) )
{
if ( (monster.Class == 1) && (monster.Type == 440) && (monster.MonsterType == 1) )
{
idpindle = monster.ID;
xPindle = monster.Location.x;
yPindle = monster.Location.y;
pindledead = monster.Dead;

}
}
}
return true;
}

//*********************************************************
// Core Pindleskin Run Script
//*********************************************************
function PindleRun()
{
var fodel = orbdel;

Move(5085, 5028);

if (life > Player.Health)
{
TalkToMalah();
}

if (mana > Player.Mana)
{
TalkToMalah();
}

if(Math.random() > lar)
{
Print("Walking to Larzuk");
Move(5089, 5028);
Move(5102, 5024);
Move(5105, 5042);
Move(5113, 5041);
Move(5129, 5042);

TalkToLarzuk();

Move(5135, 5052);
Move(5135, 5080);
Move(5135, 5118);
} else {
Move(5072, 5030);
Move(5079, 5059);
Move(5078, 5080);

if(Merc.IsDead && merc)
{
TalkToQualKehk();

Move(5081, 5079);
}


Move(5080, 5086);
Move(5095, 5117);
}


SetEventHandler("onHealth", "HealthEventFunc");
SetEventHandler("onMana", "ManaEventFunc");

if(!IsPortal())
{
Print("ÿc8Pindleskin Portal Nonexistant!");
return false;
}

GoThroughPortal();

if(es) {Cast("Energy Shield", pcdel, 10064, 13277, 1)};
if(sa) {Cast("Shiver Armor", pcdel, 10064, 13277, 1)};
if(carm) {Cast("Chilling Armor", pcdel, 10064, 13277, 1)};
if(far) {Cast("Frozen Armor", pcdel, 10064, 13277, 1)};
if(ts) {Cast("Thunder Storm", pcdel, 10064, 13277, 1)};

SetEventHandler("onRecvPacket", "RecvPacketParser");
LocateMonster();
TeleMove(10064, 13277);
LocateMonster();
TeleMove(10059, 13250);
LocateMonster();
TeleMove(10052 + xTP, 13238 - yTP);
LocateMonster();

if(idpindle == 0)
{
return false;
}
if(nova == true) {var fodel = orbdel - (novadel * novan)}

while(pindledead == false)
{
for(i1 = 0; i1 < orbn; i1++)
{
LocateMonster();
if(pindledead == true) {break}
Cast("Frozen Orb", fodel, xPindle, yPindle, 24);
if(nova == true) {for(i1 = 0; i1 < novan; i1++) {Cast("Nova", novadel, xPindle, yPindle, 34)}}
}
LocateMonster();
if(pindledead == true) {break}
TeleMove(10057, 13208);

for(i1 = 0; i1 <= orbn; i1++)
{
LocateMonster();
if(pindledead == true) {break}
Cast("Frozen Orb", fodel, xPindle, yPindle, 24);
if(nova == true) {for(i1 = 0; i1 < novan; i1++) {Cast("Nova", novadel, xPindle, yPindle, 34)}}
}
LocateMonster();
if(pindledead == true) {break}
TeleMove(10059, 13238 - tps);

}

if(onoff)
{
Command("pickit enable");
if(tpp) {TeleMove(xPindle, yPindle)}
}
Sleep(pick);

if(zomb == true)
{
TeleMove(10057, 13255);
TeleMove(10059, 13275);
Command("overhead Nova");
if(zombi == true) {while(true) {Cast("Nova",100, 10059, 13275, 24)}}
if(zombi == false) {for(i1 = 1; i1 <= zombn; i1++) {Cast("Nova",novadel, 10059, 13275, 24)}}
Sleep(pick);
}
SetEventHandler("onRecvPacket", "");


return true;
 

Aris

Member!
Joined
Sep 14, 2002
Messages
500
Reaction score
0
Location
Modesto, CA
Website
Visit site
Originally posted by polixo
i keep getting this error and can never be in it... what so do? oh and how do i make it so it doesn't auto mini.?
you can change the timers in JED under the advanced settings tab.

although the default is 2min. if you cant do a run in 2min you got some serious problems. i average a run between 35-45 seconds and that includes the time it takes to leave the game and create a new game.
 
Top