Jump to content
  • 0

[Help]Thelw me kapoios panw se gnwsi Create site Free


Question

Posted

Alloz auto itan ena palio m topic me allo 8ema alla prokimenou na min kanw new sinexeia spatalaw alla :D

Loipon 8elw kapoion se gnwsei Creat Site Free opws .tk-.ucoz kai ta loipa to 8ema tou site den einai me l2.. alla me allon opoios 8elei na me help na m pei.....

 

Ys : Exei polla topic pos na kaneis site to kserw alla den 8elw na mpw stin diadikasia auti t site dld kai p to epsa3a den vrika kati :P

Recommended Posts

  • 0
Posted

εχω κανει εγω 1 npc που λεει για online characters, κανει sort κατα ονομα, κλάση ή lvl.

Ψαξε καλα στο forum και αν δεν υπαρχει κατι αντίστοιχο τοτε μονο θα το κάνω share.

 

Αν ενοείς όμως online time top characters υπάρχει στο forum το εχω δει οπότε κανε search.

  • 0
Posted

εχω κανει εγω 1 npc που λεει για online characters, κανει sort κατα ονομα, κλάση ή lvl.

Ψαξε καλα στο forum και αν δεν υπαρχει κατι αντίστοιχο τοτε μονο θα το κάνω share.

 

Αν ενοείς όμως online time top characters υπάρχει στο forum το εχω δει οπότε κανε search.

Epsa3a me name <npc online> alla den vrika sto search kati
  • 0
Posted

Νομιζω ειναι μαζι με PvP τοπ , θα κοιταξω.

 

Αν εχεις Top pvp κανε εδω ποστ ενα ερωτημα πχ. το top pvp και σε 10 min θα σου γραψω τον κωδικα να προσθεσεις και online time.

 

δηλαδή ενα κοματι απο το if event == 1

μεχρι το επομενο.

  • 0
Posted

Νομιζω ειναι μαζι με PvP τοπ , θα κοιταξω.

 

Αν εχεις Top pvp κανε εδω ποστ ενα ερωτημα πχ. το top pvp και σε 10 min θα σου γραψω τον κωδικα να προσθεσεις και online time.

 

δηλαδή ενα κοματι απο το if event == 1

μεχρι το επομενο.

mou eixane pei gia ena npc tetoio alla den thimamai exw pvp/pk ranking alla 8elw ksexoristo npc an iparxei allios prepei na vrw code jscript na fix ena
  • 0
Posted

αυτο σου ειπα, στειλε ενα event κοματι, πχ του PvP και θα σου προσθεσω στο ιδιο και το online time.

  • 0
Posted

αυτο σου ειπα, στειλε ενα event κοματι, πχ του PvP και θα σου προσθεσω στο ιδιο και το online time.

dld 8es to code apo to imports t pvp??
  • 0
Posted

οχι τα inports...

μονο 1 event δηλαδή ενα κοματι απο το

  if event == 1

μεχρι το επομενο.

if event == "1" and cantidad_pago >= 0 :
		st.takeItems(Precio_ID,0)
		total_asesinados = 0
		htmltext_ini = "<html><head><title>Pk Info</title></head><body><table width=300><tr><td><font color =\"FF00FF\"></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 30")
		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 < 0 :
		htmltext = "<html><head><title>PK info Online</title></head><body><font color =\"FF0000\">Primero pagame...!! son 0 adenas.</body></html>"
		return htmltext


	# PvP info 


[\code]

  • 0
Posted

οπου αξια event βαλε +1 απο το τελευταιο αριθμό, αν ειναι μονο 1 event αφισε το 2

στο npc προσθεσε αλλο ενα πλήκτρο click για online times, και οπου 1 (δηλαδή event ==1) βαλε το νεο event αριθμό, π.χ. το 2.

 

 

if event == "2" and cantidad_pago >= 0 :

st.takeItems(Precio_ID,0)

total_asesinados = 0

htmltext_ini = "<html><head><title>online time Info</title></head><body><table width=300><tr><td><font color =\"FF00FF\"></td><td><center><font color =\"FFFF00\">Player</color></center></td><td><center>onlinetime</center></td></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 30")

rs = pks.executeQuery()

while (rs.next()) :

char_name = rs.getString("char_name")

char_onlinetime = rs.getString("onlinetime")

total_asesinados = total_asesinados + int(char_onlinetime)

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_onlinetime + "</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_onlinetime + "</center></td></tr>"

htmltext_end = "</table><center><font color=\"FFFFFF\">" + "A Total of " + str(total_asesinados) + " onlinetimes.</center></body></html>"

htmltext_onlinetime = htmltext_ini + htmltext_info + htmltext_end

con.close()

return htmltext_onlinetime

elif event == "2" and cantidad_pago < 0 :

