PDA

View Full Version : 562 rs2hd npc dialogues



scootersam
July 20th, 2010, 01:51
well this is a npc dialogue tut, i stugled on this untill i downloaded cjs source and looked how to do it...
so 50% creds to him and the rest to me but here i go

ok open up dialogue options.java and npcpacket handler
we will start with npc packet handler

so you want to add this part in, it makes the npc start the dialogue.

if(npc.getId() == ###) {
p.turnTemporarilyTo(npc);
npc.turnTemporarilyTo(p);
p.getActionSender().sendChatboxInterface(241);
p.getActionSender().animateInterface(9849, 241, 2);
p.getActionSender().sendNPCOnInterface(####, 241, 2);
p.getActionSender().sendString("npc namet", 241, 3);
p.getActionSender().sendString("your start chat of your dialogue", 241, 4);
p.what u will difine in player.java = 1;
}

#### = npc id
you want to add your text in there and your npc ids etc
now open up dialogueoptions.java
and add this

if(player.DukeD == 1) {
player.what u wiill difine = 0;
this.sendDialouge(player, "Hi .", ""+player.getUsername(), 0);
player.what you will difine = 2;
break;
}
}
at the end just before =2 that goes on tochatbox number 2 so for each chatbox make sure thats an extra number.. and for the top one that has to be the same as the one on the bottom accept the first chatbox is allways 0

ok nwo to difine your dialogue
open player.java
and add this

public int (the name you want but without brackets);
and thats it i hope i helped out =/

Snowz
July 20th, 2010, 06:44
It's "Defiine" and it's ok i have my own ways of doing this :D

Emily
July 20th, 2010, 06:49
No offense but if you copied this from his source, then he gets all the credits, plus there was a post tutorial on this on r u n 3 server, this is the best way to do dialogues thou.

scootersam
July 20th, 2010, 08:31
well i look at other sources tbh and i think wtf how i do it? then had a look on cjs and it was easyer cus it was so clean lol, and do u know how to fix that problem with food on it?

crezzy
July 21st, 2010, 01:18
lol at this.

scootersam
July 21st, 2010, 08:52
whats so funny? all the tuts i saw explained nothin

yourgirlwantsme
July 21st, 2010, 14:50
lol at this.

the 569 kiddo ^ , dont talk, ur the biggest leecher on forum

scootersam
July 21st, 2010, 18:19
me or crezzy? lol

Divine-X
July 21st, 2010, 18:23
Ummmmmmmmmm Nick/ClawzPk/Gods of war, posted a tutorial on this already. And it made more sense to me. .-.

Ficho
October 11th, 2010, 16:06
me or crezzy? lol

Crezzy ofc, hes the leecher one =o

Stacx
October 11th, 2010, 16:18
This isn't a good way to do that though ;P; It will make your handler massive and dirty.

Ficho
October 11th, 2010, 16:19
This isn't a good way to do that though ;P; It will make your handler massive and dirty.

Lol, well.. thats kinda true too =/ But nice for making a tut :)

The Only Cj
October 11th, 2010, 16:21
only recent source i released was EventScape. And i was using Tree's dialogue, so no credits to me on this.. although i did teach some people how to use..

davidpaceway
May 1st, 2011, 05:04
Tbh This doesn't really make sense
P.S
My frist troll haaa

Lukedawesome
May 1st, 2011, 05:07
Huge grave dig, but I suggest creating a new Class for each major dialogue. Easier to do IMO.

David
May 1st, 2011, 10:36
Huge grave dig, but I suggest creating a new Class for each major dialogue. Easier to do IMO.

I think Emily showed us a very good way to do dialogues in her Easter Event.

Sam23
May 1st, 2011, 10:39
Wow, a thread from october + hes banned :L