Advertisement
Guest User

Kamyczki

a guest
Jun 21st, 2024
362
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.99 KB | None | 0 0
  1. // ==UserScript==
  2. // @name Teleports Title
  3. // @version 1.0
  4. // @author Nusax
  5. // @match https://*.margonem.pl/
  6. // @exclude https://www.margonem.pl/
  7. // @match https://*.margonem.com/
  8. // @exclude https://www.margonem.com/
  9. // @exclude https://forum.margonem.pl/
  10. // @exclude https://commons.margonem.pl/
  11. // ==/UserScript==
  12.  
  13. let items = {
  14. "Mythar": {
  15. title: "Mythar"
  16. },
  17. "Bandyckie Chowisko - skarbiec": {
  18. title: "Renegat"
  19. },
  20. "Ithan": {
  21. title: "ITHAN"
  22. },
  23. "Wulkan Politraki - Piekielne Czeluście":{
  24. title: "Arcymag"
  25. },
  26. "Czeluść Chimerycznej Natury - przedsionek":{
  27. title: "Hydra"
  28. },
  29. "Dolina Centaurów":{
  30. title: "Centaur"
  31. },
  32. "Potępione Zamczysko - sala ofiarna":{
  33. title: "SYBA"
  34. },
  35. "Drzewo Życia p.2":{
  36. title: "NYMP"
  37. },
  38. "Urwisko Vapora":{
  39. title: "TERRO"
  40. },
  41. "Katakumby Gwałtownej Śmierci":{
  42. title: "CHOP"
  43. },
  44. "Sala Lodowej Magii":{
  45. title: "ARTEK"
  46. },
  47. "Altepetl Mahoptekan":{
  48. title: "MAHO"
  49. },
  50. "Katakumby Antycznego Gniewu - przedsionek":{
  51. title: "DRAK"
  52. }
  53. };
  54. ((isSi) => {
  55. function initAddon() {
  56. if (isSi ? g.init < 5 : !Engine.allInit) {
  57. setTimeout(initAddon, 2000);
  58. return;
  59. }
  60. Object.values(isSi ? g.item : Engine.items.fetchLocationItems("g")).forEach(item => {
  61. if (item.name == "Zakonny teleport do Świątyni Hebrehotha III"|| item.name == "Kamień teleportujący do Altepetl Mahoptekan"
  62. || item.name == "Eventowy Kamień Czerwonego Smoka" || item.name == "Kamień Czerwonego Smoka" || item.name == "Ulotny Kamień Czerwonego Smoka" || item.name == "Niepozorny Kamień Czerwonego Smoka"|| item.name == "Kamień teleportujący do Ithan"|| item.name == "Kamień teleportujący do Werbin"|| item.name == "Kamień teleportujący do Mythar"|| item.name == "Kamień teleportujący do Eder"|| item.name == "Kamień teleportujący do Karka-han"|| item.name == "Kamień teleportujący do Thuzal"|| item.name == "Kamień teleportujący do Ithan"|| item.name == "Źródło magicznej mocy") {
  63. Object.keys(items).map(el => {
  64. if (isSi ? item.stat.includes(el) : item._cachedStats.opis.includes(el)) {
  65. isSi ? $(`#item${item.id}`).append(`<div style="z-index: auto !important; position: absolute; bottom: 11; font-size: 8px; font-weight: bold; color: white; left: 30%; transform: translateX(-25%)">${items[el].title}</div>`) : $(`.item-id-${item.id}`).append(`<div style="z-index: auto !important; position: absolute; bottom: 11; font-size: 8px; font-weight: bold; color: white; left: 30%; transform: translateX(-25%)">${items[el].title}</div>`);
  66. }
  67. })
  68. }
  69. });
  70. }
  71. window.onload = initAddon();
  72. })(/interface=si/.test(document.cookie))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement