jordyownn 2 Share Posted December 28, 2016 Hi, I have a problem with setting a gameobject fishing spot. First i thought it was the string GameObject fishingspot = getGameObjects().closest("Fishing spot"); So i got the entity id of the fishing spot = 1510 allways have the cage option but it allways returns null GameObject fishingspot = getGameObjects().closest(1510); log("" + fishingspot); if(fishingspot != null && fishingspot.hasAction("Cage")) { fishingspot.interact("Cage"); status = "Fishing"; sleepUntil(() -> getInventory().isFull() || !fishingspot.exists(), Calculations.random(9321,12500)); } Thanks in advance. Link to comment Share on other sites More sharing options...
Pandemic 2709 Share Posted December 28, 2016 Fishing spots are actually NPCs (weird I know ) Link to comment Share on other sites More sharing options...
jordyownn 2 Author Share Posted December 28, 2016 Fishing spots are actually NPCs (weird I know ) Thanks Pandemic! Link to comment Share on other sites More sharing options...
bonbom1 19 Share Posted December 28, 2016 Been there Link to comment Share on other sites More sharing options...
Volta 183 Share Posted December 28, 2016 (text colour in-game) NPCs GameObjects Link to comment Share on other sites More sharing options...
Pandemic 2709 Share Posted December 28, 2016 (text colour in-game) NPCs GameObjects I've found a few exceptions to that, like an NPC with the blue name, the best way to check is using the game debugger Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.