Thread: [pi] pick-pocket option [pi]

Results 1 to 9 of 9
  1. #1 [pi] pick-pocket option [pi] 
    i want a PM. The best in life is free.
    Project M's Avatar
    Join Date
    Mar 2012
    Posts
    368
    Thanks given
    20
    Thanks received
    13
    Rep Power
    14
    ive added:
    Code:
           getPA().showOption(4, 0, "Trade");
                getPA().showOption(5, 0, "Follow");
    (those 2 works)
    
    	getPA().showOption(6, 0, "Pick-pocket"); // 
    but i cant see the pickpocket option? also tried to change the 6 to 3 , 2 1 and 0 . but still cant see the option.

    any idea what to do?
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  2. #2  
    Donator

    Arithium's Avatar
    Join Date
    May 2010
    Age
    28
    Posts
    4,758
    Thanks given
    199
    Thanks received
    1,256
    Rep Power
    1114
    Pretty sure you have to add the drawing of the option client sided if your gonna add an extra. otherwise you can just replace attack option with that option while your not in the wilderness. and in your checkReqs method in ocmbatassistant.java add a check to perform that action if your not in the wild.
    Reply With Quote  
     

  3. #3  
    q.q


    Join Date
    Dec 2010
    Posts
    6,535
    Thanks given
    1,072
    Thanks received
    3,534
    Rep Power
    4752
    Code:
    	case 104:
    				int actionIndex = inStream.getByteC();
    				int displayType = inStream.getByteA();
    				String playerAction = inStream.readString();
    				if(actionIndex >= 1 && actionIndex <= 5) {
    					if(playerAction.equalsIgnoreCase("null"))
    						playerAction = null;
    					atPlayerActions[actionIndex - 1] = playerAction;
    					atPlayerArray[actionIndex - 1] = displayType == 0;
    				}
    				packetId = -1;
    				return true;
    only supports 1 >= && <= 5

    Code:
    player.getActionSender().sendPlayerOption(4, false, "Follow");
    			player.getActionSender().sendPlayerOption(5, false, "Trade With");
    is 4 and 5, 3 is usually attack

    so try 2 or 1

    also make sure something else isn't writing over it, by default in PI it'll have the sendOptions in process

    Code:
    	getActionSender().mapBlackout(0);
    			getActionSender().walkableInterface(-1);
    			getActionSender().sendPlayerOption(3, false, "null");
    		} else {
    			getActionSender().sendPlayerOption(3, false, "null");
    			getActionSender().sendPlayerOption(2, false, "null");
    		}
    Reply With Quote  
     

  4. #4  
    i want a PM. The best in life is free.
    Project M's Avatar
    Join Date
    Mar 2012
    Posts
    368
    Thanks given
    20
    Thanks received
    13
    Rep Power
    14
    Quote Originally Posted by Harlan View Post
    Code:
    	case 104:
    				int actionIndex = inStream.getByteC();
    				int displayType = inStream.getByteA();
    				String playerAction = inStream.readString();
    				if(actionIndex >= 1 && actionIndex <= 5) {
    					if(playerAction.equalsIgnoreCase("null"))
    						playerAction = null;
    					atPlayerActions[actionIndex - 1] = playerAction;
    					atPlayerArray[actionIndex - 1] = displayType == 0;
    				}
    				packetId = -1;
    				return true;
    only supports 1 >= && <= 5

    Code:
    player.getActionSender().sendPlayerOption(4, false, "Follow");
    			player.getActionSender().sendPlayerOption(5, false, "Trade With");
    is 4 and 5, 3 is usually attack

    so try 2 or 1

    also make sure something else isn't writing over it, by default in PI it'll have the sendOptions in process

    Code:
    	getActionSender().mapBlackout(0);
    			getActionSender().walkableInterface(-1);
    			getActionSender().sendPlayerOption(3, false, "null");
    		} else {
    			getActionSender().sendPlayerOption(3, false, "null");
    			getActionSender().sendPlayerOption(2, false, "null");
    		}

    already tried. still dosent work:C


    Code:
    case 104:
    					int j4 = inStream.method427();
    					int i12 = inStream.method426();
    					String s6 = inStream.readString();
    					if(j4 >= 1 && j4 <= 5) {
    						if(s6.equalsIgnoreCase("null"))
    							s6 = null;
    						atPlayerActions[j4 - 1] = s6;
    						atPlayerArray[j4 - 1] = i12 == 0;
    					}
    					pktType = -1;
    					return true;
    that is my code



    Quote Originally Posted by animeking1120 View Post
    Pretty sure you have to add the drawing of the option client sided if your gonna add an extra. otherwise you can just replace attack option with that option while your not in the wilderness. and in your checkReqs method in ocmbatassistant.java add a check to perform that action if your not in the wild.
    i do , but then i cant have follow/ trade with :C

    i want 3 options.
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  5. #5  
    HTML5, jQuery & CSS3 Master
    Jaiden Watling's Avatar
    Join Date
    Nov 2010
    Age
    26
    Posts
    890
    Thanks given
    306
    Thanks received
    92
    Rep Power
    0
    this is what i have:
    getPA().showOption(2, 0,"@[email protected]@[email protected]", 2);

    try that.

    Reply With Quote  
     

  6. #6  
    i want a PM. The best in life is free.
    Project M's Avatar
    Join Date
    Mar 2012
    Posts
    368
    Thanks given
    20
    Thanks received
    13
    Rep Power
    14
    Quote Originally Posted by Socioscape View Post
    this is what i have:
    getPA().showOption(2, 0,"@[email protected]@[email protected]", 2);

    try that.
    still dosent work :C


    edit:
    got it showing. but i want the normal one

    now i get this in console

    Code:
    [15.07.12 14:27]: Krixis sending invalid PacketType: 153. PacketSize: 2
    [15.07.12 14:27]: Game saved for player Krix
    [15.07.12 14:27]: LOGGED OUT: Krix
    [15.07.12 14:27]: ID: 502 State: 0
    [15.07.12 14:27]: ID: 503 State: 0
    [15.07.12 14:27]: ID: 504 State: 0
    [15.07.12 14:27]: ID: 505 State: 0
    [15.07.12 14:27]: ID: 508 State: 0
    [15.07.12 14:27]: ID: 515 State: 0
    [15.07.12 14:27]: ID: 166 State: 4
    [15.07.12 14:27]: [REGISTERED]: Krix
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  7. #7  
    HTML5, jQuery & CSS3 Master
    Jaiden Watling's Avatar
    Join Date
    Nov 2010
    Age
    26
    Posts
    890
    Thanks given
    306
    Thanks received
    92
    Rep Power
    0
    Quote Originally Posted by Initium View Post
    still dosent work :C


    edit:
    got it showing. but i want the normal one

    now i get this in console

    Code:
    [15.07.12 14:27]: Krixis sending invalid PacketType: 153. PacketSize: 2
    [15.07.12 14:27]: Game saved for player Krix
    [15.07.12 14:27]: LOGGED OUT: Krix
    [15.07.12 14:27]: ID: 502 State: 0
    [15.07.12 14:27]: ID: 503 State: 0
    [15.07.12 14:27]: ID: 504 State: 0
    [15.07.12 14:27]: ID: 505 State: 0
    [15.07.12 14:27]: ID: 508 State: 0
    [15.07.12 14:27]: ID: 515 State: 0
    [15.07.12 14:27]: ID: 166 State: 4
    [15.07.12 14:27]: [REGISTERED]: Krix
    [15.07.12 14:27]: Krixis sending invalid PacketType: 153. PacketSize: 2

    that shows your packet type, you need to define this in packethandler, telling it to call the correct class.

    for example:
    packetId[153] = new BanOption();

    Reply With Quote  
     

  8. #8  
    i want a PM. The best in life is free.
    Project M's Avatar
    Join Date
    Mar 2012
    Posts
    368
    Thanks given
    20
    Thanks received
    13
    Rep Power
    14
    Quote Originally Posted by Socioscape View Post
    [15.07.12 14:27]: Krixis sending invalid PacketType: 153. PacketSize: 2

    that shows your packet type, you need to define this in packethandler, telling it to call the correct class.
    could you help me?

    my method i want it to do is in the attackplayer class


    still need help
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  9. #9  
    i want a PM. The best in life is free.
    Project M's Avatar
    Join Date
    Mar 2012
    Posts
    368
    Thanks given
    20
    Thanks received
    13
    Rep Power
    14
    bump
    [Only registered and activated users can see links. ]
    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. Replies: 1
    Last Post: 09-07-2012, 08:29 PM
  2. Another option
    By I Am Kacey in forum Help
    Replies: 0
    Last Post: 11-18-2011, 05:11 PM
  3. Replies: 0
    Last Post: 01-20-2011, 02:06 AM
  4. Replies: 2
    Last Post: 05-13-2010, 12:34 PM
  5. Replies: 17
    Last Post: 01-01-2010, 08:02 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
  •