What so if you click on a object, it'l make a npc dialogue open. E.g for banking.. When you click the booth it'l make the banker speak..
|
|
In this tut im going to tell you how to put dialogues with any object. Don't say this was posted 100 times or so becuz i didnt see it here on rune-server.
Purpose: To add basically a "command" to an object.
Difficulty: 1...
Tested On: Bulby
Anyways, heres the tut.
Go into your server and click any object that dosent do anything [ill be using a door as an example for now], click it alot of times.
Then in your runserver cmd box, it should say something like:
[Username] Unhandled Packet: #
Where i put "#" it will show a number in that spot.
Now, remember that number and go into objectoption1.java and add a case that looks something like this:
Where i put:Code:case #: //Note here p.frames.showChatboxInterface(p, 242); p.frames.animateInterfaceId(p, 9815, 242, 2); p.frames.setNPCId(p, 4288, 242, 2); p.frames.setString(p, "Ajjat", 242, 3); p.frames.setString(p, "Text Here [Line 1]", 242, 4); p.frames.setString(p, "Text Here [Line 2]", 242, 5); break;
Put anything you want there, its basically like adding a command between the case # and the break.Code:p.frames.showChatboxInterface(p, 242); p.frames.animateInterfaceId(p, 9815, 242, 2); p.frames.setNPCId(p, 4288, 242, 2); p.frames.setString(p, "Ajjat", 242, 3); p.frames.setString(p, "Text Here [Line 1]", 242, 4); p.frames.setString(p, "Text Here [Line 2]", 242, 5);
The code that i should you above is a dialogue code, if i click on the object that dosent work [that i used for the case] it will randomly come up with a dialogue Ajjat is saying.
Save, compile, run, and click the object that didnt work before and it should do what you put in.![]()

What so if you click on a object, it'l make a npc dialogue open. E.g for banking.. When you click the booth it'l make the banker speak..
Yeah, then you could request to open the bank after the dialogue is finshed, that would be pretty good banking.
i cant find ojectoption1.java.. but i can find Objectinteract.java so i added it there and got these errors..
Code:Compiling Quest-Isle 525 1/13 Complete 2/13 Complete 3/13 Complete 4/13 Complete 5/13 Complete 6/13 Complete 7/13 Complete 8/13 Complete 9/13 Complete src\com\rs2hd\packethandler\ObjectInteract.java:59: cannot find symbol symbol : variable p location: class com.rs2hd.packethandler.ObjectInteract p.frames.showChatboxInterface(p, 242); ^ src\com\rs2hd\packethandler\ObjectInteract.java:59: package p does not exist p.frames.showChatboxInterface(p, 242); ^ src\com\rs2hd\packethandler\ObjectInteract.java:60: cannot find symbol symbol : variable p location: class com.rs2hd.packethandler.ObjectInteract p.frames.animateInterfaceId(p, 9815, 242, 2); ^ src\com\rs2hd\packethandler\ObjectInteract.java:60: package p does not exist p.frames.animateInterfaceId(p, 9815, 242, 2); ^ src\com\rs2hd\packethandler\ObjectInteract.java:61: cannot find symbol symbol : variable p location: class com.rs2hd.packethandler.ObjectInteract p.frames.setNPCId(p, 4288, 242, 2); ^ src\com\rs2hd\packethandler\ObjectInteract.java:61: package p does not exist p.frames.setNPCId(p, 4288, 242, 2); ^ src\com\rs2hd\packethandler\ObjectInteract.java:62: cannot find symbol symbol : variable p location: class com.rs2hd.packethandler.ObjectInteract p.frames.setString(p, "Ajjat", 242, 3); ^ src\com\rs2hd\packethandler\ObjectInteract.java:62: package p does not exist p.frames.setString(p, "Ajjat", 242, 3); ^ src\com\rs2hd\packethandler\ObjectInteract.java:63: cannot find symbol symbol : variable p location: class com.rs2hd.packethandler.ObjectInteract p.frames.setString(p, "hi mom [Line 1]", 242, 4); ^ src\com\rs2hd\packethandler\ObjectInteract.java:63: package p does not exist p.frames.setString(p, "hi mom [Line 1]", 242, 4); ^ src\com\rs2hd\packethandler\ObjectInteract.java:64: cannot find symbol symbol : variable p location: class com.rs2hd.packethandler.ObjectInteract p.frames.setString(p, "sup [Line 2]", 242, 5); ^ src\com\rs2hd\packethandler\ObjectInteract.java:64: package p does not exist p.frames.setString(p, "sup [Line 2]", 242, 5); ^ 12 errors 10/13 Complete 11/13 Complete 12/13 Complete OwnX complete Press any key to continue . . .

lol wow i knew this i just use shoubox interface and remove the rest and then have 1 text so it like this
![]()
| « 100% Rune detectation! | Real Runescape Object Dialouge » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |