 | [color=rgba(252, 249, 249, 0.698)][backcolor=rgba(14, 11, 11, 0.498)] private void handleAdventurerBook(L1PcInstance pc) {
[color=rgba(252, 249, 249, 0.698)][backcolor=rgba(14, 11, 11, 0.498)] // 獲取玩家當前頁面狀態(使用臨時變量存儲)
[color=rgba(252, 249, 249, 0.698)][backcolor=rgba(14, 11, 11, 0.498)] int currentPage = pc.getAdventurerBookPage();
[color=rgba(252, 249, 249, 0.698)][backcolor=rgba(14, 11, 11, 0.498)]
[color=rgba(252, 249, 249, 0.698)][backcolor=rgba(14, 11, 11, 0.498)][backcolor=lab(72.0594 40.9161 30.798 / 0.08)] // 調試訊息
[color=rgba(252, 249, 249, 0.698)][backcolor=rgba(14, 11, 11, 0.498)][backcolor=lab(72.0594 40.9161 30.798 / 0.08)] pc.sendPackets(new S_SystemMessage("調試: 當前頁面 = " + currentPage));
[color=rgba(252, 249, 249, 0.698)][backcolor=rgba(14, 11, 11, 0.498)][backcolor=lab(72.0594 40.9161 30.798 / 0.08)]
[color=rgba(252, 249, 249, 0.698)][backcolor=rgba(14, 11, 11, 0.498)] switch (currentPage) {
[color=rgba(252, 249, 249, 0.698)][backcolor=rgba(14, 11, 11, 0.498)] case 0: // 顯示伺服器設定頁面
[color=rgba(252, 249, 249, 0.698)][backcolor=rgba(14, 11, 11, 0.498)] pc.sendPackets(new S_WhoHtml(pc, "y_who"));
[color=rgba(252, 249, 249, 0.698)][backcolor=rgba(14, 11, 11, 0.498)] pc.setAdventurerBookPage(1);
[color=rgba(252, 249, 249, 0.698)][backcolor=rgba(14, 11, 11, 0.498)][backcolor=lab(99.9988 0.0188053 -0.00110865 / 0.15)]
[color=rgba(252, 249, 249, 0.698)][backcolor=rgba(14, 11, 11, 0.498)] pc.sendPackets(new S_ServerMessage(149, "冒險者手冊", "詳細屬性"));
[color=rgba(252, 249, 249, 0.698)][backcolor=rgba(14, 11, 11, 0.498)] break;
[color=rgba(252, 249, 249, 0.698)][backcolor=rgba(14, 11, 11, 0.498)]
[color=rgba(252, 249, 249, 0.698)][backcolor=rgba(14, 11, 11, 0.498)] case 3: // 顯示傳送點頁面
[color=rgba(252, 249, 249, 0.698)][backcolor=rgba(14, 11, 11, 0.498)][backcolor=lab(72.0594 40.9161 30.798 / 0.08)] pc.sendPackets(new S_SystemMessage("調試: 正在打開傳送點頁面..."));
[color=rgba(252, 249, 249, 0.698)][backcolor=rgba(14, 11, 11, 0.498)] pc.sendPackets(new S_WhoHtml(pc, "y_who3"));
[color=rgba(252, 249, 249, 0.698)][backcolor=rgba(14, 11, 11, 0.498)][backcolor=lab(72.0594 40.9161 30.798 / 0.08)] pc.setAdventurerBookPage(0);
[color=rgba(252, 249, 249, 0.698)][backcolor=rgba(14, 11, 11, 0.498)][backcolor=lab(82.8053 -31.2882 27.1204 / 0.08)] pc.setAdventurerBookPage(0); // 回到第一頁,形成循環
[color=rgba(252, 249, 249, 0.698)][backcolor=rgba(14, 11, 11, 0.498)] pc.sendPackets(new S_ServerMessage(149, "冒險者手冊", "傳送點列表"));
[color=rgba(252, 249, 249, 0.698)][backcolor=rgba(14, 11, 11, 0.498)] break;
[color=rgba(252, 249, 249, 0.698)][backcolor=rgba(14, 11, 11, 0.498)]
[color=rgba(252, 249, 249, 0.698)][backcolor=rgba(14, 11, 11, 0.498)][backcolor=lab(72.0594 40.9161 30.798 / 0.08)] default:
[color=rgba(252, 249, 249, 0.698)][backcolor=rgba(14, 11, 11, 0.498)][backcolor=lab(82.8053 -31.2882 27.1204 / 0.08)] default: // 預設顯示第一頁
[color=rgba(252, 249, 249, 0.698)][backcolor=rgba(14, 11, 11, 0.498)] pc.sendPackets(new S_WhoHtml(pc, "y_who"));
[color=rgba(252, 249, 249, 0.698)][backcolor=rgba(14, 11, 11, 0.498)] pc.setAdventurerBookPage(1);
[color=rgba(252, 249, 249, 0.698)][backcolor=rgba(14, 11, 11, 0.498)] pc.sendPackets(new S_ServerMessage(149, "冒險者手冊", "伺服器設定"));
[color=rgba(252, 249, 249, 0.698)][backcolor=rgba(14, 11, 11, 0.498)] break;
| |