Thread: Help me please

Results 1 to 9 of 9
  1. #1 Help me please 
    Registered Member
    Join Date
    Sep 2016
    Posts
    22
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    I am Starting A new project Called
    Project Cookie Z
    i plan to accomplish alot of things this server is based on zombie survival, ive looked around and i cant see many servers that have this, most of the ones i have seen are shutdown and i need help,
    can someone tell me [im using pi 317] how would i go along making it so it will choose different spawn coords everytime you log on?

    -Mike

    i was thinking of, the server roles a dice gets a number that number is a set of coords
    Reply With Quote  
     

  2. #2  

    → Cheap Animated Banners ←



    Zexillium's Avatar
    Join Date
    Dec 2011
    Posts
    2,780
    Thanks given
    1,174
    Thanks received
    1,155
    Rep Power
    3284
    Not to be rude, but if you cant even add different spawn coords then you should probably think twice before you start coding a zombie server. It's not just changing locations and adding like 2-3 different zombies that will make the game into a zombie server.
    New Discord is 'zexillium'
    ↓ PROUD SUPPORTER OF ↓

    Attached image

    --> See My Animated Banner Shop <--
    Reply With Quote  
     

  3. #3  
    Banned
    Join Date
    Aug 2017
    Posts
    37
    Thanks given
    3
    Thanks received
    8
    Rep Power
    0
    Code:
    misc.random
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Sep 2016
    Posts
    22
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    this is why im learning from a nice community
    Reply With Quote  
     

  5. #5  
    ᗪ乇尺乇乙乙乇ᗪ

    lumplum's Avatar
    Join Date
    Nov 2015
    Posts
    1,145
    Thanks given
    529
    Thanks received
    1,463
    Rep Power
    5000
    Its a very interesting idea but you must keep in mind when you make these random coords it doesn't put you outside the map or in places you may not get out of (mini game locations). Hopefully someone can help you out because I don't have much idea either
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Sep 2016
    Posts
    22
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by lumplum View Post
    Its a very interesting idea but you must keep in mind when you make these random coords it doesn't put you outside the map or in places you may not get out of (mini game locations). Hopefully someone can help you out because I don't have much idea either
    what i rly ment was say
    1st number is a set of coords
    2nd number is a set of coords
    4th number is a set of coords
    5th number is a set of coords
    6th number is a set of coords

    the server rolls a 6 sided dice or chooses a number from 1-6 and whatever number it is u spawn at them coords but i need the code for it
    Reply With Quote  
     

  7. #7  
    Special Snowflake

    DeathKid's Avatar
    Join Date
    May 2013
    Posts
    385
    Thanks given
    191
    Thanks received
    97
    Rep Power
    383
    Quote Originally Posted by minibikit View Post
    what i rly ment was say
    1st number is a set of coords
    2nd number is a set of coords
    4th number is a set of coords
    5th number is a set of coords
    6th number is a set of coords

    the server rolls a 6 sided dice or chooses a number from 1-6 and whatever number it is u spawn at them coords but i need the code for it
    Just do something like if player.roll == 1 and then use the teleport method with the coords so something like teleport.player (x,y). Then you just do else if player.roll == 2, etc. until you reach your 6 mark. Very rough idea but i'm just giving you an approach that you could use.

    edit: keep in mind the methods and code will be different with your source, you need to find the method names not use the ones I used as an example.
    "Always remember that you are unique. Just like everyone else" - My Mom
    Reply With Quote  
     

  8. #8  
    Community Veteran


    Arch337's Avatar
    Join Date
    Sep 2008
    Posts
    2,950
    Thanks given
    210
    Thanks received
    349
    Rep Power
    1376
    There is many ways to go about this. You could setup enums with spawn coordination and have it select one on random when you log on.


    "A fail act is something you do regular, but a dumb act is something you can learn from"
    Spoiler for Problem?:
    Reply With Quote  
     

  9. #9  
    Registered Member
    Join Date
    Sep 2012
    Posts
    35
    Thanks given
    0
    Thanks received
    6
    Rep Power
    15
    basically..
    Code:
    public boolean hasSpawned = false;
    	public void changeSpawn() {
    		int roll;
    		if (c != null && !hasSpawned) {
    			roll = Misc.random(1, 6);
    			if (roll == 1) {
    				c.getPA().movePlayer(3232, 3232, 0);
    			}
    			if (roll == 2) {
    				c.getPA().movePlayer(5454, 5454, 0);
    			}
    			hasSpawned = true;
    		}
    	}
    R-S Admin Response  wot
    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 me please, this is urgent..
    By Mike in forum Chat
    Replies: 7
    Last Post: 02-16-2009, 03:57 AM
  2. Help me, PLEASE!
    By Epic Scape in forum Chat
    Replies: 2
    Last Post: 10-27-2008, 02:51 PM
  3. Help me please
    By Guitars595 in forum Help
    Replies: 0
    Last Post: 10-18-2008, 05:05 AM
  4. Help me please, i found no request zone..
    By Amirtje12 in forum Tutorials
    Replies: 1
    Last Post: 09-12-2008, 12:38 PM
  5. help me please
    By uchiha owner in forum Tutorials
    Replies: 4
    Last Post: 01-23-2008, 07:27 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
  •