Thread: Whip only Duel Arena HELP

Results 1 to 3 of 3
  1. #1 Whip only Duel Arena HELP 
    Registered Member Grandpa's Avatar
    Join Date
    Dec 2015
    Posts
    106
    Thanks given
    13
    Thanks received
    3
    Rep Power
    13
    The thing is the code pi im showing you below will give you accses to use any weapons in duel arena, even tough it marks off whip/dds only. and you may think,(but they cant attack with the weapon inside the duel ? ) actually they can. They just need to get the auto retaliate to go off. But my final question is. How do i make it so it will not enter the duel unless you have the whip equipped or something? & if you know how to fix that players cant use anything else except whip (if whip only). Thanks - Grandpa. Any suggestions helps.

    metod
    client.java
    Code:
    getPA().sendFrame126("DDS + Whip", 669);
    CombatAssistant.java
    Code:
    if (c.duelRule[9]) {
    replaced funweapons with this

    Code:
    if (c.duelRule[9]) {
    			boolean canUseWeapon = false;
    			for(int dds : Config.DDS) {
    				if(c.playerEquipment[c.playerWeapon] == dds) {
    					canUseWeapon = true;
    
    				}
    			}
    			if(!canUseWeapon) {
    				c.sendMessage("You can only use DDS or whip in this duel!");
    				resetPlayerAttack();
    				return;
    			}
    		}
    config.java i declared this.

    Code:
    public static final int[] DDS	=	{5680, 4151};//dd,ddp,ddp+,whip

    Or if you know how to make it (same weapons) thats appreciated, i cant figgure this out.. i've tried few ways, but ending up with bugs.

    BUMP

    Still need help BUMP
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Apr 2016
    Posts
    1
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Thanks
    Reply With Quote  
     

  3. #3  
    Registered Member Grandpa's Avatar
    Join Date
    Dec 2015
    Posts
    106
    Thanks given
    13
    Thanks received
    3
    Rep Power
    13
    Quote Originally Posted by Scyth3 View Post
    Thanks
    What? im asking for help
    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. [PI] Duel Arena help Rep++
    By Char Char in forum Help
    Replies: 3
    Last Post: 01-30-2011, 05:58 PM
  2. duel arena help [PI]
    By miggz212 in forum Help
    Replies: 7
    Last Post: 08-31-2010, 05:53 AM
  3. Z508 Duel Arena [Help]
    By iobpkbarrage in forum Help
    Replies: 3
    Last Post: 04-12-2010, 12:48 PM
  4. duel Arena help [REQ]
    By Mr. Epic in forum Requests
    Replies: 2
    Last Post: 10-27-2009, 11:40 PM
  5. Duel Arena Help!
    By ballin in forum Help
    Replies: 6
    Last Post: 04-18-2009, 09:57 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
  •