PDA

View Full Version : Full HARRY POTTER Spells [fully coded 317 Released]



Brayden
June 27th, 2010, 23:23
RELEASED!


int spellcast = misc.random(51);
if (spellcast == 0) {
updateRequired = true;
txt4 = "Accio!";
string4UpdateRequired = true;
} else if (spellcast == 1) {
updateRequired = true;
txt4 = "Alohomora!";
string4UpdateRequired = true;
} else if (spellcast == 2) {
updateRequired = true;
txt4 = "Aparecium!";
string4UpdateRequired = true;
} else if (spellcast == 3) {
updateRequired = true;
txt4 = "Avada Kadavra!";
string4UpdateRequired = true;
} else if (spellcast == 4) {
updateRequired = true;
txt4 = "Avifors!";
string4UpdateRequired = true;
} else if (spellcast == 5) {
updateRequired = true;
txt4 = "Avis!";
string4UpdateRequired = true;
} else if (spellcast == 6) {
updateRequired = true;
txt4 = "Crucio!";
string4UpdateRequired = true;
} else if (spellcast == 7) {
updateRequired = true;
txt4 = "Confundus!";
string4UpdateRequired = true;
} else if (spellcast == 8) {
updateRequired = true;
txt4 = "Conjunctivitis!";
string4UpdateRequired = true;
} else if (spellcast == 9) {
updateRequired = true;
txt4 = "Deletrius!";
string4UpdateRequired = true;
} else if (spellcast == 10) {
updateRequired = true;
txt4 = "Densaugeo!";
string4UpdateRequired = true;
} else if (spellcast == 11) {
updateRequired = true;
txt4 = "Diffindo!";
string4UpdateRequired = true;
} else if (spellcast == 12) {
updateRequired = true;
txt4 = "Dissendium!";
string4UpdateRequired = true;
} else if (spellcast == 13) {
updateRequired = true;
txt4 = "Engorgio!";
string4UpdateRequired = true;
} else if (spellcast == 14) {
updateRequired = true;
txt4 = "Ennervate!";
string4UpdateRequired = true;
} else if (spellcast == 15) {
updateRequired = true;
txt4 = "Expecto Patronum!";
string4UpdateRequired = true;
} else if (spellcast == 16) {
updateRequired = true;
txt4 = "Expelliarmus!";
string4UpdateRequired = true;
} else if (spellcast == 17) {
updateRequired = true;
txt4 = "Ferula!";
string4UpdateRequired = true;
} else if (spellcast == 18) {
updateRequired = true;
txt4 = "Fidelius!";
string4UpdateRequired = true;
} else if (spellcast == 19) {
updateRequired = true;
txt4 = "Finite Incantation!";
string4UpdateRequired = true;
} else if (spellcast == 20) {
updateRequired = true;
txt4 = "Flipendo!";
string4UpdateRequired = true;
} else if (spellcast == 21) {
updateRequired = true;
txt4 = "Furmunculus!";
string4UpdateRequired = true;
} else if (spellcast == 22) {
updateRequired = true;
txt4 = "Homorphus!";
string4UpdateRequired = true;
} else if (spellcast == 23) {
updateRequired = true;
txt4 = "Impedimenta!";
string4UpdateRequired = true;
} else if (spellcast == 24) {
updateRequired = true;
txt4 = "Imperio!";
string4UpdateRequired = true;
} else if (spellcast == 25) {
updateRequired = true;
txt4 = "Impervius!";
string4UpdateRequired = true;
} else if (spellcast == 26) {
updateRequired = true;
txt4 = "Incendio!";
string4UpdateRequired = true;
} else if (spellcast == 27) {
updateRequired = true;
txt4 = "Locomotor Mortis!";
string4UpdateRequired = true;
} else if (spellcast == 28) {
updateRequired = true;
txt4 = "Lumos!";
string4UpdateRequired = true;
} else if (spellcast == 29) {
updateRequired = true;
txt4 = "Mobiliarbus!";
string4UpdateRequired = true;
} else if (spellcast == 30) {
updateRequired = true;
txt4 = "Mobilicorpus!";
string4UpdateRequired = true;
} else if (spellcast == 31) {
updateRequired = true;
txt4 = "Morsmorde!";
string4UpdateRequired = true;
} else if (spellcast == 32) {
updateRequired = true;
txt4 = "Nox!";
string4UpdateRequired = true;
} else if (spellcast == 33) {
updateRequired = true;
txt4 = "Obliviate!";
string4UpdateRequired = true;
} else if (spellcast == 34) {
updateRequired = true;
txt4 = "Orchideous!";
string4UpdateRequired = true;
} else if (spellcast == 35) {
updateRequired = true;
txt4 = "Petrificus Totalus!";
string4UpdateRequired = true;
} else if (spellcast == 36) {
updateRequired = true;
txt4 = "Point Me!";
string4UpdateRequired = true;
} else if (spellcast == 37) {
updateRequired = true;
txt4 = "Priori Incantatum!";
string4UpdateRequired = true;
} else if (spellcast == 38) {
updateRequired = true;
txt4 = "Prior Incantato!";
string4UpdateRequired = true;
} else if (spellcast == 39) {
updateRequired = true;
txt4 = "Quietus!";
string4UpdateRequired = true;
} else if (spellcast == 40) {
updateRequired = true;
txt4 = "Reducio!";
string4UpdateRequired = true;
} else if (spellcast == 41) {
updateRequired = true;
txt4 = "Reducto!";
string4UpdateRequired = true;
} else if (spellcast == 42) {
updateRequired = true;
txt4 = "Relashio!";
string4UpdateRequired = true;
} else if (spellcast == 43) {
updateRequired = true;
txt4 = "Rictusempra!";
string4UpdateRequired = true;
} else if (spellcast == 44) {
updateRequired = true;
txt4 = "Riddikulus!";
string4UpdateRequired = true;
} else if (spellcast == 45) {
updateRequired = true;
txt4 = "Scruge!";
string4UpdateRequired = true;
} else if (spellcast == 46) {
updateRequired = true;
txt4 = "Serpensortia!";
string4UpdateRequired = true;
} else if (spellcast == 47) {
updateRequired = true;
txt4 = "Sonorus!";
string4UpdateRequired = true;
} else if (spellcast == 48) {
updateRequired = true;
txt4 = "Stupefy!";
string4UpdateRequired = true;
} else if (spellcast == 49) {
updateRequired = true;
txt4 = "Tarantallegra!";
string4UpdateRequired = true;
} else if (spellcast == 50) {
updateRequired = true;
txt4 = "Waddiwasi!";
string4UpdateRequired = true;
} else if (spellcast == 51) {
updateRequired = true;
txt4 = "Wingardium Leviosa!";
string4UpdateRequired = true;
}


