New problem with JED and I've received no solutions.Please help me here

MasterDaemon

Member!
Joined
Oct 7, 2002
Messages
21
Reaction score
0
Website
Visit site
Ok.The bot works perfectly for like the first 20 runs,but after awhile an error will popup.It'll say

javascripterroe:reference error:tps is not defined
javascript:(location of file)

What does this mean and what should I do?It's the only thing stopping me from having a perfect pindabotter.

In case you need to know,I use the orb only/nova sorc pindabot.

I kept wonderin what was screwing my pindabot up,so I watched it,and this error pops up afterawhile,and pindabot just stops running.What should I do?
 

Aris

Member!
Joined
Sep 14, 2002
Messages
500
Reaction score
0
Location
Modesto, CA
Website
Visit site
Originally posted by MasterDaemon
Ok.The bot works perfectly for like the first 20 runs,but after awhile an error will popup.It'll say

javascripterroe:reference error:tps is not defined
javascript:(location of file)

What does this mean and what should I do?It's the only thing stopping me from having a perfect pindabotter.

In case you need to know,I use the orb only/nova sorc pindabot.

I kept wonderin what was screwing my pindabot up,so I watched it,and this error pops up afterawhile,and pindabot just stops running.What should I do?
when does this occur? what is your character doing when this happens.

as far as the error goes. if something says its not defined. that means that the script was asked to perform a command and that command wasnt setup properly or is non existant.
 

MasterDaemon

Member!
Joined
Oct 7, 2002
Messages
21
Reaction score
0
Website
Visit site
Don't mean to be rude or anything,but could you please help me quick.I got to go soon,and I want to run this thing while I'm sleep, and all day tomorrow.
 

Aris

Member!
Joined
Sep 14, 2002
Messages
500
Reaction score
0
Location
Modesto, CA
Website
Visit site
Originally posted by Placebo
COPY SCRIPT HERE
god no pls dont copy your script here i dont wanna read code tonight.

im pretty sure i know whats going wrong anyhow.

you said your use'in a sorc script for your javason? the script is prolly trying to cast a spell that you dont have. you have to just read through it and check to make sure its not trying to cast like static field or shiver armor or somthin like that. if it tries to cast a spell/skill that you dont have it will cause an error and drop out like your describing.
 

MasterDaemon

Member!
Joined
Oct 7, 2002
Messages
21
Reaction score
0
Website
Visit site
I'm using a Frozen Orb sorc.I tried re-loading the script,and got the same error!Ugh.It works fine then acts up.It said something like C;//Programfiles/jed/javascipt/pindabot/novasorc.jp and some numbers and something like that.It's angering.

Here's all the script and how I have it setup.

Code:
//====================
// Immunities to skip
//====================

//Skip immunities
var skip=false;

//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=false;

//Chilling Armor
var carm=false;

//Frozen Armor
var far=true;

//Thunderstorm
var ts=true;

//Energy Shield
var es=true;

//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=false;

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

//Delay for nova
var novadel=600;

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

//Ressurect mercenary
var merc=true;

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

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

//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=false;

//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=false;

//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[i];

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[i] > 0; i++)
			{
			if(immunites[arguments[i]] != undefined)
				{
				if (immunitesshow) {Print("ÿc4 + " + immunites[arguments[i]])}
				for (j = 0; j < skiptheseimmunites.length; j++) {if(immunites[arguments[i]] == 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[i];
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[i];

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[i];

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[i];

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[i];

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[i];
	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;

}
 

MasterDaemon

Member!
Joined
Oct 7, 2002
Messages
21
Reaction score
0
Website
Visit site
No help :( I'm sure the problem is simple.I don't actually drop from the game.The bot just stops....and does nothing when the error pops up.It really sucks.
 

Placebo

Member!
Joined
Sep 4, 2002
Messages
928
Reaction score
0
Website
Visit site
TPP =TelePort Pickit

So check your pickup ini and see if you have telepickit on or off.

That is what I think.
 

MasterDaemon

Member!
Joined
Oct 7, 2002
Messages
21
Reaction score
0
Website
Visit site
Error came up even faster than before.This is exactly what is says when the error happens...

Javascript error: Reference Error:tps is not defined

javascript: C:programFiles/Jed/Javascript/pindabot/orbonlynova.js:624:
 

Aris

Member!
Joined
Sep 14, 2002
Messages
500
Reaction score
0
Location
Modesto, CA
Website
Visit site
Originally posted by MasterDaemon
Error came up even faster than before.This is exactly what is says when the error happens...

Javascript error: Reference Error:tps is not defined

javascript: C:programFiles/Jed/Javascript/pindabot/orbonlynova.js:624:
it means its having a problem on line 624. im not gunna count down 624 lines. you can if you want.

my advice to you is go get the sh-demon sorc script. its the one i use and ive never had any problems with it.
 

Aris

Member!
Joined
Sep 14, 2002
Messages
500
Reaction score
0
Location
Modesto, CA
Website
Visit site
actually if you just do a find on this page for "TPS" you will find it in the script. you'll also notice its trying to subtract whatever the value of tps is from the teleport location.

then notice that if you try and find the spot in the script where it gets the value for tps that their is not instance for TPS ever again in the script.

theirs your problem

if you ppl would just download the script i told you to in my sticky thread at the top for sorcs you wouldnt be having these problems. i reccommended the script for a reason. it will work for any sorcs other than meteor/firewall sorcs.

personally all i had when this script came out was a firewall/hydra sorc. i remade a whole new character just for this script. tstorm/nova/orb it only takes about a day or two to get a lvl 80 sorc with some help from some friends.
 

MasterDaemon

Member!
Joined
Oct 7, 2002
Messages
21
Reaction score
0
Website
Visit site
I did :D Pure Frost Orb sorc script.Works perfectly.No problems that I can't fix have arised.I only hope it stays this way.
 

hellmount

Member!
Joined
Oct 2, 2002
Messages
40
Reaction score
0
Website
Visit site
Im actually using a FO // meteor sorc with the SH-demon script and its working pretty well... just had to fiddle a little
 
Top