-
Posts
88 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by L2shaken
-
This code is part of the Phoenix Event Engine, I could not do it that way that Tryskell quoted. Event Link: http://www.mediafire.com/file/ww4b3u0efs58t8q/Phoenix+Event+Engine+aCis.rar
-
http://imgur.com/a/gZoEQ protected L2PcInstance getPlayerWithMaxScore() { L2PcInstance max = players.head().getNext().getKey(); for (L2PcInstance player : players.keySet()) if (players.get(player)[2] > players.get(max)[2]) max = player; return max; } I have this error, can someone tell me how to stay?
-
Help Fastlist -> Arraylist Acis
L2shaken replied to L2shaken's question in Request Server Development Help [L2J]
I have no idea how to fix this :( -
Help Fastlist -> Arraylist Acis
L2shaken replied to L2shaken's question in Request Server Development Help [L2J]
can you help me? -
Help Fastlist -> Arraylist Acis
L2shaken replied to L2shaken's question in Request Server Development Help [L2J]
http://imgur.com/a/gZoEQ protected L2PcInstance getPlayerWithMaxScore() { L2PcInstance max = players.head().getNext().getKey(); for (L2PcInstance player : players.keySet()) if (players.get(player)[2] > players.get(max)[2]) max = player; return max; } And this error, how can I solve it? -
Help Fastlist -> Arraylist Acis
L2shaken replied to L2shaken's question in Request Server Development Help [L2J]
What would be the right way? -
Help Fastlist -> Arraylist Acis
L2shaken replied to L2shaken's question in Request Server Development Help [L2J]
OK thank you. -
Help Fastlist -> Arraylist Acis
L2shaken replied to L2shaken's question in Request Server Development Help [L2J]
protected int getWinnerTeam() { ArrayList<EventTeam> t = new ArrayList<>(); for (EventTeam team : teams.values()) { if (t.size() == 0) { t.add(team); continue; } if (team.getScore() > t.get(0).getScore()) { t.clear(); t.add(team); continue; } if (team.getScore() == t.get(0).getScore()) t.add(team); } if (t.size() > 1) return 0; return t.get(0).getId(); } right ? -
Help Fastlist -> Arraylist Acis
L2shaken replied to L2shaken's question in Request Server Development Help [L2J]
/* * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more * details. * * You should have received a copy of the GNU General Public License along with * this program. If not, see <http://www.gnu.org/licenses/>. */ package net.sf.l2j.gameserver.event; public class EventTeam implements Comparable<EventTeam> { private int score; private String name; private int[] nameColor; private int[] startPos; private int id; public EventTeam(int id, String name, int[] color, int[] startPos) { this.id = id; this.name = name; this.startPos = startPos; score = 0; nameColor = color; } @Override public int compareTo(EventTeam second) { if (getScore() > second.getScore()) return 1; else if (getScore() < second.getScore()) return -1; return 0; } protected String getHexaColor() { return (nameColor[0] > 15 ? Integer.toHexString(nameColor[0]) : "0" + Integer.toHexString(nameColor[0])) + (nameColor[1] > 15 ? Integer.toHexString(nameColor[1]) : "0" + Integer.toHexString(nameColor[1])) + (nameColor[2] > 15 ? Integer.toHexString(nameColor[2]) : "0" + Integer.toHexString(nameColor[2])); } protected int getId() { return id; } protected String getName() { return name; } protected int getScore() { return score; } protected int[] getTeamColor() { return nameColor; } protected int[] getTeamPos() { return startPos; } protected void increaseScore() { score++; } protected void increaseScore(int ammount) { score += ammount; } protected void setScore(int ammount) { score = ammount; } } EventTeam.java -
http://imgur.com/a/1oYgm protected int getWinnerTeam() { ArrayList<EventTeam> t = new ArrayList<>(); for (EventTeam team : teams.values()) { if (t.size() == 0) { t.add(team); continue; } if (team.getScore() > t.getFirst().getScore()) { t.clear(); t.add(team); continue; } if (team.getScore() == t.getFirst().getScore()) t.add(team); } if (t.size() > 1) return 0; return t.getFirst().getId(); } getFirst () must be replaced by what?
-
http://imgur.com/a/koUCR Yes, but I still have this photo error.
-
http://imgur.com/a/koUCR The only error.
-
ACis does not use FastMap '-'
-
http://imgur.com/a/KJwdY protected int getVoteWinner() { int old = 0; HashMap<Integer, Integer> temp = new HashMap<>(); for (int vote : votes.values()) { if (!temp.containsKey(vote)) temp.put(vote, 1); else { old = temp.get(vote); old++; temp.getEntry(vote).setValue(old); } } int max = temp.head().getNext().getValue(); int result = temp.head().getNext().getKey(); for (Map.Entry<Integer, Integer> entry : temp.entrySet()) { if (entry.getValue() > max) { max = entry.getValue(); result = entry.getKey(); } } votes.clear(); temp = null; return result; } How do I solve this problem? Use aCis 350, replaces FastMap with HashMap and is giving this error.
-
LF Title - Name Color Changer For Acis
L2shaken replied to Rokit's question in Request Server Development Help [L2J]
Esse código nao esta realizando função nenhuma, as configs não estão setadas -.-' -
Adaptation Auction House For (Acis)
L2shaken replied to L2shaken's question in Request Server Development Help [L2J]
PM* -
Adaptation Auction House For (Acis)
L2shaken posted a question in Request Server Development Help [L2J]
Hello, I'm adapting the Auction House system for Interlude (ACIS), already adapted about 90%, I need help if someone wants to help call me on skype (danilobn10) or send PM. -
http://imgur.com/a/x2zH1 This error appears when you hit the queen ant , 4024 is the skill ID . Can someone help me ?
-
Help Help With Code
L2shaken replied to L2shaken's question in Request Server Development Help [L2J]
You can help me by to see the list of raid boss in the community ? -
Help Help With Code
L2shaken replied to L2shaken's question in Request Server Development Help [L2J]
Thank you , thank you , you have the rest of the code ? I think I'll have to add a few more things in the community . -
Help Help With Code
L2shaken replied to L2shaken's question in Request Server Development Help [L2J]
Can you help me ? -
someone help me with this code? this error in the SQL database that collects information. "SELECT boss_id FROM raidboss_spawnlist ORDER BY boss_id ASC LIMIT "+ stpoint + Config.RAID_LIST_RESULTS);" original code: "SELECT id, name, level FROM npc WHERE type='L2RaidBoss' AND EXISTS (SELECT * FROM raidboss_spawnlist WHERE raidboss_spawnlist.boss_id = npc.id) ORDER BY `level` " + sort + " Limit " + stpoint + ", " + Config.RAID_LIST_RESULTS); code for ACIS entire code. package net.sf.l2j.gameserver.communitybbs; import net.sf.l2j.Config; import net.sf.l2j.L2DatabaseFactory; import net.sf.l2j.gameserver.datatables.NpcTable; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.util.logging.Level; import java.util.logging.Logger; public class RaidList { protected static final Logger _log = Logger.getLogger(RaidList.class.getName()); private final StringBuilder _raidList = new StringBuilder(); public RaidList(String rfid) { loadFromDB(rfid); } private void loadFromDB(String rfid) { int type = Integer.parseInt(rfid); int stpoint = 0; int pos = 0; for (int count = 1; count != type; count++) { stpoint += Config.RAID_LIST_RESULTS; } try { Connection con = L2DatabaseFactory.getInstance().getConnection();Throwable localThrowable3 = null; try { PreparedStatement statement = con.prepareStatement("SELECT boss_id FROM raidboss_spawnlist ORDER BY boss_id ASC LIMIT "+ stpoint + Config.RAID_LIST_RESULTS); ResultSet result = statement.executeQuery(); pos = stpoint; while (result.next()) { int npcid = result.getInt("boss_id"); String npcname = NpcTable.getInstance().getTemplate(npcid).getName(); byte rlevel = NpcTable.getInstance().getTemplate(npcid).getLevel(); PreparedStatement statement2 = con.prepareStatement("SELECT respawn_time, spawn_time, random_time FROM raidboss_spawnlist WHERE boss_id=" + npcid); ResultSet result2 = statement2.executeQuery(); while (result2.next()) { pos++; boolean rstatus = false; long respawn = result2.getLong("respawn_time"); if (respawn == 0L) { rstatus = true; } int mindelay = result2.getInt("spawn_time"); int maxdelay = result2.getInt("random_time"); mindelay = mindelay / 60 / 60; maxdelay = maxdelay / 60 / 60; addRaidToList(pos, npcname, rlevel, mindelay, maxdelay, rstatus); } result2.close(); statement2.close(); } result.close(); statement.close(); } catch (Throwable localThrowable1) { localThrowable3 = localThrowable1;throw localThrowable1; } finally { if (con != null) { if (localThrowable3 != null) { try { con.close(); } catch (Throwable localThrowable2) { localThrowable3.addSuppressed(localThrowable2); } } else { con.close(); } } } } catch (Exception e) { _log.log(Level.WARNING, "Failed to load Raid List"); e.printStackTrace(); } } private void addRaidToList(int pos, String npcname, byte rlevel, int mindelay, int maxdelay, boolean rstatus) { _raidList.append("<table border=0 cellspacing=0 cellpadding=2 width=610 height=" + Config.RAID_LIST_ROW_HEIGHT + ">"); _raidList.append("<tr>"); _raidList.append("<td FIXWIDTH=5></td>"); _raidList.append("<td FIXWIDTH=25>" + pos + "</td>"); _raidList.append("<td FIXWIDTH=270>" + npcname + "</td>"); _raidList.append("<td FIXWIDTH=50>" + rlevel + "</td>"); _raidList.append("<td FIXWIDTH=120 align=center>" + mindelay + " - " + maxdelay + "</td>"); _raidList.append("<td FIXWIDTH=50 align=center>" + (rstatus ? "<font color=99FF00>Alive</font>" : "<font color=CC0000>Dead</font>") + "</td>"); _raidList.append("<td FIXWIDTH=5></td>"); _raidList.append("</tr>"); _raidList.append("</table>"); _raidList.append("<img src=\"L2UI.Squaregray\" width=\"610\" height=\"1\">"); } public String loadRaidList() { return _raidList.toString(); } } code for ACIS
-
Põem os creditos mano !!
-
Only HAS grand boss , I want to add raid boss . could anyone help ?
-
someone could help add raid info? I tried but did not get success