htmltext = "<html><head><title>onlinetime Online</title></head><body><font color =\"FF0000\">Primero pagame...!! son 0 adenas.</body></html>"

return htmltext

 

 

 

ΥΓ.... Βραζιλιανικα ειναι αυτα που γραφει? γιατι δεν τα μεταφράζεις?

  • 0
Posted

οπου αξια event βαλε +1 απο το τελευταιο αριθμό, αν ειναι μονο 1 event αφισε το 2

στο npc προσθεσε αλλο ενα πλήκτρο click για online times, και οπου 1 (δηλαδή event ==1) βαλε το νεο event αριθμό, π.χ. το 2.

 

 

if event == "2" and cantidad_pago >= 0 :

st.takeItems(Precio_ID,0)

total_asesinados = 0

htmltext_ini = "<html><head><title>online time Info</title></head><body><table width=300><tr><td><font color =\"FF00FF\"></td><td><center><font color =\"FFFF00\">Player</color></center></td><td><center>onlinetime</center></td></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 30")

rs = pks.executeQuery()

while (rs.next()) :

char_name = rs.getString("char_name")

char_onlinetime = rs.getString("onlinetime")

total_asesinados = total_asesinados + int(char_onlinetime)

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_onlinetime + "</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_onlinetime + "</center></td></tr>"

htmltext_end = "</table><center><font color=\"FFFFFF\">" + "A Total of " + str(total_asesinados) + " onlinetimes.</center></body></html>"

htmltext_onlinetime = htmltext_ini + htmltext_info + htmltext_end

con.close()

return htmltext_onlinetime

elif event == "2" and cantidad_pago < 0 :

htmltext = "<html><head><title>onlinetime Online</title></head><body><font color =\"FF0000\">Primero pagame...!! son 0 adenas.</body></html>"

return htmltext

 

 

 

ΥΓ.... Βραζιλιανικα ειναι αυτα που γραφει? γιατι δεν τα μεταφράζεις?

# ************************
# Creando la Clase Quest *
# ************************

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
	cantidad_pago = st.getQuestItemsCount(Precio_ID)

	#PK Info

	if event == "2" and cantidad_pago >= 0 :
         st.takeItems(Precio_ID,0)
         total_asesinados = 0
         htmltext_ini = "<html><head><title>online time Info</title></head><body><table width=300><tr><td><font color =\"FF00FF\"></td><td><center><font color =\"FFFF00\">Player</color></center></td><td><center>onlinetime</center></td></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 30")
         rs = pks.executeQuery()
         while (rs.next()) :
            char_name = rs.getString("char_name")
            char_onlinetime = rs.getString("onlinetime")
            total_asesinados = total_asesinados + int(char_onlinetime)
            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_onlinetime + "</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_onlinetime + "</center></td></tr>"
         htmltext_end = "</table><center><font color=\"FFFFFF\">" + "A Total of " + str(total_asesinados) + " onlinetimes.</center></body></html>"
         htmltext_onlinetime = htmltext_ini + htmltext_info + htmltext_end
         con.close()
         return htmltext_onlinetime
      elif event == "2" and cantidad_pago < 0 :
         htmltext = "<html><head><title>onlinetime Online</title></head><body><font color =\"FF0000\">Primero pagame...!! son 0 adenas.</body></html>"
         return htmltext




QUEST       = Quest(QuestId,str(QuestId) + "_" + QuestName,QuestDesc)
CREATED=State('Start',QUEST)
STARTED=State('Started',QUEST)
COMPLETED=State('Completed',QUEST)

QUEST.setInitialState(CREATED)

for npcId in NPC:
QUEST.addStartNpc(npcId)
QUEST.addTalkId(npcId)

DILADI ETCI NA TO KANW???

  • 0
Posted

Den eimai poly sigouros koitaxe omos afto

#Jython-based Top PvP Manger
import sys
from java.util                                   import Iterator
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

# ***************************************
# Info of custom quest                  *
# ***************************************

qn = "7206_CustomInfo"

NPCS = [7206]
Precio_ID   = 57

QuestId     = 7206
QuestName   = "CustomInfo"
QuestDesc   = "custom"
InitialHtml = "1.htm"

