Jump to content
  • 0
Sign in to follow this  
Mr.Killer

Error de scripts No Servidor

Question

Galerinha . O Seguinte tou adcionando "NPCS' No meu servidor , mais como minha rev é Knight portanto tenho que pegar o npc da l2jfrozen m ir nos scripts e mudar para o nome l2jknight , serto m feito issu , eu adciono o npc normalmente ... reinicio o servidor , mais quando o servidor inicia , os crtipts não atualizam , portanto eu tenho que dar //reload Scripts para poder que os npcs atualizen e sair esse error :

 

pwiyw.jpg

 

Quem souber Resolver Esse problema Me Ajuda ;)

Edited by Mr.Killer

Share this post


Link to post
Share on other sites

11 answers to this question

Recommended Posts

  • 0

Voce adc a

 

Ex: custom/20700_NpcNoblesse/__init__.py

 

NaS Scripts !

 

??

 

Local Onde Fica ~~> as Scripts Gameserver ~~> Data La Embaixo Tem Um Nome Script

 

Ai Voce adc Um Nome Tipo Assim )~~> custom/20700_NpcNoblesse/__init__.py


3n1NF.png

Embreve New Pre No Custom

Aguardem...

Share this post


Link to post
Share on other sites

Proteja seu servidor de ataques DDoS massivos!

VPS EPIC
  • 0

Voce adc a

 

Ex: custom/20700_NpcNoblesse/__init__.py

 

NaS Scripts !

 

??

 

Local Onde Fica ~~> as Scripts Gameserver ~~> Data La Embaixo Tem Um Nome Script

 

Ai Voce adc Um Nome Tipo Assim )~~> custom/20700_NpcNoblesse/__init__.py

 

pohj o meu script ta assim :

 

import sys

from com.l2jknight.gameserver.model.actor.instance import L2PcInstance

from java.util import Iterator

from com.l2jknight.gameserver.datatables import SkillTable

from com.l2jknight.util.database import L2DatabaseFactory

from com.l2jknight.gameserver.model.actor.appearance import PcAppearance

from com.l2jknight.gameserver.model.quest import State

from com.l2jknight.gameserver.model.actor.appearance import PcAppearance

from com.l2jknight.gameserver.model.quest import QuestState

from com.l2jknight.gameserver.model.quest.jython import QuestJython as JQuest

 

qn = "20700_NpcNoblesse"

 

NPC=[20700]

GOLDBAR= 3470

NOBLESS_TIARA = 7694

QuestId = 20700

QuestName = "NpcNoblesse"

QuestDesc = "custom"

InitialHtml = "1.htm"

 

print "============> Noblesse Manager: LOADED"

 

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 < 0 and st.getPlayer().getLevel() < 76 :

htmltext = "Error2.htm"

 

elif st.getPlayer().isNoble() == 1 :

htmltext = "Error1.htm"

 

elif st.getQuestItemsCount(GOLDBAR) < 10 :

htmltext = "Error2.htm"

 

elif st.getPlayer().getLevel() < 76 :

htmltext = "Error2.htm"

 

else:

st.getPlayer().setTarget(st.getPlayer())

 

if event == "2":

st.takeItems(GOLDBAR,0)

st.getPlayer().setNoble(True)

st.giveItems(NOBLESS_TIARA,1)

st.playSound("ItemSound.quest_finish")

st.setState(COMPLETED)

return "End.htm"

st.exitQuest(1)

 

 

if htmltext != event:

st.setState(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(STARTED)

return InitialHtml

 

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)

 

Share this post


Link to post
Share on other sites
  • 0

você já adicionou em:

L2J Frozen rev 936 Limpa\gameserver\data

achi esse arquivo "scripts.cfg" abra ele no "NotePad+++ ou Bloco de Notas" da Ctrl+F Ache essa linha # custom e adicione isso "custom/20700_NpcNoblesse/__init__.py"

e de Restart no server não sei se da //reload scripts

Edited by L2-Windows
  • Like 1

hmgufwL.png

Share this post


Link to post
Share on other sites
  • 0

Ola tudo bem ? desculpa estar postando neste topico antigo, mas na l2jacis nao existe esse scripts.cfg, e eu estou tendo erro em certos npc apos executar //reload npc, agora quando click pra criar clan,ally ou no teleporte nobless aparece isto http://prntscr.com/dyqd4v help-me pls!


2lx9rab.jpg

Share this post


Link to post
Share on other sites
  • 0

que pode me ajuda ta dano esse erro 

Error on: D:\servido l2\L2JBlueHeart-master\game\data\scripts\custom\578_NpcBuffer\__init__.py.error.log
Line: -1 - Column: -1

Traceback (innermost last):
  File "__init__.py", line 8, in ?
ImportError: no module named datatables

Share this post


Link to post
Share on other sites
  • 0
7 horas atrás, NetinhOO disse:

Você adicionou a linha no arquivo scripts.cfg ?

minha revi diferete nao se bote luga certo tem um scripts aki mas nao tem .cfg no final

o script que tem esse aki nao se aki bota como revi diferete 

# This file contains a list of scripts that should be loaded by the GameServer
# The path is relative to the scripts folder, for example scripts/event.py would
# require the following entry:
# event.py
#
# Note: You can also load an script during server runtime using the Admin Panel

# Global Loader
handlers/loader/GlobalLoader.java

conquerablehalls/flagwar/BanditStronghold/BanditStronghold.java
conquerablehalls/flagwar/WildBeastReserve/WildBeastReserve.java

# Quests
quests/TerritoryWarScripts/TerritoryWarSuperClass.java

# Quests Python Section
quests/255_Tutorial/__init__.py


# Vehicles
vehicles/BoatTalkingGludin.java
vehicles/BoatGiranTalking.java
vehicles/BoatInnadrilTour.java
vehicles/BoatGludinRune.java
vehicles/BoatRunePrimeval.java

#custom
custom/AutoReward/AutoDelivery.java
custom/578_NpcBuffer/__init__.py

Share this post


Link to post
Share on other sites
  • 0
8 horas atrás, NetinhOO disse:

Então tem que adicionar a linha provavelmente nesse arquivo ai e o NPC em questão em scripts/custom/adicione aqui.

bote tudo certo pasta do npc buffe no custom e scripts no scripts mesm a sim da o erro acho devi se o id npc cela

Share this post


Link to post
Share on other sites
  • 0
3 horas atrás, palhoto disse:

bote tudo certo pasta do npc buffe no custom e scripts no scripts mesm a sim da o erro acho devi se o id npc cela

Qual o NPC que você quer adicionar, e em qual revisão? 


COREYYY.png

Share this post


Link to post
Share on other sites

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.

Loading...
Sign in to follow this  



     



×
×
  • Create New...