Thread: random starter spawn coords (help)

Results 1 to 2 of 2
  1. #1 random starter spawn coords (help) 
    Officially Running

    Mr Dream's Avatar
    Join Date
    Dec 2013
    Posts
    1,922
    Thanks given
    555
    Thanks received
    295
    Rep Power
    905
    hey so i wanna have different spawn coords so people login in different locations and not just the same

    public static final int START_LOCATION_X = 3094;
    public static final int START_LOCATION_Y = 3106;
    i wanna have like misc1 loc x (xxxx), y (xxxx)
    misc2 loc x (xxxx), y (xxxx)
    misc3 loc x (xxxx), y (xxxx)

    etc.. id be very glad if someone helps me here with the code! =)
    Attached image
    Attached image
    Reply With Quote  
     

  2. #2  
    Donator


    Join Date
    Jan 2010
    Age
    29
    Posts
    4,122
    Thanks given
    274
    Thanks received
    551
    Rep Power
    738
    Code:
    public int[][] spawn_locations = {
    {"x", "y"},
    {"x", "y"},
    {"x", "y"},
    };
    Code:
    int[] randomSpawn = Misc.random(spawn_locations.length);
    
    x = randomSpawn[0]
    y = randomSpawn[1]
    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. Help with Random Npc Spawn! ++REP!
    By Dodian.COM in forum Help
    Replies: 0
    Last Post: 05-25-2015, 04:50 PM
  2. 718 help random item spawn, will thank!
    By nusenia in forum Help
    Replies: 4
    Last Post: 10-19-2014, 04:49 PM
  3. Help: Spawn Coords What source to use 2006
    By stijnhero in forum Help
    Replies: 1
    Last Post: 12-09-2012, 10:20 PM
  4. [z508] COORDS HELP! FAST!
    By r a n g e d in forum Help
    Replies: 2
    Last Post: 10-18-2009, 06:29 PM
  5. Spawning npc help
    By Pitx in forum Help
    Replies: 1
    Last Post: 08-15-2009, 06:15 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
  •