# ***************************************
# Jython Code                           *
# ***************************************



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
	cantidad_pago = st.getQuestItemsCount(Precio_ID)

	# *********
	# PK info *
	# *********

	if event == "1" :
		total_asesinados = 0
		htmltext_ini = "<html><head><title>TOP PK</title></head><body><table width=300><tr><td><font color =\"FF0000\"><center>Pos.</center></td><td><center><font color =\"FF0000\">Player name</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 15")
		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\"><center>" + posstr + "</center></td><td><center>" + color_text + char_name +"</center></td><td><center>" + char_pkkills + "</center></td></tr>"
			elif color == 2:
				color_text = "<font color =\"23ADC2\">"
				color = 1
				htmltext_info = htmltext_info + "<tr><td><center><font color =\"23ADC2\">" + posstr + "</td><td><center>" + color_text + char_name +"</center></td><td><center>" + char_pkkills + "</center></td></tr>"
		htmltext_end = "</table></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" :
		total_asesinados = 0
		htmltext_ini = "<html><head><title>TOP PvP</title></head><body><table width=300><tr><td><font color =\"FF0000\"><center>Pos.</center></td><td><center><font color =\"FF0000\">Player name</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 15")
		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 =\"23ADC2\">"
				color = 1
				htmltext_info = htmltext_info + "<tr><td><center><font color =\"23ADC2\">" + posstr + "</td><td><center>" + color_text + char_name +"</center></td><td><center>" + char_pkkills + "</center></td></tr>"
		htmltext_end = "</table></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" :
		total_cantidad = 0
		htmltext_ini = "<html><head><title>Top Adena</title></head><body><table width=300><tr><td><font color =\"FF0000\"><center>Pos.</center></td><td><center><font color =\"FF0000\">Player name</color></center></td><td><center>Adenas</center></td></tr>"
		htmltext_info =""			
		color = 1
		pos = 0
		con = L2DatabaseFactory.getInstance().getConnection()
		pks = con.prepareStatement("SELECT count,owner_id FROM items WHERE item_id=57 order by count desc limit 20")
		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 =\"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>" + cantidad + "</center></td></tr>"
			elif color == 2:
				color_text = "<font color =\"23ADC2\">"
				color = 1
				htmltext_info = htmltext_info + "<tr><td><center><font color =\"23ADC2\">" + posstr + "</td><td><center>" + color_text + char_name +"</center></td><td><center>" + cantidad + "</center></td></tr>"
		htmltext_end = "</table></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


	# *************
	# Nobless info *
	# *************

	if event == "4" :
		total_asesinados = 0
		htmltext_ini = "<html><head><title>Top Nobless order by PvP</title></head><body><table width=300><tr><td><center><font color =\"FF0000\">Pos.</td></center><td><center><font color =\"FF0000\">Player name</color></center></td></tr>"
		htmltext_info =""			
		color = 1
		pos = 0
		con = L2DatabaseFactory.getInstance().getConnection()
		pks = con.prepareStatement("SELECT char_name,pkkills,nobless FROM characters WHERE pkkills>0 and accesslevel=0 order by pkkills desc limit 10")
		rs = pks.executeQuery()
		while (rs.next()) :
			char_name = rs.getString("char_name")
			char_pkkills = rs.getString("nobless")
			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></tr>"
			elif color == 2:
				color_text = "<font color =\"23ADC2\">"
				color = 1
				htmltext_info = htmltext_info + "<tr><td><center><font color =\"23ADC2\">" + posstr + "</td><td><center>" + color_text + char_name +"</center></td></tr>"
		htmltext_end = "</table></body></html>"
		htmltext_pklist = htmltext_ini + htmltext_info + htmltext_end
		con.close()
		return htmltext_pklist
	elif event == "4" 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

	# **********
	# Clan Top *
	# **********

	if event == "5" :
		total_asesinados = 0
		htmltext_ini = "<html><head><title>TOP Clan</title></head><body><table width=300><tr><td><font color =\"FF0000\"><center>Pos.</center></td><td><center><font color =\"FF0000\">Clan name</color></center></td><td><center>Level</center></td></tr>"
		htmltext_info =""			
		color = 1
		pos = 0
		con = L2DatabaseFactory.getInstance().getConnection()
		pks = con.prepareStatement("SELECT clan_name,clan_level,reputation_score FROM clan_data WHERE clan_level>0 order by clan_level desc limit 10")
		rs = pks.executeQuery()
		while (rs.next()) :
			char_name = rs.getString("clan_name")
			char_pkkills = rs.getString("clan_level")
			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 =\"23ADC2\">"
				color = 1
				htmltext_info = htmltext_info + "<tr><td><center><font color =\"23ADC2\">" + posstr + "</td><td><center>" + color_text + char_name +"</center></td><td><center>" + char_pkkills + "</center></td></tr>"
		htmltext_end = "</table></body></html>"
		htmltext_pklist = htmltext_ini + htmltext_info + htmltext_end
		con.close()
		return htmltext_pklist
	elif event == "5" 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


QUEST = Quest(QuestId,str(QuestId) + "_" + QuestName,QuestDesc)

for npcId in NPCS:
    QUEST.addStartNpc(npcId)
    QUEST.addTalkId(npcId)p/code]

me liges alages pistevw 8a katafereis afto p 8es.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...