scsfl
-
Posts
30 -
Joined
-
Last visited
Reputation Activity
-
scsfl reacted to Pudge in fly away if you meet a specific player
Wonderful, it finally worked, but he still doesn’t want to mount, he had to add the command manually.
You can use it to avoid unwanted players, if this occurs, the bot will stop all actions and fly away to the Crystal Song Forest, the position can be changed, it works only in Northrend
plagin.cs
-
scsfl got a reaction from zhxwbr8 in How to delete redundant items?
@Matenia has shared an example containing method you're looking for.
-
scsfl reacted to Matenia in Forwarding lua events in C#
Don't create a frame locally and you'll find you can actually access globally. It's Lua 101.
-
scsfl reacted to Matenia in Forwarding lua events in C#
Pro tip: There are no events being skipped.
If you look at my framework it works perfectly.
If you're running patch 6.x or higher, you need your own combatlog parser. Create a lua frame that subscribes to the event, get the payload, store it in a table and periodically empty the table and read the contents "line by line".
-
scsfl reacted to Matenia in Fightclass Framework for 2.4.3/3.3.5a and more
If you've seen my 1.12 fightclass framework, this is basically the much enhanced version.
It should work for WoW 2.4.3 and 3.3.5a, possibly many more expansions. The only thing you would have to do is adjust the way combatlog events are parsed, if paramters have changed in your expansion. Everything else should be handled by wRobot.
Below you can find the GitHub repository. It also contains a very simple enhancement shaman fightclass as an example that you could change to fit your own needs.
This is for developers only. If you're a regular user, I recommend just buying my fightclasses. They are, in my opinion, fairly priced.
Features:
- checks with server if a spell was successful
- support for different types of spells
- no more double casts of any sort (heals, debuffs, damage)
- possibility to ignore server responses
- easy offtarget handling
- performant caching and rotation handling
- possibility to use as a healing framework
- support for wanding
- multilanguage support
- dispel by debuff type
https://github.com/Schaka/wRobotFightclassFrameworkEnhanced
@Droidz would be nice if you could sticky/pin this thread
-
scsfl got a reaction from Pudge in Min value from list AuctionItem
Hi. Try this. Returns a dictionary where key is itemname and value is lowest price.
private static Dictionary<string, int> GetLowestItemPrice() { Dictionary<string, int> CheapestItems = new Dictionary<string, int>(); List<AuctionHelpers.AuctionItem> ItemsList = new List<AuctionHelpers.AuctionItem>(); List<string> ItemsToCheck = /*your list of items*/ int LowestPrice = 0; if (AuctionHelpers.AuctionHouseIsShown()) foreach (string item in ItemsToCheck) { AuctionHelpers.BrowseNameSetText(item); Thread.Sleep(2000); AuctionHelpers.IsUsableCheckButtonSetChecked(false); if (AuctionHelpers.BrowseSearchButtonIsEnabled()) { AuctionHelpers.BrowseSearchButtonClick(); Thread.Sleep(2000); while (AuctionHelpers.BrowseNextPageButtonIsEnabled()) { if (AuctionHelpers.GetBrowsePageItems().Any()) { ItemsList.AddRange(AuctionHelpers.GetBrowsePageItems()); AuctionHelpers.BrowseNextPageButtonClick(); Thread.Sleep(1000); } } if (AuctionHelpers.GetBrowsePageItems().Any()) ItemsList.AddRange(AuctionHelpers.GetBrowsePageItems()); ItemsList.RemoveAll(i => (i.Name != item) || (i.BuyoutPricePerUnit == 0)); LowestPrice = ItemsList.Min(price => price.BuyoutPricePerUnit); CheapestItems.Add(item, LowestPrice); } } foreach (KeyValuePair<string, int> kvp in CheapestItems) { Logging.Write("Itemname = " + kvp.Key + "Itemprice " + kvp.Value); } AuctionHelpers.CloseAuctionHouse(); return CheapestItems; }
-
scsfl reacted to Droidz in Node search radius
Hello,
1:
float radius = 50; foreach (var o in ObjectManager.GetObjectWoWGameObject()) { if (o.IsValid && o.GetDistance < radius && o.CanOpen) { // your code here } } 2:
foreach (var o in ObjectManager.GetObjectWoWPlayerTargetMe()) { if (o.IsValid) { // your code here } } or
foreach (var o in ObjectManager.GetObjectWoWPlayer()) { if (o.IsValid && o.IsTargetingMe) // o.IsTargetingMeOrMyPet { // your code here } }