Guest User

Untitled

a guest
May 29th, 2019
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.95 KB | None | 0 0
  1. // vvv SETTINGS vvv //
  2.  
  3. const settings = {
  4. // ui settings
  5. cfgInterface: true, // add link under character to configure settings
  6. profileAutoswitch: true, // automatically switch profile when changing persona or equipment set
  7. mpboost: 100, spboost: 100, // set to match player stats. add up all bonuses from abilities and capacitor
  8. mppot: 75, sppot: 75, // set to percentages restored by mana/spirit potions
  9. showCooldowns: true, // show cooldowns on the quickbar
  10. effectsAboveMonsters: false, // move player effects to above monsters
  11. vitalsAboveMonsters: false, // move vitals and spirit button to above monsters
  12. quickbarBesideMonsters: false, // move quickbar to the right of monsters
  13. riddleRight: false, // shrink riddlemaster to the right
  14. condenseLeft: false, // activate the above four options with everything moved to the left
  15. compactQuickbar: false, // eliminate whitespace on quickbar and monster bars
  16. expireNoblink: false, // disable blinking of expiring effects
  17. showDurations: true, // show effect durations
  18. stackBorder: true, // show effect stacks as border thickness rather than numbers
  19. alertColours: true, // change background colours according to alert conditions
  20. alertBackground: false, // whole background instead of relevant area for alert colours
  21. alertBuffs: '/(healthpot.png|manapot.png|scroll.png|infusion.png|regen.png|heartseeker.png|arcanemeditation.png)/',
  22. // change colour of player effects area if any of these buffs has less than 2 turns left
  23. // add the icon filename of any critical buff. this also affects stopOnBuffsExpiring
  24. // to get the filename, activate the buff in battle, right click its icon and inspect element
  25. // some examples: spiritpot.png darkinfusion.png protection_scroll.png flowers.png gum.png
  26. // spiritshield.png sparklife.png shadowveil.png haste.png protection.png
  27. colours: { default: '#EDEBDF', // alert colours
  28. spark: 'magenta', // set to any valid html colour, or false to disable
  29. lowhp: 'deeppink',
  30. lowmp: 'darkslateblue',
  31. lowsp: 'indigo',
  32. ocfull: 'mediumspringgreen',
  33. expiring: 'lightblue',
  34. channelling: 'aquamarine',
  35. usable: 'mediumspringgreen',
  36. miss: 'gray', // log colours
  37. damage: 'red',
  38. item: '#00B000',
  39. attack: 'blue',
  40. spell: 'darkslateblue',
  41. recovery: 'mediumseagreen',
  42. effect: 'seagreen',
  43. spirit: 'indigo',
  44. proficiency: 'darkolivegreen',
  45. scan: 'lightcoral', // highlight colour for monsters that have not been scanned in a while
  46. monster: 'springgreen' }, // highlight colour for monsters that match your keywords
  47. usableBlink: true, // mana and spirit gems and potions on the quickbar blink when usable to their full effect
  48. logColours: false, // add colour highlights to the battle log
  49. turnDividers: false, // add horizontal row between turns
  50. hideLog: false, // hide the battle log
  51. maxVitals: false, // show maximum player vitals
  52. showMonsterHP: false, // display current and max hp of monsters
  53. shortenHPbars: false, // shorten monster hp bars relative to their max hp
  54. monsterNumbers: false, // show monster numbers instead of letters
  55. monsterInfo: true, // show monster data from decondelite's database
  56. submitScans: true, // automatically submit data to decondelite's database when scanning. requires scanned monster to be unaffected by mitigation reduction
  57. scanTime: 62, // monsters that haven't been scanned in this number of days will be highlighted
  58. monsterKeywords: false, // highlight monsters where the info (name, trainer, id, etc.) matches this expression, set to false to disable
  59. // example: '/(Meiling|"plvl":2250|"monsterId":70699|Undead.*Crushing)/'
  60. ajaxRound: true, // advance to next round using ajax. set to false if you use other scripts that do not support this
  61. ajaxIntervals: 100, // set to 0 or a higher number if you experience weird flashing of expiring effects
  62. noPopup: true, // skip end of round popup
  63. stopAtBattleEnd: true, // do not dismiss popup at end of battle
  64. stopOnEquipDrop: false, // do not dismiss popup if equipment drops, quality specified by cutoff below
  65. clickableRiddlemaster: true, // add links to the riddlemaster to directly submit an answer
  66. edConfirm: false, // ask for confirmation before using energy drink
  67. fleeConfirm: false, // ask for confirmation before fleeing
  68. raiseGem: false, // raise gem icon above quickbar
  69. hoverGem: false, // activate gem by hovering over the icon
  70. hoverSpirit: false, // activate spirit stance by hovering over the icon
  71. quickbarExtend: [ 1,'ikey_1','ikey_2','ikey_3','ikey_4','ikey_7','ikey_8','ikey_9','ikey_10',
  72. 'ikey_s1','ikey_s2','ikey_s4','ikey_n1','ikey_n5','ikey_n6','ikey_6','ikey_5' ],
  73. // ID for skills/spells/items (in quotes), 0 for space, 1 for gem
  74. // set to [1] if you just want the gem icon or [] to disable
  75. // IDs:
  76. // 1001 Flee 1011 Scan 1101 FUS RO DAH 1111 Orbital Friendship Cannon
  77. // 2201 Shield Bash 2202 Vital Strike 2203 Merciful Blow
  78. // 2301 Great Cleave 2302 Rending Blow 2303 Shatter Strike
  79. // 2401 Iris Strike 2402 Backstab 2403 Frenzied Blows
  80. // 2101 Skyward Sword 2501 Concussive Strike
  81. // 111 Fiery Blast 112 Inferno 113 Flames of Loki
  82. // 121 Freeze 122 Blizzard 123 Fimbulvetr
  83. // 131 Shockblast 132 Chained Lightning 133 Wrath of Thor
  84. // 141 Gale 142 Downburst 143 Storms of Njord
  85. // 151 Smite 152 Banishment 153 Paradise Lost
  86. // 161 Corruption 162 Disintegrate 163 Ragnarok
  87. // 211 Drain 212 Weaken 213 Imperil
  88. // 221 Slow 222 Sleep 223 Confuse
  89. // 231 Blind 232 Silence 233 MagNet
  90. // 311 Cure 312 Regen 313 Full-Cure
  91. // 411 Protection 412 Haste 413 Shadow Veil
  92. // 421 Absorb 422 Spark of Life 423 Spirit Shield
  93. // 431 Heartseeker 432 Arcane Focus
  94. // ikey_1-ikey_15 items ikey_s1-ikey_s6 scrolls ikey_n1-ikey_n6 infusions
  95.  
  96. // mouse binding and hover settings
  97. // it is best to use mouse bindings in conjunction with hoverArea, as mouse actions always target the whole monster
  98. clickEverywhere: false, // by default, click actions are only performed when the cursor is over a live monster
  99. // setting this to true will enable middle and right click bindings and disable the context menu everywhere
  100. wheelEverywhere: false, // same as above, but for the wheel
  101. mouseEngage: false, // hold mouse buttons to modify hover behaviour, rather than performing the bound action only once
  102. clickLeft: false, // unused. set to Nothing to attack with mouseEngage
  103. clickMiddle: "Cast('Scan')",
  104. clickRight: "Strongest([Cast('FUS RO DAH'), Cast('Orbital Friendship Cannon'), Cast('Ragnarok'), Cast('Disintegrate'), Cast('Corruption')])",
  105. wheelUp: "Cast('Imperil')",
  106. wheelDown: "Cast('Weaken')",
  107. wheelLeft: "Strongest([Cast('Silence'), Cast('Sleep')])",
  108. wheelRight: "Strongest([Cast('Vital Strike'), Cast('Frenzied Blows'), Cast('MagNet')])",
  109. hoverAction: "Nothing", // Attack
  110. hoverShiftAction: "Strongest([Cast('Ragnarok'), Cast('Disintegrate'), Cast('Corruption')])", // alternate hover action when holding shift
  111. hoverCtrlAction: "Strongest([Cast('Paradise Lost'), Cast('Banishment'), Cast('Smite')])", // alternate hover action when holding ctrl
  112. hoverAltAction: "Strongest([Cast('Flames of Loki'), Cast('Inferno'), Cast('Fiery Blast')])", // alternate hover action when holding alt
  113. // these can be set to any bindable action that can be followed up with targeting a monster,
  114. // as explained in the keybind section, or to false to disable
  115. // examples:
  116. // hoverAction: false, // disable hover
  117. // hoverAction: Nothing, // attack
  118. // hoverAction: Strongest([Cast('Ragnarok'), Cast('Disintegrate'), Cast('Corruption')]), // dark spell rotation
  119. // hoverShiftAction: Strongest([ToggleHover, Cast('Imperil')]), // single cast of imperil
  120. // with the above example, you can hold shift, hover and hit Z to cast imperil while being protected by the usual hover safeguards
  121. hoverArea: 6, // part of the monster that activates hover
  122. // 1: whole box, 2: icon, 3: name, 4: vitals, 6: status effects
  123.  
  124. // hoverplay interrupt settings
  125. startRoundWithHover: true, // have hoverplay active at the beginning of each round
  126. // or require a kepress to start, in case you want to imperil first
  127. hoverAutoresume: false, // reactivate hover after releasing any key
  128. minHP: 0.3,
  129. minMP: 0.1,
  130. minSP: 'auto', // formula when set to 'auto': 0.5-0.5*spboost/(spboost+100)
  131. stopOnEmergency: true, // sparked or low vitals
  132. stopOnBuffsExpiring: true, // critical buff expiring in 1 turn or less
  133.  
  134. // mobile settings
  135. clearRound: false, // clear target and reset hoverAction at round transition, to avoid lingering taps and make monsterBar safer
  136. spacedBar: false, // increase spacing of quickbar and monster bar
  137. monsterBar: [], // add skill/spell icons next to monsters, for single use or tap to engage/tap elsewhere to disengage, single skills and spell rotations
  138. // example: first parameter is false for single use or true to engage, followed by skill/spell IDs or leave empty for attack
  139. // monsterBar: [ [true], // engage attack
  140. // [false,'213'], // single cast of imperil
  141. // [false,'212'], // single cast of weaken
  142. // [true,'163','162','161'] ], // engage dark spell rotation
  143.  
  144. // tracking settings
  145. trackDrops: true, // show total numbers of drops and exp at end of battle
  146. detailedDroplog: true, // list each drop type individually, excluding crystals and equipment below your quality cutoff
  147. detailedCrystlog: false, // list each crystal type individually
  148. equipmentCutoff: 3, // 0 to track all equipment combined,
  149. // 1 to track Peerless separateley,
  150. // 2 to track Peerless and Legendary separateley, etc.
  151. selectLog: false, // limit end-of-battle onclick to icon, allowing for easier selecting of log
  152. terseLog: false, // format log for easier pasting into spreadsheets
  153. trackProficiency: false, // show total proficiency gains at end of battle
  154. proficiencySidebar: false, // show live proficiency gains during battle
  155. profbarInMainpane: false, // set to false to avoid overlap with showMonsterHP and monsterInfo
  156. deleteDropLog: 2, // delete drop log, 0: never, 1: when navigating away from battle section, 2: at end of battle
  157. dropFontSize: 100, // adjust font size of drop and proficiency log
  158. trackSpeed: true, // show turn count and speed statistic at end of battle
  159. speedFontSize: 100, // adjust font size of speed statistic
  160. trackDamage: true, // show damage dealt and taken at end of battle
  161. damageFontSize: 100, // adjust font size of damage log
  162. trackUsage: true, // show attack/skill/spell/item usage at end of battle
  163. deleteCombatLog: 2, // delete damage and usage logs, 0: never, 1: when navigating away from battle section, 2: at end of battle
  164. consoleLog: false, // output raw machine-readable log data to console when showing the drop log
  165. showRound: true, // show the current round number during battle
  166. bigRoundCounter: false, // bigger round counter, placed in top right
  167.  
  168. // key bindings
  169. bind: "\
  170. Bind(KEY_SPACE, Any, Strongest([Cast('Cure'), HoverAction(Cast('Cure'), true)]));\
  171. Bind(KEY_Z, Any, ToggleHover);\
  172. Bind(KEY_A, Strongest([Use(4), Cast('Full-Cure'), Cast('Cure')]));\
  173. Bind(KEY_A, Shift, Strongest([Use(7), Use(4), Cast('Full-Cure'), Cast('Cure')]));\
  174. Bind(KEY_A, Ctrl, Strongest([Use(7), Use(4), Cast('Full-Cure'), Cast('Cure')]));\
  175. Bind(KEY_A, Alt, Strongest([Use(7), Use(4), Cast('Full-Cure'), Cast('Cure')]));\
  176. Bind(KEY_X, Strongest([Use('s1'), Use('s4'), Use('s2'), Use(2), Use(1)]));\
  177. Bind(KEY_X, Shift, Strongest([Use('s1'), Use('s4'), Use('s2'), Use('n6'), Use(2), Use(1)]));\
  178. Bind(KEY_X, Ctrl, Strongest([Use('s1'), Use('s4'), Use('s2'), Use('n5'), Use(2), Use(1)]));\
  179. Bind(KEY_X, Alt, Strongest([Use('s1'), Use('s4'), Use('s2'), Use('n1'), Use(2), Use(1)]));\
  180. Bind(KEY_C, Any, Cast('Regen'));\
  181. Bind(KEY_V, Any, Cast(damage));\
  182. Bind(KEY_Q, Use(5));\
  183. Bind(KEY_Q, Shift, Strongest([Use(8), Use(5)]));\
  184. Bind(KEY_Q, Ctrl, Strongest([Use(8), Use(5)]));\
  185. Bind(KEY_Q, Alt, Strongest([Use(8), Use(5)]));\
  186. Bind(KEY_W, Any, Use(3));\
  187. Bind(KEY_E, Use(6));\
  188. Bind(KEY_E, Shift, Strongest([Use(9), Use(6)]));\
  189. Bind(KEY_E, Ctrl, Strongest([Use(9), Use(6)]));\
  190. Bind(KEY_E, Alt, Strongest([Use(9), Use(6)]));\
  191. Bind(KEY_P, Settings);\
  192. Bind(KEY_1, Strongest([TargetMonster(1), Cast('Imperil')]));\
  193. Bind(KEY_2, Strongest([TargetMonster(4), Cast('Imperil')]));\
  194. Bind(KEY_3, Strongest([TargetMonster(7), Cast('Imperil')]));\
  195. ",
  196. // Add this for as many bindings as you want:
  197. // Bind(KeyCode, Modifier, Action);\
  198. // KeyCode = From http://www.javascripter.net/faq/keycodes.htm or any of the following:
  199. // KEY_A, KEY_B, KEY_C, KEY_D, KEY_E, KEY_F, KEY_G, KEY_H, KEY_I, KEY_J, KEY_K, KEY_L, KEY_M,
  200. // KEY_N, KEY_O, KEY_P, KEY_Q, KEY_R, KEY_S, KEY_T, KEY_U, KEY_V, KEY_W, KEY_X, KEY_Y, KEY_Z,
  201. // KEY_1, KEY_2, KEY_3, KEY_4, KEY_5, KEY_6, KEY_7, KEY_8, KEY_9, KEY_0,
  202. // KEY_SPACE, KEY_ENTER, KEY_PAGEUP, KEY_PAGEDOWN, KEY_END, KEY_HOME, KEY_LEFT, KEY_UP, KEY_RIGHT, KEY_DOWN,
  203. // KEY_F1, KEY_F2, KEY_F3, KEY_F4, KEY_F5, KEY_F6, KEY_F7, KEY_F8, KEY_F9, KEY_F10, KEY_F11, KEY_F12,
  204. // KEY_COMMA, KEY_PERIOD, KEY_SLASH, KEY_FORWARDSLASH, KEY_GRAVE, KEY_TILDE, KEY_LBRACKET, KEY_BACKSLASH,
  205. // KEY_SEMI, KEY_RBRACKET, KEY_APOSTROPHE, KEY_SHIFT, KEY_CTRL, KEY_ALT
  206. // Modifier = This is OPTIONAL. Valid mods are NoMod, Shift, Ctrl, Alt, CtrlShift, AltShift, CtrlAlt, CtrlAltShift, Any
  207. // Action = Valid actions:
  208. // Cast('Spell Name')
  209. // Spell Name.
  210. // Use('Item ID')
  211. // Valid Item IDs are 'p' for Gem, 1-15 for Items, 's1'-'s6' for Scrolls and 'n1'-'n6' for Infusions.
  212. // Toggle('Type')
  213. // Attack, Focus, Defend or Spirit.
  214. // Nothing
  215. // Use this to unbind a default key or use the default attack when targeting a monster.
  216. // TargetMonster(Number)
  217. // Targets the specified monster, starting at 0 for A up to 9 for J.
  218. // NextRound
  219. // Enters next round. Using this overrides both Space and Enter for next round. If you still want to use one of those, add it manually.
  220. // Strongest([Action Array])
  221. // Picks the most desired action.
  222. // For targeted spells or skills, put the most desired action first.
  223. // For untargeted spells or items, put the most desired action last.
  224. // HoverAction(Action, true/false)
  225. // Point mouse at target monster, hit key to perform action, Nothing for default attack. Set second parameter to true to respect alerts.
  226. // ToggleHover
  227. // Turn hoverplay on or off.
  228. // Drops
  229. // Show drop log.
  230. // CursorUp, CursorDown
  231. // Move the targeting cursor.
  232. // CursorTarget
  233. // Target selected monster. Use with Strongest to specify action.
  234. // CursorHover
  235. // Engage hover at cursor location.
  236. // ClearTarget
  237. // Unset hover target.
  238. // Settings.
  239. // Access configuration interface.
  240. //
  241. // Examples:
  242. // Bind(KEY_M, Shift, Use(1));\ -- Shift + M = Use Item 1
  243. // Bind(KEY_LBRACKET, Cast('WRATH OF THOR'));\ -- Case insensitive. Key [ = cast Wrath of Thor.
  244. // Bind(KEY_A, Nothing);\ -- You can unbind a default key.
  245. // Bind(KEY_I, Use('p'));\ -- I uses Powerup Gem.
  246. // Bind(KEY_F, Toggle('Focus'));\ -- Toggle focus.
  247. // Bind(KEY_S, Toggle('Spirit'));\ -- Toggle spirit stance.
  248. // Bind(KEY_T, Strongest([Cast('Ragnarok'), Cast('Disintegrate'), Cast('Corruption')]));\ -- Strongest Dark spell.
  249. // Bind(KEY_B, Strongest([Cast('Full-Cure'), Cast('Cure')]));\ -- Use available Cure spell.
  250. // Bind(KEY_N, Strongest([Use(3), Use(2), Use(1)]));\ -- Use available item.
  251. // Bind(KEY_A, HoverAction(Nothing));\ -- Attack selected monster by holding A, to be used with hoverAction = false.
  252. // Bind(KEY_I, HoverAction(Cast('Imperil')));\ -- Cast Imperil on selected monster, ignore alerts.
  253. // Bind(KEY_I, HoverAction(Strongest([ToggleHover, Cast('Imperil')]), true));\ -- Single cast of Imperil, respect alerts.
  254. // Bind(KEY_1, Strongest([TargetMonster(0), Cast('Imperil')]));\ -- Cast Imperil on monster A.
  255. // Bind(KEY_Z, ToggleHover);\ -- Toggle hoverplay.
  256. // Bind(KEY_F, Drops);\ -- Show drops.
  257. // Bind(KEY_UP, CursorUp); -- Move cursor up.
  258. // Bind(KEY_DOWN, Strongest([CursorDown, ClearTarget]));\ -- Move cursor down, stop hover.
  259. // Bind(KEY_LEFT, Strongest([CursorTarget, Cast('Imperil')]));\ -- Cast Imperil on selected monster.
  260. // Bind(KEY_RIGHT, CursorHover);\ -- Hover on selected monster, recommended use with clearRound = true.
  261.  
  262. // custom profiles
  263. // to override defaults, add elements to 'settings' sections
  264. name: '[base]',
  265. persona: [ { name: 'persona 1', settings: {}, set: [ { name: 'set 1', settings: {} }, { name: 'set 2', settings: {} }, { name: 'set 3', settings: {} },
  266. { name: 'set 4', settings: {} }, { name: 'set 5', settings: {} }, { name: 'set 6', settings: {} }, { name: 'set 7', settings: {} } ] },
  267. { name: 'persona 2', settings: {}, set: [ { name: 'set 1', settings: {} }, { name: 'set 2', settings: {} }, { name: 'set 3', settings: {} },
  268. { name: 'set 4', settings: {} }, { name: 'set 5', settings: {} }, { name: 'set 6', settings: {} }, { name: 'set 7', settings: {} } ] },
  269. { name: 'persona 3', settings: {}, set: [ { name: 'set 1', settings: {} }, { name: 'set 2', settings: {} }, { name: 'set 3', settings: {} },
  270. { name: 'set 4', settings: {} }, { name: 'set 5', settings: {} }, { name: 'set 6', settings: {} }, { name: 'set 7', settings: {} } ] },
  271. { name: 'persona 4', settings: {}, set: [ { name: 'set 1', settings: {} }, { name: 'set 2', settings: {} }, { name: 'set 3', settings: {} },
  272. { name: 'set 4', settings: {} }, { name: 'set 5', settings: {} }, { name: 'set 6', settings: {} }, { name: 'set 7', settings: {} } ] },
  273. { name: 'persona 5', settings: {}, set: [ { name: 'set 1', settings: {} }, { name: 'set 2', settings: {} }, { name: 'set 3', settings: {} },
  274. { name: 'set 4', settings: {} }, { name: 'set 5', settings: {} }, { name: 'set 6', settings: {} }, { name: 'set 7', settings: {} } ] },
  275. { name: 'persona 6', settings: {}, set: [ { name: 'set 1', settings: {} }, { name: 'set 2', settings: {} }, { name: 'set 3', settings: {} },
  276. { name: 'set 4', settings: {} }, { name: 'set 5', settings: {} }, { name: 'set 6', settings: {} }, { name: 'set 7', settings: {} } ] },
  277. { name: 'persona 7', settings: {}, set: [ { name: 'set 1', settings: {} }, { name: 'set 2', settings: {} }, { name: 'set 3', settings: {} },
  278. { name: 'set 4', settings: {} }, { name: 'set 5', settings: {} }, { name: 'set 6', settings: {} }, { name: 'set 7', settings: {} } ] },
  279. { name: 'persona 8', settings: {}, set: [ { name: 'set 1', settings: {} }, { name: 'set 2', settings: {} }, { name: 'set 3', settings: {} },
  280. { name: 'set 4', settings: {} }, { name: 'set 5', settings: {} }, { name: 'set 6', settings: {} }, { name: 'set 7', settings: {} } ] },
  281. { name: 'persona 9', settings: {}, set: [ { name: 'set 1', settings: {} }, { name: 'set 2', settings: {} }, { name: 'set 3', settings: {} },
  282. { name: 'set 4', settings: {} }, { name: 'set 5', settings: {} }, { name: 'set 6', settings: {} }, { name: 'set 7', settings: {} } ] } ]
  283. };
  284.  
  285. // ^^^ SETTINGS ^^^ //
Advertisement
Add Comment
Please, Sign In to add comment