Skip to content
View in the app

A better way to browse. Learn more.

WRobot

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

buff/spell reuse after

  • Product: WRobot General
  • Type: Suggestion
  • Status: Fixed

at first: Timer wouldn't be help (imho)

"spell/buff reuse after ..." should check if a buff (in my case a poison)

- is set (by user or profile)

- has a expiration time after x (min/sec)

x min/sec before the spell is expiring, it should be cast again.

Usefull for buffs in Raid, which could be set manual by a user and refreshed by the profile

an example.

by default, if no other poison is set, the profile use leeching poison.

for some raid or boss, crippling poison should be better, so the user set it by himself.

10 min. before the crippling poison expire, it shoud be set new, if the user isn't in combat.

So the user could be sure, that the poison will not be expire while the boss fight.

(Bad luck, if the boss fight takes 11 min ;-) )

User Feedback

Recommended Comments

Bugreporter

Members

"buff reuse after xxx" should never set a spell if the spell is not active.

Hello,
 
I am sorry but I don't understand exactly what you want.
 
You cannot make it with normal fightclass?

Bugreporter

Members

No, not really, because I want update a buff only, If it was set "by hand" before.

 

What I can is

... to detect if the buff is running or not.

...set a buff if its not running.

 

but

I want to (re)set a buff only if it was already set.

I dont want set the buff, if its not running before.

 

I have a lot of poisons. And mostly a rogue use Leeching ... and Deathly ... for solo fights. But in raids I dont need Leeching. Maybe crippling is a better choice. In this case I set i.e. Crippling. No Problem at all. What I want is, that now Cripping was renewed, until it is changed from me to another poison.

 

(its not very important but would be a nice feature.)

 

But maybe it could be done by another suggestion that I have: it is possible to use global variables ? Variables that could be set by one Lua-script and read from another ?

 

With this, I could also realise this.

Try this code lua:

timeLeftToCastAgain > max time left before casting again buff in seconds

minSpellDuration > To ignore spells like Avenging Wrath (combat spell) in seconds 

local timeLeftToCastAgain = 10;
local minSpellDuration = 60 * 2;
for i=1,40 do
	local name, rank, icon, count, debuffType, duration, expirationTime, unitCaster, isStealable, shouldConsolidate, spellId = UnitBuff("player", i); 
	if spellId and unitCaster == "player" then
		local expireTimeLeft = expirationTime-GetTime();
		if (expireTimeLeft >= 0 and duration > minSpellDuration and expireTimeLeft < timeLeftToCastAgain) then
			CastSpellByName(name);
		end
	end
end

Tell me if don't works or if you don't understand (or if is not what you want).

Bugreporter

Members

Thanks. Could be closed.

This works?
I you want I can make custom profile or product of this code.

Bugreporter

Members

I will use parts of this. I think i will do my own code, because for rouges I have only to check 7 spells/poisons, and I know which one I want to reuse. so i dont have to check all 40 possible buffs.

 

My solution:

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.