coquitico1983 0 Posted May 9, 2021 Share Posted May 9, 2021 (edited) Greetings, I request the help of the community to try to guide me on a change that I want to make My pj arrives at the seller, sells but he has some resetas in the bags that have no monetary value so they stay in the bags and accumulate and space is wasted, is there a way to erase those worthless items? At the moment I am doing it with a macro, the plan is to be able to use that macro in C # code Quote /run for bag = 0, 4 do for slot = 1, GetContainerNumSlots(bag) do local name = GetContainerItemLink(bag,slot) if name and string.find(name,"ff1eff00") then PickupContainerItem(bag,slot) DeleteCursorItem() end end end Modify a code that restarts the instances Quote using System.Diagnostics; using System.ComponentModel; using System; using System.Threading; using System.Windows.Forms; using robotManager.Helpful; using robotManager.Products; using wManager.Plugin; using wManager.Wow.Helpers; public class Main : IPlugin { private bool _isLaunched; private int _lastContinentId; public void Initialize() { _isLaunched = true; _lastContinentId = Usefuls.ContinentId; Logging.Write("[ResetInstances] Started."); while (_isLaunched && Products.IsStarted) { try { if (Conditions.InGameAndConnectedAndAliveAndProductStartedNotInPause) { if (_lastContinentId != Usefuls.ContinentId) { Logging.Write("[ResetInstances] Contienent changed, reset instances."); string instanceType = wManager.Wow.Helpers.Lua.LuaDoString<string>("local inInstance, instanceType = IsInInstance(); return instanceType;"); if (instanceType == "party") { Thread.Sleep(1000); SendKeys.SendWait("(3)"); // esto simula que se preciono la tecla 3 y hay tengo una macro Process.Start("C:\\Enviar Alt C\\Enviar Alt y C.exe"); SendKeys.SendWait("%(c)"); //System.Windows.MessageBox.Show("Estoy en masmorra "); } else { Lua.LuaDoString("ResetInstances();"); Lua.LuaDoString("SetDungeonDifficulty(1/2);"); //System.Windows.MessageBox.Show("No salio ni verga "); } _lastContinentId = Usefuls.ContinentId; } } } catch (Exception e) { Logging.WriteError("[ResetInstances]: " + e); } Thread.Sleep(50); } } public void Dispose() { _isLaunched = false; Logging.Write("[ResetInstances] Stoped."); } public void Settings() { MessageBox.Show("No settings"); } } I have a druid rotation to enter the instance in inviisible feline mode I enter Gundrak until I reach some of there when it touches water it transforms into a seal and it is where in combat it kills the fish and farms them since they drop a lot of armor, when ends it leaves the instance and goes to sell, that's why I want to add the macro to the C # code so as not to have to modify so many things, I'm trying to make the configuration that C # code Image Edited May 9, 2021 by coquitico1983 add more information Link to comment https://wrobot.eu/forums/topic/13044-delete-items-with-no-value/ Share on other sites More sharing options...
Droidz 2738 Posted May 9, 2021 Share Posted May 9, 2021 Hello, few wow addons can do that Link to comment https://wrobot.eu/forums/topic/13044-delete-items-with-no-value/#findComment-61998 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now