Jump to content

mikemaster

Members
  • Posts

    193
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by mikemaster

  1. Hello guys i use acis project.. I tried to add a code manualy everything worked correctly expect this... Properties pvpcolor = new Properties(); InputStream is = new FileInputStream(new File(PVP_COLOR_SYSTEM_CONFIG_FILE)); pvpcolor.load(is); is.close(); someone pls tell me what i need to change in order to make it work <3
  2. Hello again... i tried to add something i found in this forum in my server... the patch was made for another project so i know that i had to fix it to fit in mine but i think i am a bit useless sooo i need some help
  3. Hello guys.. I would like to find out if it is possible to make a gatekeeper that will teleport players that are only in a party that has a specific number of member Example ( If a player is in a 3 member party he can teleport ) if he is not give him a message that says you are not in a party or your party lacks of members Waiting for an answer pls
  4. ευχαριστω για την βοηθεια φιλε μου Νταξει τα καταφερα απλα ειχα παρα πολυ καιρο να ασχοληθώ και δεν ημουν και τιποτα σπουδαιο παλαιοτερα
  5. Hey there.. i was wondering if someone can help me make my dynasty weapon glow like this : https://www.youtube.com/watch?v=Vryre2Uidz0 By help i mean teach me or something ... Pls reply as fast as you can ^^ Thank you in advance...
  6. * * 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.ValidateLocation; import net.sf.l2j.gameserver.network.serverpackets.MagicSkillUse; import net.sf.l2j.gameserver.templates.chars.L2NpcTemplate; /** * * @author Leki */ public final class L2BufferInstance extends L2NpcInstance { public L2BufferInstance(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; String nextWindow = null; if (st.countTokens() == 3) { buffid = Integer.valueOf(st.nextToken()); bufflevel = Integer.valueOf(st.nextToken()); nextWindow = 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); showChatWindow(player, nextWindow); } } 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)) { player.setCurrentFolkNPC(this); showMessageWindow(player); player.sendPacket(ActionFailed.STATIC_PACKET); } else { player.getAI().setIntention(CtrlIntention.INTERACT, this); player.sendPacket(ActionFailed.STATIC_PACKET); } } private void showMessageWindow(L2PcInstance player) { 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"; } } Ρε μαγκες μου εδωσαν αυτον τον κωδικα σε ενα L2BufferInstance πως θα το βαλω μεσο του eclipse ωστε στην συνεχεια να κανω compile...
  7. Helloooo there guys... Few years ago i found a post in this forum that shared a programme called Skill XML changer or something like that and also had a list of the ids of songs/dances and buffs What this programme simply does is: you enter the ids and the duration you want to give to them and it automatically changes them.. The thing is that i cannot find it anymore anyone could help me maybe??
  8. what tips bro i try to find what is wrong but i fail errors remain pfff a little help?
  9. realy? then why do i get so many errors when i try to apply the code
  10. το code που εχω ειναι σωστο απλα θελω να μαθω πως να φτιαχνω καινουργιο .java file
  11. Παιδια επειδη ειμαι καινουργιος σε αυτον τον χωρο θα ηθελα λιγη βοηθεια Σε ενα code μου ζηταει να φτιαξω ενα καινουργιο .java file αλλα δεν ξερω πως :P Για παραδειγμα : Index: java/net/sf/l2j/gameserver/events/TvTEvent.java Αυτο δεν υπαρχει και πρεπει να το φτιαξω πειτε μου πλζζ
  12. and who cares about your opinion for most of people elo is not so important besides the specs of this account are many ;)
  13. fail games = feeders in team - leavers = low elo so it's not my fault :D
  14. Hello mxc i want to sell my account in league of legends ( West Region ) summoner name the asassan The account has: 14000 ip/44 rp 10 Rune Pages with many many good runes 950 wins but low elo (700) i have all champions except: Yorick/Lulu/Graves/Ahri/Xerath/Ziggs/Viktor/Nautilus/Leona Skins: Crimson Akali/Golden Alistar/Noxus Hunter Anivia/Queen Ashe/Boom Boom Blitzcrank/Frosted Ezreal/Hextech Galio/Minuteman Gangplank/Sanguine Garen/Piltover Customs Heimerdinger/Vandal Jax/Deep One Kassadin/High Command Katarina/Karate Kennen/Sonoran Kog'Maw/Vizier Malzahar/Totemic Maokai/Chosen Master Yi/Ionia Master Yi/Road Warrior Miss Fortune/Infernal Mordekaiser/Pentakill Mordekaiser/Galactic Nasus/French Maid Nidalee/Void Nocturne/Forsaken Olaf/Chrome Rammus/Molten Rammus/Galactic Renekton/ Bilgerat Rumble/Uncle Ryze/Royal Shaco/Yellow Jacket Shen/Hextech Sion/Pentakill Sona/Astronaut Teemo/King Tryndamere/Jack of Hearts Twisted Fate/Gangster Twitch/White Mage Veigar/Count Vladimir/Tundra Hunter Warwick/Imperial Xin Zhao Looking for trusted trader leave pms with price (payments accepted psc/paypal)
  15. someone move it to League of legends marketplace pls :)
  16. Hello mxc i want to sell my account in league of legends ( West Region ) summoner name the asassan The account has: 14000 ip/44 rp 10 Rune Pages with many many good runes 950 wins but low elo (700) i have all champions except: Yorick/Lulu/Graves/Ahri/Xerath/Ziggs/Viktor/Nautilus/Leona Skins: Crimson Akali/Golden Alistar/Noxus Hunter Anivia/Queen Ashe/Boom Boom Blitzcrank/Frosted Ezreal/Hextech Galio/Minuteman Gangplank/Sanguine Garen/Piltover Customs Heimerdinger/Vandal Jax/Deep One Kassadin/High Command Katarina/Karate Kennen/Sonoran Kog'Maw/Vizier Malzahar/Totemic Maokai/Chosen Master Yi/Ionia Master Yi/Road Warrior Miss Fortune/Infernal Mordekaiser/Pentakill Mordekaiser/Galactic Nasus/French Maid Nidalee/Void Nocturne/Forsaken Olaf/Chrome Rammus/Molten Rammus/Galactic Renekton/ Bilgerat Rumble/Uncle Ryze/Royal Shaco/Yellow Jacket Shen/Hextech Sion/Pentakill Sona/Astronaut Teemo/King Tryndamere/Jack of Hearts Twisted Fate/Gangster Twitch/White Mage Veigar/Count Vladimir/Tundra Hunter Warwick/Imperial Xin Zhao Looking for trusted trader leave pms with price (payments accepted psc/paypal)
  17. i don't get one of this it doesn't give me anykind of error
  18. i get the same error in noblesse npc: import sys from com.l2jserver.gameserver.model.actor.instance import L2PcInstance from java.util import Iterator from com.l2jserver.gameserver.datatables import SkillTable from com.l2jserver import L2DatabaseFactory from com.l2jserver.gameserver.model.actor.appearance import PcAppearance from com.l2jserver.gameserver.model.quest import State from com.l2jserver.gameserver.model.actor.appearance import PcAppearance from com.l2jserver.gameserver.model.quest import QuestState from com.l2jserver.gameserver.model.quest.jython import QuestJython as JQuest qn = "8204_NpcNoblesse" NPC=[36608] GOLDBAR= 3470 NOBLESS_TIARA = 7694 QuestId = 8204 QuestName = "NpcNoblesse" QuestDesc = "custom" InitialHtml = "1.htm" print "INFO Loaded: Noblesse Manager" class Quest (JQuest) : def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr) def onEvent(self,event,st): htmltext = event count=st.getQuestItemsCount(GOLDBAR) if count < 2 and st.getPlayer().getLevel() < 80 : htmltext = "Error2.htm" elif st.getPlayer().isNoble() == 1 : htmltext = "Error1.htm" elif st.getQuestItemsCount(GOLDBAR) < 2 : htmltext = "Error2.htm" elif st.getPlayer().getLevel() < 76 : htmltext = "Error2.htm" else: st.getPlayer().setTarget(st.getPlayer()) if event == "2": st.takeItems(GOLDBAR,2) st.getPlayer().setNoble(True) st.giveItems(NOBLESS_TIARA,1) st.playSound("ItemSound.quest_finish") st.setState(State.COMPLETED) return "End.htm" st.exitQuest(1) if htmltext != event: st.setState(State.COMPLETED) st.exitQuest(1) return htmltext def onTalk (self,npc,player): st = player.getQuestState(qn) htmltext = "<html><head><body>I have nothing to say to you</body></html>" st.setState(State.STARTED) return InitialHtml QUEST = Quest(QuestId,str(QuestId) + "_" + QuestName,QuestDesc) for npcId in NPC: QUEST.addStartNpc(npcId) QUEST.addTalkId(npcId)
  19. buffer: when i select other functions button it says you are not meeting the criteria and something like that instead of showing me the html import sys from com.l2jserver.gameserver.model.actor.instance import L2PcInstance from java.util import Iterator from com.l2jserver.gameserver.datatables import SkillTable from com.l2jserver import L2DatabaseFactory from com.l2jserver.gameserver.model.quest import State from com.l2jserver.gameserver.model.quest import QuestState from com.l2jserver.gameserver.model.quest.jython import QuestJython as JQuest qn = "60551_NPCBuffer" NPCS=[121212,60551] ADENA_ID=57 QuestId = 60551 QuestName = "NPCBuffer" QuestDesc = "custom" print "Loaded: Buffer by Haizor" class Quest (JQuest) : def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr) def onEvent(self,event,st): htmltext = event count=st.getQuestItemsCount(ADENA_ID) if count < 0 or st.getPlayer().getLevel() < 1 : htmltext = "<html><head><body>You not a donator!!! Come back later.<br></body></html>" else: st.takeItems(ADENA_ID,0) st.getPlayer().setTarget(st.getPlayer()) #Cancellation if event == "1": st.takeItems(ADENA_ID,0) SkillTable.getInstance().getInfo(4094,12).getEffects(st.getPlayer(),st.getPlayer()) st.getPlayer().stopAllEffects() return "1.htm" st.setState(State.COMPLETED) #Restore if event == "2": st.takeItems(ADENA_ID,0) st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp()) st.getPlayer().setCurrentCp(st.getPlayer().getMaxCp()) return "1.htm" st.setState(COMPLETED) #Dagger buffs if event == "3": st.takeItems(ADENA_ID,0) st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4342,2),False,False) st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp()) st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4344,3),False,False) st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp()) st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4345,3),False,False) st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp()) st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4346,4),False,False) st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp()) st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4347,6),False,False) st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp()) st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4348,6),False,False) st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp()) st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4349,2),False,False) st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp()) st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4350,4),False,False) st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp()) st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4352,2),False,False) st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp()) st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4357,2),False,False) st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp()) st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4359,3),False,False) st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp()) st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4360,3),False,False) st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp()) st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1363,1),False,False) st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp()) st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1389,3),False,False) st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp()) return "2.htm" st.setState(COMPLETED) if htmltext != event: st.setState(State.COMPLETED) st.exitQuest(1) return htmltext def onTalk (self,npc,player): return "1.htm" QUEST = Quest(QuestId,str(QuestId) + "_" + QuestName,QuestDesc) for npcId in NPCS: QUEST.addStartNpc(npcId) QUEST.addTalkId(npcId)
  20. re magkes dn ktlvenw gt apla otan pataw panw sto npc m dixnei Quest me mple grammata tpt allo import sys from java.util import Iterator from com.l2jserver import L2DatabaseFactory from com.l2jserver.gameserver.model.quest import State from com.l2jserver.gameserver.model.quest import QuestState from com.l2jserver.gameserver.model.quest.jython import QuestJython as JQuest qn = "50300_PKlist" NPC = 36601 QuestId = 50300 MIN_LEVEL = 1 MAX_LEVEL = 85 QuestName = "PKlist" QuestDesc = "custom" InitialHtml = "1.htm" DonateMaster = "This ain't no free service nubblet! Now get out of my hare... Get it, 'hare'? - That gets me every time!" class Quest (JQuest) : def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr) def onEvent(self,event,st): htmltext = event level = st.getPlayer().getLevel() levelup = 86 - level if level < MIN_LEVEL : return"<html><head><body>No quicky for you! - Your to young shorty!</body></html>" if level > MAX_LEVEL : return"<html><head><body>No quicky for you! - Your to old fatty!</body></html>" else: #PK INFO if event == "01": con = L2DatabaseFactory.getInstance().getConnection() total_asesinados = 0 htmltext_ini = "<html><head><title>PG-L2 PK INFO</title></head><body><table width=300><tr><td><font color =\"FF00FF\">Pos.</td><td><center><font color =\"FFFF00\">*** Player ***</color></center></td><td><center>*** Kill's ***</center></td></tr>" htmltext_info ="" color = 1 pos = 0 pks = con.prepareStatement("SELECT char_name,pkkills FROM characters WHERE pkkills>0 and accesslevel=0 order by pkkills desc limit 50") rs = pks.executeQuery() while (rs.next()) : char_name = rs.getString("char_name") char_pkkills = rs.getString("pkkills") total_asesinados = total_asesinados + int(char_pkkills) pos = pos + 1 posstr = str(pos) if color == 1: color_text = "<font color =\"00FFFF\">" color = 2 htmltext_info = htmltext_info + "<tr><td><center><font color =\"FF00FF\">" + posstr + "</td><td><center>" + color_text + char_name +"</center></td><td><center>" + char_pkkills + "</center></td></tr>" elif color == 2: color_text = "<font color =\"FF0000\">" color = 1 htmltext_info = htmltext_info + "<tr><td><center><font color =\"FF00FF\">" + posstr + "</td><td><center>" + color_text + char_name +"</center></td><td><center>" + char_pkkills + "</center></td></tr>" htmltext_end = "</table><center><font color=\"FFFFFF\">" + "A Total of " + str(total_asesinados) + " Pk's.</center></body></html>" htmltext_pklist = htmltext_ini + htmltext_info + htmltext_end L2DatabaseFactory.close(con) return htmltext_pklist #PVP INFO if event == "02": con = L2DatabaseFactory.getInstance().getConnection() total_asesinados = 0 htmltext_ini = "<html><head><title>PG-L2 PVP INFO</title></head><body><table width=300><tr><td><font color =\"FF00FF\">Pos.</td><td><center><font color =\"FFFF00\">*** Player ***</color></center></td><td><center>*** Kill's ***</center></td></tr>" htmltext_info ="" color = 1 pos = 0 pks = con.prepareStatement("SELECT char_name,pvpkills FROM characters WHERE pvpkills>0 and accesslevel=0 order by pvpkills desc limit 50") rs = pks.executeQuery() while (rs.next()) : char_name = rs.getString("char_name") char_pvpkills = rs.getString("pvpkills") total_asesinados = total_asesinados + int(char_pvpkills) pos = pos + 1 posstr = str(pos) if color == 1: color_text = "<font color =\"00FFFF\">" color = 2 htmltext_info = htmltext_info + "<tr><td><center><font color =\"FF00FF\">" + posstr + "</td><td><center>" + color_text + char_name +"</center></td><td><center>" + char_pvpkills + "</center></td></tr>" elif color == 2: color_text = "<font color =\"FF0000\">" color = 1 htmltext_info = htmltext_info + "<tr><td><center><font color =\"FF00FF\">" + posstr + "</td><td><center>" + color_text + char_name +"</center></td><td><center>" + char_pvpkills + "</center></td></tr>" htmltext_end = "</table><center><font color=\"FFFFFF\">" + "A Total of " + str(total_asesinados) + " PvP's.</center></body></html>" htmltext_pklist = htmltext_ini + htmltext_info + htmltext_end L2DatabaseFactory.close(con) return htmltext_pklist if htmltext != event: st.exitQuest(1) return htmltext def onFirstTalk (self,npc,player): st = player.getQuestState(qn) if not st : st = self.newQuestState(player) return InitialHtml QUEST = Quest(QuestId,str(QuestId) + "_" + QuestName,QuestDesc) QUEST.addStartNpc(NPC) QUEST.addFirstTalkId(NPC) QUEST.addTalkId(NPC) print "# PVP PK INFO Loaded"
×
×
  • Create New...