Comments (6)
Something like adding Thread.Sleep(750) in the loop
int ms = 750;
int num = 0;
for (int index = 0; index < LootItems.Count; ++index)
{
if (!LootItems[index].Rolled)
{
RollItem(RollOption.Pass, index);
Thread.Sleep(ms);
++num;
}
}
XIVPlugins/LootMaster/Plugin.cs
Lines 212 to 224 in fd75f6b
from xivplugins.
Did a lil testing, you'd have to use something a little more elegant than Thread.Sleep as it freezes the entire game, until the Thread.Sleep is done.
from xivplugins.
I added this instead of Thread.Sleep
await Task.Delay(1000);
and now it works as intended
from xivplugins.
I didn't really know how to make dalamud plugins but after 4-5 hours, I've got the hang of it.
I managed to create this for myself in a fork, I added configuration to toggle enable Delay and set the min/max random delay, by default its 500ms-750ms
and each command has the option to be delayed.
If you'd like to use the code I added in the fork for this plugin, let me know and I'll send a merge request.
from xivplugins.
Heya, nice work! Sure, send over a PR and I'll add it in. 👍
from xivplugins.
Solved by #6. Thanks again!
from xivplugins.
Related Issues (20)
- Loot Master - Rolling /greed will pass on items already greeded HOT 2
- Unsure if bug? HOT 7
- AutoLogin HOT 3
- Issue with [Fate Auto Sync] HOT 2
- grid bug HOT 7
- Whitelist option Loot Master HOT 2
- Autostance German Client HOT 1
- Option to disable hideous context menus for PotatoFamine2 HOT 2
- Shadowed Command Conflict with Another Plugin
- [Request] Food Check - add option to only say first names
- Request - AutoLogin - Option to remove grid HOT 1
- Loot Master broken after 6.5 update HOT 5
- Auto Login isn't compatible with current Dalamund
- Error during Lootmaster auto-roll.
- [Auto Login] Swap character doesn't work when on same data center but different world
- [Auto Login] world visiting characters cannot be logged in as with the Switch Characters command
- Potato Famine 2 is not a meme to me. HOT 2
- [Potato Famine 2] Needs updating HOT 2
- [Portrait Fixer] Gear Set List Returns to Default Position HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xivplugins.