Eidolic Posted May 19, 2017 Posted May 19, 2017 (edited) As of today my script is no longer working. From looking at the debugger the issue in my script seems to be coming from any instance of getEquipment(). I have been using this script for the past week with no changes for 10 hours plus. Has anything changed? To be specific I am trying to use it to bank using a ring of dueling I am wearing. Something like this: getEquipment().interact(EquipmentSlot.RING, "Clan Wars"); Edited May 19, 2017 by Eidolic
Adept Posted May 19, 2017 Posted May 19, 2017 I second this. Occasionally, getEquipment() returns null for me.
Explv Posted May 19, 2017 Posted May 19, 2017 Is the equipment tab open while you are getting these errors?
Eidolic Posted May 19, 2017 Author Posted May 19, 2017 38 minutes ago, Explv said: Is the equipment tab open while you are getting these errors? Update: I am an idiot and my game was in resizable. Is there some kind of check I can put in my script to change it from resizable to fixed onstart?
Guest Posted May 19, 2017 Posted May 19, 2017 1 hour ago, Explv said: Is the equipment tab open while you are getting these errors? Does it need to be open?
Teek Posted May 20, 2017 Posted May 20, 2017 if it returns null.. try using.. if (getEquipment() != null) { //code??? }
Zappster Posted May 20, 2017 Posted May 20, 2017 3 hours ago, Explv said: Is the equipment tab open while you are getting these errors? The method switches to equipment tab itself 1