Thread: Must have 4 items to pk

Results 1 to 6 of 6
  1. #1 Must have 4 items to pk 
    Registered Member

    Join Date
    Dec 2008
    Posts
    2,191
    Thanks given
    664
    Thanks received
    559
    Rep Power
    2641
    Hey, on my server (PI) i want it so you need to be wearing atleast 4 items to be able to attack someone, or have someone else attack you. Or so you need a platebody, platelegs, amulet, and weapon to pk. Either works.

    Will rep+
    Reply With Quote  
     

  2. #2  
    Donator

    Kickyamom's Avatar
    Join Date
    Jul 2010
    Posts
    1,606
    Thanks given
    208
    Thanks received
    157
    Rep Power
    835
    CombatAssistant.java

    Search
    Code:
    			if (c.getPA().getWearingAmount() < 4 && c.duelStatus < 1) {
    				c.sendMessage("You must be wearing at least 4 items to attack someone.");
    				resetPlayerAttack();
    				return;
    			}
    "WearingAmount() < 4"
    Change the 4 to whatever you want. If you change it to 0, might as well just delete it.
    Edit the


    Spoiler for Respect for the Truest:

    #TWTMP GANG 4 LYFE
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Aug 2010
    Posts
    739
    Thanks given
    32
    Thanks received
    51
    Rep Power
    35
    Quote Originally Posted by Kickyamom View Post
    CombatAssistant.java

    Search
    Code:
    			if (c.getPA().getWearingAmount() < 4 && c.duelStatus < 1) {
    				c.sendMessage("You must be wearing at least 4 items to attack someone.");
    				resetPlayerAttack();
    				return;
    			}
    "WearingAmount() < 4"
    Change the 4 to whatever you want. If you change it to 0, might as well just delete it.
    Edit the
    i dont think he has the getwearingamount method
    [SPOIL]
    Quote Originally Posted by Archon Server View Post
    What do you mean compile?
    Quote Originally Posted by Hughes View Post
    I don't know the program i need to open a CLASS file since every time i try to open one in notepad it brings up random symbols.

    Quote Originally Posted by Flux View Post
    Quote Originally Posted by Tyluur View Post
    your better
    my better
    [/SPOIL]
    Reply With Quote  
     

  4. #4  
    Donator

    Kickyamom's Avatar
    Join Date
    Jul 2010
    Posts
    1,606
    Thanks given
    208
    Thanks received
    157
    Rep Power
    835
    Quote Originally Posted by 666is1337 View Post
    i dont think he has the getwearingamount method
    He should. It's in most PI's. Otherwise all he has to do is simply search his server folder for what text he receives when he's not wearing the items. Then simply search in the file that comes up. and he should know how to fix it based on what I said. Not flaming, just sayin


    Spoiler for Respect for the Truest:

    #TWTMP GANG 4 LYFE
    Reply With Quote  
     

  5. #5  
    Registered Member

    Join Date
    Dec 2008
    Posts
    2,191
    Thanks given
    664
    Thanks received
    559
    Rep Power
    2641
    Quote Originally Posted by Kickyamom View Post
    CombatAssistant.java

    Search
    Code:
    			if (c.getPA().getWearingAmount() < 4 && c.duelStatus < 1) {
    				c.sendMessage("You must be wearing at least 4 items to attack someone.");
    				resetPlayerAttack();
    				return;
    			}
    "WearingAmount() < 4"
    Change the 4 to whatever you want. If you change it to 0, might as well just delete it.
    Edit the
    Ty that works, but how can i make it so you can't attack someone else who is wearing less than 4 items.
    Reply With Quote  
     

  6. #6  
    Registered Member

    Join Date
    Dec 2008
    Posts
    2,191
    Thanks given
    664
    Thanks received
    559
    Rep Power
    2641
    Quote Originally Posted by Tylers Pur3 View Post
    Ty that works, but how can i make it so you can't attack someone else who is wearing less than 4 items.
    Need help with that.
    BUMP
    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

Similar Threads

  1. Replies: 2
    Last Post: 11-28-2009, 06:30 PM
  2. Replies: 9
    Last Post: 07-16-2009, 11:52 PM
  3. Replies: 39
    Last Post: 11-29-2008, 10:31 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •