Jump to content

angelsdust

Members
  • Posts

    3
  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by angelsdust

  1. Oh, haven't seen any exchangeContext() being used in the scripts I copied it from. Thanks for the tip, according to the API documentation it's deprecated? What is it supposed to do?
  2. Right, spend all day messing around and looking at other code examples, you actually need to pass on the API (Script Class) and then you can use that. Because your own script extends the Script class it too extends the functions in it allowing you to use log etc. I feel really stupid.
  3. Hello, not 100% scripting related but I am trying to clean up some of my code mess so I figured I should refactor it. However when I try to place my custom classes into a package the classes in the package can no longer access the OSBot api and simple stuff like logging becomes impossible. I am probably missing a config item somewhere but I can't find where, and using the search function I haven't found an answer either. Starting to wonder weither or not this is possible in the first place, basically in my main script I import WackPackage.SickClassNameHere but the SickClassNameHere can't do anything. Using Intelij 2018 CE with Linux. I configured my project like the tutorial here said (The 4 part one).
×
×
  • Create New...