Jump to content

DominiQue

Members
  • Posts

    727
  • Credits

  • Joined

  • Last visited

    Never
  • Feedback

    0%

Everything posted by DominiQue

  1. mai taci drak :))
  2. +/* + * 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 2, 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, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA + * 02111-1307, USA. + * + * <http://www.gnu.org/copyleft/gpl.html> + */ +package com.l2jserver.gameserver.model.actor.instance; + +import javolution.text.TextBuilder; + +import com.l2jserver.gameserver.model.actor.L2Npc; +import com.l2jserver.gameserver.network.serverpackets.NpcHtmlMessage; +import com.l2jserver.gameserver.templates.chars.L2NpcTemplate; + +/** + * @author DominiQue + */ +public class L2ColorInstance extends L2Npc +{ + private String filename; + public L2ColorInstance(int objectId, L2NpcTemplate template) + { + super(objectId, template); + } + + @Override + public void onBypassFeedback(L2PcInstance player, String command) { + + if(player == null || player.getLastFolkNPC() == null + || player.getLastFolkNPC().getObjectId() != this.getObjectId()) { + return; + } + + if(command.startsWith("play1")) + bluename(player); + } + + public static void bluename(L2PcInstance player) + { + if (player.getInventory().getInventoryItemCount(4355, 0) >= 1) + { + player.getInventory().destroyItemByItemId("Blue Eva", 4355, 1, player, null); + player.setHero(true); + } + else + { + player.sendMessage("You have not yet met the qualifications"); + } + } + @Override + public void showChatWindow(L2PcInstance player, int val) + { + filename = (getHtmlPath(getNpcId(), val)); + NpcHtmlMessage msg = new NpcHtmlMessage(this.getObjectId()); + msg.setHtml(colorWindow(player)); + msg.replace("%objectId%", String.valueOf(this.getObjectId())); + player.sendPacket(msg); + } + private String colorWindow(L2PcInstance player) + { + TextBuilder tb = new TextBuilder(); + + tb.append("<html><title>Deviance Color Manager</title><body>"); + tb.append("<center>"); + tb.append("<br>"); + tb.append("<img src=\"L2UI.SquareGray\" width=\"200\" height=\"1\"><br>"); + tb.append("Welcome "+player.getName()+"<br>"); + tb.append("<tr><td>Madafaka I can noble you ! nigga</td></tr><br>"); + tb.append("<img src=\"L2UI.SquareGray\" width=\"280\" height=\"1\"></center><br>"); + tb.append("<center>"); + tb.append("<button value= Noble Me action=\"bypass -h npc_%objectId%_play1\" width=130 height=25 back= L2UI_ct1.button_df fore = L2UI_ct1.button_df>"); + tb.append("</center>"); + tb.append("<img src=\"L2UI.SquareGray\" width=\"280\" height=\"1\"></center><br>"); + tb.append("<br>"); + tb.append("<center><img src=\"L2UI.SquareGray\" width=\"280\" height=\"1\">"); + tb.append("</body></html>"); + return tb.toString(); + } + +}
  3. mwhahah =))
  4. stupid game.... -2.4 m ;D
  5. config/general.pro...
  6. geniala...poate in alta viata:))
  7. poate imi dati idei pt categorii ;D
  8. Va faceti si voi cont aici ? http://77.36.67.114/index.php Inca nu am primit domeniul,in 3-4zile o sa dau drumul la private-project . Dar o sa puteti folosii serverul si free , doar pe localhost.
  9. # --------------------------------------------------------------------------- # Database Custom Tables # --------------------------------------------------------------------------- # Default: False CustomSpawnlistTable = False # Option to save GM spawn only in the custom table. # Default: False SaveGmSpawnOnCustom = False # Option to delete spawn in alternate table. # Default: False DeleteGmSpawnOnCustom = False
  10. Spamul sa fie cu voi ! brb :))
  11. ma bag la film , spam pentru toti :))
×
×
  • Create New...