(Em Desenvolvimento)
Instalar Debian e dependências
# apt install openjdk-8-jdk openjdk-8-jre git
Instalar e configurar o MariaDB
# apt install mariadb-server mysqltuner
Nota: mais configurações acesse o link.
# vi /etc/mysql/mysql.conf.d/mysqld.cnf
#bind-address = 127.0.0.1
# /etc/init.d/mysql restart
# mysql -u root -p
> grant all privileges on *.* to root@'%' identified by 'mysql@123' with grant option;
> flush privileges;
> quit
Nota: É necessário definir ao menos localhost para root para inserir na database com o comando startSQLAccountManager.sh
Instalar e configurar o samba (OPCIONAL)
# apt-get install samba
# vi /etc/samba/smb.conf
#======================= Global Settings =======================
[global]
workgroup = WORKGROUP
dns proxy = no
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
server role = standalone server
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
pam password change = yes
map to guest = bad user
usershare allow guests = yes
#======================= Share Definitions =======================
[L2JServer]
comment = L2J Directories
public = yes
path = /home/l2jserver
browseable = yes
read only = no
create mask = 0777
directory mask = 0777
Baixar o projeto l2jserver no Eclipse via Git
https://bitbucket.org/l2jserver/l2j_server/wiki/Home
https://bitbucket.org/l2jserver/l2j_server
https://bitbucket.org/l2jserver/l2j_datapack
SVN (http://svn.l2jdp.com/trunk/ e http://svn.l2jserver.com/trunk/)
* TESTAR com esse ajuste
-> Create Databases: l2jls , l2jgs and l2jcs (use utf8mb4_unicode_ci encoding)
-> Browse to yourserverfolder/tools
-> Run Dbinst_cs.jar (Community Server)
-> Fill in with your Mysql information.
-> Select Full Install
-> Repeat the process for Dbinst_ls.jar (Login Server) and Dbinst_gs.jar (Game Server), thanks to Unafraid
Descompactar no mesmo diretorio o SERVER e o DB sobrepondo.
Acessar o diretório system com o prompt e executar o comando abaixo para validar Protocol Revisions
\LineageII-Helios\system>L2.exe -l2protocolversion
L2ProtocolVersion = 64
Configurar o ambiente do game – Executado em modo visual
\\<IP>\L2JServer\game\L2J_Configurator.jar
Configurar o IP Login Host – 192.168.25.150 127.0.0.1
Configurar o Gameserver Hostname – 192.168.25.150
TESTAR com esse ajuste
GameserverHostname = "MY the IP"
GameserverHosts = 127.0.0.1
GameserverSubnets = 0.0.0.0
Configurar a conexão com a database
Adicionar em Allowed Protocol Revisions o valor 64;
Acessar os arquivos de configuração dos serviços – Executado em modo texto
\\<IP>\L2JServer\login\config\LoginServer.properties
Configurar LoginserverHostname = 192.168.25.150
Configurar LoginHostname = 192.168.25.150
Configurar a conexão com a database
Configurar AutoCreateAccounts = False
Instalar a data base – Executado em modo visual
\\<IP>\L2JServer\tools\dbinst_ls.jar <- login server
Escolha entre Full Install ou Upgrade.
\\<IP>\L2JServer\tools\dbinst_gs.jar <- game server
Escolha entre Full Install ou Upgrade.
Clique em OK para instalar as tabelas Custom e Mode.
Descompacte os arquivos geodata
\\<IP>\L2JServer\game\data\geodata
Registrar o server com o comando sh RegisterGameServer.sh e após copiar o arquivo hexid.txt em /L2JServer/game/config
GSRegister
# sh /home/l2jserver/login/RegisterGameServer.sh
1 - Register GameServer
2 - List GameServers Names and IDs
3 - Remove GameServer
4 - Remove ALL GameServers
5 - Exit
Choice: 1
Enter desired ID:
1
5
# mv hexid.txt /home/l2jserver/game/config/
Acessar em modo console e executar startSQLAccountManager.sh para criar o usuario admin
# sh /home/l2jserver/login/startSQLAccountManager.sh
Please choose an option
1 - Create new account or update existing one (change pass and access level)
2 - Change access level
3 - Delete existing account
4 - List accounts and access levels
5 - Exit
Your choice: 1
Username: admin@admin.local)
Password: admin
Access level: 100
Account admin@admin.local has been created or updated
5
Executar o login server
# mkdir /home/l2jserver/login/log
# sh /home/l2jserver/login/startLoginServer.sh
Os logs podem ser acompanhados no arquivo L2JServer\login\log\stdout.log
Executar o game server
# mkdir /home/l2jserver/game/log
# sh /home/l2jserver/game/startGameServer.sh
Os logs podem ser acompanhados no arquivo L2JServer\game\log\stdout.log do diretorio de log
http://www.l2jserver.com/forum/viewtopic.php?t=30573
Executando o game
https://github.com/Zoey76/L2
Download client http://www.lineage2.org.uk
Ajustar o C:\Windows\System32\drivers\etc\hosts para
192.168.25.150 L2authd.Lineage2.com
#216.107.250.194 nprotect.lineage2.com
http://www.wikihow.com/Set-up-an-L2J-Server <- metodo 4
Logar usando o usuario admin@admin.local e senha admin
\> start L2.bin -ServerAddr=192.168.25.150 -UseEMailAccount=false
\> start "system\L2.bin" -ServerAddr=192.168.25.150 -UseEMailAccount=false
\> start "system\L2.bin" IP=192.168.25.150 -UseEMailAccount=false
* Criar arquivo texto com o comando start acima e salvar como bat ou cmd
* Após o acesso ao game digite \\admin para abrir o console admin do game
1- Warrior
2- Gladiator
3- Warlord
4- Knight
5- Paladin
6- Dark Avenger
7- Rouge
8- Treasure Hunter
9- Hawkeye
10- Mage
11- Wizard
12- Sorceror
13- Necromancer
14- Warlock
15- Cleric
16- Bishop
17- Prophet
18- Elven Fighter
19- Elven Knight
20- Temple Knight
21- Swordsinger
22- Elven Scout
23- Plainswalker
24- Silver Ranger
25- Elven Mage
26- Elven Wizard
27- Spellsinger
28- Elemental Sumoner
29- Oracle
30- Elder
31- Dark Fighter
32- Palus Knight
33- Shillen Knight
34- Bladedancer
35- Assassin
36- Abyss Walker
37- Phantom Ranger
38- Dark Mage
39- Dark Wizard
40- Spellhowler
41- Phantom Sumoner
42- Shillen Oracle
43- Shillen Elder
44- Orc Fighter
45- Orc Radier
46- Destroyer
47- Orc Monk
48- Tyrant
49- Orc Mage
50- Orc Shaman
51- Overlord
52- Warcryer
53- Dwarven Fighter
54- Scavenger
55- Bounty Hunter
56- Artisan
57- Warsmith
Comandos GM Lineage 2 Oath of Blood [L2 C5]:
//admin - Abre o menu de administrador.
//gm - Toggle GM status
//gmchat - manda mensagem visível somente aos GMs
//snoop
//gmliston - Registra na GM list
//gmlistoff - Remove da GM list
//silence - Des/Habilita modo de mensagem privada
//saveolymp - Salva Olimpiadas
//manualhero - Seleciona heróis manualmente
//atmosphere <signsky> <dawn|dusk> Sets current sky to either Dawn or Dusk, as seen by members of the winning cabal.
//atmosphere <sky> <day|night> Seleciona Dia/Noite
//diet Current status of diet mode for player.
//diet on Enables diet mode.
//diet off Disables diet mode.
//play_sound - Brings up sounds page.
//edit_character - Abre menu para editar um personagem selecionado
//current_player - Abre lista de jogadores.
//character_list - Abre lista de jogadores online.
//show_characters - Abre lista de jogadores online.
//find_character - Abre menu de busca de jogadores.
//save_modifications - Salva alterações no jogador selecionado.
//nokarma - Remove karma do jogador selecionado.
//setkarma <value> - Altera o karma do player selecionado.
//rec - Recomenda o jogador selecionado.
//settitle - Altera o título do jogador selecionado.
//setname - Altera o nome do jogador selecionado.
//setcolor - Altera o cor do nome do jogador selecionado.
//fullfood - Alimenta completamente o pet do jogador selecionado.
//invis - modo invisível para GM
//invisible - modo invisível para GM
//vis - modo visível para GM
//visible - modo visível para GM
//known on - to unhide your character from known list
//known off - to hide your character from known list
//earthquake <Intensity> <Duration> Cria um terremoto.
//para_all - Paraliza todos os jogadores.
//unpara_all - "Desparaliza" todos os jogadores.
//para - Paraliza o alvo selecionado.
//unpara - "Desparaliza" o alvo selecionado.
//bighead - Alvo selecionado fica com a cabeça grande.
//shrinkhead - Volta a cabeça ao tamanho normal do alvo selecionado.
//polymorph character npc id
//polymorph item id to poly target into id
//polyself <npc id> - transforme-se em um mob (bicho)
//unpolyself - Volta a sua forma normal.
//polymorph item <itemid> Polymorphs an item
//gmspeed <value> Use //gmspeed value = [0 4]
//changename <new_name> - Alteta o nome do jogador selecionado.
//add_exp_sp_to_character - Abre o menu de XP e SP do jogador selecionado.
//add_exp_sp - Aumenta o XP e SP do jogador selecionado. Use: //add_exp_sp xp_número sp_número
//remove_exp_sp - Remove xp sp do jogador selecionado. Use: //remove_exp_sp xp_número sp_número.
//tradeoff - Mostra o status de trade (troca) com jogadores.
//tradeoff on - Habilita status de trade (troca) com jogadores.
//tradeoff off - Desabilita status de trade (troca) com jogadores.
//reload skill - Reloads skill data.
//reload multisell - Reloads multisell data.
//reload teleport - Recarrega localizações de teleporte.
//reload npc - Regarrega todos NPCs.
//reload htm - Regarrega arquivos htm.
//reload item - Reloads item templates.
//reload instancemanager - Reloads instancemanager.
//announce_menu - Abre o menu de anúncios.
//list_announcements - Lista os anúncios correntes.
//reload_announcements - Recarrega lista de anúnios.
//announce_announcements - Posta todos os anúncios.
//add_announcement - Adciona um anúncio. Use: //add_announcement blabla.
//del_announcement - Deleta um anúncio. Use: //del_announcement blabla.
//announce - Posta um anúncio. Use: //announce blabla
//ban - Usado para banir um jogador de uma conta de jogo. Use: //ban Fulano
//unban - Used to unban a named players account. Use: //unban Fulano
//kick - Usado para disconectar um jogador. Use: //kick Fulano
//kick_non_gm - Usado para desconectar todos os jogadores (não GMs)
//kill - Mata o alvo selecionado (Jogador/NPC)
//jail - Usado para prender / enjaular um jogador por um determinado tempo. Use: //jail Fulano 10
//unjail - Usado para desenjaular um jogador. Use: //unjail Fulano
//banchat - Bane um jogador do chat. Use: //banchat Fulando
//unbanchat - Libera o chat do jogador. Use: //unbanchat Fulano
//bbs - Brings up comunity board
//add_level - Adiciona level a um jogador selecionado. Use: //add_level 5
//set_level - Altera level a um jogador selecionado. Use: //set_level 50
//heal - Heal target player or players in radius. Usage: //heal 200
//help - Abre página de ajuda.
//invul - Des/Habilita modo invulnerável.
TESTAR / AVALIAR
(gm Consultation Room) X= -114434 Y= -249456 Z= -2984
//admin - Brings up the admin menu.
//gmchat - Sends a global message that only GMs can see.
Ussage - //gmchat Type message here
//gm - Turns on or off your GM status.
//invul - Makes you invulnerable.
//delete - Used to remove a targetted Mob. Mob will not respawn.
//kill - Used to kill a targetted Mob. Mob will respawn.
//target - Used to target a Mob or player.
Usage: //target kadar
//buy - Opens the GMShop.
//gmshop - Opens the GMShop.
//announce_menu - Opens the announce menu.
//list_announcements - Lists the current announcements.
//reload_announcements - Reloads the announcement list.
//announce_announcements - Posts all announcements in list.
//add_announcement - Adds an announcement.
Usage: //add_announcement Your announcement here
//del_announcement - Deletes an announcement.
Usage: //del_announcement Your announcement here
//announce - Posts an announcement.
Usage: //announce Your announcement here
//itemcreate - Opens the item creation menu.
//create_item - Creates an item.
Usage: //create_item item_id
//server_shutdown - Starts the shutdown process.
Usage: //server_shutdown Number of seconds
//server_restart - Starts the restart process.
Usage: //server_restart Number of seconds
//server_abort - Stops the server shutdown.
//show_spawns - Opens spawn menu.
//spawn - Spawns a Mob on current target.
Usage: //spawn npc_id
//spawn_monster - Spawns a Mob on current target.
Usage: //spawn_monster npc_id
//spawn_index - Shows menu for monsters with respective level.
Usage: //spawn_index level
//show_skills - Lists targetted players skills.
//remove_skills - Removes the targetted players skills.
//skill_list - Opens skill menu.
//skill_index - Opens skill menu according to players stats.
//add_skill - Adds a skill to a targetted player.
Usage: //add_skill Skill_id level
//remove_skill - Removes a skill from a targetted player.
Usage: //remove_skill Skill_id
//get_skills - Temporarily gives you the skills of a targetted player.
//reset_skills - Restores your skills from before the get_skills command.
//add_exp_sp_to_character - Opens the xp sp menu of the targetted player.
//add_exp_sp - Adds xp sp to targetted player.
Usage: //add_exp_sp xp_number sp_number
//edit_character - Opens menu to edit targetted player.
//current_player - Opens character list.
//character_list - Opens list of online players.
//show_characters - Opens list of online players.
//find_character - Opens the find player menu.
//save_modifications - Saves the edits done to the targetted player.
//show_moves - Opens the teleport menu.
//show_moves_other - Opens the teleport menu named other.
//show_teleport - Opens the teleport menu.
//teleport_to_character - Teleports you to the named player.
Usage: //teleport_to_character kadar
//teleportto - Teleports you to the named player.
Usage: //teleportto kadar
//move_to - Teleports you to coordinates given.
Usage: //move_to 1111 2222 3333
//teleport_character - Teleports targetted player to coordinates given.
Usage: //move_to 1111 2222 3333
//recall - Summons a named player to you.
Usage: //recall kadar
//restore - Restores a broken player info.
//repair - Repairs a broken player info.
//changelvl - Changes a targetted players access level.
Usage: //changelvl Access_level_number
//ban - Used to kick and ban a named players account.
Usage: //ban kadar
//unban - Used to unban a named players account.
Usage: //unban kadar
//kick - Used to disconnect named player.
Usage: //kick kadar
//ride_wyvern - Command used to summon and ride a wyvern.
//unride_wyvern - Command to dismount and unsummon a wyvern.
//mons - Used to start the Monster Races.
//edit_npc - Used to edit an NPCs stats.
Usage: //edit_npc npc_id
//save_npc - Saves modified NPC info.
//recall_npc - Teleports targetted NPC to you.
//show_droplist - Shows the named NPCs drop list.
Usage: //show_droplist npc_id
//edit_drop - Edits the named NPCs droplist.
Usage: //edit_drop npc_id item_id [min max sweep chance]
//add_drop - Adds a drop to the named NPCs droplist.
Usage: //add_drop npc_id item_id [min max sweep chance]
//del_drop - Deletes a drop to the named NPCs droplist.
Usage: //del_drop npc_id item_id
//showShop - Shows a targetted vendors shoplist.
//showShopList - Shows a targetted vendors shoplist.
//addShopItem - Adds an item to a vendors shop.
Usage: //addShopItem Shop_ID item_id Price
//delShopItem - Deletes an item from a vendors shoplist.
Usage: //delShopItem Shop_ID item_id
//editShopItem - Edits an item in a vendors shoplist.
Usage: //editShopItem Shop_ID item_id Price
//gonorth
//gosouth
//goeast
//gowest
//goup
//godown
//setcastle
//clean_up_siege
//spawn_doors
//move_defenders
//startsiege
//endsiege
//list_siege_clans
//add_defender
//add_attacker
//clear_siege_list
//sgspawn <npc_id> <group>
//siege - Castle names: gludio, giran, dion, oren
//box_access - with box targetted, shows access list
//box_access char1 char2 - To add players to box
Usage: //box_access kadar LadyPain
//box_access no char1 - Removes player from box access
Usage: //box_access LadyPain no kadar
//fight_calculator
//fight_calculator_show
//fcs
//play_sounds
//nokarma - Removes karma from target player
//setkarma value - Sets karma of target player to value
//setew value - Sets enchantment of target player currently equipped weapon to value
Usage: //setew 9999
//banchat - Mutes a player
Usage: //banchat kadar
//unbanchat - Unmutes a player
Usage: //unbanchat kadar
//polymorph character npc id
//polymorph item id to poly target into id|
//polyself <npc id> - Used to polymorph yourself into a mob
//unpolyself - Returns you to the normal state
//polymorph item <itemid> - Polymorphs an item
//invis - To hide your character
//invisible - To hide your character
//vis - To unhide your character
//visible - To unhide your character
//earthquake <Intensity> <Duration> - Creates an earthquake
//para_all - Paralyzes all players}}
//unpara_all - Unparalyze all players
//para - Paralyze Target
//unpara - Unparalyze Target
//bighead - Gives target a big head
//shrinkhead - Returns targets head to normal size
//test - These //test commands are for the universe mapping feature (developmental)
//test uni flush
//test hash <number>
//test uni
//res - Resurrects either target, playername or radius
//mammon_find - Lists the current location (if any) of the Mammon NPCs
//mammon_respawn - Lists the current respawn times (if any) of the Mammon NPCs
//list_spawns <npcId> - Lists all the spawns for the specified NPC ID. If teleIndex is specified, player targets to the location of that spawn.
//list_spawns <npcId> <teleIndex> - Teleports to the player based on the given spawn index (from using //list_spawns <npcId>Wink.
//gmliston - (To add Gm from gmlist)
//gmlistoff - (To remove GM from gmlist)
//silence - (To enable/disable private message mode)
//diet - Current status of diet mode for player.
//diet on - Enables diet mode.
//diet off - Disables diet mode.
//tradeoff - Current status of trading for player.
//tradeoff on -Enables trading with other players.
//tradeoff off - Disables trading with other players.
/block <name>
/unblock <name>
/blocklist
/allblock
/allunblock
//spawn mob_name|mob_id [quantity] [respawn_time_secs] - //spawn kaboo_orc
//heal - Heals yourself
//heal (with a character selected) - Heals selected character
//heal <radius> - Heals all characters within <radius>
//heal <name> - Heals character with the name <name>. Does not have to be targeted.
//give_all_skills - It will give your target all the skills he can learn at his level with his class
/friendlist
//openall - Opens all doors
//closeall - Closes all doors
//unspawnall - Remove all npcs from world
//respawnall - Reload npc data
//reload skill - Reloads skill data.
//reload multisell - Reloads multisell data.
//atmosphere <signsky> <dawn|dusk> - Sets current sky to either Dawn or Dusk, as seen by members of the winning cabal.
//atmosphere <sky> <day|night> - Sets current sky to either day or night.
//cache_htm_rebuild - Rebuilds and reloads the HTML cache.
//cache_htm_reload - Reloads the HTML cache.
//cache_crest_rebuild - Rebuilds the cache of pledge crests.
//cache_crest_fix - Fixes problems with incorrect displaying of pledge crests.