Thanks, Gonna try it out now, I'll post if it worked
|
Description: Add the Runescape world map interface to your server.
Difficulty: 3/10
Assumed Knowledge: Copy and Paste
Tested Server: RS2E v2.0 (503). Guthans Clicking Most Buttons (Packet 163 and 147) tutorail and [503] lazy's Making Interfaces to work! tut
Files/Classes Modified: HandlePacket.Java
Step 1: Open Up HandlePacket.java
Step2: Under:
[PHP] case 163:
actionButtonID = HexToInt(p, packetSize);
switch (actionButtonID) {[/PHP]
add
[PHP] case 2606:
setInterface(p, 755);
break/PHP]
Step3: Under
[PHP] case 173:[/PHP]
add
[PHP] case 85:
p.frame.setInterface(p, 548, 4, 754);
break; [/PHP]
Now Compile And Run.
Thanks, Gonna try it out now, I'll post if it worked
Yep compiler coming...
RS2e:
@echo off
title Compiler
@echo ------------ Compiling players ------------
"C:\Program Files\Java\jdk1.6.0_06\bin\javac.exe" ./RS2E/Players/*.java
@echo ------------ Compiling packets ------------
"C:\Program Files\Java\jdk1.6.0_06\bin\javac.exe" ./RS2E/Packets/*.java
@echo ------------ Compiling util ------------
"C:\Program Files\Java\jdk1.6.0_06\bin\javac.exe" ./RS2E/Util/*.java
@echo ------------ Compiling world ------------
"C:\Program Files\Java\jdk1.6.0_06\bin\javac.exe" ./RS2E/World/*.java
@echo ------------ Compiling main ------------
"C:\Program Files\Java\jdk1.6.0_06\bin\javac.exe" ./RS2E/*.java
echo ------------ Compile complete ------------
pause
Hey matthew pm me i got it working
Nop doesnt close
a little edit for your tut
change
toCode:case 2606: setInterface(p, 755); break;
Code:case 2606: p.frame.setInterface(p, 755); break;
edit:
or you probably get an error
or just add this in handlepacket.java
then you dont need to change the previous oneCode:public void setInterface(Player p, int interfaceID) { if(p == null || p.outStream == null || p.disconnected[0]) { return; } p.outStream.createFrame(82); p.outStream.writeWord(interfaceID); p.outStream.writeByteA(0); }
edit: it wont close anyway
Edit:
EUMG I am newb
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |