• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • UseItem Syntax

    Discussion in 'Community Developer Forum' started by legit, Feb 20, 2016.

    1. legit

      legit Member

      Joined:
      Apr 28, 2013
      Messages:
      89
      Likes Received:
      0
      Trophy Points:
      6
      Hello Guys,

      i found the UseItem syntax in the API.Documentation - i want to add medpacks/adrenals/stims usage to my rotation.

      Syntax:
      public static bool UseItem(
      TorItem item
      )

      so as far as my understanding is - in my rotation i would write

      UseItem ( TorItem ) -> has anyone got a clue how i can figure out the right spelling for the items (TorItem) ?

      best regards
      legit


      **EDIT
      in the old PureSWTOR Routines they used Medpack like this
      MedPack.UseItem(ret => Me.HealthPercent <= 20) <- but this is not working anymore
       
      Last edited: Feb 20, 2016
    2. Cryogenesis

      Cryogenesis Moderator Moderator

      Joined:
      Jul 13, 2010
      Messages:
      2,128
      Likes Received:
      13
      Trophy Points:
      38
      Because medpack is a script that resides somewhere in the pure code.
      If You search it and copy it over You have it
       
    3. legit

      legit Member

      Joined:
      Apr 28, 2013
      Messages:
      89
      Likes Received:
      0
      Trophy Points:
      6
      i am sorry to disappoint you - i can't find such script...in my opinion "InventoryManager" should do the work?
      ....could be that i am to dumb also
       
    4. Cryogenesis

      Cryogenesis Moderator Moderator

      Joined:
      Jul 13, 2010
      Messages:
      2,128
      Likes Received:
      13
      Trophy Points:
      38
      Look on top of that cs file and See it includes something from buddywing.
      Copy that over to the routine cs and see if it fires.
       
    5. legit

      legit Member

      Joined:
      Apr 28, 2013
      Messages:
      89
      Likes Received:
      0
      Trophy Points:
      6
      i see what you mean**, already did that - didnt worked

      **edit:
      copyed :
      using Buddy.BehaviorTree;
      using Buddy.Swtor;
      using Buddy.Swtor.Objects;
       
    6. legit

      legit Member

      Joined:
      Apr 28, 2013
      Messages:
      89
      Likes Received:
      0
      Trophy Points:
      6

      perhaps you could help me with that? i am such a noob i am sorry :p
       
    7. legit

      legit Member

      Joined:
      Apr 28, 2013
      Messages:
      89
      Likes Received:
      0
      Trophy Points:
      6
      i found this "old plugin" from neo93 - copied it in the plugin folder and renamed the medpack stims etc. but it's not goin to work...perhaps u can have a look over it ?

      thanks :)

      View attachment RelicManager.cs

      best regards
      legit
       

    Share This Page