This is a bad way of doing it you should put this in a void and have all the updates at the end rather than in each spell. Enjoy and may the force be with you.

100% Credits Me and J.K. Rowlands and God.

Joshua F
June 27th, 2010, 23:25
Lol? Were you bored or something?
Good work though, I think.

Brayden
June 27th, 2010, 23:26
Lol? Were you bored or something?
Good work though, I think.

your welcome.

firescape_team
June 27th, 2010, 23:27
"This should be in a void" lol you mean method

Brayden
June 27th, 2010, 23:28
"This should be in a void" lol you mean method

nah bud a void. like public void duh.

firescape_team
June 28th, 2010, 00:48
nah bud a void. like public void duh.

It's not called a void lmao... it's called a method.

Brayden
June 28th, 2010, 01:36
It's not called a void lmao... it's called a method.

bro trust me its public void I make public voids all the time.

Trapt
June 28th, 2010, 02:21
Fire scape are you fucking stupid???

''Public method" Isn't real

Trey
June 28th, 2010, 02:23
Um @ Trapt and Brayden. It's method, not void. Void is a type.

Trapt
June 28th, 2010, 02:24
Yeah but you don't say Public Method

Public void declares a method.

Trey
June 28th, 2010, 02:26
Yeah but you don't say Public Method

Public void declares a method.

You say method. You type "[access modifier] void", in the case that the method has a return type of void. The proper term is method.

New Clear
June 28th, 2010, 02:34
Show some pictures/vid to see what it looks like. ;D

Brayden
June 28th, 2010, 02:43
You say method. You type "[access modifier] void", in the case that the method has a return type of void. The proper term is method.

No, I said Void bro its a public void.

play roon to see it.

Aaron
June 28th, 2010, 02:52
Good work Brayden:)

captain pwn
June 28th, 2010, 03:12
Brayden is the BEST CODER EVER!

Marc
June 28th, 2010, 06:04
So many else if statements, they rape my fucking eyes,
You can do this way more efficiently and less time consuming to parse.



int spellcast = misc.random(51);
String spellString[] = {insert all your spell names here in order as an array, I'm to lazy to do it for you};
updateRequired = true;
txt4 = spellString[spellcast];
string4UpdateRequired = true;


And it's done.

Brayden
June 28th, 2010, 06:06
So many else if statements, they rape my fucking eyes,
You can do this way more efficiently and less time consuming to parse.



int spellcast = misc.random(51);
String spellString[] = {insert all your spell names here in order as an array, I'm to lazy to do it for you};
updateRequired = true;
txt4 = spellString[spellcast];
string4UpdateRequired = true;


And it's done.
yep i know this now but was a long time ago coulda saved myself typing. this was in the czar days when the more bytes in thr client.java was better.

Faab234
June 28th, 2010, 06:56
Maybe you can use a Switch.


Um @ Trapt and Brayden. It's method, not void. Void is a type.

Only the registered members can see the link.

TehCow
June 28th, 2010, 10:57
Rofl, guessing you were bored?
Still not lookin bad, it's like RuneScape did to their new version XD

Brayden
June 28th, 2010, 13:35
no Guys anything this epi ust be writtin in the void with if and else.

Trey
June 28th, 2010, 13:45
Maybe you can use a Switch.



Only the registered members can see the link.


And your point is?

The Soul
June 28th, 2010, 13:54
This is so ugly, holy shit. I thought you were better than this Brayden!

Brayden
June 29th, 2010, 01:53
This is so ugly, holy shit. I thought you were better than this Brayden!

bro clearly this is best coding ever.

cchhaadd
June 29th, 2010, 02:07
bro, its really ugly.

Trey
June 29th, 2010, 03:02
bro, its really ugly.

bro clearly this is the best coding ever.

Ryan
June 29th, 2010, 03:04
True daht G :cool:

Canownueasy`
June 29th, 2010, 03:15
So many else if statements, they rape my fucking eyes,
You can do this way more efficiently and less time consuming to parse.



int spellcast = misc.random(51);
String spellString[] = {insert all your spell names here in order as an array, I'm to lazy to do it for you};
updateRequired = true;
txt4 = spellString[spellcast];
string4UpdateRequired = true;


And it's done.

Or use a method..

Brayden
June 30th, 2010, 06:13
Or use a method..

tis a void son. trey btw you get part creds fr techin me jaba.

whip2spec
July 7th, 2010, 16:53
Can i see some pictures?

aintaro
July 7th, 2010, 18:43
Fire scape are you fucking stupid???

''Public method" Isn't real
You got 6 Methods 1 of them are return type or void if the method does not return a value.

Emperor
July 7th, 2010, 23:06
tis a void son. trey btw you get part creds fr techin me jaba.

Are you joking or not? o.O

galade5746
July 8th, 2010, 13:14
which .java does this go into?

Break
July 8th, 2010, 14:18
Wtf?!?!

Ramsin
July 8th, 2010, 14:23
Make a video lol i wanna see this.

» Bay Area «
July 10th, 2010, 05:01
Lmfao? Someone should make a clip showing these :D

Billy
July 10th, 2010, 08:14
Lol I don't like harry potter my self but this is nice sort of, i may use, i tested on a backup source. gj, :P

Mish
July 10th, 2010, 19:30
lolololololololllololol

e-scape
July 11th, 2010, 15:35
public void doesnt declare a method. It declares the type of method.

public being the access-specifier(If the method can be called from an external class)
Void being the return type- (No return type).

Brayden
July 11th, 2010, 15:38
public void doesnt declare a method. It declares the type of method.

public being the access-specifier(If the method can be called from an external class)
Void being the return type- (No return type).

son make me so OJ!

Nathan
July 11th, 2010, 15:39
just loled at this thread. who da fk would want gay harry potter spells lol.

Fish a cow
July 11th, 2010, 15:41
awsomeeeeeeeeeeeeeeeeeeeeeee

Teamh4cky0u
July 11th, 2010, 15:50
Nice one tbh L

jakesnake
July 13th, 2010, 06:32
you ever going to release roonscape brayden?

Charlie`
July 13th, 2010, 06:37
Nice, keep it up :). And "Public Method" Lmao, Its Public Void.

Yaoi
July 13th, 2010, 16:25
can someone at least make a video for this!?

Jp09
July 13th, 2010, 16:29
WOW brayden! Nice job, this is going to be a neat 1!

Brayden
July 13th, 2010, 16:38
WOW brayden! Nice job, this is going to be a neat 1!

: [)

Jp09
July 13th, 2010, 16:44
Can't wait to see some pics of this! :)

Lized
July 13th, 2010, 18:30
What this does?

Brayden
July 27th, 2010, 05:42
What this does?

pretty simple coe, its 317/377 based.

Trey
July 27th, 2010, 06:53
Nice, keep it up :). And "Public Method" Lmao, Its Public Void.

