usedy07
Members-
Posts
17 -
Credits
0 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by usedy07
-
Discussion Help Repeatable Quest Timer
usedy07 replied to usedy07's topic in Server Development Discussion [L2J]
i get that. Error on: C:\Users\Talha\Desktop\Server_enson\game\data\scripts\quests\263_KillAllSylphs1\__init__.py.error.log Line: -1 - Column: -1 Traceback (innermost last): File "quests/263_KillAllSylphs1/__init__.py", line 104, in ? NameError: QUEST if u available i want to send teamviewer or anydesk -
Discussion Help Repeatable Quest Timer
usedy07 replied to usedy07's topic in Server Development Discussion [L2J]
Thanks for reply. i try it copy paste.i get this error. Error on: C:\Users\Talha\Desktop\Server_enson\game\data\scripts\quests\263_KillAllSylphs1\__init__.py.error.log Line: -1 - Column: -1 Traceback (innermost last): (no code object) at line 0 SyntaxError: ('invalid syntax', ('quests/263_KillAllSylphs1/__init__.py', 95, 29, ' htmltext = f"<html><body>You can repeat this quest after {remaining_time} passed!</body></html> and i use quest on npc, npc says '' you either not on a quest ..... -
Discussion Help Repeatable Quest Timer
usedy07 replied to usedy07's topic in Server Development Discussion [L2J]
up -
Help Help Repeatable Quest Timer
usedy07 replied to usedy07's question in Request Server Development Help [L2J]
up -
Hello, I edited a quest for the interlude server. However, I want to add a timer to this quest so that it will be reset every 24 hours or at a certain time of the day. I could not do this because my Java knowledge is not very sufficient. If anyone can help me with this, I would be very happy. Note:I created it by editing the existing kill all sphys task. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- # Made by Mr. - Version 0.3 by DrLecter import sys from l2jorion.game.model.quest import State from l2jorion.game.model.quest import QuestState from l2jorion.game.model.quest.jython import QuestJython as JQuest qn = "263_KillAllSylphs1" ORB_OF_WATER = 9998 ORB_OF_FIRE = 9999 ORB_OF_WIND = 10000 ORB_OF_EARTH = 10001 STONE_OF_VALOR = 10002 DROPLIST={ 57000:[ORB_OF_WIND,100], 57001:[ORB_OF_EARTH,100], 57002:[ORB_OF_FIRE,100], 57003:[ORB_OF_WATER,100], } class Quest (JQuest) : def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr) def onEvent (self,event,st) : htmltext = event if event == "70737-03.htm" : st.set("cond","1") st.setState(STARTED) st.playSound("ItemSound.quest_accept") elif event == "70737-06.htm" : st.exitQuest(1) st.playSound("ItemSound.quest_finish") return htmltext def onTalk (self,npc,player): htmltext = "<html><body>You are either not carrying out your quest or don't meet the criteria.</body></html> st = player.getQuestState(qn) if not st : return htmltext npcId = npc.getNpcId() id = st.getState() if id == CREATED : st.set("cond","0") if st.getInt("cond")==0 : if player.getLevel()<76 : htmltext = "70737-01.htm" st.exitQuest(1) else : htmltext = "70737-02.htm" else : water = st.getQuestItemsCount(ORB_OF_WATER) fire = st.getQuestItemsCount(ORB_OF_FIRE) wind = st.getQuestItemsCount(ORB_OF_WIND) earth = st.getQuestItemsCount(ORB_OF_EARTH) if water == fire == wind == earth == 0 : htmltext = "70737-04.htm" if npcId == 70737 and st.getQuestItemsCount(ORB_OF_WATER) and st.getQuestItemsCount(ORB_OF_FIRE) and st.getQuestItemsCount(ORB_OF_WIND) and st.getQuestItemsCount(ORB_OF_EARTH) : htmltext = "70737-05.htm" st.giveItems(STONE_OF_VALOR,1) st.takeItems(ORB_OF_WATER,-1) st.takeItems(ORB_OF_FIRE,-1) st.takeItems(ORB_OF_WIND,-1) st.takeItems(ORB_OF_EARTH,-1) return htmltext def onKill(self,npc,player,isPet): st = player.getQuestState(qn) if not st : return if st.getState() != STARTED : return item,chance=DROPLIST[npc.getNpcId()] if st.getRandom(100)>1 : st.giveItems(item,1) st.playSound("ItemSound.quest_itemget") return QUEST = Quest(263,qn,"Kill All Sylphs1") CREATED = State('Start', QUEST) STARTING = State('Starting', QUEST) STARTED = State('Started', QUEST) COMPLETED = State('Completed', QUEST) QUEST.setInitialState(CREATED) QUEST.addStartNpc(70737) QUEST.addTalkId(70737) QUEST.addKillId(57000) QUEST.addKillId(57001) QUEST.addKillId(57002) QUEST.addKillId(57003) STARTED.addQuestDrop(57002,ORB_OF_FIRE,1) STARTED.addQuestDrop(57003,ORB_OF_WATER,1) STARTED.addQuestDrop(57000,ORB_OF_WIND,1) STARTED.addQuestDrop(57001,ORB_OF_EARTH,1)
-
Discussion Help Repeatable Quest Timer
usedy07 posted a topic in Server Development Discussion [L2J]
Hello, I organized a quest for the interlude server. However, I want to add a timer to this quest so that it will be reset every 24 hours or at a certain time of the day. I could not do this because my Java knowledge is not very sufficient. If anyone can help me with this, I would be very happy. # Made by Mr. - Version 0.3 by DrLecter import sys from l2jorion.game.model.quest import State from l2jorion.game.model.quest import QuestState from l2jorion.game.model.quest.jython import QuestJython as JQuest qn = "263_KillAllSylphs1" ORB_OF_WATER = 9998 ORB_OF_FIRE = 9999 ORB_OF_WIND = 10000 ORB_OF_EARTH = 10001 STONE_OF_VALOR = 10002 DROPLIST={ 57000:[ORB_OF_WIND,100], 57001:[ORB_OF_EARTH,100], 57002:[ORB_OF_FIRE,100], 57003:[ORB_OF_WATER,100], } class Quest (JQuest) : def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr) def onEvent (self,event,st) : htmltext = event if event == "70737-03.htm" : st.set("cond","1") st.setState(STARTED) st.playSound("ItemSound.quest_accept") elif event == "70737-06.htm" : st.exitQuest(1) st.playSound("ItemSound.quest_finish") return htmltext def onTalk (self,npc,player): htmltext = "<html><body>You are either not carrying out your quest or don't meet the criteria.</body></html> st = player.getQuestState(qn) if not st : return htmltext npcId = npc.getNpcId() id = st.getState() if id == CREATED : st.set("cond","0") if st.getInt("cond")==0 : if player.getLevel()<76 : htmltext = "70737-01.htm" st.exitQuest(1) else : htmltext = "70737-02.htm" else : water = st.getQuestItemsCount(ORB_OF_WATER) fire = st.getQuestItemsCount(ORB_OF_FIRE) wind = st.getQuestItemsCount(ORB_OF_WIND) earth = st.getQuestItemsCount(ORB_OF_EARTH) if water == fire == wind == earth == 0 : htmltext = "70737-04.htm" if npcId == 70737 and st.getQuestItemsCount(ORB_OF_WATER) and st.getQuestItemsCount(ORB_OF_FIRE) and st.getQuestItemsCount(ORB_OF_WIND) and st.getQuestItemsCount(ORB_OF_EARTH) : htmltext = "70737-05.htm" st.giveItems(STONE_OF_VALOR,1) st.takeItems(ORB_OF_WATER,-1) st.takeItems(ORB_OF_FIRE,-1) st.takeItems(ORB_OF_WIND,-1) st.takeItems(ORB_OF_EARTH,-1) return htmltext def onKill(self,npc,player,isPet): st = player.getQuestState(qn) if not st : return if st.getState() != STARTED : return item,chance=DROPLIST[npc.getNpcId()] if st.getRandom(100)>1 : st.giveItems(item,1) st.playSound("ItemSound.quest_itemget") return QUEST = Quest(263,qn,"Kill All Sylphs1") CREATED = State('Start', QUEST) STARTING = State('Starting', QUEST) STARTED = State('Started', QUEST) COMPLETED = State('Completed', QUEST) QUEST.setInitialState(CREATED) QUEST.addStartNpc(70737) QUEST.addTalkId(70737) QUEST.addKillId(57000) QUEST.addKillId(57001) QUEST.addKillId(57002) QUEST.addKillId(57003) STARTED.addQuestDrop(57002,ORB_OF_FIRE,1) STARTED.addQuestDrop(57003,ORB_OF_WATER,1) STARTED.addQuestDrop(57000,ORB_OF_WIND,1) STARTED.addQuestDrop(57001,ORB_OF_EARTH,1) -
Help After teleport or revive critical errors
usedy07 replied to usedy07's topic in [Request] Client Dev Help
Problem solved.Thanks bro. -
Help After teleport or revive critical errors
usedy07 replied to usedy07's topic in [Request] Client Dev Help
All right, I've attached the files you want. I'd appreciate it if you could take a look. Thanks all. -
Help After teleport or revive critical errors
usedy07 replied to usedy07's topic in [Request] Client Dev Help
yes, these files appear as .u in the system file unlike the others. I will remove them and try again. Thank you very much. I hope the problem is solved.I'm uploading right now. https://fastupload.io/Qxfawtc7ryaxE9i/file they are. -
Help After teleport or revive critical errors
usedy07 replied to usedy07's topic in [Request] Client Dev Help
npcgrp ve npcname ty.i use interlude now. -
Help After teleport or revive critical errors
usedy07 replied to usedy07's topic in [Request] Client Dev Help
It's not a specific area. My guess is that if the distance between the irradiated area and the start is far, a critical error will automatically occur. I tried it on many clients, I think it is something related to the patch I created. The problem is that there are 651 files in my patch (including system files). Total 1.83GB. I guess it will take a long time to find the solution. However, what I want to know is, what system file can get such a problem when it gets corrupted? Any idea ? -
2023.6.1 17:12:40 OS : Windows Vista 6.2 (Build: 9200) CPU : AuthenticAMD Unknown processor @ 4404 MHz with 2047MB RAM Video : AMD Radeon RX 6700 XT (1012) General protection fault! History: UStruct::SerializeBin <- (Class Engine.ShadowBitmapMaterial ShadowActor[0]) <- UObject::Serialize <- (ShadowBitmapMaterial Transient.ShadowBitmapMaterial107) <- TestReach <- (ShadowBitmapMaterial Transient.ShadowBitmapMaterial107) <- UStruct::SerializeBin <- (Class Engine.ShadowProjector ShadowTexture[0]) <- UObject::Serialize <- (ShadowProjector 19_23.ShadowProjector267) <- AActor::Serialize <- TestReach <- (ShadowProjector 19_23.ShadowProjector267) <- ULevelBase::Serialize <- ULevel::Serialize <- TestReach <- (Level 19_23.myLevel) <- UStruct::SerializeBin <- (Class Engine.GameEngine GLevel[0]) <- UObject::Serialize <- (GameEngine Transient.GameEngine0) <- UGameEngine::Serialize <- (GameEngine Transient.GameEngine0) <- UGameEngine::Serialize <- (GameEngine Transient.GameEngine0) <- TestReach <- (GameEngine Transient.GameEngine0) <- TArray<< <- UGameEngine::L2SerializeRootSet <- UGameEngine::L2CollectGarbage <- UGameEngine::DetachLevel <- UGameEngine::CheckPurgeLevel <- Level_was_loaded <- UGameEngine::L2_Teleport <- UGameEngine::Tick <- UpdateWorld <- MainLoop Hello, during the character respawn or teleport on my server, a critical error occurs in the 3rd or 4th try. What could be the main reason for this? I am sharing the error I got.
-
Request Gameserverthread: Login terminated the connection. error
usedy07 replied to usedy07's topic in Request Support [English]
still waiting some answers. -
Request Gameserverthread: Login terminated the connection. error
usedy07 replied to usedy07's topic in Request Support [English]
Up -
GameServerThread: Login terminated the connection. hello, I am getting the error in the picture in the loginserver client. I'm writing the loginserver and gameserver client details. Can anyone help with the issue? note: There is no problem. The clients are running fine but this might trigger something. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- LoginServer network/ # This is transmitted to the clients connecting from an external network, so it has to be a public IP or resolvable hostname ExternalHostname = xxxx.servegame.com # This is transmitted to the client from the same network, so it has to be a local IP or resolvable hostname InternalHostname = xxxx.servegame.com # Bind ip of the loginServer, use * to bind on all available IPs LoginserverHostname = * LoginserverPort = 2106 # How many times you can provide an invalid account/pass before the IP gets banned LoginTryBeforeBan = 20 # Time you won't be able to login back again after LoginTryBeforeBan tries to login. Provide a value in seconds. Default 10min. (600) LoginBlockAfterBan = 600 GMMinLevel = 100 # The address on which login will listen for GameServers, use * to bind on all available IPs LoginHostname = xxx.servegame.com # The port on which login will listen for GameServers LoginPort = 9014 # If set to True any GameServer can register on your login's free slots AcceptNewGameServer = False # If False, the licence (after the login) will not be shown # It is highly recomended for Account Seciurity to leave this option as defalut (True) ShowLicence = True # Database info Driver = com.mysql.jdbc.Driver URL = jdbc:mysql://localhost/ # Parameters Databases - MYSQL # Login - Mysql's user Login = root # Password - Mysql's Password Password = ------ # maximum number of simultaneous connecting to the database MaximumDbConnections = 1000 # Default: 0 MaximumDbIdleTime = 0 # Including protection from flood # IMPORTANT: Put True for server security. EnableFloodProtection = False # Limit fast connections (input username / password) FastConnectionLimit = 15 # Time of the normal connection (in ms) NormalConnectionTime = 700 # Time fast connection (in ms) FastConnectionTime = 350 # Maximum connections with the 1st IP MaxConnectionPerIP = 50 # The lifetime of the session with the login server. SessionTTL = 25000 MaxSessions = 100 # Choose the option: "true", to create an account when logging in automatically AutoCreateAccounts = False # The configuration of the local subnet # Example : 192.168 # Ppimer : 10.1 NetworkList = 192.168.;10.0. # =============================================================== # Test server configuration, not to switch on the game server! = # =============================================================== # Use the GG client authentication # Login server access let the client without GameGuard ForceGGAuth = False # ============================================================= # Anti Bruteforce protection. # ============================================================= #Count of trying connection to server, after which will be made checking IP addres #for a possible BrutForce #Reducing this value will increase the likelihood of false positives #Increasing this value will reduce the effectiveness of security (more chance find passwords for large accounts) BrutLogonAttempts = 15 #The average time (in seconds) between attempts to connect to the server #Reducing this value will increase the likelihood of false positives #Increasing this value will reduce the effectiveness of security (more chance find passwords for large accounts) BrutAvgTime = 30 #Number of second, for ban IP address, who time BrutAvgTime less specified #900 second = 15 minute BrutBanIpTime = 1 # ============================================================= # Debugging packets # ============================================================= DebugPackets = False ---------------------------------------------------------------------------------------------------------------------------------------------------- Gameserver Network # Enter here (ip) address of your game server, or use the symbol * GameserverHostname = xxxx.servegame.com GameserverPort = 7777 # Configure your external ip ExternalHostname = xxxx.servegame.com # Configure your internal ip InternalHostname = xxxx.servegame.com # Bunch ID and game server. It is better not to change. LoginPort = 9014 LoginHost = xxxx.servegame.com # Parameters Databases - MYSQL Driver = com.mysql.jdbc.Driver URL = jdbc:mysql://localhost/ # Database name GameserverDB = ---- LoginserverDB = ----- # Login - Mysql's user Login = root # Password - Mysql's Password Password = ------ # Attention: lazy init connections disabled! # Please, set only real values for your database # Default: 100 MaximumDbConnections = 1000 # Default: 0 MaximumDbIdleTime = 0 # The timeout before the single connection must be closed (in ms) # 0 - off SingleConnectionTimeOutDb = 1000 # Setting emulation off the kernel (package SendStatus) RemoteWhoLog = False RemoteWhoSendTrash = False RemoteWhoMaxOnline = 329 RemoteOnlineIncrement = 50 RemoteWhoForceInc = 50 RemotePrivStoreFactor = 12 # Datapack folder # To exacute the server under debugger with eclipse use: # or point the folder directly to your server. DatapackRoot = .