UI6차 기억창 로딩부분 18세이상만님께서 수정했던 자료
안녕하세요 저만 그런지 모든 다른분들도 그러신지모르겠지만 일단적으로 기억창로드부분에서 몇일사용하시면 뻥나는부분 전에 18세이상만님께서 올려주신 수정자료 그대로 올리겠습니다.
UI6차 기억창 로딩부분 18세이상만님께서 수정했던 자료
경로 : C_ItemUse.java
private void LoadBookmark(L1PcInstance pc, int i) {
Connection con = null;
PreparedStatement pstm = null;
PreparedStatement pstm2 = null;
ResultSet rs = null;
int x;
int y;
short mapid;
String name;
//int count = 0;
int count = pc.getBookMarkSize();//이거로 수정하세요.. 그럼 더이상 불러올일 없을겁니다
int num = 0;
L1BookMark bookmark = null;
try {
con = L1DatabaseFactory.getInstance().getConnection();
pstm = con.prepareStatement("SELECT name, locx, locy, mapid, num FROM character_teleport WHERE char_id='" + i + "' ORDER BY num ASC");
rs = pstm.executeQuery();
while (rs.next()) {
if (count == pc.getMark_count())
break;
count++;
name = rs.getString("name");
mapid = rs.getShort("mapid");
x = rs.getInt("locx");
y = rs.getInt("locy");
num = rs.getInt("num");
bookmark = new L1BookMark();
bookmark.setId(ObjectIdFactory.getInstance().nextId());
bookmark.setCharId(pc.getId());
bookmark.setName(name);
bookmark.setLocX(x);
bookmark.setLocY(y);
bookmark.setMapId(mapid);
pstm = con.prepareStatement("INSERT INTO character_teleport SET id=?, char_id=?, name=?, locx=?, locy=?, mapid=?,num=?");
pstm.setInt(1, bookmark.getId());
pstm.setInt(2, bookmark.getCharId());
pstm.setString(3, bookmark.getName());
pstm.setInt(4, bookmark.getLocX());
pstm.setInt(5, bookmark.getLocY());
pstm.setInt(6, bookmark.getMapId());
pstm.setInt(7, num);
pstm.execute();
pc.addBookMark(bookmark);
pc.sendPackets(new S_Bookmarks(name, mapid, x, y, bookmark.getId()));
//if (count == pc.getMark_count())
// break;
}
일단 저도 확인은 못해보고있습니다 단 테스트시 마크싸이즈인 60개이상은 넘지 않게 볼러오는건 확인되었습니다.
혹시 이런문제점이 심하신분들은 위에처럼 변경해보세요.
도움만받고 이렇게 18세님이 마지막에 올려주신 수정자료 재로딩드립니다.
출처 : 18세이상만님 자료
[출처] UI6차 기억창 로딩부분 18세이상만님께서 수정했던 자료 (비공개 카페)

준희미니 님의 최근 댓글
rt 2021 05.25 ㄳ 2021 05.11 ㄳ 2021 05.11 rt 2021 05.09 rt 2021 04.25