PDA

View Full Version : How to make a spade dig then teleport you in a certain area rs2hd 562.



crezzy
June 18th, 2010, 10:03
I am only doing this coz some idiot said i couldnt do it on my advertisement lol i know this is simple so no flame pl0x lol.

anyway in itempackethandler.java
Add


case 952:
if(player.inVerac()) {
player.animate(831);
player.tele(3553, 9711, 0);
player.graphics(1910);
}
break;

and in player.java add


public boolean inVerac() {
if(getLocation().getX() >= 3553 && getLocation().getX() <= 3560 && getLocation().getY() >= 3295 && getLocation().getY() <= 3301) {
return true;
} else {
return false;
}
}

What it dose is if your on top of verac hill you till teleport into barrows doing the dig emote and a cool graphic (GFX)
Havent tested it my self but i cant see why it wouldnt work looks fine to me :D

100% credits me

The sup
June 18th, 2010, 10:23
Kind of strange tutorial, :D

But good job.

Gavo
June 18th, 2010, 10:31
Nice tut

crezzy
June 18th, 2010, 13:31
thankz i guess this is extremly easy and i wouldnt sugjest using it for actual barrows as it will keep doing the emote over and over and theres a timer on barrows so u dig be4 u tele, i just wrote this from memory.

Spear
June 18th, 2010, 13:35
Very nice. 10/10

Break
June 18th, 2010, 13:39
Good snippet :P.

Aaron
June 18th, 2010, 13:40
Nice Guide/Tut.

jamie
June 19th, 2010, 05:23
Lol this is funny it anonys my players :p

Nathan'
June 19th, 2010, 05:27
cant you add some p.requestface bla bla bla at the end of the code to make the character stop doing the emote
for example


p.appearanceUpdateReq = true;
p.updateReq = true;
break; Clearly converting to rs2hd 562 as this is codeusa

yourgirlwantsme
June 21st, 2010, 15:00
how do i press on an object and an npc will pop up how?

Nosz
June 23rd, 2010, 19:06
how do i press on an object and an npc will pop up how?


easy stuff if u started at a lower deob you should know this

crezzy
June 23rd, 2010, 20:37
uh the spawn npc method maybe lol?

Gawdz
June 23rd, 2010, 22:05
wow thanks crezzy needed this for barrows :p

Malik
June 25th, 2010, 15:54
I can't find any possible reason why you would want a spade to do that, unless maybe a clue scroll/barrows related stuff?But its still nice to have I guess.

Perlisos
June 25th, 2010, 15:55
hahaha i read the titlle and i thought that would be holarious to have a spade dig and teleport you to moles, or something. that cool too bad i dont code 562

crezzy
June 25th, 2010, 16:46
Lol i cant see how you guys think this is so good lol its so easy :s lol