Wigglez
New Member
- Joined
- Mar 6, 2013
- Messages
- 174
You may find this product on the BuddyStore
Last edited:
[09:02:25.361 N] [Disenchantrix]: Disenchanting Traveler's Backpack
[09:02:25.463 N] We are stuck!!
[09:02:25.490 N] Trying jump
[09:02:27.023 N] We are stuck!!
[09:02:27.023 N] Trying strafe forward left for 1000ms
[09:02:28.515 N] [Disenchantrix]: Disenchanting Traveler's Backpack
[09:02:29.396 N] We are stuck!!
[09:02:29.396 N] Trying strafe forward right for 600ms
[09:02:31.374 N] We are stuck!!
[09:02:31.374 N] Trying strafe left for 1000ms
[09:02:32.706 N] [Disenchantrix]: Disenchanting Traveler's Backpack
[09:02:33.867 N] We are stuck!!
[09:02:33.867 N] Trying strafe right for 600ms
[09:02:35.812 N] We are stuck!!
[09:02:35.812 N] Backing off for 2000ms
[09:02:38.247 N] [Disenchantrix]: Disenchanting Traveler's Backpack
[09:02:38.441 D] Could not generate full path from {-1357.213, 1644.051, 68.37388} to {-363.436, 3078.43, -15.00154} (time used: 4 milliseconds)
[09:02:39.602 N] We are stuck!!
[09:02:39.629 N] Trying jump
[09:02:41.083 N] We are stuck!!
[09:02:41.083 N] Trying strafe forward left for 1000ms
[09:02:42.410 N] [Disenchantrix]: Disenchanting Traveler's Backpack
[09:02:43.593 N] We are stuck!!
[09:02:43.593 N] Trying strafe forward right for 600ms
[09:02:45.520 N] We are stuck!!
[09:02:45.520 N] Trying strafe left for 1000ms
[09:02:46.843 N] [Disenchantrix]: Disenchanting Traveler's Backpack
[09:02:48.023 N] We are stuck!!
[09:02:48.023 N] Trying strafe right for 600ms
[09:02:50.035 N] We are stuck!!
[09:02:50.035 N] Backing off for 2000ms
[09:02:52.457 N] [Disenchantrix]: Disenchanting Traveler's Backpack
[09:02:52.650 N] [Singular] Casting Bone Shield on Me @ 100.0%
[09:02:53.147 D] Could not generate full path from {-1349.572, 1653.965, 68.76755} to {-363.436, 3078.43, -15.00154} (time used: 5 milliseconds)
[09:02:54.355 N] We are stuck!!
[09:02:54.385 N] Trying jump
[09:02:55.596 N] [Disenchantrix]: Disenchanting Traveler's Backpack
[09:02:55.857 N] We are stuck!!
[09:02:55.857 N] Trying strafe forward left for 1000ms
[09:02:58.202 N] We are stuck!!
[09:02:58.202 N] Trying strafe forward right for 600ms
[09:02:59.147 N] [Disenchantrix]: Disenchanting Traveler's Backpack
[09:03:00.147 N] We are stuck!!
[09:03:00.147 N] Trying strafe left for 1000ms
[09:03:02.413 N] [Disenchantrix]: Disenchanting Traveler's Backpack
[09:03:02.514 N] We are stuck!!
[09:03:02.514 N] Trying strafe right for 600ms
[09:03:04.486 N] We are stuck!!
[09:03:04.486 N] Backing off for 2000ms
I can't fully support on-the-go disenchanting, as Honorbuddy's stuck handler goes on the fritz when I force the character to stop moving. Interesting that the Traveler's Backpack wasn't blacklisted after the first attempt, also.
public override void Pulse()
{
if (!CanDisenchant())
{
return;
}
if (FindDisenchantableItem() == null)
{
return;
}
WoWMovement.MoveStop();
DisenchantItem();
StyxWoW.Sleep(4000);
No no no no no no no no no. You should NEVER EVER use Thread.Sleep in a plugin, that's a horrible sugestion.Hey Wigglez, funny that you should mention this! I actually was playing around with your plugin last night to deal with this very issue. It isn't perfect, but if you add:
PHP:public override void Pulse() { if (!CanDisenchant()) { return; } if (FindDisenchantableItem() == null) { return; } WoWMovement.MoveStop(); DisenchantItem(); StyxWoW.Sleep(4000);
Specifically, the StyxWoW.Sleep after the call to disenchant item, the stuck issue (almost) disappears. Thought you might find that useful.
Mjj23
Disenchantrix
This plugin is an all-in-one resource for disenchanting. It was created by myself and AknA.
In the user interface, you can choose what you want Disenchantrix to do.
You can disenchant all disenchantable items. This includes soulbound/non-soulbound items, greens, blues, and purples. This is all able to be customized in the User Interface.
As soon as an item is detected as being "disenchantable," Disenchantrix will stop whatever it's doing and disenchant.
Place in your plugins folder.
Thread.Sleep doesn't quite achieve this, as after that time has finished, the profile puffs out its chest and gives me the bird.
Deleted
After trying to add this, Thread.Sleep and StyxWoW.Sleep had the same affect by disenchanting 1-3 items and then giving control back to the profile, resulting in strange behavior. After the profile was allowed to tick and perform an action, the plugin detected that it had more disenchantables, and proceeded to disenchant 1-3 more.
Anka is right though, thread sleep is a big no no. Trying to think of another solution, since I love the idea of this plugin.
A stopwatch / waittimer doesn't make profiles pause without freezing up hb, but I have an idea I'm going to try once I have the time to fiddle with this.Just make a stopwatch or a WaitTimer (in the Helpers), then use it. maybe? it doesnt freeze the bot and it's a bit better I guess
Ok, this one is completly experimental and I have no idea if this works or not, I just had an idea for how to solve it but as my wow isn't active I can't test it myself.
So feel free to test if this works to get rid of the, I'm stuck crap.
??Going to test it today, I played around with a Composite method to try to add a wait using WaitContinue, yesterday. It looks like you just took out the movestop? Seems like a simple solution, if it works.
Edit: Just saw you took out the pulse too. That seems like it should work?
public override void Pulse() {
if(!CanDisenchant()) {
return;
}
if(FindDisenchantableItem() == null) {
if (OldBotPoi.Type != PoiType.None && BotPoi.Current.Type == PoiType.None) {
BotPoi.Current = OldBotPoi;
OldBotPoi.Type = PoiType.None;
}
return;
}
WoWMovement.MoveStop();
if (OldBotPoi.Type == PoiType.None && BotPoi.Current.Type != PoiType.None) {
OldBotPoi = BotPoi.Current;
BotPoi.Clear();
}
DisenchantItem();
}