Thread: Team Capes...heres how.

Page 1 of 3 123 LastLast
Results 1 to 10 of 27
  1. #1 Team Capes...heres how. 
    Registered Member
    Bulby Strife's Avatar
    Join Date
    Jan 2008
    Age
    29
    Posts
    833
    Thanks given
    1
    Thanks received
    1
    Rep Power
    267
    Okay I made this on my old account cloud the strife...who got banned over a year ago.

    So im reposting it.

    Description: How to make it so if you are attacking a teamate in castle wars it wont let you. Cape ids 4514, 4516. Not the cloaks with the hoods.

    Alright....search for

    Code:
    case 73: //Attack
    look a bit down and you will see somthin like this

    Code:
    if(!nonWild() && !plz.nonWild() && plz != null) {
    IsAttacking = true;
    inCombat();
    }
    else {
    sendMessage("This player is in a safe zone and cannot be attacked");
    }
    replace that with this

    Code:
    if(!nonWild() && !plz.nonWild() && plz != null) {
    	if(playerEquipment[playerCape] == 4514 && PlayerHandler.players[AttackingOn].playerEquipment[playerCape] == 4514 || playerEquipment[playerCape] == 4516 && PlayerHandler.players[AttackingOn].playerEquipment[playerCape] == 4516) //If both players are wearing the same coloured caslte war cloak, 4514 = blue 4516 = red
    	{
    	sendMessage("You can't attack your own team!");
    	}
    		else
    		{	
    	    	IsAttacking = true;
    	    	inCombat();
    
    		}
    	}
     else {
    	    	sendMessage("This player is in a safe zone and cannot be attacked");
    
    		}
    Your code may not look like that above so basically its just this

    Code:
    	if(playerEquipment[playerCape] == 4514 && PlayerHandler.players[AttackingOn].playerEquipment[playerCape] == 4514 || playerEquipment[playerCape] == 4516 && PlayerHandler.players[AttackingOn].playerEquipment[playerCape] == 4516) //If both players are wearing the same coloured caslte war cloak, 4514 = blue 4516 = red
    	{
    	sendMessage("You can't attack your own team!");
    	}
    		else
    		{
    then after that last "else" you have to end it with another "}", which you should know how to do.

    Thats for people wearing the same castle wars cloak ids 4514, and 4516. if they are wearing the same cloak then they can't attack each other.
    [Only registered and activated users can see links. ]
    ||||||||||||||||||||||||||||||

     

  2. #2  
    Registered Member

    Join Date
    Jan 2008
    Age
    28
    Posts
    1,380
    Thanks given
    76
    Thanks received
    384
    Rep Power
    962
    Very nice thanks. Rep.
     

  3. #3  
    T
    T is offline
    Registered Member
    T's Avatar
    Join Date
    Aug 2007
    Posts
    815
    Thanks given
    1
    Thanks received
    2
    Rep Power
    286
    very nice dewd.
     

  4. #4  
    Registered Member
    Bulby Strife's Avatar
    Join Date
    Jan 2008
    Age
    29
    Posts
    833
    Thanks given
    1
    Thanks received
    1
    Rep Power
    267
    yes...case 73: is in client.java
    [Only registered and activated users can see links. ]
    ||||||||||||||||||||||||||||||

     

  5. #5  
    x19
    Guest
    [Only registered and activated users can see links. ]

    The title k, gtfo
     

  6. #6  
    zeroking
    Guest
    can you do so you can take off you team cape when u are in cw ?
     

  7. #7  
    Banned

    Join Date
    May 2007
    Posts
    2,690
    Thanks given
    115
    Thanks received
    45
    Rep Power
    0
    simple but effective, thanks
     

  8. #8  
    тяυѕтє∂ тяα∂єя Market Banned Market Banned


    The Return's Avatar
    Join Date
    Feb 2008
    Age
    31
    Posts
    160
    Thanks given
    27
    Thanks received
    11
    Rep Power
    176
    Good job
    ::Latest::


    Quote Originally Posted by Mr Bob View Post
    You can't organize a riot..
     

  9. #9  
    Banned

    Join Date
    Oct 2007
    Age
    28
    Posts
    2,733
    Thanks given
    32
    Thanks received
    53
    Rep Power
    0
    v nice bulby cant wiat
     

  10. #10  
    Endeavor

    Mikey`'s Avatar
    Join Date
    Dec 2007
    Posts
    4,421
    Thanks given
    693
    Thanks received
    1,425
    Rep Power
    1202
    Awesome Bulby.
     

Page 1 of 3 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
  •