PDA

View Full Version : Changing/adding NPC attacks on [562] RS2hd



Geo
July 20th, 2010, 15:23
Removed it cause it's shit in my opinion, lol... I'll probably remake this boss making guide later...

Emily
July 20th, 2010, 15:30
Nice simple tutorial i guess. But if your going to use KBD, or Corporal Beast, you would need to use projectiles for their special attacks. Also which bosses cause you to log out? Because unless you changed something, it should all work out fine.

tedhead2
December 29th, 2010, 17:52
I KNOW THIS IS REALLYYYY OLD, BUT I'M POSTING ANYWAY!

Hi, I'm trying to make a boss, and I need to know how to increase his HP and combat level.

Another question, how would I make an attack hit everyone around him(like, 5x5 area)?

And, yes, another question. How do I make projectiles, I don't him to cast a spell, and no one knows who it gonna get hit.

Cart
December 29th, 2010, 17:56
I KNOW THIS IS REALLYYYY OLD, BUT I'M POSTING ANYWAY!

Hi, I'm trying to make a boss, and I need to know how to increase his HP and combat level.

Another question, how would I make an attack hit everyone around him(like, 5x5 area)?

And, yes, another question. How do I make projectiles, I don't him to cast a spell, and no one knows who it gonna get hit.

Npcs.xml for combat level and HP (if hes not already added).

Use this code ( I know, its messy, CBF).


<npc><id>NPCID</id><location><x>Coords</x><y>Coords</y><z>Floor</z></location></npc> //NPC NAME(for searching)

tedhead2
December 29th, 2010, 19:55
Npcs.xml for combat level and HP (if hes not already added).

Use this code ( I know, its messy, CBF).


<npc><id>NPCID</id><location><x>Coords</x><y>Coords</y><z>Floor</z></location></npc> //NPC NAME(for searching)

Well, thank you i guess cart lol

And i found out that editing the xml file doesn't work :O i think its a client edit?

tedhead2
December 29th, 2010, 20:58
Yes, another post to bumb this up, i need teh helpz!


