Jump to content

EdenEternal

Banned
  • Posts

    2,090
  • Joined

  • Last visited

  • Feedback

    100%

Everything posted by EdenEternal

  1. So I take aCis free 254 rev and decided to make a buffer to it. I found the Buffer of darthvader Changed the showMessageWindow to make a html file. and know i have this /* * 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 net.sf.l2j.gameserver.model.actor.instance; import java.util.StringTokenizer; import net.sf.l2j.gameserver.ai.CtrlIntention; import net.sf.l2j.gameserver.datatables.SkillTable; import net.sf.l2j.gameserver.network.serverpackets.ActionFailed; import net.sf.l2j.gameserver.network.serverpackets.MyTargetSelected; import net.sf.l2j.gameserver.network.serverpackets.NpcHtmlMessage; import net.sf.l2j.gameserver.network.serverpackets.SocialAction; import net.sf.l2j.gameserver.network.serverpackets.ValidateLocation; import net.sf.l2j.gameserver.network.serverpackets.MagicSkillUse; import net.sf.l2j.gameserver.templates.chars.L2NpcTemplate; import net.sf.l2j.util.StringUtil; import net.sf.l2j.util.Rnd; /** * * @author DarthVader * @version 1.3 */ public final class L2Buffer2Instance extends L2NpcInstance { public L2Buffer2Instance(int objectId, L2NpcTemplate template) { super(objectId, template); } @Override public void onBypassFeedback(L2PcInstance player, String command) { StringTokenizer st = new StringTokenizer(command, " "); String actualCommand = st.nextToken(); int buffid = 0; int bufflevel = 1; if (st.countTokens() == 2) { buffid = Integer.valueOf(st.nextToken()); bufflevel = Integer.valueOf(st.nextToken()); } else if (st.countTokens() == 1) buffid = Integer.valueOf(st.nextToken()); if (actualCommand.equalsIgnoreCase("getbuff")) { if (buffid != 0) { MagicSkillUse mgc = new MagicSkillUse(this, player, buffid, bufflevel, 5, 0); SkillTable.getInstance().getInfo(buffid, bufflevel).getEffects(this, player); showMessageWindow(player); player.broadcastPacket(mgc); } } else if (actualCommand.equalsIgnoreCase("restore")) { player.setCurrentHpMp(player.getMaxHp(), player.getMaxMp()); player.setCurrentCp(player.getMaxCp()); showMessageWindow(player); } else if (actualCommand.equalsIgnoreCase("cancel")) { player.stopAllEffects(); showMessageWindow(player); } else super.onBypassFeedback(player, command); } @Override public void onAction(L2PcInstance player) { if (this != player.getTarget()) { player.setTarget(this); player.sendPacket(new MyTargetSelected(getObjectId(), player.getLevel() - getLevel())); player.sendPacket(new ValidateLocation(this)); } else if (isInsideRadius(player, INTERACTION_DISTANCE, false, false)) { SocialAction sa = new SocialAction(this, Rnd.get(8)); broadcastPacket(sa); player.setCurrentFolkNPC(this); showMessageWindow(player); player.sendPacket(ActionFailed.STATIC_PACKET); } else { player.getAI().setIntention(CtrlIntention.AI_INTENTION_INTERACT, this); player.sendPacket(ActionFailed.STATIC_PACKET); } } private void showMessageWindow(L2PcInstance player) { /* player.sendPacket(ActionFailed.STATIC_PACKET); NpcHtmlMessage html = new NpcHtmlMessage(getObjectId()); html.setFile("data/html/Buffer/" + getTemplate().getNpcId() + ".htm"); html.replace("%objectId%", String.valueOf(getObjectId())); html.replace("%name%", player.getName()); player.sendPacket(html); */ String filename = "data/html/buffer/" + getNpcId() + ".htm"; filename = getHtmlPath(getNpcId(), 0); NpcHtmlMessage html = new NpcHtmlMessage(getObjectId()); html.setFile(filename); html.replace("%objectId%", String.valueOf(getObjectId())); html.replace("%npcname%", getName()); player.sendPacket(html); } @Override public String getHtmlPath(int npcId, int val) { String pom = ""; if (val == 0) pom = "" + npcId; else pom = npcId + "-" + val; return "data/html/buffer/" + pom + ".htm"; } } I made html for buffer in data/html/buffer/id.htm. id-1.htm for buffs, id-2.htm for dances etc. but when i am on dances htm and get for example Dance of fire, I'm going to main htm.(id.htm) I want to go back to id-2.htm. Did you get it what I want? can you give me opinions?
  2. He is trying to say that you didn't deserved karma :D He thinks only sharing it is not enough to take karma(reputation)
  3. Quest of noblesse don't work? :|
  4. Thanks. I didn't know that mana potion don't work when you are invul
  5. Mana potion doesn't work! i'm using free 254rev!
  6. Close the topic. Problem was solved. Thanks to povis111
  7. I have free acis pack. 254 rev. the buffer of povis111 don't work. and the second one i have never seen and can't find....
  8. one of topics you wrote to take any buffer, change imports and the 90% of work is done. I downloaded 90% of buffers but they don't work :( can you give me link of buffer which is not based on python
  9. can't get it. explain please
  10. Pack: Acis getting this error Error on: C:\Users\User\Desktop\Server\gameserver\data\scripts\custom\9999_NPCBuffer\__init__.py.error.log Line: -1 - Column: -1 Traceback (innermost last): File "__init__.py", line 144, in ? TypeError: net.sf.l2j.gameserver.model.quest.State(): expected 0 args; got 2 Line 144 CREATED=State('Start',QUEST) what is the problem?
  11. If you make a buffer in pack that would be great!
  12. Can't find buffer which can work without problems on this pack :O
  13. Past here was a topic about Dragon-eye Cms but know i can't find it to download. can any1 share that cms?
  14. @xDrac my friend why you are spamming on this topic Heredur Team told you that they gonna cheange it so please dont spamm,and something more this forum is not maybe buy you official the only think that you have done is to add a bg on css and make some boards design so please let them WORK,next time if you some again on Lineage II Heredur TOPIC you gonna be demarked. Thanks!!
  15. Thanks FG i know Un i used a ready logo because i dont have time to make a text style
  16. Rate and Commnet !!
  17. What about this Linaege II Heredur Signature,i love it you ?? NOTE: MixMaster i used you logo.
  18. Hello all i am lekino with another name but it is the same account.Its just a information :D
  19. Why tell me why dont even try to open it because its gonna FAIL for sure HOME MADE SERVER FREE DOMAIN AND HOST and i am sure that you haven`t DDOS PROTECTION SO please close it. Thanks btw: Good Luck
  20. Add them on skype the can help you (`Romeo and `DeathCry_) Contacts are: block3r. Romeo.inside1
×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock