dekos34laa
New Member
- Joined
- Oct 19, 2015
- Messages
- 1
Hello, tell me why does not work the plugin+gring bot?
When enabled plug-in is not carried out the action profile.
When the plugin is enabled then the actions of the profile run.
I want my character came to town, the activated DND and began to write messages in chat.
Please help me.
PLUGIN
GRIND PROFILE
When enabled plug-in is not carried out the action profile.
When the plugin is enabled then the actions of the profile run.
I want my character came to town, the activated DND and began to write messages in chat.
Please help me.
PLUGIN
Code:
using System;
using System.Windows.Media;
using System.Threading;
using System.Diagnostics;
using Styx.Common;
using Styx.Common.Helpers;
using Styx.Plugins;
using Styx.WoWInternals;
namespace DND
{
public partial class DND : HBPlugin
{
#region Overrides of HBPlugin
public override string ButtonText { get { return "No Settings"; } }
public override bool WantButton { get { return false; } }
public override void OnButtonPress() { }
public override string Name { get { return "SpamTrade"; } }
public override string Author { get { return "Powa"; } }
public override Version Version { get { return new Version(0, 1); } }
#endregion
int timeInSeconds = 11;
string tradeMessage = "TRAGE";
string lfgMessage = "LFG";
string dndMessage = "DND";
public bool isDND { get { return Styx.StyxWoW.Me.IsDNDFlagged; } }
public override void Pulse()
{
if (!isDND)
{
// DND Activation
Lua.DoString("RunMacroText(\"/dnd " + dndMessage + "\")");
Logging.Write(Colors.SeaGreen, "Your are now Busy : " + dndMessage);
Styx.StyxWoW.SleepForLagDuration();
// Spaming Channel
int waitTime = timeInSeconds *1000;
Lua.DoString("SendChatMessage(\"" + tradeMessage + "\",\"CHANNEL\", nil, 2)");
Lua.DoString("SendChatMessage(\"" + lfgMessage + "\",\"CHANNEL\", nil, 4)");
Thread.Sleep(waitTime);
}
}
}
}
GRIND PROFILE
Code:
<HBProfile>
<Name>Terrokar Forest Mining</Name>
<MinLevel>1</MinLevel>
<MaxLevel>8</MaxLevel>
<MinDurability>0.3</MinDurability>
<MinFreeBagSlots>2</MinFreeBagSlots>
<MailGrey>false</MailGrey>
<MailWhite>false</MailWhite>
<MailGreen>true</MailGreen>
<MailBlue>true</MailBlue>
<MailPurple>true</MailPurple>
<SellGrey>true</SellGrey>
<SellWhite>true</SellWhite>
<SellGreen>false</SellGreen>
<SellBlue>false</SellBlue>
<SellPurple>false</SellPurple>
<Hotspots>
<Hotspot X="-1288.668" Y="185.6716" Z="59.39009" />
</Hotspots>
</HBProfile>