pepijnverburg / osrs-runelite-twitch-live-loadout-plugin

RuneLite plugin for the OSRS Live Loadout Twitch Extension. Show Twitch viewers live and interactive information about your loadout and let them activate custom Random Events in-game.
https://liveloadout.com
BSD 2-Clause "Simplified" License
13 stars 1 forks source link

Fix issue where notifications would keep on running indefinitely when in showEffects of spawn #132

Closed pepijnverburg closed 1 year ago

pepijnverburg commented 1 year ago

This behaviour config:

{
    requiredModelPlacement: DEFAULT_REQUIRED_MODEL_PLACEMENT,
    startEffectsOptions: [[{
      notifications: [{
        messageType: 'overhead',
        message: 'Oh, bloody hell {viewerName}!',
      }],
    }, {
      notifications: [{
        messageType: 'chat',
        queue: false,
      }],
    }]],
    spawnInterval: {
      delayMs: 8000,
      chance: 1,
      triggerOnStart: true,
    },
    spawnOptions: [{
      spawnAmount: { min: 15, max: 20 },
      spawns: [{
        modelSetOptions: [{ ids: [35395] }],
        modelPlacement: {
          followType: 'none',
          rotationType: 'none',
          radiusType: 'radius',
          radiusRange: { min: 0, max: 10 },
        },
        showEffects: [{
          notifications: [{
            messageType: 'overhead',
            message: 'Oh, bloody hell {viewerName}!',
          }],
          durationMs: { min: 6000 },
          modelAnimation: {
            id: 8099,
            shouldLoop: false,
          },
        }, {
          modelExpired: true,
        }],
      }]
    }]
  }
pepijnverburg commented 1 year ago

queue should be set to false to resolve this, because the notification is spawned for 20 times as well and is queued.