Jump to content

Recommended Posts

Posted

Btw can't start gameserver.bat

 

 

Oh my bad sorry , forgot to start  the "start.bat"

 

=/  (delete this post if ya want , problem resolved)

Posted

reinstall

what ??

 

@amilo1 check this below

 

I will Answer them !

 

1)Explain how to make their self Admins. ?

->Open navicat then go at your database ( default l2jdb ) then characters , then find your char and after that try to find AccessLevel .. and change from 0 to 200 ... or from game write this command //changelvl 200

 

2)How to register the gameserver, so it will work! ?

->Go at loginserver folder then open RegisterGameServer.bat , after that write 1 for Bartz 2 for Kain 3 for Sieghart etc etc ... after that take the hexid(server 1).txt at gameserver/config and rename it to hexid.txt

 

3)Write how to add custom GM-Shop and custom Buffer! ?

 

Its in greek !! Also i will tell it at English too ! >>.<<

 

[GR]Loipon .... gia na baleis buffer ... 8a sou exei 1 sql file ... anoigeis navicat meta patas stin DB s logika l2jdb meta patas deksi click execute bath file .. briskeis to .sql tou buffer.. patas diplo click 8a sou fortwsei k 8a s pei [Msg] Finished - 2 queries executed successfully to 2 den einai aparaithto .. mporei na s pei k 5 .. meta 8a sou exei ena .htm file .. to perneis .. kai to bazeis sto gameserver/data/html/default/ ekei mesa kai 8a sou exei ena file jscripts gia interlude k scripts gia kamael 8a sou pw kai tis 2 ekdoxes ...

1)Kamael , perneis to script logika 9999_NPCBuffer 8a sou exei .. kai to bazeis mesa sto gameserver\data\scripts\custom ekei antigrafh to 9999_NPCBuffer (to 9999 einai gia tin buffer pou exw egw.. gia esena mporei na einai diaforetiko ean exeis alli buffer i ean to exoun allaksei) meta pas

gameserver\data kai psaxneis gia to scripts.cfg to anoigeis me notepad kai psaxneis sto telos gia # Custom kai bazeis meta to teleutaio pou exei to custom/9999_NPCBuffer/__init__.py des edw pws 8a sou einai ..

 

# Custom

custom/3995_echo/__init__.py

custom/4000_ShadowWeapons/__init__.py

custom/5000_MissQueen/__init__.py

custom/7000_HeroItems/__init__.py

custom/8000_RaidbossInfo/__init__.py

custom/8001_NpcLocationInfo/__init__.py

custom/6050_KetraOrcSupport/__init__.py

custom/6051_VarkaSilenosSupport/__init__.py

custom/9999_NPCBuffer/__init__.py

 

2)Interlude 8a sou exei to idio ena 9999_NPCBuffer (to 9999 einai gia tin buffer pou exw egw.. gia esena mporei na einai diaforetiko ean exeis alli buffer i ean to exoun allaksei) to perneis kai pas gameserver\data\jscript\custom ekei to kaneis antigrafh kai meta anoigeis to __init__.py pou briskete sto custom fakelo .. kai bazeis to '9999_NPCBuffer' ws last grammh des edw pws 8a prepei na einai

 

__all__ = [

'5011_l2day',

'7000_HeroItems',

'6050_KetraOrcSupport',

'6051_VarkaSilenosSupport',

'9999_NPCBuffer'

]

print ""

print "importing custom data ..."

from data.jscript.custom import *

print "... done"

print ""

 

Twra gia to GM Shop , 8a sou exei 2 .sql files ... kaneis to idio me ton buffer ta kaneis excecute stin db sou .. meta 8a sou exei ena .htm i polla file to opoio to pas sto gameserver/data/html/merchant ekei to kaneis epikolisi ... Prosexe .. mporei na sou exei k kati .xml arxeia ta opoia mpenoun sto gameserver\data\multisell ekei!!

 

Global GK , 8a sou exei k ekei 2 .sql files ... kai kaneis to idio me ta parapanw diladi execute stin db sou ... meta 8a sou exei ena i polla .htm files ta opoia ta bazeis sto gameserver/data/html/teleporter epikolisi ekei

 

pistebw na boh8hsa  Good Luck !!

 

[ENG]Listen ... in order to put a buff ... it should have 1 sql file ... you open it with navicat then you select your DB .... default l2jdb then you click right click and then click execute bath file ... find the .sql file from buffer .. and double click it .. it should load smth .. and it will tell you [Msg] Finished - 2 queries executed successfully the 2nd .sql file isnt neccessary .. it may have 5 sql files .. ( lol :P ) after then it should have a .htm file which you copy and you put it at gameserver/data/html/default/ there and after that it should have 1 file jscripts for interlude and scripts for kamael .. i will tell u and the 2 ways how to put kamael and IL too !!

 

1)Kamael , you take the script folder .. maybe 9999_NPCBuffer and you put it at gameserver/data/scripts/custom/ and you paste it there ( the 9999_NPCBuffer is for mine buffer ... for you it may be different .. 800_NPCBuffer who knows ? xD :P ) then you go at gameserver/data/ and you search for >> scripts.cfg << then you open it with notepad and you search at the last for #Custom and you put after the last line the custom/9999_NPCBuffer/__init__.py , see below how it may be !

 

# Custom

custom/3995_echo/__init__.py

custom/4000_ShadowWeapons/__init__.py

custom/5000_MissQueen/__init__.py

custom/7000_HeroItems/__init__.py

custom/8000_RaidbossInfo/__init__.py

custom/8001_NpcLocationInfo/__init__.py

custom/6050_KetraOrcSupport/__init__.py

custom/6051_VarkaSilenosSupport/__init__.py

custom/9999_NPCBuffer/__init__.py

 

2)Interlude it should have the same 9999_NPCBuffer ( the 9999_NPCBuffer is for mine buffer ... for you it may be different .. 800_NPCBuffer who knows ? xD :P ) you take it and you put it at gameserver/data/jscript/custom there you paste it and then you open the __init__.py that is based at the folder named custom .. and you put '9999_NPCBuffer' as the last line of this file .. check below how it should be

 

 

__all__ = [

'5011_l2day',

'7000_HeroItems',

'6050_KetraOrcSupport',

'6051_VarkaSilenosSupport',

'9999_NPCBuffer'

]

print ""

print "importing custom data ..."

from data.jscript.custom import *

print "... done"

print ""

 

Now for the GM Shop , it should have 2.sql files .. you make the same as buffer .. you execute them at your DB .. then it should have many .htm files ... these goes at gameserver/data/html/merchant there you paste them .... WATCH OUT ...it may have some other files .xml which goes at gameserver/data/multisell ! there you paste it

 

 

Global GK , it should have 2 .sql files .... and you do the same as before .. ( you know xD ) execute at your db .. then it should have .htm files you copy them and you paste them at gameserver/data/html/teleporter there you paste it

 

I Hope i helped !  Good Luck !!

 

 

Posted

l I have a problem when i am logging and i am to log screen my ping is 9999 and i cant connect wtf is this?

I Search Before Port but Cant solve my poblem Help with this :O Tyz

Posted

hi,i got a problem with the database ,when i want to instal the db i wrotes me a cmd.exe (disk D not foun)

 

help please,sorry for my bad english ::)

Posted

hi,the i the startgameserver it will stuck in connecting java and also i start login server in will stuck in slector started and in the server i can't log in can you tell me plss...........?

