Jump to content

phantoml2

Banned
  • Posts

    429
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by phantoml2

  1. and which one is better choice? with windows 2008 or 12
  2. NevesOma thank you for your posts and you help everytime i need you
  3. Hello i use this code for l2jfrozen last rev 1132 www.maxcheaters.com/topic/187939-rankingstatistics-acis/ When I click on the npc: http://imgur.com/cLKUGnJ When click the pk: http://imgur.com/fUePOd2 When click the online: http://imgur.com/WPpvlko -> When I click the back pk and click the pvp it shows: http://imgur.com/rQWKvYU
  4. Hello i open the window in l2 where you can trade , party,duel etc but it is in russian language how can i change it? which file in system is it SOLVED : IT was from Actioname.dat
  5. restart and on exit + teleports few times
  6. anyone knows why it drops me critical error ? and what is the problem i get critical few times when i teleport and few times when i restart and log in again with my char some1 please tell me the reason and how to fix
  7. hello guys can you suggest me a host for my l2 server?
  8. how can i do when change oclor name dont leave after rr and stay
  9. i did but it still remains the same nothing change and no error
  10. import sys from com.l2jfrozen.gameserver.model.actor.instance import L2PcInstance from java.util import Iterator from com.l2jfrozen.gameserver.datatables import SkillTable from com.l2jfrozen.util.database import L2DatabaseFactory from com.l2jfrozen.gameserver.model.quest import State from com.l2jfrozen.gameserver.model.quest import QuestState from com.l2jfrozen.gameserver.model.quest.jython import QuestJython as JQuest #=================================================== qn = "2003_Ranking" #=================================================== NPC=[9] PriceID = 57 PriceCount = 0 QuestId = 2003 QuestName = "Ranking" QuestDesc = "custom" InitialHtml = "1.htm" #=================================================== print "(Added NPC Ranking SMZ & RTZ successfully)" #=================================================== class Quest (JQuest) : def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr) def onTalk (self,npc,player): return InitialHtml def onEvent(self,event,st): htmltext = event price = st.getQuestItemsCount(PriceID) # - - - - - - - - - # + PvP Ranking + # - - - - - - - - - if event == "1" and price >= PriceCount : st.takeItems(PriceID,PriceCount) total_asesinados = 0 htmltext_ini = "<html><head><center></head><body><br><img src=\"l2ui.bbs_lineage2\" width=78 height=13><br1><br><br><table width=280><tr><td width=40><center><font color =\"FF0000\">Rank</center></td><td width=180><center>Name</center></td><td width=60><center>PVP's</color></center></td></tr><tr></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 20") 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 =\"FFFFFF\">" color = 2 htmltext_info = htmltext_info + "<tr><td><center><font color =\"FFFFFF\">" + posstr + "</td><td><center>" + color_text + char_name +"</center></td><td><center>" + char_pkkills + "</center></td></tr>" elif color == 2: color_text = "<font color =\"00FF00\">" color = 1 htmltext_info = htmltext_info + "<tr><td><center><font color =\"00FF00\">" + posstr + "</td><td><center>" + color_text + char_name +"</center></td><td><center>" + char_pkkills + "</center></td></tr>" htmltext_end = "</table></center></body></html>" htmltext_pklist = htmltext_ini + htmltext_info + htmltext_end con.close() return htmltext_pklist elif event == "1" and price < PriceCount : htmltext = "<html><title>Rankings</title><body><center>Sorry!<br><br>You do not have the necessary items.</center></body></html>" return htmltext # - - - - - - - - - # + PK Ranking + # - - - - - - - - - if event == "2" and price >= PriceCount : st.takeItems(PriceID,PriceCount) total_asesinados = 0 htmltext_ini = "<html><head><center></head><body><br><img src=\"l2ui.bbs_lineage2\" width=78 height=13><br1><br><br><table width=280><tr><td width=40><center><font color =\"FF0000\">Rank</center></td><td width=180><center>Name</center></td><td width=60><center>PK's</color></center></td></tr><tr></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 20") 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 =\"FFFFFF\">" color = 2 htmltext_info = htmltext_info + "<tr><td><center><font color =\"FFFFFF\">" + posstr + "</td><td><center>" + color_text + char_name +"</center></td><td><center>" + char_pkkills + "</center></td></tr>" elif color == 2: color_text = "<font color =\"00FF00\">" color = 1 htmltext_info = htmltext_info + "<tr><td><center><font color =\"00FF00\">" + posstr + "</td><td><center>" + color_text + char_name +"</center></td><td><center>" + char_pkkills + "</center></td></tr>" htmltext_end = "</table></center></body></html>" htmltext_pklist = htmltext_ini + htmltext_info + htmltext_end con.close() return htmltext_pklist elif event == "2" and price < PriceCount : htmltext = "<html><title>Rankings</title><body><center>Sorry!<br><br>You do not have the necessary items.</center></body></html>" return htmltext # - - - - - - - - - - - - - - # + Clan Reputation ranking + # - - - - - - - - - - - - - - if event == "5" and price >= PriceCount : st.takeItems(PriceID,PriceCount) htmltext_ini = "<html><head><center></head><body><br><img src=\"l2ui.bbs_lineage2\" width=78 height=13><br1><br><br><table width=230><tr><td><font color =\"FF0000\">Rank</color></td><td><center><font color =\"FF0000\">Level</color></center></td><td><center><font color =\"FF0000\">Name</color></center></td><td><center><font color =\"FF0000\">Reputation</color></center></td></tr><tr></tr>" htmltext_info ="" color = 1 pos = 0 con = L2DatabaseFactory.getInstance().getConnection() clan = con.prepareStatement("SELECT clan_name,clan_level,reputation_score FROM clan_data WHERE clan_level>0 order by reputation_score desc limit 5") rs = clan.executeQuery() while (rs.next()) : clan_name = rs.getString("clan_name") clan_level = rs.getString("clan_level") clan_score = rs.getString("reputation_score") pos = pos + 1 posstr = str(pos) if color == 1: color_text = "<font color =\"FFFFFF\">" color = 2 htmltext_info = htmltext_info + "<tr><td><center><font color =\"FFFF00\">" + posstr + "</center></td><td><center>" + color_text + clan_level +"</center></td><td><center>" + clan_name + "</center></td><td><center>" + clan_score + "</center></td></tr>" elif color == 2: color_text = "<font color =\"FFFFFF\">" color = 1 htmltext_info = htmltext_info + "<tr><td><center><font color =\"FFFF00\">" + posstr + "</center></td><td><center>" + color_text + clan_level +"</center></td><td><center>" + clan_name + "</center></td><td><center>" + clan_score + "</center></td></tr>" htmltext_end = "</table></center></body></html>" htmltext_pklist = htmltext_ini + htmltext_info + htmltext_end con.close() return htmltext_pklist elif event == "5" and price < PriceCount : htmltext = "<html><body><center>Sorry!<br><br>You do not have the necessary items.</center></body></html>" return htmltext # - - - - - - - - # + Online Time + # - - - - - - - - if event == "6" and price >= PriceCount : st.takeItems(PriceID,PriceCount) htmltext_ini = "<html><head><center></head><body><br><img src=\"l2ui.bbs_lineage2\" width=78 height=13><br1><br><br><table width=280><tr><td width=40><center><font color =\"FF0000\">Rank</color></center></td><td width=160><center><font color =\"FF0000\">Name</color></center></td><td width=80><center><font color =\"FF0000\">Online</color></center></td></tr><tr></tr>" htmltext_info ="" color = 1 pos = 0 con = L2DatabaseFactory.getInstance().getConnection() pks = con.prepareStatement("SELECT char_name,onlinetime FROM characters WHERE onlinetime>0 and accesslevel=0 order by onlinetime desc limit 20") rs = pks.executeQuery() while (rs.next()) : char_name = rs.getString("char_name") char_onlinetime = rs.getString("onlinetime") pos = pos + 1 posstr = str(pos) if color == 1: color_text = "<font color =\"FFFFFF\">" color = 2 htmltext_info = htmltext_info + "<tr><td><center><font color =\"FFFFFF\">" + posstr + "</td><td><center>" + color_text + char_name +"</center></td><td><center>" + char_onlinetime + "</center></td></tr>" elif color == 2: color_text = "<font color =\"00FF00\">" color = 1 htmltext_info = htmltext_info + "<tr><td><center><font color =\"00FF00\">" + posstr + "</td><td><center>" + color_text + char_name +"</center></td><td><center>" + char_onlinetime + "</center></td></tr>" htmltext_end = "</table></center></body></html>" htmltext_pklist = htmltext_ini + htmltext_info + htmltext_end con.close() return htmltext_pklist elif event == "6" and price < PriceCount : htmltext = "<html><body><center>Sorry!<br><br>You do not have the necessary items.</center></body></html>" return htmltext QUEST = Quest(QuestId,str(QuestId) + "_" + QuestName,QuestDesc) for npcId in NPC: QUEST.addStartNpc(npcId) QUEST.addTalkId(npcId) QUEST.addTalkId(npcId) it's not java it's python and i tried the way you suggest me but when i press show me top online it opens a windows and writes script error any other suggest ?
  11. it's not java code it's a rank npc but if you mean the init here it is
  12. hello i have top online npc n my server and it takes the online time from navicat but it navicat it count per seconds i want it counts per hours or days how can i do it?
  13. Hello guys how can i do when a player bet on casino he doesnt need to write the count i want when a player click on play 20 farm coin he bet automatically 20 farm coins without he needs to write the count
  14. thank you for your help @reborn12 fixed it big thanks to him Problem Solved
×
×
  • Create New...