PDA

View Full Version : [562]Vengeance other.



nickyboy304
July 7th, 2010, 04:10
go into MagicCombat.java and find:


else if(tBed) {

you should see something like this:



else if(tBed) {
opp.isTeleBlocked = true;
opp.sm("You have been teleblocked.");
opp.graphics(gfx2, 16);
World.getInstance().registerEvent(new Event(180000) {
@Override
public void execute() {
opp.isTeleBlocked = false;
p.isTeleBlocked = false;
reset();
this.stop();
}
});
}

under that, add:



} else if(Vengother) {
opp.sm("You've been given the force of Veng by another player!");
opp.graphics(gfx2, (100 << 16));
opp.veng = true;
opp.vengTimer = 60;
}


now, add this under ancient:


switch(interfaceId) {
case 430://lunar
switch(spellId) {
case 41://veng other
anim = 4411;
gfx2 = 725;
Vengother = true;
p.forceChat("Here, My friend take this vengeance!");
break;
}
break;
}

now, find:


private boolean usingAncient;

and under it, add:


private boolean Vengother;


now, find:


if (p.SafeZone()) {

replace it all with this.


if (p.SafeZone()) {
//Player.attacking = false;
if(Vengother) {
p.animate(4411);
p.forceChat("Here, My friend take this vengeance!");
opp.sm("You've been given the force of Vengeance by Another player!");
opp.graphics(725, (100 << 16));
opp.veng = true;
opp.vengTimer = 60;
}
return;
}

now, again, find: (should be right under it)

if (opp.SafeZone()) {

replace it again with this:


if (opp.SafeZone()) {
//Player.attacking = false;
if(Vengother) {
p.animate(4411);
p.forceChat("Here, My friend take this vengeance!");
opp.sm("You've been given the force of Vengeance by Another player!");
opp.graphics(725, (100 << 16));
opp.veng = true;
opp.vengTimer = 60;
}
return;
}

save and compile there you go. enjoy.

if you get errors. or are to lazy to add it.. <.< here just use this magic.file as a guide. :O or take it. >.<




package com.rs2hd.content.skills.combat;

import com.rs2hd.content.pvp.*;
import com.rs2hd.event.*;
import com.rs2hd.model.ChatMessage;
import com.rs2hd.model.Item;
import com.rs2hd.model.Player;
import com.rs2hd.model.Entity;
import com.rs2hd.model.*;
import com.rs2hd.model.World;
import com.rs2hd.util.Misc;
import com.rs2hd.Constants;
import com.rs2hd.util.Misc;


public class MagicCombat {

TeleBlock teleBlock = new TeleBlock();
private Entity entity;
private Player p;
public void setPlayer(Player p) {
try {
this.p = p;
} catch(Exception e) {
}
}
private int projectile = -1;
private int req;
private int gfx2;
private int damage;
private int anim;
private int gfx;
private boolean tBed;
private boolean entengle;
private boolean usingAncient;
private boolean Vengother;
private int magicIndex;
boolean freeze = false;
boolean barrage = false;
int freezeDelay = 0;
int wildLvl(Player p) {
return (p.getLocation().getY() - 3520)/8+1;
}

private static boolean canAttack(Player p, Player p2) {
int wildy = Math.min(Location.wildernessLevel(p.getLocation()) , Location.wildernessLevel(p2.getLocation()));
int levelDiff = Math.abs(p.getSkills().getCombatLevel() - p2.getSkills().getCombatLevel());
if(wildy < levelDiff) {
p.getActionSender().sendMessage("You need to move deeper into the wilderness to attack this player.");
return false;
} else if(p.isAggressor()) {
if(p2.getInteractingWith() != p) {
p.getHeadIcons().setSkulled(true);
p.getUpdateFlags().setAppearanceUpdateRequired(tru e);
}
}
return true;
}
public void handleMagic(int playerId, int interfaceId, int spellId) {
if(p == null || p.isDead()) {
return;
}
if(p.combatDelay > 0) {
return;
}
magicIndex = playerId;
final Player opp = World.getInstance().getPlayerList().get(playerId);
if(!canAttack(p, opp)) {
return;
}
p.combatDelay = 3;
p.turnTemporarilyTo(opp);
if (p.SafeZone()) {
//Player.attacking = false;
if(Vengother) {
p.animate(4411);
p.forceChat("Here, My friend take this vengeance!");
opp.sm("You've been given the force of Vengeance by Another player!");
opp.graphics(725, (100 << 16));
opp.veng = true;
opp.vengTimer = 60;
} else {
}
return;
}
if (opp.SafeZone()) {
//Player.attacking = false;
if(Vengother) {
p.animate(4411);
p.forceChat("Here, My friend take this vengeance!");
opp.sm("You've been given the force of Vengeance by Another player!");
opp.graphics(725, (100 << 16));
opp.veng = true;
opp.vengTimer = 60;
} else {
}
return;
}
if (p.combatWith != opp.getIndex() && p.combatWith != 0 && !p.multiZone()) {
p.getActionSender().sendMessage("You are already in combat.");
p.resetAttack();
return;
}
if (opp.combatWith != p.getIndex() && opp.combatWith != 0 && !p.multiZone()) {
p.getActionSender().sendMessage("That player is already in combat.");
p.resetAttack();
return;
}
if(Misc.getDistance(p.getLocation().getX(), p.getLocation().getY(), opp.getLocation().getX(), opp.getLocation().getY()) <= 8) {
p.getWalkingQueue().reset();
}
//p.sm(""+spellId);
int rand_att = Misc.random(p.getSkills().getLevelForXp(6))*4 + Misc.random(30);
int rand_def = (int) (0.45 * Misc.random(opp.getSkills().getLevelForXp(1)));
int random_u = Misc.random(p.getBonuses().getBonus(3)) * 2;
int random_def = Misc.random(opp.getBonuses().getBonus(8));
opp.combatResetWith += PkDefinitions.getCombatDelay(p)+1;
opp.combatWith = p.getIndex();
opp.giveDrop = p.getIndex();
p.frozen += 1;
p.getWalkingQueue().reset();
if (p.getSkills().getLevelForXp(6) <= req) {
p.getActionSender().sendMessage("You need level " + req+ " magic to use this spell.");
return;
}
switch(interfaceId) {
case 192:
switch(spellId) {
case 25://Wind strike
gfx = 90;
anim = 1162;
projectile = 91;
damage = 2;
gfx2 = 92;
req = 1;
usingAncient = false;
break;
case 28: //Water strike
gfx = 93;
anim = 1162;
projectile = 94;
damage = 4;
gfx2 = 95;
req = 5;
usingAncient = false;
break;
case 30: //Earth strike
gfx = 96;
anim = 1162;
projectile = 97;
damage = 6;
gfx2 = 98;
req = 9;
usingAncient = false;
break;
case 32: //Fire strike
gfx = 99;
anim = 1162;
projectile = 100;
damage = 8;
gfx2 = 101;
req = 13;
usingAncient = false;
break;
case 34: //Wind bolt
gfx = 117;
anim = 1162;
projectile = 118;
damage = 9;
gfx2 = 119;
req = 17;
usingAncient = false;
break;
case 39: //Water bolt
gfx = 120;
anim = 1162;
projectile = 121;
damage = 10;
gfx2 = 122;
req = 23;
usingAncient = false;
break;
case 42: //Earth bolt
gfx = 123;
anim = 1162;
projectile = 124;
damage = 11;
gfx2 = 125;
req = 29;
usingAncient = false;
break;
case 45: //Fire bolt
gfx = 126;
anim = 1162;
projectile = 127;
damage = 12;
gfx2 = 128;
req = 35;
usingAncient = false;
break;
case 49: //Wind blast
gfx = 132;
anim = 1162;
projectile = 133;
damage = 13;
gfx2 = 134;
req = 41;
usingAncient = false;
break;
case 52: //Water blast
gfx = 135;
anim = 1162;
projectile = 136;
damage = 14;
gfx2 = 137;
req = 47;
usingAncient = false;
break;
case 58: //Earth blast
gfx = 138;
anim = 1162;
projectile = 139;
damage = 15;
gfx2 = 140;
req = 53;
usingAncient = false;
break;
case 63: //Fire blast
gfx = 129;
anim = 1162;
projectile = 130;
damage = 16;
gfx2 = 131;
req = 59;
usingAncient = false;
break;
case 70: //Wind wave
gfx = 158;
anim = 1162;
projectile = 159;
damage = 17;
gfx2 = 160;
req = 62;
usingAncient = false;
break;
case 73: //Water wave
gfx = 161;
anim = 1162;
projectile = 162;
damage = 18;
gfx2 = 163;
req = 65;
usingAncient = false;
break;
case 77: //Earth Wave
gfx = 164;
anim = 1162;
projectile = 165;
damage = 19;
gfx2 = 166;
req = 70;
usingAncient = false;
break;
case 80: //FireWave
gfx = 155;
anim = 1162;
projectile = 156;
damage = 20;
gfx2 = 157;
req = 75;
usingAncient = false;
break;
case 85: //TB
if(!opp.isTeleBlocked) {
gfx = 1841;
anim = 10503;
projectile = 1842;
damage = 3;
gfx2 = 1843;
req = 85;
p.graphics(1841, 16);
usingAncient = false;
tBed = true;
} else {
gfx = -1;
anim = -1;
projectile = -1;
gfx2 = -1;
damage = -1;
req = -1;
usingAncient = false;
tBed = false;
p.getActionSender().sendMessage("You're opponent is already teleblocked.");
return;
}
break;

case 81: //entengle
if(opp.frozen <= 1) {
gfx = 177;
anim = 1161;
projectile = 178;
damage = 5;
gfx2 = 181;
req = 79;
freeze = true;
freezeDelay = 15;
usingAncient = false;
entengle = true;
} else {
gfx = -1;
anim = -1;
projectile = -1;
gfx2 = -1;
damage = -1;
req = -1;
entengle = false;
usingAncient = false;
p.getActionSender().sendMessage("You're opponent is already frozen.");
return;
}
break;
case 68: //zammy
if (p.getEquipment().get(3).getDefinition().getId() == 2417){
gfx = -1;
anim = 811;
projectile = -1;
damage = 30;
gfx2 = 78;
req = 60;
usingAncient = false;
} else {
gfx = -1;
anim = -1;
projectile = -1;
gfx2 = -1;
damage = -1;
req = -1;
usingAncient = false;
p.getActionSender().sendMessage("You need a zammorak staff to cast this spell.");
return;
}
break;
case 66: //sara
if (p.getEquipment().get(3).getDefinition().getId() == 2415){
gfx = -1;
anim = 811;
projectile = -1;
damage = 30;
gfx2 = 77;
req = 60;
usingAncient = false;
} else {
gfx = -1;
anim = -1;
projectile = -1;
gfx2 = -1;
damage = -1;
req = -1;
usingAncient = false;
p.getActionSender().sendMessage("You need a saradomin staff to cast this spell.");
return;
}
break;
case 67: //guth
if (p.getEquipment().get(3).getDefinition().getId() == 2416){
gfx = -1;
anim = 811;
projectile = -1;
damage = 30;
gfx2 = 76;
req = 60;
usingAncient = false;
} else {
gfx = -1;
anim = -1;
projectile = -1;
gfx2 = -1;
damage = -1;
req = -1;
usingAncient = false;
p.getActionSender().sendMessage("You need a guthix staff to cast this spell.");
return;
}
break;
}
break;
case 193:
projectile = -1;
gfx = -1;
usingAncient = true;
switch (spellId) {
case 23://Ice barrage
if (p.getSkills().getLevel(6) >94) {
gfx = 368;
anim = 1979;
damage = 30;
gfx2 = 369;
req = 94;
freeze = true;
freezeDelay = 20;
} else {
p.getActionSender().sendMessage("You Need A Magic Level of 94 To Cast This Spell.");
}
break;
case 35://Shadow barrage
if (p.getSkills().getLevel(6) >88) {
//gfx = 368;
anim = 1978;
damage = 28;
gfx2 = 383;
req = 88;
} else {
p.getActionSender().sendMessage("You Need A Magic Level of 88 To Cast This Spell.");
}
break;
case 31://Smoke barrage
if (p.getSkills().getLevel(6) >86) {
//gfx = 368;
anim = 1979;
damage = 27;
gfx2 = 391;
req = 86;
} else {
p.getActionSender().sendMessage("You Need A Magic Level of 86 To Cast This Spell.");
}
break;
case 21: //Ice blitz
//gfx = 368;
anim = 1978;
damage = 26;
gfx2 = 367;
req = 82;
freeze = true;
freezeDelay = 15;
break;
case 25: //Blood Blitz
//gfx = 368;
anim = 1978;
damage = 25;
gfx2 = 375;
req = 80;
break;
case 33: //Shadow blitz
//gfx = 368;
anim = 1978;
damage = 24;
gfx2 = 381;
req = 76;
break;
case 29: //Smoke blitz
//gfx = 368;
anim = 1978;
damage = 23;
gfx2 = 387;
req = 74;
break;
case 22: //Ice burst
// gfx = 368;
anim = 1979;
damage = 22;
gfx2 = 363;
req = 70;
freeze = true;
freezeDelay = 10;
break;
case 26: //Blood Burst
// gfx = 368;
anim = 1979;
damage = 21;
gfx2 = 376;
req = 68;
break;
case 34: //Shadow Burst
//gfx = 368;
anim = 1978;
damage = 17;
gfx2 = 382;
req = 64;
break;
case 30: //Smoke Burst
//gfx = 368;
anim = 1979;
damage = 17;
gfx2 = 389;
req = 62;
break;
case 20: //Ice rush
//gfx = 368;
anim = 1978;
damage = 16;
gfx2 = 361;
req = 58;
freeze = true;
freezeDelay = 5;
break;
case 24: //Blood Rush
//gfx = 368;
anim = 1978;
damage = 15;
gfx2 = 361;
req = 56;
break;
case 32: //Shadow Rush
//gfx = 368;
anim = 1978;
damage = 14;
gfx2 = 379;
req = 52;
break;
case 28: //Smoke Rush
// gfx = 368;
anim = 1978;
damage = 13;
gfx2 = 385;
req = 50;
break;
}
break;
}
switch(interfaceId) {
case 430:
switch(spellId) {
case 41://veng other
anim = 4411;
gfx2 = 725;
Vengother = true;
p.forceChat("Here, My friend take this vengeance!");
break;
}
break;
}
p.getWalkingQueue().reset();
if ((random_u >= random_def) && (rand_att > rand_def)) {
p.animate(anim);
if (barrage) {
p.graphics(gfx);
} else {
p.graphics(gfx, (100 << 16));
}
p.getWalkingQueue().reset();
World.getInstance().getProjectileManager().fire(p. getLocation(), opp.getLocation(), 50, 100, getProjectile(), 46, 31, opp);
World.getInstance().registerEvent(new Event(getMagicDelay()) {

@Override
public void execute() {
int finalDamage = Misc.random(damage);
opp.hit(finalDamage);
if (!usingAncient) {
if(entengle) {
opp.frozen = freezeDelay;
opp.getWalkingQueue().reset();
opp.graphics(gfx2, 100);
} else if(tBed) {
opp.isTeleBlocked = true;
opp.sm("You have been teleblocked.");
opp.graphics(gfx2, 16);
World.getInstance().registerEvent(new Event(180000) {
@Override
public void execute() {
opp.isTeleBlocked = false;
p.isTeleBlocked = false;
reset();
this.stop();
}
});
} else if(Vengother) {
opp.sm("You've been given the force of Vengeance by Another player!");
opp.graphics(gfx2, (100 << 16));
opp.veng = true;
opp.vengTimer = 60;
} else {
opp.graphics(gfx2, (100 << 16));
}
} else {
if (freeze) {
if (opp.frozen == 0) {
opp.frozen = freezeDelay;
opp.graphics(369);
opp.getWalkingQueue().reset();
} else {
opp.graphics(1677, (100 << 16));
reset();
this.stop();
return;
}
}
opp.graphics(gfx2);
}
reset();
this.stop();
}
});
} else {
p.animate(anim);
if (barrage) {
p.graphics(gfx);
} else {
p.graphics(gfx, (100 << 16));
}
p.getWalkingQueue().reset();
World.getInstance().getProjectileManager().fire(p. getLocation(), opp.getLocation(), 50, 100, getProjectile(), 46, 31, opp);
World.getInstance().registerEvent(new Event(getMagicDelay()) {

@Override
public void execute() {
int finalDamage = Misc.random(damage);
//opp.updateHit(p, finalDamage);
//opp.hit(finalDamage);
opp.graphics(85, (100 << 16));
reset();
this.stop();
}
});

}
}
public void reset() {
gfx = -1;
anim = -1;
projectile = -1;
gfx2 = -1;
damage = -1;
req = -1;
}
public int getProjectile() {
return projectile;
}
public int getMagicDelay() {
Player p2 = World.getInstance().getPlayerList().get(magicIndex );
if (p == null || p2 == null)
return 1600;
if (Misc.getDistance(p.getLocation().getX(), p.getLocation().getY(), p2.getLocation().getX(), p2.getLocation().getY()) == 1)
return 955;
if (Misc.getDistance(p.getLocation().getX(), p.getLocation().getY(), p2.getLocation().getX(), p2.getLocation().getY()) == 2)
return 1055;
if (Misc.getDistance(p.getLocation().getX(), p.getLocation().getY(), p2.getLocation().getX(), p2.getLocation().getY()) == 3)
return 1200;
if (Misc.getDistance(p.getLocation().getX(), p.getLocation().getY(), p2.getLocation().getX(), p2.getLocation().getY()) == 4)
return 1450;
if (Misc.getDistance(p.getLocation().getX(), p.getLocation().getY(), p2.getLocation().getX(), p2.getLocation().getY()) == 5)
return 1550;
if (Misc.getDistance(p.getLocation().getX(), p.getLocation().getY(), p2.getLocation().getX(), p2.getLocation().getY()) == 6)
return 1650;
if (Misc.getDistance(p.getLocation().getX(), p.getLocation().getY(), p2.getLocation().getX(), p2.getLocation().getY()) == 7)
return 1750;
if (Misc.getDistance(p.getLocation().getX(), p.getLocation().getY(), p2.getLocation().getX(), p2.getLocation().getY()) == 8)
return 1750;
if (Misc.getDistance(p.getLocation().getX(), p.getLocation().getY(), p2.getLocation().getX(), p2.getLocation().getY()) == 9)
return 1845;
if (Misc.getDistance(p.getLocation().getX(), p.getLocation().getY(), p2.getLocation().getX(), p2.getLocation().getY()) == 10)
return 1845;
return 1;
}

}


there you go enjoy. :S


Pictures, XD

Only the registered members can see the link.

Only the registered members can see the link.

Only the registered members can see the link.

Gawdz
July 7th, 2010, 05:49
thanks nicky :) i think this is first venge other on 562 and wewt 1st post :p

Owntnarb0
July 7th, 2010, 06:04
Wow, I'm using this!
Thank you very much for this!

nickyboy304
July 7th, 2010, 06:06
your welcome, :D

Nosz
July 7th, 2010, 06:44
nice job nicky xD

yourgirlwantsme
July 7th, 2010, 15:15
@nosz
yesterday i flooded ur server lmaooo

Perfection
July 7th, 2010, 15:20
Thanks for this guide! It helped.

The Only Cj
July 7th, 2010, 15:24
Good Job. You can just easily convert though.

crezzy
July 7th, 2010, 15:30
:o thanks il use this.

EDIT:well i would of but ur missing the

else if(Vengother) {

in your tut. you cant just put else if(Vengother) {
and leave it empty lol

TehCow
July 7th, 2010, 15:48
I love seeing 503+ tutorials. :)

Tarco
July 7th, 2010, 16:04
hmph when i casted veng other my player didn't do the gfx >.>

yourgirlwantsme
July 7th, 2010, 16:43
this is 50% wrong :/

nickyboy304
July 7th, 2010, 16:45
:o thanks il use this.

EDIT:well i would of but ur missing the

else if(Vengother) {

in your tut. you cant just put else if(Vengother) {
and leave it empty lol


my bad mate. i'll fix it. S:


hmph when i casted veng other my player didn't do the gfx >.>

somtimes it doesn't, but some times it does, also, :O for some reason, you have to be 1 sqaure away to do the animation. >.<

if you have a good magic bonus, it will always show the gfx. :S


this is 50% wrong :/

it's not 50% wrong, it's just coded in a differn't way, also this can be the start of a better way to make veng other. <.< (not mine, but somone else who might create it better)

Tarco
July 7th, 2010, 17:11
ohk haha

crezzy
July 8th, 2010, 10:35
yes this is like 50% complete not wrong.

420
July 9th, 2010, 03:51
Awesome.Had venge other before your post, but yours is much better so ima use :) nice job btw

Demonzscape owner
July 9th, 2010, 10:03
nice work

tuneupw2
July 9th, 2010, 17:56
Thank You! it Helped me o_o last one did t_t xD

Billy
July 10th, 2010, 08:16
Easy to add if you aren't lazy like me, but good job i will add to my source now xD

Billy
July 23rd, 2010, 11:28
i've seen this before -.-

elite beast
July 23rd, 2010, 18:38
great job on this.

David
July 23rd, 2010, 21:33
Gj Nickyboy, although I don't think your a great coder lawl.

2kbarrows
September 15th, 2010, 21:31
Nice release!But you made it so you can only veng other off Pk Spots...

Cjay0091
September 15th, 2010, 22:37
Good job, but easy.

2kbarrows
September 17th, 2010, 21:14
go into MagicCombat.java and find:



switch(interfaceId) {
case 430://lunar
switch(spellId) {
case 41://veng other
anim = 4411;
gfx2 = 725;
Vengother = true;
p.forceChat("Here, My friend take this vengeance!");
break;
}
break;
}



Why 2 breaks?
And do i have to edit Magic.java PlayervsNPC,etc?

Steve
September 17th, 2010, 21:16
Why 2 breaks?
And do i have to edit Magic.java PlayervsNPC,etc?

2 breaks because he used two cases?
430 and 41 lol.

2kbarrows
September 17th, 2010, 21:21
2 breaks because he used two cases?
430 and 41 lol.

Didnīt see...lol...But do i have to edit PlavervsNPC,Magic.java,etc?

Steve
September 17th, 2010, 21:36
Didnīt see...lol...But do i have to edit PlavervsNPC,Magic.java,etc?

Uh i guess not. He says you only need to edit MagicCombat.java.

2kbarrows
September 17th, 2010, 22:41
Uh i guess not. He says you only need to edit MagicCombat.java.

Well in the other folders it has magic crap so....
And he gave his magic.java...

Kevin'
September 17th, 2010, 23:09
This is kinda simple, but good job.

owange
September 20th, 2010, 17:14
THX bro;)

Defil3d ko3d
September 26th, 2010, 10:52
Only bad thing about this is that you have to be near the other persons combat level, the spell counts as attacking someone (it shows hitsplats when cast) and that you need to be in the wilderness to cast it. Pretty good though.

unic rain
October 4th, 2010, 16:09
do more people have the problem that you can only veng your own combat? or is it just me?

Niator
October 4th, 2010, 16:18
do more people have the problem that you can only veng your own combat? or is it just me?
Well... The veng goes under attack so its just as attacking someone with an ice barrege or somthing.

vanweele
November 16th, 2010, 21:40
i added this but it wont let me log in on client? error connecting to server..no compile errors at all. so i addd the orignal magiccombat back and i can log in fine..anyone know?;s

SecretMe
November 17th, 2010, 14:01
i'll try this, thanks :)

Karbon
January 26th, 2011, 02:54
well done bruv.

hellman2741
February 24th, 2011, 20:29
How do I change it from not being an attack? Because right now it's like an attack and it will splash on people with magic defence...

Vesta Main
March 15th, 2011, 01:06
100 errors lol, simple but i get confused at the "under ancient part" Ancient=True, but where o.O

dds ledg
April 5th, 2011, 17:25
Very nice except I get 70 Errors...... It would take ages to write up but I will if you really need me to.

Steve
April 5th, 2011, 17:27
Very nice except I get 70 Errors...... It would take ages to write up but I will if you really need me to.

Lol, right click cmd, mark, highlight everything, press enter. Bion copied to clipboard.

dds ledg
April 5th, 2011, 19:18
Oh yeah, Lol, Anyway here are the errors I get:



Compiling tools...
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:594: illegal start of type
} else {
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:594: ';' expected
} else {
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:595: illegal start of type
if (freeze) {
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:595: <identifier> expected
if (freeze) {
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:595: ';' expected
if (freeze) {
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:595: illegal start of type
if (freeze) {
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:595: <identifier> expected
if (freeze) {
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:595: ';' expected
if (freeze) {
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:596: illegal start of type
if (opp.frozen == 0) {
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:596: ';' expected
if (opp.frozen == 0) {
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:596: <identifier> expected
if (opp.frozen == 0) {
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:596: illegal start of type
if (opp.frozen == 0) {
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:596: <identifier> expected
if (opp.frozen == 0) {
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:596: ';' expected
if (opp.frozen == 0) {
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:597: <identifier> expected
opp.frozen = fre
ezeDelay;
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:598: <identifier> expected
opp.graphics(369
);
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:598: illegal start of type
opp.graphics(369
);
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:599: <identifier> expected
opp.getWalkingQu
eue().reset();

^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:599: ';' expected
opp.getWalkingQu
eue().reset();

^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:600: ')' expected
} else {
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:609: invalid method declara
tion; return type required
reset();
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:610: illegal start of type
this.stop();
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:610: ';' expected
this.stop();
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:610: invalid method declara
tion; return type required
this.stop();
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:612: class, interface, or e
num expected
});
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:613: class, interface, or e
num expected
} else {
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:615: class, interface, or e
num expected
if (barrage) {
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:617: class, interface, or e
num expected
} else {
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:619: class, interface, or e
num expected
}
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:621: class, interface, or e
num expected
World.getInstance().getProjectileManager().fire(p. getLoc
ation(), opp.getLocation(), 50, 100, getProjectile(), 46, 31, opp);
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:622: class, interface, or e
num expected
World.getInstance().registerEvent(new Event(getMagicDela
y()) {
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:625: class, interface, or e
num expected
public void execute() {
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:629: class, interface, or e
num expected
opp.graphics(85, (100 << 16));
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:630: class, interface, or e
num expected
reset();
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:631: class, interface, or e
num expected
this.stop();
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:632: class, interface, or e
num expected
}
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:635: class, interface, or e
num expected
}
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:637: class, interface, or e
num expected
public void reset() {
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:639: class, interface, or e
num expected
anim = -1;
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:640: class, interface, or e
num expected
projectile = -1;
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:641: class, interface, or e
num expected
gfx2 = -1;
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:642: class, interface, or e
num expected
damage = -1;
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:643: class, interface, or e
num expected
req = -1;
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:644: class, interface, or e
num expected
}
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:645: class, interface, or e
num expected
public int getProjectile() {
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:647: class, interface, or e
num expected
}
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:648: class, interface, or e
num expected
public int getMagicDelay() {
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:650: class, interface, or e
num expected
if (p == null || p2 == null)
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:652: class, interface, or e
num expected
if (Misc.getDistance(p.getLocation().getX(), p.getLocation().get
Y(), p2.getLocation().getX(), p2.getLocation().getY()) == 1)
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:654: class, interface, or e
num expected
if (Misc.getDistance(p.getLocation().getX(), p.getLocation().get
Y(), p2.getLocation().getX(), p2.getLocation().getY()) == 2)
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:656: class, interface, or e
num expected
if (Misc.getDistance(p.getLocation().getX(), p.getLocation().get
Y(), p2.getLocation().getX(), p2.getLocation().getY()) == 3)
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:658: class, interface, or e
num expected
if (Misc.getDistance(p.getLocation().getX(), p.getLocation().get
Y(), p2.getLocation().getX(), p2.getLocation().getY()) == 4)
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:660: class, interface, or e
num expected
if (Misc.getDistance(p.getLocation().getX(), p.getLocation().get
Y(), p2.getLocation().getX(), p2.getLocation().getY()) == 5)
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:662: class, interface, or e
num expected
if (Misc.getDistance(p.getLocation().getX(), p.getLocation().get
Y(), p2.getLocation().getX(), p2.getLocation().getY()) == 6)
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:664: class, interface, or e
num expected
if (Misc.getDistance(p.getLocation().getX(), p.getLocation().get
Y(), p2.getLocation().getX(), p2.getLocation().getY()) == 7)
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:666: class, interface, or e
num expected
if (Misc.getDistance(p.getLocation().getX(), p.getLocation().get
Y(), p2.getLocation().getX(), p2.getLocation().getY()) == 8)
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:668: class, interface, or e
num expected
if (Misc.getDistance(p.getLocation().getX(), p.getLocation().get
Y(), p2.getLocation().getX(), p2.getLocation().getY()) == 9)
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:670: class, interface, or e
num expected
if (Misc.getDistance(p.getLocation().getX(), p.getLocation().get
Y(), p2.getLocation().getX(), p2.getLocation().getY()) == 10)
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:672: class, interface, or e
num expected
return 1;
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:673: class, interface, or e
num expected
}
^
src\com\rs2hd\model\Player.java:647: MagicCombat() is not public in com.rs2hd.co
ntent.skills.combat.MagicCombat; cannot be accessed from outside package
this.magiccombat = new MagicCombat();
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:560: cannot find symbol
symbol : method getProjectile()
location: class com.rs2hd.content.skills.combat.MagicCombat
World.getInstance().getProjectileManager().fire(p. getLoc
ation(), opp.getLocation(), 50, 100, getProjectile(), 46, 31, opp);

^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:561: cannot find symbol
symbol : method getMagicDelay()
location: class com.rs2hd.content.skills.combat.MagicCombat
World.getInstance().registerEvent(new Event(getMagicDela
y()) {
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:596: cannot find symbol
symbol: class frozen
if (opp.frozen == 0) {
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:597: package opp does not e
xist
opp.frozen = fre
ezeDelay;
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:598: package opp does not e
xist
opp.graphics(369
);
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:599: package opp does not e
xist
opp.getWalkingQu
eue().reset();
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:581: cannot find symbol
symbol: method reset()
reset();

^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:602: cannot find symbol
symbol : method reset()
location: class com.rs2hd.content.skills.combat.MagicCombat
reset();
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:603: cannot find symbol
symbol : method stop()
location: class com.rs2hd.content.skills.combat.MagicCombat
this.stop();
^
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
70 errors
Complete.
Press any key to continue . . .


Any Ideas?

Jon
April 5th, 2011, 19:23
Oh yeah, Lol, Anyway here are the errors I get:



Compiling tools...
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:594: illegal start of type
} else {
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:594: ';' expected
} else {
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:595: illegal start of type
if (freeze) {
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:595: <identifier> expected
if (freeze) {
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:595: ';' expected
if (freeze) {
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:595: illegal start of type
if (freeze) {
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:595: <identifier> expected
if (freeze) {
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:595: ';' expected
if (freeze) {
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:596: illegal start of type
if (opp.frozen == 0) {
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:596: ';' expected
if (opp.frozen == 0) {
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:596: <identifier> expected
if (opp.frozen == 0) {
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:596: illegal start of type
if (opp.frozen == 0) {
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:596: <identifier> expected
if (opp.frozen == 0) {
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:596: ';' expected
if (opp.frozen == 0) {
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:597: <identifier> expected
opp.frozen = fre
ezeDelay;
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:598: <identifier> expected
opp.graphics(369
);
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:598: illegal start of type
opp.graphics(369
);
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:599: <identifier> expected
opp.getWalkingQu
eue().reset();

^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:599: ';' expected
opp.getWalkingQu
eue().reset();

^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:600: ')' expected
} else {
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:609: invalid method declara
tion; return type required
reset();
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:610: illegal start of type
this.stop();
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:610: ';' expected
this.stop();
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:610: invalid method declara
tion; return type required
this.stop();
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:612: class, interface, or e
num expected
});
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:613: class, interface, or e
num expected
} else {
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:615: class, interface, or e
num expected
if (barrage) {
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:617: class, interface, or e
num expected
} else {
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:619: class, interface, or e
num expected
}
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:621: class, interface, or e
num expected
World.getInstance().getProjectileManager().fire(p. getLoc
ation(), opp.getLocation(), 50, 100, getProjectile(), 46, 31, opp);
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:622: class, interface, or e
num expected
World.getInstance().registerEvent(new Event(getMagicDela
y()) {
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:625: class, interface, or e
num expected
public void execute() {
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:629: class, interface, or e
num expected
opp.graphics(85, (100 << 16));
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:630: class, interface, or e
num expected
reset();
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:631: class, interface, or e
num expected
this.stop();
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:632: class, interface, or e
num expected
}
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:635: class, interface, or e
num expected
}
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:637: class, interface, or e
num expected
public void reset() {
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:639: class, interface, or e
num expected
anim = -1;
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:640: class, interface, or e
num expected
projectile = -1;
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:641: class, interface, or e
num expected
gfx2 = -1;
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:642: class, interface, or e
num expected
damage = -1;
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:643: class, interface, or e
num expected
req = -1;
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:644: class, interface, or e
num expected
}
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:645: class, interface, or e
num expected
public int getProjectile() {
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:647: class, interface, or e
num expected
}
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:648: class, interface, or e
num expected
public int getMagicDelay() {
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:650: class, interface, or e
num expected
if (p == null || p2 == null)
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:652: class, interface, or e
num expected
if (Misc.getDistance(p.getLocation().getX(), p.getLocation().get
Y(), p2.getLocation().getX(), p2.getLocation().getY()) == 1)
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:654: class, interface, or e
num expected
if (Misc.getDistance(p.getLocation().getX(), p.getLocation().get
Y(), p2.getLocation().getX(), p2.getLocation().getY()) == 2)
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:656: class, interface, or e
num expected
if (Misc.getDistance(p.getLocation().getX(), p.getLocation().get
Y(), p2.getLocation().getX(), p2.getLocation().getY()) == 3)
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:658: class, interface, or e
num expected
if (Misc.getDistance(p.getLocation().getX(), p.getLocation().get
Y(), p2.getLocation().getX(), p2.getLocation().getY()) == 4)
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:660: class, interface, or e
num expected
if (Misc.getDistance(p.getLocation().getX(), p.getLocation().get
Y(), p2.getLocation().getX(), p2.getLocation().getY()) == 5)
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:662: class, interface, or e
num expected
if (Misc.getDistance(p.getLocation().getX(), p.getLocation().get
Y(), p2.getLocation().getX(), p2.getLocation().getY()) == 6)
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:664: class, interface, or e
num expected
if (Misc.getDistance(p.getLocation().getX(), p.getLocation().get
Y(), p2.getLocation().getX(), p2.getLocation().getY()) == 7)
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:666: class, interface, or e
num expected
if (Misc.getDistance(p.getLocation().getX(), p.getLocation().get
Y(), p2.getLocation().getX(), p2.getLocation().getY()) == 8)
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:668: class, interface, or e
num expected
if (Misc.getDistance(p.getLocation().getX(), p.getLocation().get
Y(), p2.getLocation().getX(), p2.getLocation().getY()) == 9)
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:670: class, interface, or e
num expected
if (Misc.getDistance(p.getLocation().getX(), p.getLocation().get
Y(), p2.getLocation().getX(), p2.getLocation().getY()) == 10)
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:672: class, interface, or e
num expected
return 1;
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:673: class, interface, or e
num expected
}
^
src\com\rs2hd\model\Player.java:647: MagicCombat() is not public in com.rs2hd.co
ntent.skills.combat.MagicCombat; cannot be accessed from outside package
this.magiccombat = new MagicCombat();
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:560: cannot find symbol
symbol : method getProjectile()
location: class com.rs2hd.content.skills.combat.MagicCombat
World.getInstance().getProjectileManager().fire(p. getLoc
ation(), opp.getLocation(), 50, 100, getProjectile(), 46, 31, opp);

^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:561: cannot find symbol
symbol : method getMagicDelay()
location: class com.rs2hd.content.skills.combat.MagicCombat
World.getInstance().registerEvent(new Event(getMagicDela
y()) {
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:596: cannot find symbol
symbol: class frozen
if (opp.frozen == 0) {
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:597: package opp does not e
xist
opp.frozen = fre
ezeDelay;
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:598: package opp does not e
xist
opp.graphics(369
);
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:599: package opp does not e
xist
opp.getWalkingQu
eue().reset();
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:581: cannot find symbol
symbol: method reset()
reset();

^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:602: cannot find symbol
symbol : method reset()
location: class com.rs2hd.content.skills.combat.MagicCombat
reset();
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:603: cannot find symbol
symbol : method stop()
location: class com.rs2hd.content.skills.combat.MagicCombat
this.stop();
^
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
70 errors
Complete.
Press any key to continue . . .


Any Ideas?

you fucked up with a bracket. (curly thing) :L

dds ledg
April 5th, 2011, 20:18
Lol Curly thing, Anyway I added more brackets and now I have 43 errors:



Compiling tools...
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:595: ')' expected
} else {
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:614: class, interface, or e
num expected
} else {
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:616: class, interface, or e
num expected
if (barrage) {
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:618: class, interface, or e
num expected
} else {
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:620: class, interface, or e
num expected
}
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:622: class, interface, or e
num expected
World.getInstance().getProjectileManager().fire(p. getLoc
ation(), opp.getLocation(), 50, 100, getProjectile(), 46, 31, opp);
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:623: class, interface, or e
num expected
World.getInstance().registerEvent(new Event(getMagicDela
y()) {
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:626: class, interface, or e
num expected
public void execute() {
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:630: class, interface, or e
num expected
opp.graphics(85, (100 << 16));
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:631: class, interface, or e
num expected
reset();
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:632: class, interface, or e
num expected
this.stop();
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:633: class, interface, or e
num expected
}
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:636: class, interface, or e
num expected
}
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:638: class, interface, or e
num expected
public void reset() {
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:640: class, interface, or e
num expected
anim = -1;
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:641: class, interface, or e
num expected
projectile = -1;
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:642: class, interface, or e
num expected
gfx2 = -1;
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:643: class, interface, or e
num expected
damage = -1;
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:644: class, interface, or e
num expected
req = -1;
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:645: class, interface, or e
num expected
}
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:646: class, interface, or e
num expected
public int getProjectile() {
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:648: class, interface, or e
num expected
}
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:649: class, interface, or e
num expected
public int getMagicDelay() {
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:651: class, interface, or e
num expected
if (p == null || p2 == null)
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:653: class, interface, or e
num expected
if (Misc.getDistance(p.getLocation().getX(), p.getLocation().get
Y(), p2.getLocation().getX(), p2.getLocation().getY()) == 1)
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:655: class, interface, or e
num expected
if (Misc.getDistance(p.getLocation().getX(), p.getLocation().get
Y(), p2.getLocation().getX(), p2.getLocation().getY()) == 2)
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:657: class, interface, or e
num expected
if (Misc.getDistance(p.getLocation().getX(), p.getLocation().get
Y(), p2.getLocation().getX(), p2.getLocation().getY()) == 3)
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:659: class, interface, or e
num expected
if (Misc.getDistance(p.getLocation().getX(), p.getLocation().get
Y(), p2.getLocation().getX(), p2.getLocation().getY()) == 4)
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:661: class, interface, or e
num expected
if (Misc.getDistance(p.getLocation().getX(), p.getLocation().get
Y(), p2.getLocation().getX(), p2.getLocation().getY()) == 5)
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:663: class, interface, or e
num expected
if (Misc.getDistance(p.getLocation().getX(), p.getLocation().get
Y(), p2.getLocation().getX(), p2.getLocation().getY()) == 6)
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:665: class, interface, or e
num expected
if (Misc.getDistance(p.getLocation().getX(), p.getLocation().get
Y(), p2.getLocation().getX(), p2.getLocation().getY()) == 7)
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:667: class, interface, or e
num expected
if (Misc.getDistance(p.getLocation().getX(), p.getLocation().get
Y(), p2.getLocation().getX(), p2.getLocation().getY()) == 8)
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:669: class, interface, or e
num expected
if (Misc.getDistance(p.getLocation().getX(), p.getLocation().get
Y(), p2.getLocation().getX(), p2.getLocation().getY()) == 9)
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:671: class, interface, or e
num expected
if (Misc.getDistance(p.getLocation().getX(), p.getLocation().get
Y(), p2.getLocation().getX(), p2.getLocation().getY()) == 10)
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:673: class, interface, or e
num expected
return 1;
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:674: class, interface, or e
num expected
}
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:560: cannot find symbol
symbol : method getProjectile()
location: class com.rs2hd.content.skills.combat.MagicCombat
World.getInstance().getProjectileManager().fire(p. getLoc
ation(), opp.getLocation(), 50, 100, getProjectile(), 46, 31, opp);

^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:561: cannot find symbol
symbol : method getMagicDelay()
location: class com.rs2hd.content.skills.combat.MagicCombat
World.getInstance().registerEvent(new Event(getMagicDela
y()) {
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:581: cannot find symbol
symbol: method reset()
reset();

^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:603: cannot find symbol
symbol : method reset()
location: class com.rs2hd.content.skills.combat.MagicCombat
reset();
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:604: cannot find symbol
symbol : method stop()
location: class com.rs2hd.content.skills.combat.MagicCombat
this.stop();
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:610: cannot find symbol
symbol : method reset()
location: class com.rs2hd.content.skills.combat.MagicCombat
reset();
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:611: cannot find symbol
symbol : method stop()
location: class com.rs2hd.content.skills.combat.MagicCombat
this.stop();
^
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
43 errors
Complete.
Press any key to continue . . .


I really have no clue where to put the other Brackets. Ive put my MagicCombat.java into Pastebin Here (Only the registered members can see the link.) so please could someone help me and fix the errors.

Jon
April 5th, 2011, 21:37
Lol Curly thing, Anyway I added more brackets and now I have 43 errors:



Compiling tools...
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:595: ')' expected
} else {
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:614: class, interface, or e
num expected
} else {
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:616: class, interface, or e
num expected
if (barrage) {
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:618: class, interface, or e
num expected
} else {
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:620: class, interface, or e
num expected
}
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:622: class, interface, or e
num expected
World.getInstance().getProjectileManager().fire(p. getLoc
ation(), opp.getLocation(), 50, 100, getProjectile(), 46, 31, opp);
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:623: class, interface, or e
num expected
World.getInstance().registerEvent(new Event(getMagicDela
y()) {
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:626: class, interface, or e
num expected
public void execute() {
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:630: class, interface, or e
num expected
opp.graphics(85, (100 << 16));
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:631: class, interface, or e
num expected
reset();
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:632: class, interface, or e
num expected
this.stop();
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:633: class, interface, or e
num expected
}
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:636: class, interface, or e
num expected
}
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:638: class, interface, or e
num expected
public void reset() {
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:640: class, interface, or e
num expected
anim = -1;
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:641: class, interface, or e
num expected
projectile = -1;
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:642: class, interface, or e
num expected
gfx2 = -1;
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:643: class, interface, or e
num expected
damage = -1;
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:644: class, interface, or e
num expected
req = -1;
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:645: class, interface, or e
num expected
}
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:646: class, interface, or e
num expected
public int getProjectile() {
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:648: class, interface, or e
num expected
}
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:649: class, interface, or e
num expected
public int getMagicDelay() {
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:651: class, interface, or e
num expected
if (p == null || p2 == null)
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:653: class, interface, or e
num expected
if (Misc.getDistance(p.getLocation().getX(), p.getLocation().get
Y(), p2.getLocation().getX(), p2.getLocation().getY()) == 1)
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:655: class, interface, or e
num expected
if (Misc.getDistance(p.getLocation().getX(), p.getLocation().get
Y(), p2.getLocation().getX(), p2.getLocation().getY()) == 2)
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:657: class, interface, or e
num expected
if (Misc.getDistance(p.getLocation().getX(), p.getLocation().get
Y(), p2.getLocation().getX(), p2.getLocation().getY()) == 3)
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:659: class, interface, or e
num expected
if (Misc.getDistance(p.getLocation().getX(), p.getLocation().get
Y(), p2.getLocation().getX(), p2.getLocation().getY()) == 4)
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:661: class, interface, or e
num expected
if (Misc.getDistance(p.getLocation().getX(), p.getLocation().get
Y(), p2.getLocation().getX(), p2.getLocation().getY()) == 5)
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:663: class, interface, or e
num expected
if (Misc.getDistance(p.getLocation().getX(), p.getLocation().get
Y(), p2.getLocation().getX(), p2.getLocation().getY()) == 6)
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:665: class, interface, or e
num expected
if (Misc.getDistance(p.getLocation().getX(), p.getLocation().get
Y(), p2.getLocation().getX(), p2.getLocation().getY()) == 7)
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:667: class, interface, or e
num expected
if (Misc.getDistance(p.getLocation().getX(), p.getLocation().get
Y(), p2.getLocation().getX(), p2.getLocation().getY()) == 8)
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:669: class, interface, or e
num expected
if (Misc.getDistance(p.getLocation().getX(), p.getLocation().get
Y(), p2.getLocation().getX(), p2.getLocation().getY()) == 9)
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:671: class, interface, or e
num expected
if (Misc.getDistance(p.getLocation().getX(), p.getLocation().get
Y(), p2.getLocation().getX(), p2.getLocation().getY()) == 10)
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:673: class, interface, or e
num expected
return 1;
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:674: class, interface, or e
num expected
}
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:560: cannot find symbol
symbol : method getProjectile()
location: class com.rs2hd.content.skills.combat.MagicCombat
World.getInstance().getProjectileManager().fire(p. getLoc
ation(), opp.getLocation(), 50, 100, getProjectile(), 46, 31, opp);

^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:561: cannot find symbol
symbol : method getMagicDelay()
location: class com.rs2hd.content.skills.combat.MagicCombat
World.getInstance().registerEvent(new Event(getMagicDela
y()) {
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:581: cannot find symbol
symbol: method reset()
reset();

^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:603: cannot find symbol
symbol : method reset()
location: class com.rs2hd.content.skills.combat.MagicCombat
reset();
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:604: cannot find symbol
symbol : method stop()
location: class com.rs2hd.content.skills.combat.MagicCombat
this.stop();
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:610: cannot find symbol
symbol : method reset()
location: class com.rs2hd.content.skills.combat.MagicCombat
reset();
^
src\com\rs2hd\content\skills\combat\MagicCombat.ja va:611: cannot find symbol
symbol : method stop()
location: class com.rs2hd.content.skills.combat.MagicCombat
this.stop();
^
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
43 errors
Complete.
Press any key to continue . . .


I really have no clue where to put the other Brackets. Ive put my MagicCombat.java into Pastebin Here (Only the registered members can see the link.) so please could someone help me and fix the errors.

You can't add it just anywhere, you need to read through your code and find where it is missing a closing brace

40 hit kos
April 6th, 2011, 22:04
i'm using this, although you need to be wearing mage gear for it to work, lol. :/ or else it splashes >:I