-
Posts
2,090 -
Joined
-
Last visited
-
Feedback
100%
Content Type
Articles
Profiles
Forums
Store
Everything posted by EdenEternal
-
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?
-
Source aCis - another CRAPPY interlude server
EdenEternal replied to Tryskell's topic in Server Shares & Files [L2J]
Quest of noblesse don't work? :| -
Source aCis - another CRAPPY interlude server
EdenEternal replied to Tryskell's topic in Server Shares & Files [L2J]
Thanks. I didn't know that mana potion don't work when you are invul -
Source aCis - another CRAPPY interlude server
EdenEternal replied to Tryskell's topic in Server Shares & Files [L2J]
Mana potion doesn't work! i'm using free 254rev! -
Error importing buffer
EdenEternal replied to EdenEternal's question in Request Server Development Help [L2J]
Close the topic. Problem was solved. Thanks to povis111 -
Error importing buffer
EdenEternal replied to EdenEternal's question in Request Server Development Help [L2J]
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.... -
Error importing buffer
EdenEternal replied to EdenEternal's question in Request Server Development Help [L2J]
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 -
Error importing buffer
EdenEternal replied to EdenEternal's question in Request Server Development Help [L2J]
can't get it. explain please -
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?
-
Source aCis - another CRAPPY interlude server
EdenEternal replied to Tryskell's topic in Server Shares & Files [L2J]
If you make a buffer in pack that would be great! -
Source aCis - another CRAPPY interlude server
EdenEternal replied to Tryskell's topic in Server Shares & Files [L2J]
Can't find buffer which can work without problems on this pack :O -
Share Lineage 2 Free Cms System
EdenEternal replied to michael9ufo's topic in General Discussion [English]
link is damaged... -
Past here was a topic about Dragon-eye Cms but know i can't find it to download. can any1 share that cms?
-
[R&C]Lineage II Heredur signature
EdenEternal replied to EdenEternal's topic in Graphics/GFX Showcase
Thanks mate !! -
[L2j]Lineage2 Heredur x70 Mixed PvP/Rpg Mid-Rate Server. Rebuilding!
EdenEternal replied to `Rοmeο's topic in Private Servers
@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!! -
[WTS]PAX SIVIR SKIN CODE More Codes AT 16/1/2013
EdenEternal replied to `Rοmeο's topic in Marketplace
-
[R&C]Lineage II Heredur signature
EdenEternal replied to EdenEternal's topic in Graphics/GFX Showcase
Thanks FG i know Un i used a ready logo because i dont have time to make a text style -
[R&C]Lineage II Heredur signature
EdenEternal replied to EdenEternal's topic in Graphics/GFX Showcase
Rate and Commnet !! -
What about this Linaege II Heredur Signature,i love it you ?? NOTE: MixMaster i used you logo.
-
7
-
SOTM #4: ❅ Special Christmas ❅ - The Voting Thread
EdenEternal replied to MixMasteR's topic in SOTM Events
Hello all i am lekino with another name but it is the same account.Its just a information :D -
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
-
Add them on skype the can help you (`Romeo and `DeathCry_) Contacts are: block3r. Romeo.inside1
