A RuneTek3 client (377) that is deobfuscated, converted to Kotlin, and includes QoL improvements.
0

Configure Feed

Select the types of activity you want to include in your feed.

context menu debug info for npcs and items

+42 -10
+42 -10
src/main/java/com/jagex/runescape/Game.java
··· 3842 3842 secondMenuOperand[menuActionRow] = y; 3843 3843 menuActionRow++; 3844 3844 } 3845 - 3846 - menuActionTexts[menuActionRow] = "Examine @lre@" + itemDefinition.name; 3845 + StringBuilder examineText = new StringBuilder(); 3846 + examineText.append(MessageFormat.format("Examine <col=ff9040>{0}</col>", itemDefinition.name)); 3847 + if (DEBUG_CONTEXT) { 3848 + examineText.append(" <col=00ff00>(</col>"); 3849 + examineText.append( 3850 + MessageFormat.format("<col=ffffff>{0}</col>", 3851 + Integer.toString(itemDefinition.id) 3852 + ) 3853 + ); 3854 + examineText.append("<col=00ff00>)</col>"); 3855 + } 3856 + menuActionTexts[menuActionRow] = examineText.toString(); 3847 3857 menuActionTypes[menuActionRow] = 1564; 3848 3858 selectedMenuActions[menuActionRow] = item.itemId; 3849 3859 firstMenuOperand[menuActionRow] = x; ··· 5557 5567 } 5558 5568 5559 5569 } 5560 - menuActionTexts[menuActionRow] = "Examine @lre@" + definition.name; 5570 + StringBuilder examineText = new StringBuilder(); 5571 + examineText.append(MessageFormat.format("Examine <col=ff9040>{0}</col>", definition.name)); 5572 + if (DEBUG_CONTEXT) { 5573 + examineText.append(" <col=00ff00>(</col>"); 5574 + examineText.append( 5575 + MessageFormat.format("<col=ffffff>{0}</col>", 5576 + Integer.toString(definition.id) 5577 + ) 5578 + ); 5579 + examineText.append("<col=00ff00>)</col>"); 5580 + } 5581 + menuActionTexts[menuActionRow] = examineText.toString(); 5561 5582 menuActionTypes[menuActionRow] = Actions.EXAMINE_ITEM; 5562 5583 selectedMenuActions[menuActionRow] = definition.id; 5563 5584 firstMenuOperand[menuActionRow] = l2; ··· 6795 6816 return; 6796 6817 if (!actorDefinition.clickable) 6797 6818 return; 6798 - String s = actorDefinition.name; 6819 + String name = actorDefinition.name; 6799 6820 if (actorDefinition.combatLevel != 0) 6800 - s = s + getCombatLevelColour(localPlayer.combatLevel, actorDefinition.combatLevel) + " (level-" + actorDefinition.combatLevel + ")"; 6821 + name = name + getCombatLevelColour(localPlayer.combatLevel, actorDefinition.combatLevel) + " (level-" + actorDefinition.combatLevel + ")"; 6801 6822 if (itemSelected == 1) { 6802 - menuActionTexts[menuActionRow] = "Use " + selectedItemName + " with @yel@" + s; 6823 + menuActionTexts[menuActionRow] = "Use " + selectedItemName + " with @yel@" + name; 6803 6824 menuActionTypes[menuActionRow] = 347; 6804 6825 selectedMenuActions[menuActionRow] = k; 6805 6826 firstMenuOperand[menuActionRow] = j; ··· 6809 6830 } 6810 6831 if (widgetSelected == 1) { 6811 6832 if ((anInt1173 & 2) == 2) { 6812 - menuActionTexts[menuActionRow] = selectedWidgetName + " @yel@" + s; 6833 + menuActionTexts[menuActionRow] = selectedWidgetName + " @yel@" + name; 6813 6834 menuActionTypes[menuActionRow] = 67; 6814 6835 selectedMenuActions[menuActionRow] = k; 6815 6836 firstMenuOperand[menuActionRow] = j; ··· 6820 6841 if (actorDefinition.actions != null) { 6821 6842 for (int l = 4; l >= 0; l--) 6822 6843 if (actorDefinition.actions[l] != null && !actorDefinition.actions[l].equalsIgnoreCase("attack")) { 6823 - menuActionTexts[menuActionRow] = actorDefinition.actions[l] + " @yel@" + s; 6844 + menuActionTexts[menuActionRow] = actorDefinition.actions[l] + " @yel@" + name; 6824 6845 if (l == 0) 6825 6846 menuActionTypes[menuActionRow] = 318; 6826 6847 if (l == 1) ··· 6844 6865 char c = '\0'; 6845 6866 if (actorDefinition.combatLevel > localPlayer.combatLevel) 6846 6867 c = '\u07D0'; 6847 - menuActionTexts[menuActionRow] = actorDefinition.actions[i1] + " @yel@" + s; 6868 + menuActionTexts[menuActionRow] = actorDefinition.actions[i1] + " @yel@" + name; 6848 6869 if (i1 == 0) 6849 6870 menuActionTypes[menuActionRow] = 318 + c; 6850 6871 if (i1 == 1) ··· 6862 6883 } 6863 6884 6864 6885 } 6865 - menuActionTexts[menuActionRow] = "Examine @yel@" + s; 6886 + StringBuilder examineText = new StringBuilder(); 6887 + examineText.append(MessageFormat.format("Examine <col=ffff00>{0}</col>", name)); 6888 + if (DEBUG_CONTEXT) { 6889 + examineText.append(" <col=00ff00>(</col>"); 6890 + examineText.append( 6891 + MessageFormat.format("<col=ffffff>{0}</col>", 6892 + Long.toString(actorDefinition.id) 6893 + ) 6894 + ); 6895 + examineText.append("<col=00ff00>)</col>"); 6896 + } 6897 + menuActionTexts[menuActionRow] = examineText.toString(); 6866 6898 menuActionTypes[menuActionRow] = 1668; 6867 6899 selectedMenuActions[menuActionRow] = k; 6868 6900 firstMenuOperand[menuActionRow] = j;