Thread: 06 Pking

Page 1 of 2 12 LastLast
Results 1 to 10 of 19
  1. #1 06 Pking 
    Registered Member
    Join Date
    Aug 2013
    Posts
    30
    Thanks given
    1
    Thanks received
    1
    Rep Power
    11
    How do i make something where you have to use only oldschool pking gear like only 2006 items.
    Reply With Quote  
     

  2. #2  
    The One And Only

    01053's Avatar
    Join Date
    Apr 2011
    Age
    28
    Posts
    2,887
    Thanks given
    417
    Thanks received
    885
    Rep Power
    856
    don't have a client that loads higher then 2006 revision items?
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Aug 2013
    Posts
    30
    Thanks given
    1
    Thanks received
    1
    Rep Power
    11
    Quote Originally Posted by 01053 View Post
    don't have a client that loads higher then 2006 revision items?
    This is not what i mean. I want to make it so like lets say a certin area.. Lets take my funpk for example. In that area you are only allowed to use 2006 pk gears. But everywhere else you can use what you want.
    Reply With Quote  
     

  4. #4  
    Respected Member

    Revil's Avatar
    Join Date
    Nov 2010
    Age
    30
    Posts
    4,860
    Thanks given
    3,715
    Thanks received
    2,228
    Rep Power
    5000
    if(itemID > 12340)
    {
    c.sendMessage("You're currently carrying/wielding an item not allowed in this pvp zone."
    return false;
    }

    It's just a basic idea for what you could do. Add an exception as such within the coordinates of the oldschool pvp zone in order to not allow higher revision items in it. "12340" being whatever the highest itemID of items you would allow in the zone.
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Aug 2013
    Posts
    30
    Thanks given
    1
    Thanks received
    1
    Rep Power
    11
    Quote Originally Posted by Revil View Post
    if(itemID > 12340)
    {
    c.sendMessage("You're currently carrying/wielding an item not allowed in this pvp zone."
    return false;
    }

    It's just a basic idea for what you could do. Add an exception as such within the coordinates of the oldschool pvp zone in order to not allow higher revision items in it. "12340" being whatever the highest itemID of items you would allow in the zone.
    Code:
    if(itemID >*12340){
    if(c.inPvP) {
    
    c.sendMessage("You're currently carrying/wielding an item not allowed in this pvp zone."):
    return false;
    so would it look like this?
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Jul 2013
    Posts
    196
    Thanks given
    18
    Thanks received
    9
    Rep Power
    0
    Quote Originally Posted by Akshay View Post
    Code:
    if(itemID >*12340){
    if(c.inPvP) {
    
    c.sendMessage("You're currently carrying/wielding an item not allowed in this pvp zone."):
    return false;
    so would it look like this?
    Code:
    if (playerCommand.startsWith("safepk")) {
    			c.getPA().startTeleport(coords, coords, 0, "modern");
    			c.sendMessage("Welcome to Safepk!!");
    		}
    if(itemID >*12340){
    if(c.inPvP) {
    
    c.sendMessage("You're currently carrying/wielding an item not allowed in this pvp zone."):
    return false;

    Something a long them lines.
    Reply With Quote  
     

  7. #7  
    Donator


    Join Date
    Aug 2012
    Posts
    2,462
    Thanks given
    312
    Thanks received
    459
    Rep Power
    457
    so all u did was add a teleport command to the code he pasted....
    Attached image

    Attached image
    Reply With Quote  
     

  8. #8  
    Banned

    Join Date
    Dec 2011
    Posts
    967
    Thanks given
    234
    Thanks received
    208
    Rep Power
    0
    Lol, in Walking.java

    Lets say in Player.java you have something like

    Code:
    	public boolean inOldSchool() {
    		return(jank);
    	}
    You can just do something like

    Code:
    	if (c.inOldSchool()) {
    		if (!c.isSuited()) {
    		c.getPA().movePlayer(safeZoneX,safeZoneY,0);
    		c.sendMessage("You need to remove all your items that aren't before the 2006 era to enter this area!");
    		}
    	}
    Code:
    	public boolean isSuited() {
    		for (int i=0;i<11;i++) {
    			if (c.playerEquipment[i] > 10000)
    			return false;
    		}
    		for (int x=10000; x<21000; x++) { //HORRIBLE way to do this, sorry :L
    			if (c.getItems().playerHasItem(x))
    			return false;
    		}
    	return true;
    	}
    Reply With Quote  
     

  9. Thankful user:


  10. #9  
    Project Drop-Zone Owner & The BLOOD Gang Always Banging RED


    Join Date
    May 2013
    Age
    28
    Posts
    2,992
    Thanks given
    5
    Thanks received
    937
    Rep Power
    183
    I would use what Revil suggested just add other items to it as you go. That's my opinion though
    Reply With Quote  
     

  11. #10  
    Project Drop-Zone Owner & The BLOOD Gang Always Banging RED


    Join Date
    May 2013
    Age
    28
    Posts
    2,992
    Thanks given
    5
    Thanks received
    937
    Rep Power
    183
    Or you could make a whole new area, just for what you are saying specifically and use what revil did or even rewrite it a bit.
    Reply With Quote  
     

Page 1 of 2 12 LastLast

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. Looking for 06/07 spawn server for pking!
    By Star in forum Requests
    Replies: 2
    Last Post: 03-27-2013, 01:17 AM
  2. Looking for 06/07 spawn server for pking!
    By Star in forum Advertise
    Replies: 2
    Last Post: 03-26-2013, 12:37 AM
  3. Replies: 39
    Last Post: 02-12-2013, 09:54 PM
  4. Replies: 23
    Last Post: 07-08-2012, 09:49 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
  •