I would suggest making a boolean for "duelArena()" to check if a player is within the coordinates of the duel arena to set the proper interface. This could also go with the "Challenge" option..for example:
Open client.java and find "Trade with" or "Follow". It should look something like this:
Code:
// add player commands...
outStream.createFrameVarSize(104);
outStream.writeByteC(4); // command slot (does it matter which one?)
outStream.writeByteA(0); // 0 or 1; 0 if command should be placed on top in context menu
outStream.writeString("Follow");
outStream.endFrameVarSize();
rightClickCheck();
outStream.createFrameVarSize(104);
outStream.writeByteC(5); // command slot (does it matter which one?)
outStream.writeByteA(0); // 0 or 1; 0 if command should be placed on top in context menu
outStream.writeString("Trade with");
outStream.endFrameVarSize();
If you were to make the duelArena() boolean like I suggested..you could probably pull off a challenge option like this:
Code:
if(duelArena()) {
outStream.createFrameVarSize(104);
outStream.writeByteC(6); // command slot (does it matter which one?)
outStream.writeByteA(0); // 0 or 1; 0 if command should be placed on top in context menu
outStream.writeString("Challenge");
outStream.endFrameVarSize();
rightClickCheck();
Just some pointers in the right direction..Un-tested though..although I believe it should work. Explore with it some.