cdub1990
-
Posts
7 -
Joined
-
Last visited
Content Type
Forums
Articles
Bug Tracker
Downloads
Store
Posts posted by cdub1990
-
-
How would I go about making this? Ive tried everything and I cant get it to heal others :( Or myself for that matter anymore (in party)
-
On 2/18/2017 at 5:26 PM, iMod said:
You need to write a plugin for it. There is still one that reacts at chat messages, you could take a look at it.
It should be not that complicated.
1. Trade can be detected by event + name filter
2. A text parser(Regex) should do the rest
Here is a sample how i did it in one of my projects.public void Pulse(WaitChatCommand task) { // Log Log.WriteDebug($"Waiting for chat command \"{task.ChatCommand}\" from {task.UserName}."); // Create channel Channel chat = new Channel(); // Proceed until we have a match bool match = false; while (!match) { try { // Read chat while (chat.ActuelRead != Channel.GetMsgActuelInWow && Products.IsStarted) { // Get message Channel.Message message = chat.ReadMsg(); if (!string.IsNullOrWhiteSpace(message.Msg) && message.Channel == task.ChatType && message.UserName == task.UserName ) { // Is a known command? if (message.Msg == task.ChatCommand) { // Set match = true; } } // Wait Thread.Sleep(100); } } catch (Exception e) { // Log Logging.WriteError("[DungeonRobotActionCommand]: " + e); } } }
I also took the existing one from @Droidz as sample.
About the invite.public void Pulse(InviteToParty task) { // Still in the party? if (Party.GetParty().Any(p => p.Name == task.UserName)) { // Log Log.WriteDebug($"Skip invite player, because {task.UserName} is in the party."); return; } if ((Party.IsInGroup() && Party.CurrentPlayerIsLeader()) || !Party.IsInGroup()) { // Log Log.WriteDebug($"Invite {task.UserName} into the party."); // Invite player Lua.LuaDoString($"InviteUnit(\"{task.UserName}\");"); } else { // Log Log.WriteDebug($"Skip invite player, because we are not the leader."); return; } // Log Log.WriteDebug($"Wait until {task.UserName} is in the party."); // Wait until the player is in the party while (!Party.GetParty().Any(p => p.Name == task.UserName)) { // Wait Thread.Sleep(3000); // Invite player Lua.LuaDoString($"InviteUnit(\"{task.UserName}\");"); } }
There is some more stuff in it that you don't need but its just an example and I was to lazy and just copied some of my code
Hope that helps a bit.Damn, thank you for the explanation! Unfortunately idk how to code :(
-
-
How do I set a price for it to sell random green/blue items?
Say I want to set a green item for 25g and it sells all greens for 25g and 100g for a blue, and it sells each blue for that? Any ideas? -
8 hours ago, Phantom said:
404 not found
Same here, and it seems like BGs are buggy because of it (having to use the follow)
-
How would I go about doing this.
My plan is this.
Advertise in Trade.
When someone Whispers me with a keyword I invite them to partyWhen they say City name in Party I summon portal.
Then auto leave party after 30 secs after Portal Summoned.
Wouldnt mind being able to accept payments (just by donation) so auto trade would be nice
ty
Wrobot + WoW Client crash
in WRobot for Wow The Burning Crusade - Help and support
Posted
When trying to learn from Rogue Trainer
Any idea how to fix? Thanks