l1PcInstance
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]