I have just one question regarding core side and using the SQL statements to update/insert datas into the database.
How could i implement the following query when a new character is created?
("UPDATE characters SET botprev_fail_account = (SELECT botprev_fail_account FROM accounts WHERE account_name=login")
I want that the new character that's created on the same account to have the botprev_fail_account value taken from the ACCOUNTS table and inserted into botprev_fail_account from CHARACTERS table.
The account_name and login have the same value.
The following code that i tried doesn't work:
try(Connection con2 =DatabaseFactory.getConnection()){PreparedStatement statement2 = con2.prepareStatement("UPDATE characters SET botprev_fail_account = (SELECT botprev_fail_account FROM accounts WHERE account_name=?");
statement2.setString(1, _accountName);
statement2.executeUpdate();
statement2.close();}
I've been trying to set-up an Interlude server for the past few days and did get one up and running, but it's a mess.
Even the "gold" standard files shared here didn't give better results.
I am wondering which are the current best projects to invest in?
- AdvExt64 looks like crap - no offense to the developers.
- And I've seen a few more related projects - Athena Project? also not good looking in general.
Is it true L2Reborn is Java based?
Really curious to know if there are good server packs or services to buy there - protocol 110? I really dig the look and feel of l2reborn.
Let me know what you guys think
DISCORD :
utchiha_market
telegram :
https://t.me/utchiha_market
SELLIX STORE :
https://utchiha.sellpass.io/
Join our server for more products :
https://discord.gg/uthciha-services
https://campsite.bio/utchihaamkt
DISCORD :
utchiha_market
telegram :
https://t.me/utchiha_market
SELLIX STORE :
https://utchiha.sellpass.io/
Join our server for more products :
https://discord.gg/uthciha-services
https://campsite.bio/utchihaamkt
DISCORD :
utchiha_market
telegram :
https://t.me/utchiha_market
SELLIX STORE :
https://utchiha.sellpass.io/
Join our server for more products :
https://discord.gg/uthciha-services
https://campsite.bio/utchihaamkt
DISCORD :
utchiha_market
telegram :
https://t.me/utchiha_market
SELLIX STORE :
https://utchiha.sellpass.io/
Join our server for more products :
https://discord.gg/uthciha-services
https://campsite.bio/utchihaamkt
Question
stalker66
Hi guys.
I have just one question regarding core side and using the SQL statements to update/insert datas into the database.
How could i implement the following query when a new character is created?
I want that the new character that's created on the same account to have the botprev_fail_account value taken from the ACCOUNTS table and inserted into botprev_fail_account from CHARACTERS table.
The account_name and login have the same value.
The following code that i tried doesn't work:
3 answers to this question
Recommended Posts