Jump to content
fireblast

How to get npc location

Recommended Posts

Hello there guys i want to create my own sorc garden winter course bot for leveling few farming lvl's so as thieving, but i can't understand how to make my script determine whenever to go.Currenly i'm using area's but that's not the most effective way of doing it :( so i'f sombody could help that would be fantastic ;) 

 

 

 

Link to comment
Share on other sites

     //If you are using it to get the position + closest npc for a fighter script or so
          NPC name = npcs.closest("npc name");
          name.getPosition();

     //if you want to use it for a position only then
          NPC name = npcs.closest("npc name").getPosition();

      //however you can do that to get the x and y coords
          name.getPosition().getX();
          name.getPosition().getY();

I hope i have helped, Enjoy ;)

Edited by Mr Pro Pop
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...