The proper term is method, we were joking by agreeing that it was "void" because you idiots all call them "voids". Way to look stupid.

Faab234
July 27th, 2010, 06:55
The proper term is method, we were joking by agreeing that it was "void" because you idiots all call them "voids". Way to look stupid.

Also it is not "Public", but "public".

Trey
July 27th, 2010, 06:57
Also it is not "Public", but "public".

I ignored his capitalization because 50% of the people on this site seem to capitalize random words.

Faab234
July 27th, 2010, 07:14
I ignored his capitalization because 50% of the people on this site seem to capitalize random words.

Like me?

riches321
July 28th, 2010, 19:06
im gonna dd this to my clean delta scape source, well it's not clean anymore but im gonna add it

Rog3r
July 28th, 2010, 19:15
Thank you for this. I'm making Harry Potter scape and without this, it would not be very good. Thank you for this amazing tutorial!

riches321
July 28th, 2010, 19:17
lol harry poter scape goodluck on that i'd play "if you were being seroius i can't tell if sarcasm or not"

my pker pure
July 28th, 2010, 19:23
I love this, you could probably code a Harry Potter game using all the stuff from A private Server, Dragons and crap like that. You could even change the character models, and add in new items.

Apocryphal
July 28th, 2010, 19:40
This is plain stupid, and a horrible way of doing it, at least use an arraylist

I D3stroy I
July 28th, 2010, 21:00
Nicely done good job on it Very much Appreicated & Effort put into it! Won't be using thought

Fenway`
July 28th, 2010, 22:16
thanks god

Brayden
July 29th, 2010, 00:52
This is plain stupid, and a horrible way of doing it, at least use an arraylist

You got something against ma boi HP ?!??

nmanpure
August 23rd, 2010, 05:03
public void private void public int public boolean pbulic String private String ...... They are all called "Methods" they would look like this public

String test(String s)
{
l = "Test";
return s+ l;
}

public void calcNums(int num1, int num2)
{
int out = num1 + num2;
System.out.println("Answer: "+out);
}

nazal12
August 23rd, 2010, 05:04
lololollolo????

Trey
August 23rd, 2010, 05:05
public void private void public int public boolean pbulic String private String ...... They are all called "Methods" they would look like this public

String test(String s)
{
l = "Test";
return s+ l;
}

public void calcNums(int num1, int num2)
{
int out = num1 + num2;
System.out.println("Answer: "+out);
}

wtf @ that entire post.

NBowner
September 20th, 2010, 21:50
Does this work...?

If so, then its a fucking void, if not then its a method.

Stop being idiots and just add it if you want, if not then stop trying to 1up each other.

Phaz
September 22nd, 2010, 21:50
Expelliarmus?-.-

Neisen
November 8th, 2010, 18:26
lmao harry potter spells

Pk1337pk
November 20th, 2010, 13:40
Nice. But if you add a skill that hit altimes 5000 and give it the name: flippendo i give you 5000000000 euro!

Shystep
November 23rd, 2010, 23:37
all i got to say is WOW

Brayden
November 28th, 2010, 23:22
all i got to say is WOW
you saw movie?

Network
November 28th, 2010, 23:24
What.The.Fuck.

Wow, this is just amazing.

2kbarrows
November 28th, 2010, 23:28
Do Naruto now ;)
Good job on this. I see you liek Harry Ploper

Network
November 28th, 2010, 23:29
Do Naruto now ;)
Good job on this. I see you liek Harry Ploper

Naruto makes me sick.

Cart
November 28th, 2010, 23:30
Naruto makes me sick.

has nothing to do with this topic?

lul..

freeze
November 29th, 2010, 00:16
im new at coding where do i put this, in my client.java
aso will this worlk with delta?

battlezone
November 29th, 2010, 00:22
lol wtf? do you also dress up as harry poter and go to school.

who knows the spells ive seen most of the movies and know 0.
sad..

Brayden
November 29th, 2010, 00:22
im new at coding where do i put this, in my client.java
aso will this worlk with delta?

its harry potter, put it anywhere.

@BBattlezone im pres of the harry potter club at my school and we make plays and stuff so soemtimes yes I do dress up.

Network
November 29th, 2010, 00:24
its harry potter, put it anywhere.

@BBattlezone im pres of the harry potter club at my school and we make plays and stuff so soemtimes yes I do dress up.

LOOOOOOOOOOOOL lmfalmfaolmfaolmfao i was laughed so hard. you have no idea

freeze
November 29th, 2010, 00:27
LOOOOOOOOOOOOL lmfalmfaolmfaolmfao i was laughed so hard. you have no idea

so where do i put it sorry i might seem annoying aking you this.

Brayden
January 5th, 2011, 15:49
guys THANK the post, really this was a LOT of work. COMON.

pixelpwn
January 16th, 2011, 03:17
guys THANK the post, really this was a LOT of work. COMON.

Ok Brayden i thank u for contributing too runelocus You really havnt helped me or most of the rest of the ppl in here but it is pretty cool lol.

U have a great imagination. ;)

William
January 16th, 2011, 03:21
you can't give 100% credit to 5 people. That doesn't make sense.

Zykev2
January 16th, 2011, 03:32
you can't give 100% credit to 5 people. That doesn't make sense.

Especially when you spell the authors name wrong lmao.

Trey
January 16th, 2011, 03:38
you can't give 100% credit to 5 people. That doesn't make sense.

I see 2 people and 1 imaginary creature.

BLiiiTz
May 6th, 2011, 11:59
Lol, I hate to ask, but... Where does this go?

iijustinii
May 6th, 2011, 12:49
lol tnx man!

Vesta Main
May 6th, 2011, 13:25
show some pics :o?

Brayden
July 19th, 2011, 19:44
bump for deathly hollows pt 2.

I Love Santa
July 19th, 2011, 19:48
Nice work, but theres a reason for Harry Potter games and Runescape games, shouldn't mix them together its like mixing oil and water, just doesn't work and splits apart.

RuneSoftware
July 19th, 2011, 19:57
It would be cool if you actually implemented graphics.

General
July 28th, 2011, 12:46
Fire scape are you fucking stupid???

''Public method" Isn't real
It could be called either a void or a method, Now stop arguing over it?

OT: Good job ;)

saran
July 30th, 2011, 04:52
obliviate ! ! !- r we still alive -

z0mg beast
July 30th, 2011, 04:54
Erm. Good job. HPPS NEXT NU HIT?!

Brayden
August 22nd, 2011, 04:44
which 1 is the oil?

Bossmous
August 24th, 2011, 17:39
which 1 is the oil?

Congratulations!
Your gravedigging level is now 99!

Bloodah
August 24th, 2011, 17:52
Harry potter spells? LOl

Brayden
September 5th, 2011, 02:57
ye. best tut evar.