|
| Author |
Message |
Cinemax
 Group: Members Joined: 05 Jul 2008 Donor:  Posts: 8361 Gold: 12885.33 Clan: HoD II

Status: Warn:  Reputation: 116
|
#1 Posted: 15 Jul 2010 01:29 am Post subject: Bot code Free |
|
|
| Code: | // Ini library v0.1
// by blue mind
// -----------------------------------------------------------------------------
// History :
//
// 0.1 : first draft, should get the job done but done. it only returns one
// big array containing all the info
// The actual parsed content of the INI
// this contains one array per section found in the ini
// each section array is formed like this :
// ipContent[0]=["Section Name",["First key name","First key value"],...]
var ipContent=new Array();
////////////////////////////////////////////////////////////////////////////////
// ipLoadFile(strFileName) //
////////////////////////////////////////////////////////////////////////////////
// Loads the ini and fills ipContent with it //
// Will consider ; or // on the beginning of lines as a comment //
////////////////////////////////////////////////////////////////////////////////
function ipLoadFile(strFileName) {
var ipFile;
var strCurrentLine;
var nIniLen=0, nSectionLen=0;
var nEndOfSection=0, nEndOfKey;
var nLines=0;
var strKeyName, strKeyValue;
ipFile=fileOpen(strFileName, 0);
if (!ipFile) {
print("Failed to open "+strFileName+" for reading");
return;
}
while (!ipFile.eof) {
strCurrentLine = ipStripSpaces(ipFile.readLine());
nLines++;
// Check to see if this line is actually a comment, or is empty
if ((strCurrentLine=="") || (strCurrentLine[0]==";") || (strCurrentLine.indexOf("//")==0)) {
continue;
}
// Check to see if it's a new section
if (strCurrentLine[0]="[") {
// check if section name is actually valid
nEndOfSection = strCurrentLine.lastindexOf("]");
// invalid section name, skip to next line and warn user
if (nEndofsectioname < 2) {
print("Error at line "+nLines+" in "+strFileName+" : invalid section name");
continue;
}
nIniLen=ipContent.length;
ipContent[nIniLen] = new Array();
ipContent[nIniLen].push(strCurrentLine.substring(1,nEndOfSection));
continue;
}
// Then it must be a key
nEndOfKey = strCurrentLine.indexOf("=");
if (nEndOfKey) {
nIniLen=ipContent.length;
nSectionLen=ipContent[nIniLen-1].length;
strKeyName=strCurrentLine.substring(0,nEndOfKey-1);
strKeyValue=strCurrentLine.substring(nEndOfKey+1);
ipContent[nIniLen-1][nSectionLen].push([strKeyName,strKeyValue]);
continue;
}
print("Some parsing error occurred at line "+nLines+" in "+strFileName+" : unknown case");
}
ipFile.close();
return ipContent;
}
// Returns all the keys and values of a section
function ipGetSectionByName(strSection) {
}
// Returns the name of all the sections
function ipGetAllSections() {
}
// Returns the value of a given key in a given section
function ipGetKeyValue(strSection,strKey) {
}
// Removes the spaces and tabs at the beginning of the string
function ipStripSpaces(strLine) {
var nLength=strLine.length;
var nPos=0;
var strNewString;
while(nPos<nLength) {
if ((strLine[nPos] == " ") || (strLine[nPos]=" "))
nPos++;
}
return strLine.substring(nPos);
} |
_____________________
|
|
| Back to top |
|
 |
Wish Deputy Minister
Group: Banned Joined: 02 Jan 2010 Donor:  Posts: 2935 Gold: 1.17 Clan: Notorious
Status: Warn: Banned Reputation: 41

|
#2 Posted: 15 Jul 2010 02:06 am Post subject: |
|
|
hm
how to make it work.? _________________ This user's signature has been disabled |
|
| Back to top |
|
 |
Dragonelf
 Group: Retired Moderators Joined: 11 Mar 2009 Donor:  Posts: 4586 Gold: 58.70 Clan: Legends

Status: Warn:  Reputation: 154

|
|
| Back to top |
|
 |
Wish Deputy Minister
Group: Banned Joined: 02 Jan 2010 Donor:  Posts: 2935 Gold: 1.17 Clan: Notorious
Status: Warn: Banned Reputation: 41

|
#4 Posted: 15 Jul 2010 02:12 am Post subject: |
|
|
and for what is it? _________________ This user's signature has been disabled |
|
| Back to top |
|
 |
Dragonelf
 Group: Retired Moderators Joined: 11 Mar 2009 Donor:  Posts: 4586 Gold: 58.70 Clan: Legends

Status: Warn:  Reputation: 154

|
#5 Posted: 15 Jul 2010 02:14 am Post subject: |
|
|
The sourcecode of the d2jsp bot. Cine only posted a small part
Last edited by Dragonelf on 15 Jul 2010 02:14 am; edited 1 time in total |
|
| Back to top |
|
 |
ShUgaSHaNe
Group: Scammer Joined: 30 Oct 2009 Posts: 3026 Gold: Locked Clan: MightY

Status: Warn:  Reputation: 95

|
#6 Posted: 15 Jul 2010 03:47 am Post subject: |
|
|
fuck d2jsp
paul and his wife who looks like a lvl 45 barb |
|
| Back to top |
|
 |
Cinemax
 Group: Members Joined: 05 Jul 2008 Donor:  Posts: 8361 Gold: 12885.33 Clan: HoD II

Status: Warn:  Reputation: 116
|
#7 Posted: 15 Jul 2010 03:48 am Post subject: |
|
|
| Dragonelf wrote: | | The sourcecode of the d2jsp bot. Cine only posted a small part |
Wow, your smart yo, for sure you are.. I admire you for that I didn't know u knew so much about that.
Can u make webpages too? _____________________
|
|
| Back to top |
|
 |
ShUgaSHaNe
Group: Scammer Joined: 30 Oct 2009 Posts: 3026 Gold: Locked Clan: MightY

Status: Warn:  Reputation: 95

|
#8 Posted: 15 Jul 2010 04:01 am Post subject: |
|
|
| Cinemax wrote: | | Dragonelf wrote: | | The sourcecode of the d2jsp bot. Cine only posted a small part |
Wow, your smart yo, for sure you are.. I admire you for that I didn't know u knew so much about that.
Can u make webpages too? |
ofc joe that man is pro ^^ |
|
| Back to top |
|
 |
Cinemax
 Group: Members Joined: 05 Jul 2008 Donor:  Posts: 8361 Gold: 12885.33 Clan: HoD II

Status: Warn:  Reputation: 116
|
#9 Posted: 15 Jul 2010 04:08 am Post subject: |
|
|
| GanGsTeR wrote: | | Cinemax wrote: | | Dragonelf wrote: | | The sourcecode of the d2jsp bot. Cine only posted a small part |
Wow, your smart yo, for sure you are.. I admire you for that I didn't know u knew so much about that.
Can u make webpages too? |
ofc joe that man is pro ^^ |
bummer... tried rep.
You can't change reputation of the same member more than once in 99999999 minutes. _____________________
|
|
| Back to top |
|
 |
ShUgaSHaNe
Group: Scammer Joined: 30 Oct 2009 Posts: 3026 Gold: Locked Clan: MightY

Status: Warn:  Reputation: 95

|
#10 Posted: 15 Jul 2010 04:19 am Post subject: |
|
|
| Cinemax wrote: | | GanGsTeR wrote: | | Cinemax wrote: | | Dragonelf wrote: | | The sourcecode of the d2jsp bot. Cine only posted a small part |
Wow, your smart yo, for sure you are.. I admire you for that I didn't know u knew so much about that.
Can u make webpages too? |
ofc joe that man is pro ^^ |
bummer... tried rep.
You can't change reputation of the same member more than once in 99999999 minutes. |
wtf why change my rep ???? |
|
| Back to top |
|
 |
Cinemax
 Group: Members Joined: 05 Jul 2008 Donor:  Posts: 8361 Gold: 12885.33 Clan: HoD II

Status: Warn:  Reputation: 116
|
#11 Posted: 15 Jul 2010 04:32 am Post subject: |
|
|
| GanGsTeR wrote: | | Cinemax wrote: | | GanGsTeR wrote: | | Cinemax wrote: | | Dragonelf wrote: | | The sourcecode of the d2jsp bot. Cine only posted a small part |
Wow, your smart yo, for sure you are.. I admire you for that I didn't know u knew so much about that.
Can u make webpages too? |
ofc joe that man is pro ^^ |
bummer... tried rep.
You can't change reputation of the same member more than once in 99999999 minutes. |
wtf why change my rep ???? |
I went to add rep to Dragonelf.
Have another drink ftw. _____________________
|
|
| Back to top |
|
 |
ShUgaSHaNe
Group: Scammer Joined: 30 Oct 2009 Posts: 3026 Gold: Locked Clan: MightY

Status: Warn:  Reputation: 95

