Commit start of plugin work

This commit is contained in:
ceikry 2022-07-10 08:13:32 -05:00 committed by Ceikry
parent 2bcf5c564d
commit a6577064b0
18 changed files with 426 additions and 46 deletions

View file

@ -0,0 +1,47 @@
package OverheadDebugPlugin;
import plugin.Plugin;
import plugin.api.API;
import plugin.api.FontColor;
import plugin.api.FontType;
import plugin.api.TextModifier;
import rt4.*;
public class plugin extends Plugin {
@Override
public void PlayerOverheadDraw(Player player, int screenX, int screenY) {
API.DrawText(
FontType.SMALL,
FontColor.YELLOW,
TextModifier.CENTER,
player.username.toString(),
screenX,
screenY
);
}
@Override
public void NPCOverheadDraw(Npc npc, int screenX, int screenY) {
String npcSb =
(npc.type.name.strEquals(JagString.parse("null"))
? npc.type.getMultiNpc() != null
? "Wrapper [" + npc.type.getMultiNpc().name + " " + npc.type.getMultiNpc().id + "]"
: "Wrapper"
: npc.type.name) +
" [Lvl: " +
npc.type.combatLevel +
"] [ID: " +
npc.type.id +
"] [Vb: " +
npc.type.multiNpcVarbit + "]";
API.DrawText(
FontType.SMALL,
FontColor.YELLOW,
TextModifier.CENTER,
npcSb,
screenX,
screenY
);
}
}