I was just messing around looking for things to do, and googled to see if anyone had done the Ring of Stone for this revision.
I found this http://www.rune-server.org/runescape...unny-ears.html.
It was removed and people were commenting about how bad it was or whatever, well I feel like they tried to over-complicate it, so I decided to do it my way.
In InterfaceManajer.java, add the following:
Code:
public void sendUnmorph() {
closeInventoryInterface();
closeEquipment();
sendTab(resizableScreen ? 94 : 208,375);
player.setInfiniteStopDelay();//could be player.lock(); in some sources
player.stopAll();
}
In ButtonHandler.java, add the following in the handleButtons method:
Code:
if (interfaceId == 375) {//unmorph
if (componentId == 3) {
player.getAppearence().transformIntoNPC(-1);
player.getInterfaceManager().sendInventory();
player.getInterfaceManager().sendEquipment();
player.getInventory().unlockInventoryOptions();
player.setNextAnimation(new Animation(14884));
player.reset();//player.unlock(); in some sources
}
}
Also in ButtonHandler.java, search for public static void sendWear(Player player, int[] slotIds) and under
Code:
for (int slotId : slotIds) {
Item item = player.getInventory().getItem(slotId);
if (item == null)
continue;
Add the following:
Code:
if (item.getId() == 6583) {
player.getAppearence().transformIntoNPC(2626);
player.getInterfaceManager().sendUnmorph();
return;
}
if (item.getId() == 7927) {
player.getAppearence().transformIntoNPC(Utils.random(3689,3694));
player.getInterfaceManager().sendUnmorph();
return;
}
[SPOIL][/SPOIL]