Jump to content

Psyancy

Legendary Member
  • Posts

    1,560
  • Credits

  • Joined

  • Last visited

  • Days Won

    20
  • Feedback

    100%

Everything posted by Psyancy

  1. Thanks mate! Because back then i was learning how to use the animations, this banner was for a friend for practice purposes
  2. yeah ;p it's an old file but it's good for someone doesn't know how to do animated banners to make a start learning how to.
  3. I totally get and agree with what you said. Unfortunately there is no option of doing something like that. I mean we can make it so people can rep + or - to topic authors and only that but there is no option of allowing rep to authors and only to one reply (for posts like a solution that helped someone) and Maxtor increased the maximum amount of reputations users can give in order to reward active people, he even gave normal members that option something that didn't exist on the previous versions not even on SMF with the Karma system. The fact that people abuse this, it's member's option to abuse this system but what we can do? "Punish" everyone by removing the reputation system because 2 or 3 users abuse the reputation system? My opinion is to warn users abusing the reputation system and immediately remove every single rep this user gave and received no matter if it's negative or positive.
  4. Well, tbh before the upgrade to ips aVVe (or someone else, don't really remember atm) made a topic about the negative reps and because the reputation system was about to change we did no action to fix them. Now the old reps still exists, i guess a clean up on those spam reps would be a nice idea. On the other hand, giving tons of negative reputations because of a "fight" between members won't really give us the whole picture about how many reputation points someone should have or not.
  5. Yes, aCis will be your best option mate. Also it's the only free project left active atm you can use the free version (which is 10 revs before the current revision of the paid) and if you're a customer there there are active bug fixes and you can get diffs with latest updates so you can apply them on your project.
  6. By NPC you mean npc template or npc html design?
  7. BugReport npc got that code, check the code and take it from there /* * 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 com.l2jfrozen.gameserver.model.actor.instance; import java.io.*; import java.util.StringTokenizer; import javolution.text.TextBuilder; import com.l2jfrozen.gameserver.ai.CtrlIntention; import com.l2jfrozen.gameserver.model.L2World; import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance; import com.l2jfrozen.gameserver.network.L2GameClient; import com.l2jfrozen.gameserver.network.clientpackets.Say2; import com.l2jfrozen.gameserver.network.serverpackets.ActionFailed; import com.l2jfrozen.gameserver.network.serverpackets.CreatureSay; import com.l2jfrozen.gameserver.network.serverpackets.MyTargetSelected; import com.l2jfrozen.gameserver.network.serverpackets.NpcHtmlMessage; import com.l2jfrozen.gameserver.network.serverpackets.ValidateLocation; import com.l2jfrozen.gameserver.templates.L2NpcTemplate; /** * @author squallcs * */ public class L2BugReportInstance extends L2FolkInstance { private static String _type; public L2BugReportInstance(int objectId, L2NpcTemplate template) { super(objectId, template); } @Override public void onBypassFeedback(L2PcInstance player, String command) { if (command.startsWith("send_report")) { StringTokenizer st = new StringTokenizer(command); st.nextToken(); String msg = null; String type = null; type = st.nextToken(); msg = st.nextToken(); try { while (st.hasMoreTokens()) { msg = msg + " " + st.nextToken(); } sendReport(player, type, msg); } catch (StringIndexOutOfBoundsException e) { } } } static { new File("log/BugReports/").mkdirs(); } private void sendReport(L2PcInstance player, String command, String msg) { String type = command; L2GameClient info = player.getClient().getConnection().getClient(); if (type.equals("General")) _type = "General"; if (type.equals("Fatal")) _type = "Fatal"; if (type.equals("Misuse")) _type = "Misuse"; if (type.equals("Balance")) _type = "Balance"; if (type.equals("Other")) _type = "Other"; try { String fname = "log/BugReports/" + player.getName() + ".txt"; File file = new File(fname); boolean exist = file.createNewFile(); if (!exist) { player.sendMessage("You have already sent a bug report, GMs must check it first."); return; } FileWriter fstream = new FileWriter(fname); BufferedWriter out = new BufferedWriter(fstream); out.write("Character Info: " + info + "\r\nBug Type: " + _type + "\r\nMessage: " + msg); player.sendMessage("Report sent. GMs will check it soon. Thanks..."); for (L2PcInstance allgms : L2World.getInstance().getAllGMs()) allgms.sendPacket(new CreatureSay(0, Say2.SHOUT, "Bug Report Manager", player.getName() + " sent a bug report.")); System.out.println("Character: " + player.getName() + " sent a bug report."); out.close(); } catch (Exception e) { player.sendMessage("Something went wrong try again."); } } @Override public void onAction(L2PcInstance player) { if (!canTarget(player)) { return; } if (this != player.getTarget()) { player.setTarget(this); player.sendPacket(new MyTargetSelected(getObjectId(), 0)); player.sendPacket(new ValidateLocation(this)); } else if (!canInteract(player)) { player.getAI().setIntention(CtrlIntention.AI_INTENTION_INTERACT, this); } else { showHtmlWindow(player); } player.sendPacket(new ActionFailed()); } private void showHtmlWindow(L2PcInstance activeChar) { NpcHtmlMessage nhm = new NpcHtmlMessage(5); TextBuilder replyMSG = new TextBuilder(""); replyMSG.append("<html><title>Bug Report Manager</title>"); replyMSG.append("<body><br><br><center>"); replyMSG.append("<table border=0 height=10 bgcolor=\"444444\" width=240>"); replyMSG.append("<tr><td align=center><font color=\"00FFFF\">Hello " + activeChar.getName() + ".</font></td></tr>"); replyMSG.append("<tr><td align=center><font color=\"00FFFF\">There are no Gms online</font></td></tr>"); replyMSG.append("<tr><td align=center><font color=\"00FFFF\">and you want to report something?</font></td></tr>"); replyMSG.append("</table><br>"); replyMSG.append("<img src=\"L2UI.SquareWhite\" width=280 height=1><br><br>"); replyMSG.append("<table width=250><tr>"); replyMSG.append("<td><font color=\"LEVEL\">Select Report Type:</font></td>"); replyMSG.append("<td><combobox width=105 var=type list=General;Fatal;Misuse;Balance;Other></td>"); replyMSG.append("</tr></table><br><br>"); replyMSG.append("<multiedit var=\"msg\" width=250 height=50><br>"); replyMSG.append("<br><img src=\"L2UI.SquareWhite\" width=280 height=1><br><br><br><br><br><br><br>"); replyMSG.append("<button value=\"Send Report\" action=\"bypass -h npc_" + getObjectId() + "_send_report $type $msg\" width=204 height=20 back=\"sek.cbui75\" fore=\"sek.cbui75\">"); replyMSG.append("</center></body></html>"); nhm.setHtml(replyMSG.toString()); activeChar.sendPacket(nhm); activeChar.sendPacket(new ActionFailed()); } }
  8. If you're skilled simply take aCis and modify it as you like and you will be just fine. Don't expect to get the best pack eune for free by someone. You get what you pay.
  9. String text = HtmCache.getInstance().getHtm("data/html/yourhtmlfolder/yourhtmlfile.htm"); text = text.replace("%CharName%", String.valueOf(activeChar.getName())); and on npc you simply add this %CharName% to your htm file and it will show the character name.
  10. One more great share! Thanks for sharing bro.
  11. That's epic, it would be awesome to do something like that on IL ;p
  12. Thanks it's working My mb block it as well ;p (Premium version)
  13. Best of luck with your server mate!
  14. God damn you mate ;p One more awesome idea, thanks for sharing +1.
  15. I got these files on my mega account for a long time, check them. dunno if there are real files. https://mega.nz/#!opUliTiL!8zMhW-pGxtjooAFehc5I-YrWuLgKXRtDvcsiIrjZRW8
  16. For real? tons of adlinks to get a download link for a share without even having a preview image? please update your link with a download link and do the same to your 2nd post as well.
  17. If i'm not wrong the only thing you have to do is to copy your gameserver folder and rename it to gameserver2 for example and copy it inside on your server files! then register 2 game servers you will put the 1st server hexid inside the gameserver/config and the 2nd server hexid inside the gameserver2/config and that's all.. you can set up rates/feautures etc from your gameserver files and you can make w/e servers you want!
  18. he just said that it wasn't him but his friend and we can clearly see this on screenshots too ;p
×
×
  • Create New...