Nice toturials Ian... U OWNZ!
|
|
Make a New File... Named FirstItem.java
Code:package RS2E.Packets; import java.io.*; import RS2E.Util.*; import RS2E.Main; import RS2E.Players.*; public class FirstItem { public FirstItem(Player p) { if (p == null) { return; } int slot1 = p.inStream.readUnsignedWord(); int item1 = p.inStream.readUnsignedWordA(); int Junks = p.inStream.readDWord_v2(); int mains = Junks >> 16; PlayerItems pi = new PlayerItems(); int childs = 65535 & Junks; switch (item1) { case 6969: p.requestAnim(879, 0); pi.deleteItem(p, 6969, slot1, 1); pi = null; break; case 6971: p.requestAnim(8939, 10); System.out.println("Item ID: "+item1+"."); pi.deleteItem(p, 6969, slot1, 1); pi = null; break; } } }
In HandlePacket.java Add...
Cant Figure It Out?Code:case 42: FirstItem item1 = new FirstItem(P); item1 = null; break;
Fuk You
Ian & Mark
![]()
Thanks for this Ian![]()
Thanks for the new teleport animation too!
Teleport Animation
8939 & 8941
Teleport Graphic
1678 & 1679
thx Ian!
your the man!
btw for the poeple with dannos base change this:
FirstItem item1 = new FirstItem(P);
to this:
FirstItem item1 = new FirstItem;
anyway great job Ian!!
![]()
Code::: Found JDK 1.6.0_04 ------------ Compiling players ------------ .\RS2E\Packets\HandlePacket.java:108: duplicate case label case 42: ^ .\RS2E\Packets\HandlePacket.java:110: item1 is already defined in handlePacket(R S2E.Players.Player,int,int) int item1 = p.inStream.readUnsignedWordA(); ^ 2 errors ------------ Compiling packets ------------ .\RS2E\Packets\HandlePacket.java:108: duplicate case label case 42: ^ .\RS2E\Packets\HandlePacket.java:110: item1 is already defined in handlePacket(R S2E.Players.Player,int,int) int item1 = p.inStream.readUnsignedWordA(); ^ 2 errors ------------ Compiling util ------------ ------------ Compiling world ------------ ------------ Compiling main ------------ .\RS2E\Packets\HandlePacket.java:108: duplicate case label case 42: ^ .\RS2E\Packets\HandlePacket.java:110: item1 is already defined in handlePacket(R S2E.Players.Player,int,int) int item1 = p.inStream.readUnsignedWordA(); ^ 2 errors ------------ Compile complete ------------ ------------ Thank you for using Dragonzpk's Fully working 503 compiler Press any key to continue . . .
Code:case 42: int slot1 = p.inStream.readUnsignedWord(); int Junks = p.inStream.readDWord_v2(); int mains = Junks >> 16; int childs = 65535 & Junks; System.out.println("Bury Item: " +item1+ ", slot: " + slot1 + ", mainInter: " + mains + ", Child:" + childs); break;
Code:case 42: //Item select such as eating and drinking. ItemSelect itemSelect = new ItemSelect(p); itemSelect = null; FirstItem item1 = new FirstItem(p); item1 = null; break;
Thx Ian Much Appreciated
Joyza
w8 one thing....what is this for?what does it do? (c)
| « Adding Autospawn to your server | [503] 40% NPC Spawn. » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |