Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Hdx

Pages: 1 ... 17 18 [19] 20 21
271
General Programming / Re: Programming class
« on: September 28, 2005, 02:44:36 am »
KK, was trying to decide to use a Double of an int.
Code: [Select]
public class AbsoluteValue {
public static void main(String args[]) {
double input;

System.out.print("Enter a number and I'll tell you it's absolute value: ");
input = TextIO.getlnDouble();
System.out.print("The Absolute Value is: ");
if(input >= 0)
  System.out.println(input);
else
  System.out.println(0-input);
}
}
Code: [Select]
public class Comparison {
public static void main(String args[]) {
double A, B;

System.out.print("Enter Value A: ");
A = TextIO.getlnDouble();
System.out.print("Enter Value B: ");
B = TextIO.getlnDouble();
if (A>B)
  System.out.println("The value of A is greater then the value of B.");
else if(A==B)
  System.out.println("The value of A is equal to the value of B.");
    else
      System.out.println("The Value of A is less then the value of B.");
}
}
Code: [Select]
public class DetermineAge {
public static void main(String args[]) {
int iBorn, iCur;
System.out.print("Please enter the last two digets of the year you were born: ");
iBorn = TextIO.getlnInt();
System.out.print("Please enter the last two digets of the current year: ");
iCur = TextIO.getlnInt();
if (iBorn >= 100 || iBorn < 0 || iCur > 100 || iCur <0) {
System.out.println("Hey but muncher! Dont lie to me. Good bye!");
return;
}
int iAge;
if (iBorn >= 6)
iAge = (100 - iBorn) + iCur;
else if(iBorn == iCur)
iAge = 0;
else
iAge = iCur - iBorn;

String cModi;
System.out.print("Has your birthday already happend this year? (y/n): ");
cModi = TextIO.getlnString();
if (cModi.toLowerCase().equals("n") || cModi.toLowerCase().equals("no"))
  iAge -= 1;

System.out.println("You are " + iAge + " years old.");
}
}
So boring!
~-~(HDX)~-~

272
General Programming / Re: Programming class
« on: September 28, 2005, 01:29:57 am »
SWITCH?! @_@  Daaammn..
Shuit it, ive only read the 1st chapter -.-
Just got the book today.
Oh and stupied question, absolute value allows for deimals right? (Sorry I'm tired)
Oh and I suggest yall doo all the assighnments there easy.
~-~(HDX)~-~

273
General Programming / Re: Programming class
« on: September 28, 2005, 01:17:59 am »
Not true. I'm reading the "JAVA for AP* Computer Science" book and I'm already to teh switch() cases.
~-~(HDX)~-~

274
General Programming / Programming class
« on: September 28, 2005, 01:11:21 am »
Well... My class sucks, were learning Java.. And we're going REALLY slow.
We're in what the 3rd-4th week and werer only to If statements -.-
If yall wana look you can find out course work here:
http://hdx.no-ip.org/Labs/
Post comments, Code, etc..etc.. anything you have to say about my shitty class :P
~-~(HDX)~-~

275
Botdev / Re: Bot Tutorial?
« on: September 26, 2005, 09:25:32 pm »
yes, htere doing genral matanance from what I heard.
But shush! Poke
Dont tell anyone! thats a temp untill bnet docs gets back up. Soon as it does it's being taken down unless arta would like to give out the actuall site for mirriors..
Some things prolly dont work, but w/e it has msot the packet info.
Note: Arta gave me permission to host this untill bnetdocs is back. So dont rtag me you bastards
~-~(HDX)~-~

276
Botdev / Re: 0x50 (Again)
« on: September 26, 2005, 07:29:01 pm »
Dude. that is cool.
Few things tho. How do you install a OS onto one of the images?
So that I can boot into say Mac OSx. Also, does it support any type of linux emulation?
Wel.. I found this
But it dosent tell me how to fix the ripped image on Windows.. so. any ideas?
~-~(HDX)~-~

277
Botdev / Re: 0x50 (Again)
« on: September 25, 2005, 10:20:17 am »
Well, does anyone in here know where I can get a Mac EMU and get the mac vers of each game? If so I'll work on getting  class writtin up for Mac version files handeling. But i dont wana do it unless I can steadly get the mac hashes for myself :/
~-~(HDX)~-~

278
Botdev / Re: [0x29] Disconnected
« on: September 24, 2005, 09:38:12 pm »

Receive data (9 bytes).
>0000006C> FF 51 09 00  01 01 00 00  00                        .Q.......

Code: [Select]
Reports success/failure on version & CD Key check.

Result:
0x000: Passed challenge
0x100: Old game version (Additional info field supplies patch MPQ filename)
0x101: Invalid version
0x102: Game version must be downgraded
(Additional info field supplies patch MPQ filename)
0x0NN: (where NN is the version code supplied in SID_AUTH_INFO): Invalid version code (note that 0x100 is not set in this case).

0x200: Invalid CD key
0x201: CD key in use (Additional info field supplies name of user)
0x202: Banned key
0x203: Wrong product

The last 4 codes also apply to the second cdkey, as indicated by a bitwise combination with 0x010.
See anythign wrong ehre? Your logging in, when your failing version check.
I dont feel like looking at your logs to see what is causing this.. but w/e
~-~(HDX)~-~

279
Botdev / Re: 0x50 (Again)
« on: September 24, 2005, 06:37:38 pm »
Quote
I am sending:
Send data (12 bytes).
<00000007< 0C 00 09 04  00 00 00 03  00 00 00 00
............
Dude.. thes an invalid packet format...
your missing quite a few things from it. Consult your bnetdocs :/
~-~(HDX)~-~

280
Botdev / Re: 0x50 (Again)
« on: September 24, 2005, 06:17:05 pm »
Now thats solved. Can you send me a copy of your local bnet docs cuz arta's is down.
e-mail: hdxbmx27@gmail.com
~-~(HDX)~-~

281
Botdev / Re: 0x50 (Again)
« on: September 24, 2005, 06:06:33 pm »
No, before your send ANYTHING to bnet, you need to send 0x01 (.Send Chr(&H1))
Also send me a copy of BnetDocs that you have.
~-~(HDX)~-~

282
Botdev / Re: 0x50 (Again)
« on: September 24, 2005, 06:00:57 pm »
stupied question.
Are you sending the protocol byte?
~-~(HDX)~-~

283
Botdev / Re: 0x50 (Again)
« on: September 24, 2005, 05:04:29 pm »
Hurm I think the problem is that macs dont repost the Country info.
Also, if your going to use any remote hashing server you need to use IX86 not mac.
I should add support for Mac hashes but there no where to find them!
Also.. theres no reason to use xmac. it dosent change anything, so on a bot you can do IX86
also, mind sending me a copy of your 'local BNet Docs'?
~-~(HDX)~-~

284
Unix / Linux Discussion / Re: Fendora
« on: September 23, 2005, 10:52:05 pm »
Yes, Fedora. Sorry Misspelt.
And I would run Eclipse.. But for some reason it is extreamly hard on the netwrok resources. And having 14 people running at the same time makes our small network crash.
So...
~-~(HDX)~-~

285
Unix / Linux Discussion / Fedora
« on: September 23, 2005, 08:46:10 pm »
Anyone know a Free Java IDE for fedora?
Were programming in Java in my class. Were also using fedora.
And using gedit/nano to edit the java files is a pain in the ass when we are dealing with 20-40 diffrent classes within the same project.
Specially seince we have to compile them 1 by one using javac -.-
So, Like I asked, Anyone know a good free Java IDE for fedora?
~-~(HDX)~-~

Pages: 1 ... 17 18 [19] 20 21