Thread: How to make the attack option only appear in the wild.

Page 1 of 7 123 ... LastLast
Results 1 to 10 of 69
  1. #1 How to make the attack option only appear in the wild. 
    Registered Member

    Join Date
    Dec 2007
    Posts
    621
    Thanks given
    9
    Thanks received
    8
    Rep Power
    163
    Description: Removing the attack option while not in the wilderness

    Difficulty: 1/10

    Assumed Knowledge: Copy and paste, knowing where to place things

    Tested Server: Whitescape

    Files/Classes Modified: Client

    Procedure

    Find

    Code:
    			outStream.createFrameVarSize(104);
    			outStream.writeByteC(3);		// command slot
    			outStream.writeByteA(0);		// 0 or 1; 1 if command should be placed on top in context menu
    			outStream.writeString("Attack");
    			outStream.endFrameVarSize();
    Or something similar. (It should be in run() or initialize())

    Replace it all with..

    rightClickCheck();

    Now declare this method..

    Code:
    	public void rightClickCheck() {
    		if(nonWild()) {
    			outStream.createFrameVarSize(104);
    			outStream.writeByteC(3);		// command slot
    			outStream.writeByteA(0);		// 0 or 1; 1 if command should be placed on top in context menu
    			outStream.writeString("null");
    			outStream.endFrameVarSize();
    		}
    		if(!nonWild()) {
    			outStream.createFrameVarSize(104);
    			outStream.writeByteC(3);		// command slot
    			outStream.writeByteA(0);		// 0 or 1; 1 if command should be placed on top in context menu
    			outStream.writeString("Attack");
    			outStream.endFrameVarSize();
    		}	
    	}
    And add this under process..

    Code:
    rightClickCheck();
    Compile and it should work fine. If you do not use the nonWild method replace it with the one you do use.

    Credits: Me.

    I posted this because alot of people ask about it.. :\ If this has been posted before I am sorry, I searched and could not find it.
    Reply With Quote  
     

  2. #2  
    Registered Member
    BraydenF's Avatar
    Join Date
    Feb 2008
    Posts
    651
    Thanks given
    0
    Thanks received
    0
    Rep Power
    90
    If you put it inj the clicking packet would it be less lag?
    Reply With Quote  
     

  3. #3  
    Registered Member

    Join Date
    Dec 2007
    Posts
    621
    Thanks given
    9
    Thanks received
    8
    Rep Power
    163
    Possibly but having it in process won't really do much..

    It's entirely up to you.
    Reply With Quote  
     

  4. #4  
    Registered Member Mrparkers's Avatar
    Join Date
    Mar 2008
    Posts
    249
    Thanks given
    0
    Thanks received
    0
    Rep Power
    13
    I've already got this but nice job. repped.
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  5. #5  
    Registered Member
    hoodlom's Avatar
    Join Date
    Dec 2007
    Age
    26
    Posts
    750
    Thanks given
    0
    Thanks received
    6
    Rep Power
    170
    Wow.... this actually works... I was trying to figure this out... rep+
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  6. #6  
    Registered Member
    Shamon King's Avatar
    Join Date
    Aug 2007
    Posts
    3,336
    Thanks given
    90
    Thanks received
    228
    Rep Power
    1363
    why not just add it to where it checks the wild
    if you are in the wild it shows up else if you leave it disables
    Reply With Quote  
     

  7. #7  
    Registered Member

    Join Date
    Dec 2007
    Posts
    621
    Thanks given
    9
    Thanks received
    8
    Rep Power
    163
    Quote Originally Posted by shamon king View Post
    why not just add it to where it checks the wild
    if you are in the wild it shows up else if you leave it disables
    Lol.. Can you explain that better? That is exactly what this does.
    Reply With Quote  
     

  8. #8  
    Banned

    Join Date
    Dec 2007
    Age
    25
    Posts
    583
    Thanks given
    123
    Thanks received
    11
    Rep Power
    0
    Uhhh, shamon like every server has an attack option and it's disabled until you are in wild it looks messy and gei xD
    Reply With Quote  
     

  9. #9  




    Scu11's Avatar
    Join Date
    Aug 2007
    Age
    27
    Posts
    16,200
    Thanks given
    7,190
    Thanks received
    12,174
    Discord
    View profile
    Rep Power
    5000
    Finally some-one other than me and sigex has found this out, its so easy, all you have to do is look in the client...

    [Only registered and activated users can see links. ]



    Reply With Quote  
     

  10. #10  
    Optimist

    Vice's Avatar
    Join Date
    Nov 2007
    Age
    25
    Posts
    3,263
    Thanks given
    3
    Thanks received
    59
    Rep Power
    2536
    Yeh yeh, nice work makes look less messy, also might help fix some bugs too
    Jack
    Scotland
    Undergraduate - BSc Computing Science
    Reply With Quote  
     

Page 1 of 7 123 ... LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •