AliveInMe 8 Posted December 16, 2017 Package reference org.tribot.api2007.types In this tutorial, I will explain the key differences between the 'Entity' types and how to use them correctly. Types that we will discuss: RSNPC RSObject RSGroundItem Determining which in-game interactable is a certain type is simpler than you think. The game has them color coded so you know which type each interactable is. RSNPC's will have yellow name tags in game RSObjects will have blue name tags in game RSGroundItems will have orange name tags in game While we now know how to determine game types, we need to understand how to use them. For NPC's we would use the RSNPC class. Our code should look like this RSNPC[] raidBoss = NPCs.find(...); //other checks here For Object's we would use the RSObject class. Our code should look like this RSObject[] objects = Objects.find(...); //other checks here For GroundItems we would use the RSGroundItem class. Our code should look like this. RSGroundItem[] lootable = GroundItems.find(...); //other checks here There are many types that I have not discussed. Feel free to explore the API to find those types I hope I at least helped one beginner with my type tutorial. If something needs a correction, feel free to drop feedback in the comment section below Thank you, AIM 2 Share this post Link to post Share on other sites
lets be friends 168 Posted December 16, 2017 Looks cool, haven't even noticed they are color coded lmao. Woulda helped a lot when I first started and couldn't figure out why the fishing spots weren't showing up as objects. 1 Share this post Link to post Share on other sites
AliveInMe 8 Posted December 16, 2017 1 minute ago, lets be friends said: Looks cool, haven't even noticed they are color coded lmao. Woulda helped a lot when I first started and couldn't figure out why the fishing spots weren't showing up as objects. Haha. Had that happen to me too. Share this post Link to post Share on other sites
Einstein 649 Posted December 16, 2017 Will definitely help out new users learning the API. Good job! 1 Share this post Link to post Share on other sites
AliveInMe 8 Posted December 16, 2017 6 hours ago, Einstein said: Will definitely help out new users learning the API. Good job! Thanks Share this post Link to post Share on other sites