Guest
This topic is now closed to further replies.



  • Posts

    • what pack you use  send me on discord for it
    • package custom.events.RandomZoneEvent; import java.io.File; import java.util.ArrayList; import java.util.List; import java.util.Random; import java.util.concurrent.ScheduledFuture; import org.w3c.dom.Document; import org.w3c.dom.Node; import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.time.SchedulingPattern; import org.l2jmobius.commons.time.TimeUtil; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.gameserver.managers.ZoneManager; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.Player; import org.l2jmobius.gameserver.model.quest.Event; import org.l2jmobius.gameserver.model.zone.ZoneId; import org.l2jmobius.gameserver.model.zone.ZoneType; import org.l2jmobius.gameserver.model.zone.type.RandomZone; import org.l2jmobius.gameserver.util.Broadcast; /** * Random Zone Event - Activates one random PvP zone temporarily. No modifica la clase de la zona: usa flags PvP en runtime. * @author Juan */ public class RandomZoneEvent extends Event { private static final String CONFIG_FILE = "data/scripts/custom/events/RandomZoneEvent/config.xml"; private static int EVENT_DURATION_MINUTES = 15; private static boolean _isActive = false; private ScheduledFuture<?> _eventTask = null; private final List<ZoneType> _availableZones = new ArrayList<>(); private ZoneType _activeZone = null; public RandomZoneEvent() { loadConfig(); loadZones(); registerZoneListeners(); } /** * Registra listeners a TODAS LAS ZONAS random */ private void registerZoneListeners() { for (ZoneType zone : _availableZones) { addEnterZoneId(zone.getId()); addExitZoneId(zone.getId()); LOGGER.info("[RandomZoneEvent] Registered listener for zone: " + zone.getName()); } } private void loadConfig() { new IXmlReader() { @Override public void load() { parseDatapackFile(CONFIG_FILE); } @Override public void parseDocument(Document doc, File file) { forEach(doc, "event", eventNode -> { final StatSet att = new StatSet(parseAttributes(eventNode)); final String name = att.getString("name"); for (Node node = eventNode.getFirstChild(); node != null; node = node.getNextSibling()) { if ("schedule".equals(node.getNodeName())) { final StatSet attributes = new StatSet(parseAttributes(node)); final String pattern = attributes.getString("pattern"); final SchedulingPattern schedulingPattern = new SchedulingPattern(pattern); final StatSet params = new StatSet(); params.set("Name", name); params.set("SchedulingPattern", pattern); final long delay = schedulingPattern.getDelayToNextFromNow(); getTimers().addTimer("Schedule_" + name, params, delay + 5000, null, null); LOGGER.info("[RandomZoneEvent] Event " + name + " scheduled at " + TimeUtil.getDateTimeString(System.currentTimeMillis() + delay)); } } }); } }.load(); } private void loadZones() { for (ZoneType zone : ZoneManager.getInstance().getAllZones(RandomZone.class)) { if ((zone.getName() != null) && zone.getName().toLowerCase().startsWith("random_zone")) { _availableZones.add(zone); LOGGER.info("[RandomZoneEvent] Loaded zone: " + zone.getName() + " (id=" + zone.getId() + ")"); } } LOGGER.info("[RandomZoneEvent] Total random zones loaded: " + _availableZones.size()); } @Override public void onTimerEvent(String event, StatSet params, Npc npc, Player player) { if (event.startsWith("Schedule_")) { eventStart(null); final SchedulingPattern schedulingPattern = new SchedulingPattern(params.getString("SchedulingPattern")); final long delay = schedulingPattern.getDelayToNextFromNow(); getTimers().addTimer(event, params, delay + 5000, null, null); LOGGER.info("[RandomZoneEvent] Rescheduled for " + TimeUtil.getDateTimeString(System.currentTimeMillis() + delay)); } } @Override public boolean eventStart(Player eventMaker) { if (_isActive) { if (eventMaker != null) { eventMaker.sendMessage("RandomZoneEvent already active."); } return false; } if (_availableZones.isEmpty()) { Broadcast.toAllOnlinePlayers("[RandomZoneEvent] No zones configured."); return false; } _isActive = true; Broadcast.toAllOnlinePlayers("⚔️ Random Zone Event has started!"); _eventTask = ThreadPool.schedule(this::activateRandomZone, 5_000); return true; } private void activateRandomZone() { _activeZone = _availableZones.get(new Random().nextInt(_availableZones.size())); _activeZone.setEnabled(true); Broadcast.toAllOnlinePlayers("🔥 Random Zone Event: " + _activeZone.getName() + " is now PvP for " + EVENT_DURATION_MINUTES + " minutes!"); _eventTask = ThreadPool.schedule(this::eventStop, EVENT_DURATION_MINUTES * 60 * 1000L); } @Override public boolean eventStop() { if (!_isActive) { return false; } _isActive = false; if (_eventTask != null) { _eventTask.cancel(true); _eventTask = null; } if (_activeZone != null) { _activeZone.setEnabled(false); Broadcast.toAllOnlinePlayers("🏁 Random Zone Event ended. " + _activeZone.getName() + " is back to normal."); _activeZone = null; } else { Broadcast.toAllOnlinePlayers("🏁 Random Zone Event ended."); } return true; } @Override public void onEnterZone(Creature creature, ZoneType zone) { if (!_isActive || (_activeZone == null)) { return; } if ((zone == _activeZone) && creature.isPlayable()) { creature.setInsideZone(ZoneId.PVP, true); if (creature.isPlayer()) { creature.sendMessage("Esta zona está en modo PvP temporalmente."); } } } @Override public void onExitZone(Creature creature, ZoneType zone) { if (!_isActive || (_activeZone == null)) { return; } if ((zone == _activeZone) && creature.isPlayable()) { creature.setInsideZone(ZoneId.PVP, false); if (creature.isPlayer()) { creature.sendMessage("Abandonaste la zona PvP temporal."); } } } @Override public boolean eventBypass(Player player, String bypass) { return true; } @Override public String onEvent(String event, Npc npc, Player player) { return super.onEvent(event, npc, player); } @Override public String onFirstTalk(Npc npc, Player player) { return null; } public static void main(String[] args) { new RandomZoneEvent(); } } i have this but its not working
    • ZonePvPSpawnBossRadio=0 ZonePvPSpawnBossBarakiel=0 at the Customs.ini in L2Server folder. Im prety sure this is it because i had the same problem with you in cruma 1 floor for example and i couldn't fix it but i fixed it finally by changing these 2 lines
    • Siege Reward Start PM Msg Rework Config root BossDieAnnounce and BossDieSound in the L24Team.properties and Config.java files for global raid boss death notifications and sounds. Adds a new reward_list table to the DB.sql file to track castle rewards. Improves character creation logic for thread safety and validation. Adds extensive state checks to the RequestEnchantItem method to prevent enchantments during inappropriate player states. Fixed auto-attack animation bug (there was no attack animation, only damage animation) Clean Code Other fixes I forgot to list! Java 14 Fixed issue where deleting a character would prevent it from leaving the screen or being removed, or even after a delete CD (it would only exit when re-logging in or creating a new character). Added Premium System from the other C2 project (Needs testing and improvement). Added the "Improved" Community Board (incomplete).
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock