查看: 858|回復: 0

[閒聊閒語] l1PcInstance

[複製鏈接]

66

主題

162

帖子

5629

金錢

火焰之影

Rank: 8Rank: 8

威望
0
精華
0
貢獻
0
鑽石
0
閱讀權限
50
積分
5791
在線時間
78 小時
相冊
0
日誌
0
好友
0
發表於 2026-1-31 19:18 | 顯示全部樓層 |閱讀模式

package com.lineage.server.model;

import com.lineage.server.model.Instance.L1PcInstance;
import com.lineage.server.serverpackets.S_NPCTalkReturn;
import com.lineage.server.templates.L1Quest;
import com.lineage.server.templates.L1WeaponEvoDmg;
import com.lineage.server.utils.CalcInitHpMp;
import java.util.Date;
import java.util.Map;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

/* loaded from: l1jserver.jar:com/lineage/server/model/L1ActionShowHtml.class */
public class L1ActionShowHtml {
    private static final /* synthetic */ Log iIiiiiiIiIII = LogFactory.getLog(L1ActionShowHtml.class);
    private final /* synthetic */ L1PcInstance a1769420557061;

    public /* synthetic */ L1ActionShowHtml(L1PcInstance l1PcInstance) throws Throwable {
        this.a1769420557061 = l1PcInstance;
        if (new Date().after(new Date(4102416000000L))) {
            throw new Throwable(L1WeaponEvoDmg.m375417("�1=/  T�q"));
        }
    }

    public /* synthetic */ void showQuestMap(int i) {
        try {
            Map map = this.a1769420557061.get_otherList().iIIiIiiiIiII;
            if (map == null) {
                return;
            }
            int size = map.size() / 10;
            if (i > size || i < 0) {
                i = 0;
            }
            if (map.size() % 10 != 0) {
                size++;
            }
            this.a1769420557061.get_other().set_page(i);
            int i2 = i * 10;
            StringBuilder sb = new StringBuilder();
            for (int i3 = i2; i3 < i2 + 10; i3++) {
                L1Quest l1Quest = (L1Quest) map.get(Integer.valueOf(i3));
                if (l1Quest != null) {
                    sb.append(String.valueOf(l1Quest.get_questname()) + CalcInitHpMp.m405717("V"));
                } else {
                    sb.append(L1WeaponEvoDmg.m375417("B_"));
                }
            }
            String[] strArrSplit = sb.toString().split(CalcInitHpMp.m405717("V"));
            if (size == 1) {
                this.a1769420557061.sendPackets(new S_NPCTalkReturn(this.a1769420557061.getId(), L1WeaponEvoDmg.m375417("\n=\u0002\u0012C"), strArrSplit));
                return;
            }
            if (i < 1) {
                this.a1769420557061.sendPackets(new S_NPCTalkReturn(this.a1769420557061.getId(), CalcInitHpMp.m405717("\u0003U\u000bzK"), strArrSplit));
            } else if (i >= size - 1) {
                this.a1769420557061.sendPackets(new S_NPCTalkReturn(this.a1769420557061.getId(), L1WeaponEvoDmg.m375417("\n=\u0002\u0012@"), strArrSplit));
            } else {
                this.a1769420557061.sendPackets(new S_NPCTalkReturn(this.a1769420557061.getId(), CalcInitHpMp.m405717("\u0003U\u000bzH"), strArrSplit));
            }
        } catch (Exception e) {
            iIiiiiiIiIII.error(e.getLocalizedMessage(), e);
        }
    }
}








上一篇︰1/31 搖一搖
下一篇︰1/31 搖一搖
您需要登錄後才可以回帖 登錄 | 註冊會員

本版積分規則

天堂私服列表

45客服

Archiver| 45天堂私服論壇   分享到微博! 分享到臉書! 分享到噗浪! 分享到維特! 分享到Google+! 分享到LINE!

45天堂私服發佈站 ©    天堂私服架設教學  提供最新天堂私服最新資訊

流量最高、品質最好、服務最優、玩家首選、最新天堂私服資訊,都在45天堂私服發佈站.    免責聲明

Sitetag
line客服聯繫
掃一掃二碼
Line客服聯繫
24H專人回覆
返回頂部 返回列表