Thread: Object Distance

Results 1 to 3 of 3
  1. #1 Object Distance 
    Registered Member
    Join Date
    May 2013
    Posts
    282
    Thanks given
    11
    Thanks received
    7
    Rep Power
    11
    After packing my Vencillio base with 131 data, I had to put the bank booths in

    PlayerConstants:
    Code:
    if ((objectId == 2072) || (objectId == 6943) || (objectId == 6084) || (objectId == 10517) || (objectId == 11758)) {
    			return true;
    		}
    and

    WalkToActions:
    Code:
    } else if ((id == 6084) || (id == 10517) || (id == 11758) || (id == 6943)) {
    			player.getBank().openBank();
    			return;
    		}

    I noticed that when I click on a bank from far away now, it can be opened from pretty far away, and your character stops moving. Is there a way to stop that from happening?
    Reply With Quote  
     

  2. #2  
    Waddup

    Stan's Avatar
    Join Date
    Apr 2016
    Posts
    376
    Thanks given
    110
    Thanks received
    394
    Rep Power
    521
    Move that code in the WalkToActions from public static void clickObject to public static void finishObjectClick
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Registered Member
    Join Date
    May 2013
    Posts
    282
    Thanks given
    11
    Thanks received
    7
    Rep Power
    11
    Quote Originally Posted by Stan_ View Post
    Move that code in the WalkToActions from public static void clickObject to public static void finishObjectClick
    Thanks man! Appreciate the help. For some reason though my objects keep disappearing after teleporting away and then teleporting back (ex. the altar) even though I have it in PlayerConstants...
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. [PI]Stop useless object distance check
    By Aleksandr in forum Snippets
    Replies: 21
    Last Post: 04-11-2013, 12:41 AM
  2. thieving/objects distance [PI]
    By Malin K in forum Help
    Replies: 3
    Last Post: 09-12-2012, 07:02 PM
  3. [PI] Basic Use Item on Object Distance Check
    By Aleksandr in forum Snippets
    Replies: 1
    Last Post: 09-18-2011, 12:56 AM
  4. Object Distance Offset calculation
    By Aleksandr in forum Requests
    Replies: 2
    Last Post: 09-17-2011, 11:31 PM
  5. PI Object Distance
    By Jason in forum Help
    Replies: 3
    Last Post: 05-22-2011, 05:18 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •