Thread: [delta]make the attack option only in wildy

Results 1 to 6 of 6
  1. #1 [delta]make the attack option only in wildy 
    Donator


    Join Date
    Jul 2009
    Posts
    1,875
    Thanks given
    119
    Thanks received
    233
    Rep Power
    408
    how do i make the attack option only show up in the wilderness?

    Code:
    		outStream.writeString("Attack");
    		outStream.endFrameVarSize();
    
    		outStream.createFrameVarSize(104);
    		outStream.writeByteC(4); // command slot (does it matter which one?)
    		outStream.writeByteA(0); // 0 or 1; 0 if command should be placed on top
    Reply With Quote  
     

  2. #2  
    Registered Member
    Hunter's Avatar
    Join Date
    Jun 2009
    Age
    33
    Posts
    857
    Thanks given
    3
    Thanks received
    23
    Rep Power
    216
    Code:
    if (isInWilderness(absX, absY, 1)) {
         outStream.createFrameVarSize(104);
         outStream.writeByteC(3);
         outStream.writeByteA(0);
         outStream.writeString("Attack");
         outStream.endFrameVarSize();
    }
    Make a boolean method to check if a player is in the wilderness then run a check like the above.
    Reply With Quote  
     

  3. #3  
    Registered Member

    Join Date
    Jan 2008
    Posts
    1,328
    Thanks given
    14
    Thanks received
    19
    Rep Power
    416
    under
    public boolean process() {
    add

    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();
    }
    Reply With Quote  
     

  4. #4  
    Registered Member
    TheElveAge's Avatar
    Join Date
    Sep 2009
    Posts
    938
    Thanks given
    26
    Thanks received
    60
    Rep Power
    124
    Quote Originally Posted by Ryan™ View Post
    under
    add
    Or make a boolean (){ and add that into the process. It looks a lot nicer.
    Reply With Quote  
     

  5. #5  
    Registered Member
    PSNB's Avatar
    Join Date
    Aug 2009
    Posts
    885
    Thanks given
    8
    Thanks received
    103
    Rep Power
    590
    Quote Originally Posted by TheElveAge View Post
    Or make a boolean (){ and add that into the process. It looks a lot nicer.
    Or don't stick it in process at all.
    Reply With Quote  
     

  6. #6  
    Registered Member

    Join Date
    Jan 2008
    Posts
    1,328
    Thanks given
    14
    Thanks received
    19
    Rep Power
    416
    Whatever works tbh.
    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

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