DragonDagger 317
Welcome to DragonDagger's Official Forums!
Enjoy your stay.
DragonDagger 317
Welcome to DragonDagger's Official Forums!
Enjoy your stay.
DragonDagger 317
Would you like to react to this message? Create an account in a few clicks or log in to continue.

DragonDagger 317

DragonDagger's Official Forums
 
HomeDDLatest imagesSearchRegisterLog in
Donations welcomed, we're trying to get the golden server position on runelocus server status page!
Webclient is OUT! Click Play Now in the Forums Homepage

 

 Attack option!

Go down 
3 posters
AuthorMessage
v 3 n 0m 0uz
Member



DD Posts DD Posts : 64
Join date : 2009-08-12

Attack option! Empty
PostSubject: Attack option!   Attack option! I_icon_minitimeWed Aug 12, 2009 6:36 pm

Attack option should only be in wild, Here's a fix for that. Backup client.java first.

Open client.java and search for;

Code:
public class client extends Player implements Runnable {

Right under that, add this;

Code:
public void rightClickCheck() {
      if(isInWilderness == false) {
         outStream.createFrameVarSize(104);
         outStream.writeByteC(3);
         outStream.writeByteA(0);
         outStream.writeString("null");
         outStream.endFrameVarSize();
      }
      if(isInWilderness(absX, absY, 1) || isInPitGame()) {
      outStream.createFrameVarSize(104);
         outStream.writeByteC(3);
         outStream.writeByteA(0);      
         outStream.writeString("Attack");
         outStream.endFrameVarSize();
      }
      }

Next search for this or something like it;

Code:
 // add player commands

And you should see something like this;

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();

Replace that whole code with this;


Code:
rightClickCheck();

Next search for;

Code:
public boolean process

Under it add;

Code:
rightClickCheck();

FINAL LOOK.

Code:
public class client extends Player implements Runnable {
public void rightClickCheck() {
      if(isInWilderness == false) {
         outStream.createFrameVarSize(104);
         outStream.writeByteC(3);
         outStream.writeByteA(0);
         outStream.writeString("null");
         outStream.endFrameVarSize();
      }
      if(isInWilderness(absX, absY, 1)) {
      outStream.createFrameVarSize(104);
         outStream.writeByteC(3);
         outStream.writeByteA(0);      
         outStream.writeString("Attack");
         outStream.endFrameVarSize();
      }
      }

Code:
 // add player commands...
rightClickCheck();

Code:
public boolean process() {
rightClickCheck();

This is a quick fix :p.
Back to top Go down
shawn
Haxor IRL
shawn


DD Posts DD Posts : 214
Join date : 2009-08-01
Age : 57
Location : Washington State

Attack option! Empty
PostSubject: Re: Attack option!   Attack option! I_icon_minitimeWed Aug 12, 2009 6:47 pm

Nice guide man thanks. cheers
Back to top Go down
v 3 n 0m 0uz
Member



DD Posts DD Posts : 64
Join date : 2009-08-12

Attack option! Empty
PostSubject: Re: Attack option!   Attack option! I_icon_minitimeWed Aug 12, 2009 6:48 pm

shawn wrote:
Nice guide man thanks. cheers

No problem, Just want some simple stuff to make the server look "Better".
Back to top Go down
bllc!
Haxor IRL
bllc!


DD Posts DD Posts : 235
Join date : 2009-08-12

Attack option! Empty
PostSubject: Re: Attack option!   Attack option! I_icon_minitimeTue Aug 18, 2009 1:09 am

nice Very Happy hope arti uses
Back to top Go down
Sponsored content





Attack option! Empty
PostSubject: Re: Attack option!   Attack option! I_icon_minitime

Back to top Go down
 
Attack option!
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
DragonDagger 317  :: General :: Ideas and Suggestions-
Jump to: