Jump to content

eniac86

Members
  • Posts

    143
  • Joined

  • Last visited

Posts posted by eniac86

  1. Hey thanks for the help.

    I discovered 2 weird problems:
    First the lua does not accept the item name "Big-mouth Clam", if you just write "Clam" or "Big" it will work. Seems to be a problem with the "-", but i don't know how to escape it :(
    Second the keydown function seems to have no effect. Although if you hold down the shift key manually it works fine and will loot the clams.

    edit:
    hm weird. tried some things to get the item name with the "-" working but WoW itself seems to have a problem with it's own item name.

  2. Hey i'm trying to write a plugin that will open crates and clams while fishing.
    Sadly i have no idea how to send a shift+right-click to an item.
    Does anyone have an idea how to do that ?

    this does not work:

    wManager.Wow.Helpers.ItemsManager.UseItem(item.Name);
    Lua.LuaDoString("LootButton1:Click()");

    this might work but i don't know how to continue:

    foreach (WoWItem item in items) 
    	{
    		if (item.Name.Equals("Heavy Crate") || item.Name.Equals("Big-mouth Clam"))
    		{
    			wManager.Wow.Helpers.Bag.OpenAllBags();
    			List<int> bagAndSlot = wManager.Wow.Helpers.Bag.GetItemContainerBagIdAndSlot(item.Name);
    			...
    			x=?
    			y=?
    			robotManager.Helpful.Keyboard.DownKey(wManager.Wow.Memory.WowMemory.Memory.WindowHandle, System.Windows.Forms.Keys.Shift);
    			robotManager.Helpful.Mouse.ClickRight();
    			robotManager.Helpful.Keyboard.UpKey(wManager.Wow.Memory.WowMemory.Memory.WindowHandle, System.Windows.Forms.Keys.Shift);
    			wManager.Wow.Helpers.Bag.CloseAllBags();
    		}
    
    	}

     

×
×
  • Create New...