• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • [Plugin] QuitOnLoot - It kills your WoW

    Discussion in 'Archives' started by hansiwursti, Sep 20, 2011.

    1. hansiwursti

      hansiwursti New Member

      Joined:
      Aug 9, 2011
      Messages:
      4
      Likes Received:
      0
      Trophy Points:
      0
      QuitOnLoot - It kills your WoW

      Hello,
      this is my very first Plugin for HB. To be honest this is also my first attempt to code something. So dont expect much, i'am just very excited that it actually works :D .

      What it does:
      Quit on Item:
      The plugin checks a list with ItemID (you can add ItemIDs via the plugin interface). If you loot an item, which id you have added to your list, the plugin will execute one of these options:

      1.Quit wow.exe
      2.Play a Sound
      3.Log out from wow

      Quit on Lvl:
      If you reach the level, which you've enter in the lvl-textbox, the plugin will execute one of these options:

      1.Quit wow.exe
      2.Play a Sound
      3.Log out from wow

      Installation:
      Just extract the package to your plugin folder.

      Instruction:
      1. Open QuitOnLoot Settings.
      2. Add a valid ItemID (you can easily look up ItemIDs on wowhead.com. Just search for an item and copy the red part form the url: http://www.wowhead.com/item=44168/) in to the textbox.
      3. Click the "Add-Button".
      4. Click on the "Terminate Action-Tab" and choose which action should be executed, if your desired item was looted.
      5. [Optional] If you let your Bot grind over night for a desired item while you are sleeping. You can select the option "Quit wow.exe" in the plugin interface and also execute an AutoIt-Script, which will shutdown Windows if the Wow.exe process is terminated. So your PC would shutdown, if you looted your desired item!
        I could add a a compiled AutoIt-Script.exe to the package, but i think nobody would trust it....lets hope so... ;)
        I suggest, that you create the AutoIt-Script by yourself. Its not that hard.

        Here is the code for the AutoIt-Script:
        Code:
        While 1
        	If Not ProcessExists("WoW.exe") Then
        		Sleep(200)
        		Shutdown(5)
        	EndIf
        	Sleep(10)
        WEnd


      Known issues:
      1.If you add an invalid ItemID it will throw errors and you have to remove the ID manually from the ItemIdList.txt.
      2. You will notice a small delay while adding ItemIDs to your list. This happen because the plugin fetches itemnames for the IDs form the very, very slow wowhead.com site .
      3. Something, something...

      Why should you use it:
      1.It will save you electricity :D

      Special thanks and credits to:
      • My good buddy Dissens, who helped me a lot and also coded the hard parts
      • CodenameG, i used a bunch of code from Mr.Itemremover
      • Katzerle, his plugin is very impressive and it has useful stuff in it

      Download
       

      Attached Files:

      Last edited: Sep 21, 2011
    2. atg68

      atg68 New Member

      Joined:
      Oct 19, 2010
      Messages:
      933
      Likes Received:
      6
      Trophy Points:
      0
      good job and congrats on your first piece of code!
       
    3. topi4ek

      topi4ek New Member

      Joined:
      Jan 4, 2011
      Messages:
      95
      Likes Received:
      0
      Trophy Points:
      0
      It closes the process when an item gets into the bag or when it is drop from a corpse? For example, if in the Stonecore droped the stonescale dragon. Does plugin kill Wow before all party roll on it?
       
    4. SoulWeaver

      SoulWeaver New Member

      Joined:
      Sep 12, 2011
      Messages:
      225
      Likes Received:
      0
      Trophy Points:
      0
      Hmm just posted seeing if something like this was created. Could you add if whispered, your name was put in the chat window etc... that it closes the wow client? or gives an auto reply then closes it.
       
    5. hansiwursti

      hansiwursti New Member

      Joined:
      Aug 9, 2011
      Messages:
      4
      Likes Received:
      0
      Trophy Points:
      0
      Hi, thats a really good question. I assume that it only checks the items in your inventory, but i dont know if a loot window is counted as a part of your inventory. Maybe a experienced coder could tell me if this =

      "(WoWItem item in ObjectManager.GetObjectsOfType<WoWItem>(false)"

      only checks your inventory or also lootwindows and other windows with items in it (like vendors).
      Despite this, you (topi4ek ) could check this be yourself, by only checking the "Play Sound"-Button and look if it plays a sound, while looting the specific item.


      Yea, i also saw a request for this and already thought about it. I will try to implement this in the next release. Shouldn't be too hard.

      Thanks for the feedback!
       

    Share This Page