Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 18 additions & 14 deletions src/org/rscdaemon/client/mudclient.java
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ public class mudclient extends GameWindowMiddleMan {
private int questMenuHandle;
private int questPoints = 0;// camera error
public static boolean showPackets = false;
static mudclient mc;
public static mudclient mc;
public boolean memberServer = false;

public static final void main(String[] args) throws Exception {// Duel with
mc = new mudclient();
Expand All @@ -105,7 +106,7 @@ public static final void main(String[] args) throws Exception {// Duel with
*/
mc.messagesArray = new String[5];
mc.messagesTimeout = new int[mc.messagesArray.length];

}

public static Resolutions reso = new Resolutions();
Expand Down Expand Up @@ -3723,18 +3724,20 @@ private final void drawInventoryRightClickMenu() {
menuActionType[menuLength] = playerArray[i2].serverIndex;
menuLength++;
} else {
menuText1[menuLength] = "Duel with";
menuText2[menuLength] = (playerArray[i2].admin == 1 ? "#pmd#"
: "")
+ (playerArray[i2].admin == 2 ? "#mod#"
: "")
+ "@whi@"
+ playerArray[i2].name + s;
menuActionX[menuLength] = playerArray[i2].currentX;
menuActionY[menuLength] = playerArray[i2].currentY;
menuID[menuLength] = 2806;
menuActionType[menuLength] = playerArray[i2].serverIndex;
menuLength++;
if (memberServer) {
menuText1[menuLength] = "Duel with";
menuText2[menuLength] = (playerArray[i2].admin == 1 ? "#pmd#"
: "")
+ (playerArray[i2].admin == 2 ? "#mod#"
: "")
+ "@whi@"
+ playerArray[i2].name + s;
menuActionX[menuLength] = playerArray[i2].currentX;
menuActionY[menuLength] = playerArray[i2].currentY;
menuID[menuLength] = 2806;
menuActionType[menuLength] = playerArray[i2].serverIndex;
menuLength++;
}
}

menuText1[menuLength] = "Trade with";
Expand Down Expand Up @@ -7008,6 +7011,7 @@ protected final void handleIncomingPacket(int command, int length,
int i = 1;
serverStartTime = DataOperations.getUnsigned8Bytes(data, i);
i += 8;
memberServer = DataOperations.getUnsignedByte(data[i++]) == 1;
serverLocation = new String(data, i, length - i);
return;
}
Expand Down