Freth

Scanner Mod Docs

Dec 6th, 2022
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.06 KB | None | 0 0
  1. New mod: Scanner
  2.  
  3.  
  4.  
  5. It's kinda esp-lite :P but more customisable and with on screen notifications. 
  6.  
  7.  
  8.  
  9. 4oHbVET.png
  10.  
  11.  
  12.  
  13. The mod is configured by a single console command like
  14.  
  15. scan [stuff.....]
  16.  
  17. But the syntax of "stuff" is a bit complex, so instead of drawing BNF diagrams i'll just explain it by a few examples:
  18.  
  19.  
  20.  
  21. Simple mode - just put an outline on something, say me...
  22.  
  23. scan bdew
  24.  
  25. That's it, if you have anything with "bdew" in its name - you should see an outline. To turn it off type just "scan" with nothing after it.
  26.  
  27.  
  28.  
  29. Now by default the outline will be in whatever color it is in vanilla (e.g. blue for items, red for enemies, green for village members), if you wanted to give me a pink outline type...
  30.  
  31. scan bdew @pink
  32.  
  33. Easy enough. But lets say you also want to find dragons, and you still want me to have a pink outline - just add the dragons after the existing command
  34.  
  35. scan bdew @pink dragon @yellow
  36.  
  37. Now anything that has "bdew" in it's name will show up in pink, while everything with "dragon" in it's name will show up in yellow.
  38.  
  39.  
  40.  
  41. But we have a problem, now you are getting highlights for a bunch of people with "dragonslayer" titles, and their "dragoncart 2000" and so on, luckily we can check for models instead
  42.  
  43. scan bdew @pink %dragons/ @yellow
  44.  
  45. Using % before a word will make it check the model path instead of the name. You can see the paths of various model by going to your graphics.jar and looking at mappings.txt
  46.  
  47. And for good measure we can also filter out corpses of dragons, preserved dragons, and dragon pets (from my minipet mod) 
  48.  
  49. scan bdew @pink %dragons/ !corpse !preserved !pet @yellow
  50.  
  51. Puting a ! before a word will make it filter out anything that matches.
  52.  
  53. Now say you want to also have a nice big on screen notification every time a dragon is nearby... no problem, just replace the @ with # instead
  54.  
  55. scan bdew @pink %dragons/ !corpse !preserved !pet #yellow
  56.  
  57. Now say you also wanted the other uniques too... you could repeat the !corpse... stuff for each but that would be a lot of work, so instead you can use pipe ( | ) before a condition to have do an OR with the previous one
  58.  
  59. scan bdew @pink %dragons/ |%forestgiant |%trollking |%goblinleader |%creatures/kyklops !corpse !preserved !pet #yellow
  60.  
  61. And for good measure lets add treasure chests and traitors for missions... and stop making me pink :P
  62.  
  63. scan %dragons/ |%forestgiant |%trollking |%goblinleader |%creatures/kyklops !corpse !preserved !pet #yellow %treasurechest #pink traitor !corpse !preserved #yellow
  64.  
  65. New in 1.1 - outline matching 
  66.  
  67. Now you can use & prefix to match color of default outline, so to show only hostile uniques (which would exclude pets, etc.) you can use:
  68.  
  69. scan %dragons/ |%forestgiant |%trollking |%goblinleader |%creatures/kyklops &hostile #yellow %treasurechest #pink traitor !corpse !preserved #yellow
  70.  
  71. You could also bind it to a key to turn on and off as you go, for example...
  72.  
  73. bind ctrl+f1 "scan %dragons/ |%forestgiant |%trollking |%goblinleader |%creatures/kyklops !corpse !preserved !pet #yellow %treasurechest #pink traitor !corpse !preserved #yellow"
  74.  
  75. bind ctrl+f2 "scan"
  76.  
  77. This will turn it on when you press Control + F1 and turn it off when you press Control + F2
  78.  
  79.  
  80.  
  81. TLDR
  82.  
  83. Word without any special symbols - matches things that have in the name
  84. % prefix - match against model path instead
  85. & prefix - match color of default outline (e.g. &hostile to match only hostile creatures)
  86. ! prefix - negates whatever comes after it
  87. | prefix - makes an OR condition with the previous one
  88. @ highlights with outline
  89. # highlights with outline + gives on screen notification
  90. @ and # can be followed by color name or RGB in hex. if no color is given will use default outline color.
  91. valid colors are: 
  92. red, green, blue, white, black, purple, pink, yellow
  93. neutral, ally, friend, hostile, gm, dev - default outline colors (will match client settings)
  94. hex color ( eg "0x00FFFF" for aqua)
  95. after @ or # the conditions are reset and you can add a new set
  96.  
Advertisement
Add Comment
Please, Sign In to add comment