Thread: Region IDS

Results 1 to 4 of 4
  1. #1 Region IDS 
    Registered Member
    G0nzo's Avatar
    Join Date
    Feb 2009
    Posts
    4,961
    Thanks given
    514
    Thanks received
    546
    Rep Power
    1735
    title says everything

    its for packet 120 or w/e for music
    Computer Science Graduate, Java Expert
    Need help with something? PM me
    Reply With Quote  
     

  2. #2  
    Brown
    Guest
    Quote Originally Posted by G0nzo View Post
    title says everything

    its for packet 120 or w/e for music
    player.getLastKnownRegion().getRegionX()
    player.getLastKnownRegion().getRegionY()

    I have no idea tbh

    You could do like if(player.geLocation().isInArea(x, y, z, x2, y2, z2) {
    play that music..
    Reply With Quote  
     

  3. #3  




    Scu11's Avatar
    Join Date
    Aug 2007
    Age
    27
    Posts
    16,200
    Thanks given
    7,190
    Thanks received
    12,174
    Discord
    View profile
    Rep Power
    5000
    absX / 64,
    absY / 64 = region X,Y


    public void playMusic(int regionX, int regionY) {

    switch(regionX) {
    case 5:
    switch(regionY) {
    case 7:
    player.play(NOOBIE_MELODY);
    break;
    default:
    player.play(NOTHING);
    }
    break;
    }

    }

    Somethin liek dat (just wrote it up in here).

    [Only registered and activated users can see links. ]



    Reply With Quote  
     

  4. #4  
    Registered Member
    G0nzo's Avatar
    Join Date
    Feb 2009
    Posts
    4,961
    Thanks given
    514
    Thanks received
    546
    Rep Power
    1735
    ahh kk thanks guys ill look into it and probly realese
    Computer Science Graduate, Java Expert
    Need help with something? PM me
    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

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •