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