Jump to content
  • 0

[HELP]Θέλω help με NPC (Interlude)


FreakbuZz

Question

Γεια σας... προσπαθώ να βάλω ένα npc που να δείχνει το top 10 στα pvp pk...το έχω περάσει μέσα το npc όταν πατάω πάνω μου το ανοίγει κανονικά αλλά κάτι μου λέει μετά οτι δεν διαβάζει ένα q... ορίστε και φωτογραφίες...

 

wck4y9.jpg

 

2wnnvyb.jpg

όποιος μπορεί ας βοηθείσει...

Link to comment
Share on other sites

Recommended Posts

  • 0

Error on: C:\l2server\gameserver\data\scripts\custom\90000_list\__init__pvp.py.error.log

Line: -1 - Column: -1

 

Traceback (innermost last):

  File "__init__pvp.py", line 2, in ?

ImportError: no module named it

 

Link to comment
Share on other sites

  • 0

Error on: C:\l2server\gameserver\data\scripts\custom\90000_list\__init__pvp.py.error.log

Line: -1 - Column: -1

 

Traceback (innermost last):

  File "__init__pvp.py", line 2, in ?

ImportError: no module named it

 

 

bsk gia kane paste to init.py na to dw, giati etsi dn ginete

Link to comment
Share on other sites

  • 0

import sys

from com.it.br.gameserver.model.actor.instance import L2PcInstance

from java.util import Iterator

from com.it.br.gameserver.datatables import SkillTable

from com.it.br       import L2DatabaseFactory

from com.it.br.gameserver.model.quest import State

from com.it.br.gameserver.model.quest import QuestState

from com.it.br.gameserver.model.quest.jython import QuestJython as JQuest

 

print "importing custom: TOP PVP/PK LIST"

 

 

NPC=[90000]

Precio_ID  = 57

 

QuestId    = 90000

QuestName  = "list"

QuestDesc  = "custom"

InitialHtml = "1.htm"

 

# ************************

# 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 == "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

 

 

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

st.takeItems(Precio_ID,0)

total_asesinados = 0

htmltext_ini = "<html><head><title>PvP 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,pvpkills FROM characters WHERE pvpkills>0 and accesslevel=0 order by pvpkills desc limit 30")

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 < 0 :

htmltext = "<html><head><title>PK info</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)

Link to comment
Share on other sites

  • 0

to frozen exw...

 

vale auta

 

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

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


  • Posts

    • DISCORD : utchiha_market telegram : https://t.me/utchiha_market SELLIX STORE : https://utchihamkt.mysellix.io/ Join our server for more products : https://discord.gg/hood-services https://campsite.bio/utchihaamkt  
    • Hello! Need to buy a ready-made or verify the necessary account, crypto-exchange, business bank or neobank, or maybe open a company to order or physical EU SIM cards? Then write to us, and we will help you with this. It is possible to send accounts along with phones.   Ready in stock AIRWALLEX ✔ ABN AMRO ✔ Amazon Seller ✔ Altpay ✔ Xapo Bank ✔ 4x4 io ✔ Advcash (Volet) ✔ AlchemyPay ✔ Bet365 ✔ BBVA ✔ Binance ✔ Bilderlings ✔ bit2me ✔ Bitget ✔ Bitinvestor ✔ Bitpay ✔ Bitsa ✔ Blackcatcard ✔ Brighty app ✔ Bybit ✔ Cex io ✔ Capitalist ✔ Coinbase card ✔ Cryptopay ✔ CoinW ✔ Curve ✔ epn net ✔ fillit ✔ Finci ✔ Gate ✔ Grey ✔ Ibandirect ✔ ICard ✔ Imagenpay ✔ Kauri Finance ✔ Kucoin ✔ mexc com ✔ moneyjar ✔ Moonpay ✔ N26 ✔ Naga Pay ✔ Nearpay ✔ Nebeus ✔ Nexo ✔ PayDo ✔ Paypal ✔ Santander Bank ✔ Stripe ✔ Paysera ✔ PAYSAFECARD ✔ Paytend ✔ PST ✔ RedotPay ✔ Revolut ✔ Shopify Payments ✔ Spendl ✔ Trustee Plus ✔ ebay com ✔ W1TTY ✔ Wallet Telegram ✔ Weststein ✔ Whitebit ✔ Wirex ✔ Wallester ✔ Wise ✔ Wittix ✔ Zeply ✔ ING Bank ✔ finom co ✔ Openbank ✔ SumUp ✔ okeo com ✔ PAY. NL ✔ Wamo business ✔ plutus it ✔ TRASTRA Crypto ✔ swissmoney com ✔ VIVID ✔ Millennium ✔ Bank BNP Paribas   The list of accounts may change daily. Please inquire about availability through our contacts.
    • Anyone had issues on servers which use AAC? not playable at all. Tried two servers. Not working clicks with mouse, not working touchscreen.
    • FREE Steal Essence skill update for Lineage 2 Interlude | Highly Anticipated Release!   Based on numerous responses in the suggestions section from client dev discord channel https://discord.gg/XdCb9dmTtf The highly anticipated Steal Essence skill update is finally here for Lineage 2 Interlude. This improved version lets you drain the power of your enemies, making your PvP and PvE battles even more thrilling. Watch the video to see the updated skill in action and learn how it can give you a powerful edge in combat!   If you have questions or want to add this updated skill to your game, feel free to contact me via Skype or Discord. Download available here or in Discord Client Dev channel https://discord.gg/XdCb9dmTtf    
    • Hi for L2Dev contact us in discord: pigasos or check out Athena-project.eu
  • Topics

×
×
  • Create New...