Thread: Best way of showing/hiding attack option depending if player is in wildy

Results 1 to 9 of 9
  1. #1 Best way of showing/hiding attack option depending if player is in wildy 
    ⚓Manic-Owner⚓


    Join Date
    Nov 2007
    Posts
    2,711
    Thanks given
    47
    Thanks received
    9
    Rep Power
    650
    Add under packet 241.

    Code:
    if(PVPzone == true) {
    outStream.createFrameVarSize(104);
    outStream.writeByteC(3)
    ;outStream.writeByteA(1);
    outStream.writeString("Attack");
    outStream.endFrameVarSize();
    } else {
    outStream.createFrameVarSize(104);
    outStream.writeByteC(3);
    outStream.writeByteA(1);
    outStream.writeString("null");
    outStream.endFrameVarSize();
    }
    Make sure to remove your old attack option.
    Reply With Quote  
     

  2. #2  
    Registered Member
    The Myth's Avatar
    Join Date
    Oct 2008
    Posts
    751
    Thanks given
    5
    Thanks received
    9
    Rep Power
    105
    You haven't given the pvpzone method...

    This probably is the best method, unless your players rapidly click more then once every 0.5 seconds.
    Funny how when one person talks to an invisible man and commits acts in their name it's called schizophrenia, but when 1.166 billion people do it simultaneously it's called religion.

    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Aug 2009
    Posts
    120
    Thanks given
    0
    Thanks received
    0
    Rep Power
    17
    wats packet 241? o.o

    clicking packet or something?
    Reply With Quote  
     

  4. #4  
    Fuckin PRO

    Tyler's Avatar
    Join Date
    Jan 2008
    Age
    33
    Posts
    6,017
    Thanks given
    46
    Thanks received
    507
    Rep Power
    3330
    Yes its for clicking, and its not really needed to be checked every time you click either..
    Free Filehost Premium Accounts
    Click Here
    Reply With Quote  
     

  5. #5  
    Registered Member

    Join Date
    Oct 2008
    Posts
    1,540
    Thanks given
    27
    Thanks received
    71
    Rep Power
    465
    Quote Originally Posted by Tyler View Post
    Yes its for clicking, and its not really needed to be checked every time you click either..
    This...
    Reply With Quote  
     

  6. #6  
    ⚓Manic-Owner⚓


    Join Date
    Nov 2007
    Posts
    2,711
    Thanks given
    47
    Thanks received
    9
    Rep Power
    650
    Quote Originally Posted by Traitor++ View Post
    This...
    if sombody already posted what you were gonna say, why even comment? I hate fucktards that say "This"
    Reply With Quote  
     

  7. #7  
    Registered Member
    Sanity's Avatar
    Join Date
    Dec 2008
    Posts
    2,062
    Thanks given
    22
    Thanks received
    362
    Rep Power
    762
    I used to think this was better, although it is probably better to have a boolean declaring whether or not it has changed and call it in process. Somebody could simply mass click (not even right-click) and it will constantly reset the right click option.
    Reply With Quote  
     

  8. #8  
    Ash
    Guest
    Nice method. .
    Reply With Quote  
     

  9. #9  
    Community Veteran

    Dexter Morgan's Avatar
    Join Date
    Nov 2008
    Age
    28
    Posts
    4,419
    Thanks given
    1,184
    Thanks received
    757
    Rep Power
    3098
    Quote Originally Posted by Jdog View Post
    Add under packet 241.

    Code:
    if(PVPzone == true) {
    outStream.createFrameVarSize(104);
    outStream.writeByteC(3)
    ;outStream.writeByteA(1);
    outStream.writeString("Attack");
    outStream.endFrameVarSize();
    } else {
    outStream.createFrameVarSize(104);
    outStream.writeByteC(3);
    outStream.writeByteA(1);
    outStream.writeString("null");
    outStream.endFrameVarSize();
    }
    Make sure to remove your old attack option.
    Code:
    outStream.createFrameVarSize(104);
    outStream.writeByteC(3);
    outStream.writeByteA(1);
    outStream.writeString(PVPzone ? "Attack" : "null");
    outStream.endFrameVarSize();
    But not a good idea to put it in that packet.
    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
  •