Thread: Region Creation 637

Results 1 to 9 of 9
  1. #1 Region Creation 637 
    Banned

    Join Date
    Aug 2012
    Posts
    611
    Thanks given
    88
    Thanks received
    118
    Rep Power
    0
    Add this in commands.java

    Code:
    if (command[0].equalsIgnoreCase("regioncoords")) {
    			player.sendMessage("RegionX: "+player.getLocation().getRegionX()+" RegionY: "
    				+player.getLocation().getRegionY()+" RegionId: "+
    					player.getLocation().getRegionId());
    		}

    Add this where ever
    Code:
    public static int[] chuncks = new int[2];
    Add this under your method that will be the region creator
    Code:
    chuncks = RegionBuilder.findEmptyMap(125, 125);
    I'm going to use my Fight Caves as an example.

    First, I used the "regioncoords" command inside the Fight Caves area and got RegionX: 298 RegionY: 633.

    The RegionX and RegionY are the coordinates of the region you are going to create.

    You will need to use this method to create the region
    Code:
    RegionBuilder.copyAllPlanesMap(RegionX, RegionY, RegionBuilder.getRegion(chuncks[0]), RegionBuilder.getRegion(chuncks[1]), ratio);
    player.teleport(chuncks[0]+10, chuncks[1]+10, 0)
    I have no idea what the ratio is. Maybe I could learn some RS Protocol and find out.

    Credits: Me
    Reply With Quote  
     

  2. Thankful user:


  3. #2  
    Registered Member Neurotoxin's Avatar
    Join Date
    May 2012
    Posts
    332
    Thanks given
    43
    Thanks received
    17
    Rep Power
    25
    please be more specific where you add :
    Code:
    public static int[] chuncks = new int[2];
    Code:
    chuncks = RegionBuilder.findEmptyMap(125, 125);
    unless you meant to add anywhere in commands.java

    For this :
    Code:
    RegionBuilder.copyAllPlanesMap(RegionX, RegionY, RegionBuilder.getRegion(chuncks[0]), RegionBuilder.getRegion(chuncks[1]), ratio);
    player.teleport(chuncks[0]+10, chuncks[1]+10, 0)
    To use this for example as if youre teleporting to a random event, you'd put this in the dialogue, correct?
    Reply With Quote  
     

  4. #3  
    Registered Member Neurotoxin's Avatar
    Join Date
    May 2012
    Posts
    332
    Thanks given
    43
    Thanks received
    17
    Rep Power
    25
    I don't think im doing this right :/

    Reply With Quote  
     

  5. #4  
    Banned

    Join Date
    Aug 2012
    Posts
    611
    Thanks given
    88
    Thanks received
    118
    Rep Power
    0
    Quote Originally Posted by Neurotoxin View Post
    I don't think im doing this right :/

    The freaky forester event isn't private. You need to go to each corner and get the coords
    Reply With Quote  
     

  6. #5  
    SERGEANT OF THE MASTER SERGEANTS MOST IMPORTANT PERSON OF EXTREME SERGEANTS TO THE MAX!

    cube's Avatar
    Join Date
    Jun 2007
    Posts
    8,881
    Thanks given
    1,854
    Thanks received
    4,741
    Rep Power
    5000
    Chunks are 8x8 so he's doing nothing wrong, you can use this to do anything you want



    Reply With Quote  
     

  7. Thankful user:


  8. #6  
    Registered Member Neurotoxin's Avatar
    Join Date
    May 2012
    Posts
    332
    Thanks given
    43
    Thanks received
    17
    Rep Power
    25
    Quote Originally Posted by Wildskiller View Post
    The freaky forester event isn't private. You need to go to each corner and get the coords
    I know its not, I was just testing it there. and which corner do i go for each coord?
    Reply With Quote  
     

  9. #7  
    Registered Member Neurotoxin's Avatar
    Join Date
    May 2012
    Posts
    332
    Thanks given
    43
    Thanks received
    17
    Rep Power
    25
    I think I'm figuring it out
    before :

    after :
    Reply With Quote  
     

  10. #8  
    Banned

    Join Date
    Aug 2012
    Posts
    611
    Thanks given
    88
    Thanks received
    118
    Rep Power
    0
    Quote Originally Posted by Neurotoxin View Post
    I think I'm figuring it out
    before :

    after :
    I was saying go to each corner because you only have one chunck and the freaky forester event needs all 4 chunks to create it's whole area
    Reply With Quote  
     

  11. #9  
    Registered Member Neurotoxin's Avatar
    Join Date
    May 2012
    Posts
    332
    Thanks given
    43
    Thanks received
    17
    Rep Power
    25
    oohh, okay.
    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. [637/639] Summoning Pouch Creation Hardcoded
    By runnny in forum Snippets
    Replies: 14
    Last Post: 05-10-2012, 11:47 PM
  2. 637 Summoning Pouch Creation Configs
    By chaflie in forum Requests
    Replies: 4
    Last Post: 01-16-2012, 10:19 AM
  3. Account Creation/highscores (637/639)
    By Yanez in forum Buying
    Replies: 0
    Last Post: 11-26-2011, 05:51 AM
  4. Clientscripts & mask for Pouch Creation [637]
    By chaflie in forum Requests
    Replies: 2
    Last Post: 10-28-2011, 02:38 PM
  5. 637 Handshake Account creation opcode
    By +Jedi+ in forum Requests
    Replies: 2
    Last Post: 09-28-2011, 10:36 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •