forked from quisquous/cactbot
-
Notifications
You must be signed in to change notification settings - Fork 74
Open
Labels
Description
Description
Netreges use matches.pairPosX and matches.pairPosY, but raidboss trigger code is using matches.x and matches.y
Additional Details / Steps to Reproduce
Using code:
{
id: 'R12S CombatantMemory Add Tracker',
// Used for Slaughtershed Stack/Spreads spots
// 1EBF29 are the blobs
type: 'CombatantMemory',
netRegex: {
id: '4[0-9A-Fa-f]{7}',
change: 'Add',
pair: [{ key: 'BNpcID', value: '1EBF29' }],
capture: true,
},
infoText: (_data, matches, output) => {
const x = parseFloat(matches.x ?? '0')
const y = parseFloat(matches.y ?? '0')
return output.text!({ x: x, y: y });
},
run: (data, matches) =>
data.actorPositions[matches.id] = {
x: parseFloat(matches.x ?? '0'),
y: parseFloat(matches.y ?? '0'),
heading: parseFloat(matches.heading ?? '0'),
},
outputStrings: {
text: {
en: 'Blob Found at (${x}, ${y})',
},
},
},
R12N has basically the same code for creating the actorPosition, but based off this, the raid Emulator always results in the 0 values since those matches do not exist.
Cactbot Module
Raid Emulator
Configuration Info
N/A
Log & Screenshots
Confirmation
- I reviewed Common Issues and Workarounds and verified that my settings are correct.
- I used the search function to confirm this issue doesn't already exist.
Reactions are currently unavailable