Jump to content

l2redkiller

Members
  • Posts

    200
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by l2redkiller

  1. anyone they share or say the same can make a example or something. thanks :D
  2. basically good but not that much because the balance depends on 2 things 1.char_template need a full rewrite if you want balance and to do that need to be a good player too... 2.debuffs..well the best choice is if a debuff land more often but its shorter that means they use more skill about the potions well the most used potion is mana pot give a reuse to it and thats all not so hard at all just need a lot of testing and time so how make that give some examples i dont understand the char_template is the basic str dex con int wit men so if change player see they cry so examples pls or anyone does it for epilogue have problems with archers and tanks thanks really nice share sorry for my english
  3. Really cool and simple code i will put it injto my server thanks for guide so i learn some edits on L2server :D
  4. it dont work oO i tryed with .online command and admin command they say no handler registered for 'admin_legend_menu' but i added in gs.java 'import net.sf.l2j.gameserver.handler.voicedcommandhandlers.OnlinePlayers;' and paste the code in voicedcommandhandler
  5. hey dudes i added a new command in handlers/admincommandhandler also i just copy in that file now how i must register it in l2j interlude server? thanks for help
  6. ye really nice just have probs with systemmessages in VIP.Java i run interlude but thx
  7. i done a script like hat too just i added sounds from Unreal Tournament just use the announce of the game its really cool feeling. but ok nice share :D
  8. dudes i wanna add it too just donno what calles the death_music ? ok i understand and test it and it work for interlude so :P ^^ thx nice share :D
  9. here a code for custom nobless : import sys from net.sf.l2j.gameserver.model.quest import State from net.sf.l2j.gameserver.model.quest import QuestState from net.sf.l2j.gameserver.model.quest.jython import QuestJython as JQuest qn = "8204_NpcNoblesse" NPC=[77891] GOLDBAR= 6673 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 < 100 and st.getPlayer().getLevel() < 85 : htmltext = "Error2.htm" elif st.getPlayer().isNoble() == 1 : htmltext = "Error1.htm" elif st.getQuestItemsCount(GOLDBAR) < 100 : htmltext = "Error2.htm" elif st.getPlayer().getLevel() < 85 : htmltext = "Error2.htm" else: st.getPlayer().setTarget(st.getPlayer()) if event == "2": st.takeItems(GOLDBAR,100) 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) if added show no error but on click he means anything with state but donno so thx for help # ************************* # PKlist Online # Por ->K<- # Mi primer gran programa en Python, 4 de Julio del 2008 # Este Script es para mostrar Online y por orden, los PKs del server. # El problema que viene luego es la longitud del HTML, uno demasiado grande crasheara al cliente. # ************************* import sys from java.util import Iterator from net.sf.l2j.util import Rnd from net.sf.l2j.gameserver.model.quest import State from net.sf.l2j.gameserver.model.quest import QuestState from net.sf.l2j.gameserver.model.quest.jython import QuestJython as JQuest from net.sf.l2j.gameserver.network.serverpackets import CreatureSay from net.sf.l2j import L2DatabaseFactory print "importing custom: 50300_PKlist" # *************************************** # Inicializacion de Variables del Quest * # *************************************** NPC=[77891] Precio_ID = 57 QuestId = 50300 QuestName = "PKlist" QuestDesc = "custom" InitialHtml = "1.htm" # ************************ # Creando la Clase Quest * # ************************ class Quest (JQuest) : def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr) # *********************** # Si hablas con el NPC: * # *********************** def onTalk (self,npc,player): return InitialHtml # *********************** # ***************************************************** # Ahora gobernamos los eventos que vienen desde el HTML # ***************************************************** def onEvent(self,event,st): htmltext = event cantidad_pago = st.getQuestItemsCount(Precio_ID) # ********* # PK info * # ********* if event == "1" and cantidad_pago >= 3000 : st.takeItems(Precio_ID,3000) total_asesinados = 0 htmltext_ini = "<html><head><title>Pk Info Online</title></head><body><table width=300><tr><td><font color =\"FF00FF\">Pos.</td><td><center><font color =\"FFFF00\">*** Player ***</color></center></td><td><center>*** Kills ***</center></td></tr>" htmltext_info ="" color = 1 pos = 0 con = L2DatabaseFactory.getInstance().getConnection() 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 con.close() return htmltext_pklist elif event == "1" and cantidad_pago < 3000 : htmltext = "<html><head><title>PK info Online</title></head><body><font color =\"FF0000\">Primero pagame...!! son 3000 adenas.</body></html>" return htmltext # ********** # PvP info * # ********** if event == "2" and cantidad_pago >= 3000 : st.takeItems(Precio_ID,3000) total_asesinados = 0 htmltext_ini = "<html><head><title>PvP info Online</title></head><body><table width=300><tr><td><font color =\"FF00FF\">Pos.</td><td><center><font color =\"FFFF00\">*** Player ***</color></center></td><td><center>*** Kills ***</center></td></tr>" htmltext_info ="" color = 1 pos = 0 con = L2DatabaseFactory.getInstance().getConnection() 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_pkkills = rs.getString("pvpkills") 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) + " Kills.</center></body></html>" htmltext_pklist = htmltext_ini + htmltext_info + htmltext_end con.close() return htmltext_pklist elif event == "2" and cantidad_pago < 3000 : htmltext = "<html><head><title>PK info Online</title></head><body><font color =\"FF0000\">Primero pagame...!! son 3000 adenas.</body></html>" return htmltext # ************* # Adenas info * # ************* if event == "3" and cantidad_pago >= 100000 : st.takeItems(Precio_ID,100000) total_cantidad = 0 htmltext_ini = "<html><head><title>Adena info Online</title></head><body><table width=300><tr><td><font color =\"FF00FF\">Pos.</td><td><center><font color =\"FFFF00\">*** Name ***</color></center></td><td><center>*** Adenas ***</center></td></tr>" htmltext_info ="" color = 1 pos = 0 con = L2DatabaseFactory.getInstance().getConnection(None) pks = con.prepareStatement("SELECT count,owner_id FROM items WHERE item_id=57 order by count desc limit 50") rs = pks.executeQuery() while (rs.next()) : cantidad = rs.getString("count") pj_id = rs.getString("owner_id") total_cantidad = total_cantidad + long(cantidad) pos = pos + 1 posstr = str(pos) charname = con.prepareStatement("SELECT char_name FROM characters WHERE charId=" + pj_id) rs2 = charname.executeQuery() while (rs2.next()) : char_name = rs2.getString("char_name") 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>" + cantidad + "</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>" + cantidad + "</center></td></tr>" htmltext_end = "</table><center><font color=\"FFFFFF\">" + "Los TOPS suman " + str(total_cantidad) + " adenas.</center></body></html>" htmltext_pklist = htmltext_ini + htmltext_info + htmltext_end con.close() return htmltext_pklist elif event == "3" and cantidad_pago < 3000 : htmltext = "<html><head><title>Adenas info Online</title></head><body><font color =\"FF0000\">Primero pagame...!! son 100k adenas.</body></html>" return htmltext # ************************************************* # Insertando Quest en la lista de Quest disponibles # ************************************************* QUEST = Quest(QuestId,str(QuestId) + "_" + QuestName,QuestDesc) for npcId in NPC: QUEST.addStartNpc(npcId) QUEST.addTalkId(npcId)
  10. hey dudes i wanna give my html new buttons maybe gracia ? so if i add the L2UI_CT1.utx how register the buttons? so that i dont get crit error thanks for help :D
  11. nice thx :d i createt my own glow too so 2 things in 1 file :P
  12. thx for help dude anyone can help make a very new weapon that not in any game texture i know but how make the volumen so that the weapon show what it is ?
  13. nice guide but 1 question how make that weapon glow with +0 weapon ??? thx
  14. hey dudes i createt a new weapon so i made all but when i log in game client say the item not exist so what i do wrong?
  15. dude i have the same i tryed from mxc the system and editor so i donno what happened? i used gracia final -.-
  16. Config.java : + public static int PVP_NAME_COLOR; public static boolean ALT_GAME_SUBCLASS_ALL_CLASSES; -------------------------------------------------------------- + PVP_NAME_COLOR; = Integer.decode("0x" + L2JmodsSettings.getProperty("PvPColor", "00000")); CLAN_LEADER_COLOR_ENABLED = Boolean.parseBoolean(customSettings.getProperty("ClanLeaderColorEnabled", "false")); L2Character : -player.getAppearance.setNameColor(Config.PVP_START_FLAG); +player.getAppearance().setNameColor(Config.PVP_NAME_COLOR); -------------------------------------------------------------- L2jmods.properties : PvPColor = 00000 the red things need in epilogue and it dont work for l2j
  17. is it from bloodsheed the event i know from l2j so ok thx testing it
  18. i dont use it becurse not working for me with confug so thx for the post :P
  19. i use just red sky on pk kill :P not every second is a pk kill so thx just add the red line so that all see the red sky not only the player :P ExRedSky packet = new ExRedSky(7); Broadcast.toAllOnlinePlayers(packet);
  20. i dont wanna have a color i wanna create to change in config ^^ its much better for all :D
  21. my error was there : public void startPvPFlag() { updatePvPFlag(1); L2PcInstance player = (L2PcInstance)this; [color=red]player.getAppearance[/color].setNameColor(Config.PVP_START_FLAG); _PvPRegTask = ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(new PvPFlag(), 1000, 1000); } now i use public void startPvPFlag() { updatePvPFlag(1); L2PcInstance player = (L2PcInstance)this; [color=green]player.getAppearance().[/color]setNameColor(Config.PVP_START_FLAG); _PvPRegTask = ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(new PvPFlag(), 1000, 1000); } without error but in game no flag color change so donno wount work for ge
  22. Gracia epilogue shows an error but i will fix it and put for config thx good job
  23. i know some java so i wanna start new pvp server but needs balance so mana just heal 500 buffs hmm need good times and reuse so it will show better but where can i find reuse for all skills ? i dont wanna create own becurse all wanna cry after this :P i dont have any custom items so just hero weapons little bit stronger than vesper but with s80 they have that stats with shilen templar 1499 atk speed and tyrant 11k p,atk and so on. so thank for new replays
×
×
  • 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