Compiling core...
src\emily\rs2hd\content\skills\combat\NpcVsPlayer. java:1241: cannot find symbol
symbol : variable pl
location: class emily.rs2hd.content.skills.combat.NpcVsPlayer
pl.graphics(382);
^
src\emily\rs2hd\content\skills\combat\NpcVsPlayer. java:1242: cannot find symbol
symbol : variable PROTECTFROMMAGIC
location: class emily.rs2hd.content.skills.combat.NpcVsPlayer
if(PROTECTFROMMAGIC == true){
^
src\emily\rs2hd\content\skills\combat\NpcVsPlayer. java:1243: cannot find symbol
symbol : variable pl
location: class emily.rs2hd.content.skills.combat.NpcVsPlayer
pl.graphics(382);
^
src\emily\rs2hd\content\skills\combat\NpcVsPlayer. java:1246: cannot find symbol
symbol : variable pl
location: class emily.rs2hd.content.skills.combat.NpcVsPlayer
pl.graphics(382);
^
src\emily\rs2hd\content\skills\combat\NpcVsPlayer. java:1253: cannot find symbol
symbol : variable PROTECTFROMMELEE
location: class emily.rs2hd.content.skills.combat.NpcVsPlayer
if(PROTECTFROMMELEE == true){
^
5 errors
Compiling loginserver...
src\emily\rs2hd\content\skills\combat\NpcVsPlayer. java:1241: cannot find symbol
symbol : variable pl
location: class emily.rs2hd.content.skills.combat.NpcVsPlayer
pl.graphics(382);
^
src\emily\rs2hd\content\skills\combat\NpcVsPlayer. java:1242: cannot find symbol
symbol : variable PROTECTFROMMAGIC
location: class emily.rs2hd.content.skills.combat.NpcVsPlayer
if(PROTECTFROMMAGIC == true){
^
src\emily\rs2hd\content\skills\combat\NpcVsPlayer. java:1243: cannot find symbol
symbol : variable pl
location: class emily.rs2hd.content.skills.combat.NpcVsPlayer
pl.graphics(382);
^
src\emily\rs2hd\content\skills\combat\NpcVsPlayer. java:1246: cannot find symbol
symbol : variable pl
location: class emily.rs2hd.content.skills.combat.NpcVsPlayer
pl.graphics(382);
^
src\emily\rs2hd\content\skills\combat\NpcVsPlayer. java:1253: cannot find symbol
symbol : variable PROTECTFROMMELEE
location: class emily.rs2hd.content.skills.combat.NpcVsPlayer
if(PROTECTFROMMELEE == true){
^
5 errors
Compiling packet handlers...
src\emily\rs2hd\content\skills\combat\NpcVsPlayer. java:1241: cannot find symbol
symbol : variable pl
location: class emily.rs2hd.content.skills.combat.NpcVsPlayer
pl.graphics(382);
^
src\emily\rs2hd\content\skills\combat\NpcVsPlayer. java:1242: cannot find symbol
symbol : variable PROTECTFROMMAGIC
location: class emily.rs2hd.content.skills.combat.NpcVsPlayer
if(PROTECTFROMMAGIC == true){
^
src\emily\rs2hd\content\skills\combat\NpcVsPlayer. java:1243: cannot find symbol
symbol : variable pl
location: class emily.rs2hd.content.skills.combat.NpcVsPlayer
pl.graphics(382);
^
src\emily\rs2hd\content\skills\combat\NpcVsPlayer. java:1246: cannot find symbol
symbol : variable pl
location: class emily.rs2hd.content.skills.combat.NpcVsPlayer
pl.graphics(382);
^
src\emily\rs2hd\content\skills\combat\NpcVsPlayer. java:1253: cannot find symbol
symbol : variable PROTECTFROMMELEE
location: class emily.rs2hd.content.skills.combat.NpcVsPlayer
if(PROTECTFROMMELEE == true){
^
5 errors
Compiling logging system...
src\emily\rs2hd\content\skills\combat\NpcVsPlayer. java:1241: cannot find symbol
symbol : variable pl
location: class emily.rs2hd.content.skills.combat.NpcVsPlayer
pl.graphics(382);
^
src\emily\rs2hd\content\skills\combat\NpcVsPlayer. java:1242: cannot find symbol
symbol : variable PROTECTFROMMAGIC
location: class emily.rs2hd.content.skills.combat.NpcVsPlayer
if(PROTECTFROMMAGIC == true){
^
src\emily\rs2hd\content\skills\combat\NpcVsPlayer. java:1243: cannot find symbol
symbol : variable pl
location: class emily.rs2hd.content.skills.combat.NpcVsPlayer
pl.graphics(382);
^
src\emily\rs2hd\content\skills\combat\NpcVsPlayer. java:1246: cannot find symbol
symbol : variable pl
location: class emily.rs2hd.content.skills.combat.NpcVsPlayer
pl.graphics(382);
^
src\emily\rs2hd\content\skills\combat\NpcVsPlayer. java:1253: cannot find symbol
symbol : variable PROTECTFROMMELEE
location: class emily.rs2hd.content.skills.combat.NpcVsPlayer
if(PROTECTFROMMELEE == true){
^
5 errors
Complete.
src\emily\rs2hd\content\skills\combat\NpcVsPlayer. java:1241: cannot find symbol
symbol : variable pl
location: class emily.rs2hd.content.skills.combat.NpcVsPlayer
pl.graphics(382);
^
src\emily\rs2hd\content\skills\combat\NpcVsPlayer. java:1242: cannot find symbol
symbol : variable PROTECTFROMMAGIC
location: class emily.rs2hd.content.skills.combat.NpcVsPlayer
if(PROTECTFROMMAGIC == true){
^
src\emily\rs2hd\content\skills\combat\NpcVsPlayer. java:1243: cannot find symbol
symbol : variable pl
location: class emily.rs2hd.content.skills.combat.NpcVsPlayer
pl.graphics(382);
^
src\emily\rs2hd\content\skills\combat\NpcVsPlayer. java:1246: cannot find symbol
symbol : variable pl
location: class emily.rs2hd.content.skills.combat.NpcVsPlayer
pl.graphics(382);
^
src\emily\rs2hd\content\skills\combat\NpcVsPlayer. java:1253: cannot find symbol
symbol : variable PROTECTFROMMELEE
location: class emily.rs2hd.content.skills.combat.NpcVsPlayer
if(PROTECTFROMMELEE == true){
^
5 errors
Complete.
Press any key to continue . . .

What is wrong?! i did everything correctly.

Cart
December 29th, 2010, 20:59
Well, thank you i guess cart lol

And i found out that editing the xml file doesn't work :O i think its a client edit?

Oh, I was high/asleep when I posted that lol.

tedhead2
December 29th, 2010, 21:50
Oh, I was high/asleep when I posted that lol.

Doesn't matter, i did it myself, infact, im gunna post a tutorail on how o add a npc that ISN'T added(like armoured zombies)

lllllllllllllllllllllllll
February 11th, 2011, 05:23
Yes, another post to bumb this up, i need teh helpz!



What is wrong?! i did everything correctly.

Try p. instead of pl.
Or, instead of pl. try player.

David
February 13th, 2011, 16:38
Yes, another post to bumb this up, i need teh helpz!



What is wrong?! i did everything correctly.

It's
if(p.PROTECTFROMMAGIC == true) {



if(p.PROTECTFROMMELEE == true) {
and

if(p.PROTECTFROMRANGE == true) {

not,

if(PROTECTFROMMAGIC == true) {

Lukedawesome
February 13th, 2011, 17:23
good base really, not bad at all

Geo
February 13th, 2011, 19:59
It's
if(p.PROTECTFROMMAGIC == true) {



if(p.PROTECTFROMMELEE == true) {
and

if(p.PROTECTFROMRANGE == true) {

not,

if(PROTECTFROMMAGIC == true) {

Yeah lol, i noticed that just now, anyway you only use "pl" if you want the boss to attack all the players around it...

David
February 13th, 2011, 21:03
Yeah lol, i noticed that just now, anyway you only use "pl" if you want the boss to attack all the players around it...

No, 'pl' isn't multiple players, pl stands for 'Player' which is pretty much the same as 'p'.

Geo
February 19th, 2011, 15:34
No, 'pl' isn't multiple players, pl stands for 'Player' which is pretty much the same as 'p'.

nah that's where you're wrong....

"for(final Player pl : World.getWorld().getPlayers()) {"

if you've got that line of code, "pl." will make the npc attack all players...

OFFTOPIC: here's some advice, go master your grammar before you use periods... there's a shit load of grammatical terms you'll need to know before you're ready to use periods