|
#12 Posted: 15 Jul 2010 04:43 am Post subject: |
|
|
| Cinemax wrote: | | GanGsTeR wrote: | | Cinemax wrote: | | GanGsTeR wrote: | | Cinemax wrote: | | Dragonelf wrote: | | The sourcecode of the d2jsp bot. Cine only posted a small part |
Wow, your smart yo, for sure you are.. I admire you for that I didn't know u knew so much about that.
Can u make webpages too? |
ofc joe that man is pro ^^ |
bummer... tried rep.
You can't change reputation of the same member more than once in 99999999 minutes. |
wtf why change my rep ???? |
I went to add rep to Dragonelf.
Have another drink ftw. |
will do joe.. no fight with that  |
|
| Back to top |
|
 |
Cinemax
 Group: Members Joined: 05 Jul 2008 Donor:  Posts: 8361 Gold: 12885.33 Clan: HoD II

Status: Warn:  Reputation: 116
|
#13 Posted: 15 Jul 2010 05:26 am Post subject: |
|
|
| GanGsTeR wrote: | | Cinemax wrote: | | GanGsTeR wrote: | | Cinemax wrote: | | GanGsTeR wrote: | | Cinemax wrote: | | Dragonelf wrote: | | The sourcecode of the d2jsp bot. Cine only posted a small part |
Wow, your smart yo, for sure you are.. I admire you for that I didn't know u knew so much about that.
Can u make webpages too? |
ofc joe that man is pro ^^ |
bummer... tried rep.
You can't change reputation of the same member more than once in 99999999 minutes. |
wtf why change my rep ???? |
I went to add rep to Dragonelf.
Have another drink ftw. |
will do joe.. no fight with that  |
it's ok.
I would not mind woopin some gangster wannabe's ass anyhow. _____________________
|
|
| Back to top |
|
 |
Dragonelf
 Group: Retired Moderators Joined: 11 Mar 2009 Donor:  Posts: 4586 Gold: 58.70 Clan: Legends

Status: Warn:  Reputation: 154

|
#14 Posted: 15 Jul 2010 10:26 am Post subject: |
|
|
| I can code websites, vb6.0, programs, anything, fucking pro |
|
| Back to top |
|
 |
happyguy44 Lulz
Group: Members Joined: 28 Jun 2008 Posts: 9948 Gold: 2.40

Status: Warn:  Reputation: 102
|
#15 Posted: 15 Jul 2010 11:28 am Post subject: |
|
|
| could you program a script that lets you punch people though the internet? |
|
| Back to top |
|
 |
Dildo Sexy Little Piss Ant
Group: Banned Joined: 05 Jul 2010 Donor:  Posts: 273 Gold: 10.00

Status: Warn: Banned Reputation: 12

|
#16 Posted: 15 Jul 2010 11:31 am Post subject: |
|
|
| GanGsTeR wrote: | fuck d2jsp
paul and his wife who looks like a lvl 45 barb |
She doesn't appear intelligent, I would say she's about a level 5 warcry barb _________________ This user's signature has been disabled |
|
| Back to top |
|
 |
Ricky Niggitynog
 Group: Members Joined: 28 Jun 2008 Posts: 4447 Gold: 1.56

Status: Warn:  Reputation: 123
|
#17 Posted: 16 Jul 2010 01:22 am Post subject: |
|
|
| Cinemax wrote: | | GanGsTeR wrote: | | Cinemax wrote: | | GanGsTeR wrote: | | Cinemax wrote: | | GanGsTeR wrote: | | Cinemax wrote: | | Dragonelf wrote: | | The sourcecode of the d2jsp bot. Cine only posted a small part |
Wow, your smart yo, for sure you are.. I admire you for that I didn't know u knew so much about that.
Can u make webpages too? |
ofc joe that man is pro ^^ |
bummer... tried rep.
You can't change reputation of the same member more than once in 99999999 minutes. |
wtf why change my rep ???? |
I went to add rep to Dragonelf.
Have another drink ftw. |
will do joe.. no fight with that  |
it's ok.
I would not mind woopin some gangster wannabe's ass anyhow. |
Shut up you ugly hill billy 
Last edited by Ricky on 16 Jul 2010 01:22 am; edited 1 time in total |
|
| Back to top |
|
 |
Ricky Niggitynog
 Group: Members Joined: 28 Jun 2008 Posts: 4447 Gold: 1.56

Status: Warn:  Reputation: 123
|
#18 Posted: 16 Jul 2010 01:23 am Post subject: |
|
|
| Btw that code can suck my left testicle. It's trash, |
|
| Back to top |
|
 |
|