- 0
Erorr making offshop
-
Posts
-
Introducing: Containers to Roll Players now have the ability to win containers/cases via the Roll System. Additionally I also added a global leaderboard displaying the users with the most roll games. This can be disabled/enabled via Admin Management Panel. Also improved the winning display with a volumetric Godrays effect.
-
By negotiator · Posted
I search job: posting your advertisement(sale,service) on various forums. Contacts for communication. You can find link for download messenger using Google search. Telegram https://t.me/negotiato_r @negotiato_r Element(based in United Kingdom) You can find me using this name. @negotiato-r:matrix.org Session(based in Switzerland) You can find me using this name. 05770c2eda571fc8d10ec0e79e258ec0d9189def2a3e1f2ace1cd29a2174d40723 Delta Chat(based in Germany) You can find me using the link below. https://i.delta.chat/#1ABEBFFCBC1AEE629111387073FFDA1835BB423E&i=6WtJxcgJGcFD3vIpglQfhe5J&s=f2EkRsqxAeFYep9g9s1y1aIf&a=xuozjaudg%40nine.testrun.org&n=negotiator I ask administrator or moderator not to consider this link an advertisement for messenger. This is only link that people can use to contact me. There is also QR code option,but you have to use mobile phone to access QR code. This means you have to install VPN app on your mobile phone,then sync your account from your mobile phone to your laptop or computer. This is a very cumbersome process. It's much easier to use pre-made link for laptop or computer. Hello. I intermediary. I search job: posting your advertisement(sale,service) on various forums. My service is free: posting your advertisement(sale,service) on various forums. I know these forum addresses,i can post your ad(for sale,service) on various forums. Dear sellers and those who provide any services. I offer you cooperation. My commission is not taken from your amount,my commission is added to your amount. From money received from guarantor,you pay me my commission. Payment is made on Tether USDT TRC20 or on Tron TRX. Commission for sending from your wallet to my wallet paid by buyer. When communicating via messenger,please tell me what your commission is for sending on Tether USDT TRC20 or on Tron TRX. Amount(fees) you'll pay as shipping fee to my wallet will be added to total amount. Payment will be made by guarantor to your payment details. Buyer deposits total amount with my percentage. Send me in messenger your ad copy with price(s). Independently from that through which messenger will be communication,buyer suggests using forum guarantor,gives forum address(http address) and send link(http address) to me,link i will pass on to you(seller) for consideration. If you as seller are not satisfied garant service on proposed forum,i say buyer goodbye and he goes to look for his product(service) from someone else,as result i will wait new buyer. If sale amount is less than $1000,i receive 20 percent above your total amount. If sale amount is more than $1000,i receive 10 percent above your total amount. I do not deal with either buyers or sellers from Ukraine(i do not cooperate with this country). I will not accept any advertising related to Ukraine,as i do not cooperate with this country. For buyers from other countries guarantor's services are entirely at buyer's expense. You can offer me any other area cooperation that does not violate law. I do not give 100% guarantee that i will accept your offer,which is not initially related to my advertising area. It is 50/50 that i will either refuse you or accept your offer. Everything will depend on whether this offer does not violate law. I will read information about your product(service) in Google search engine that you offer me for advertising and make decision,which i will inform you in messenger for communication. I will need some time to familiarize myself with information from Google search engine. I'm currently interested in 4 areas: 1)promotional offers with discounts only(coupons or promo codes):food,shoes,clothing,furniture,cosmetics,household appliances,consumer electronics,taxis,bus tickets,train tickets,plane tickets,hotel tickets,gas coupons or promo codes for car owners I do not advertise Ukraine,do not cooperate with it and have no dealings with it. I will not advertise anything related to carding. Buyer deposits amount for product(service) plus my commission(20 percent based on amount for product or service) into guarantor and then receives their product(service) in forum transaction. I would be grateful if it were possible for buyer to receive their goods somehow after depositing money with guarantor,without return address or contact information for future purchases. It's not in my best interests for buyer to communicate directly with you after first purchase. If this isn't possible,then you will simply agree with buyer to receive money with my percentage higher than your initial payment each time. If same customer purchases from you second time,customer pay you together with my percentage and i receive this percentage from you,this will provide additional incentive to advertise,i will promoting you on other forums. 2)selling real estate(houses or apartments) I'm not interested renting. I'm willing to advertise all countries except Russia and Ukraine. I won't advertise these two countries. I don't advertise Ukraine,don't cooperate with it and have no dealings with it. I'm not interested house or apartment listings that appear on Google search pages,as buyer can find information there themselves without my help and buy house or apartment in desired country. I'm interested house or apartment that aren't listed on Google search. How i see this ad:buyer sees my listing for desired country and if they're interested,they deposit 10 percent listed price for house or apartment in Garant Service. Buyer sets deadline in forum transaction,during which i either receive my money or don't. Then buyer receive an address,day and time to meet with seller. Buyer takes lawyer and notary with them and flies(or is driving car) to given address. If purchase transaction falls through,buyer collects their percentage from guarantor. I don't think buyer willing to buy house or apartment worth more than 12545$ is willing to cheat me out that 10 percent by making up fake story about failed deal. 3)selling telegram premium status Buyer has two options: 1) transaction through guarantor 2) transaction without guarantor If transaction is through guarantor. I(intermediary) conduct transaction with guarantor. Buyer specifies following terms in terms transaction: 1) i authorize the disclosure of the transaction name to third parties(that is to you) 2) i authorize the disclosure of the seller's payment details(your payment details) to third parties(that is to you) 3) i authorize the disclosure of the total transaction amount to third parties(that is to you) 4) i do not authorize the disclosure of my profile link on this forum to third parties 5) i do not authorize the disclosure of my contact information(if i have any in my profile on this forum) to third parties If activating premium status requires logging into buyer's account,i will do this. You will provide me with instructions on how to activate premium status for buyer's account. If you want to contact me about selling premium status on telegram, but my telegram account is unavailable(account is frozen or telegram system has deleted it),you can contact me using my other contact information. To activate premium status by logging into buyer's account,i will download portable version telegram from official website and launch it on my laptop. I will enter mobile phone number buyer provides me in messenger they originally contacted me through and send login code to this number. Buyer will then send me login code. Once transaction is finalized and buyer has deposited funds into guarantor's account I'll notify you via messenger. You register on forum suggested by buyer. Message guarantor privately on forum,asking them to share all points I've outlined above. Buyer will provide link to guarantor's forum profile in advance or you can find guarantor's forum profile on forum yourself,it's up to you to decide. After verifying that your payment details are included and that transaction amount matches amount agreed upon in messenger, you upgrade buyer to premium status. Your payment details are specified in application,in formquestionnaire for forum transaction,but you won't receive money from guarantor until buyer will not receive service(product),as soon as buyer receives service from you,guarantor will pay you. If buyer has received premium status,you receive funds from guarantor and then pay me my commission using my payment details. The fee for sending from your wallet to my wallet is covered by buyer,not you. When communicating via messenger please tell me your fee for sending to Tether USDT TRC20 or Tron TRX. Buyer deposits funds into guarantor with total amount already including my percentage plus buyer's fee for sending,which you will spend by paying me my percentage when transferring from Tether USDT TRC20 or Tron TRX. If transaction is without guarantor. Buyer pays money to your payment details received from me via messenger and waits for service to be rendered. I will inform buyer total amount when communicating via messenger. You upgrade buyer to premium status through me and then you pay me my percentage to my payment details. If activating premium status requires logging into buyer's account. I will do so. You will provide me with instructions on how to activate premium status for buyer's account. Fee for sending from your wallet to my wallet is covered by buyer,not you. When communicating via messenger please tell me your fee for sending to Tether(USDT TRC20) or Tron(TRX). Buyer pays you total amount,including my percentage plus buyer's fee for sending,which you will spend by paying me my percentage when transferring from Tether USDT TRC20 or Tron TRX. 4)i offer cooperation to specialists who provide services for collecting and submitting documents to consulate for citizenship,residence permits,visas and schengen visas I will advertise service collecting and sending documents to consulate only for following countries:Commonwealth of Independent States,Europe,Mexico,United states america,Canada,United Kingdom,Asia,Africa. Russia and Ukraine:these two countries i will not advertise. Buyer pays guarantor(amount from seller) for service for collecting and sending documents to consulate plus my commission(10 or 20 percent based on service fee). Buyer sets deadline in forum transaction within which they must receive service. Then in forum transaction buyer wait provision service. If after specified period(which will be specified in transaction),consulate refuses client's service,you as specialist have right to charge exact amount for your work through guarantor,since you spent your time on it(this clause will be specified in transaction). What will be amount you will decide,send solution through me.I'll let the buyer know. Client does not pay my percentage if consulate refuses client's service(this clause will be specified in transaction). In case refusal to buyer from consulate you will need to confirm this refusal through website. Whenever you collect and submit documents on country's website,request is created through their website. You will provide access to this request to guarantor. This is necessary to ensure that buyer doesn't pay for nothing,meaning amount you will be required to receive through guarantor for service provided if consulate's request is unsuccessful. -
Hey MaxCheaters! 👋 Introducing L2Soon.com — a free international platform for Lineage 2 server announcements. Why L2Soon? No more searching through dozens of forums and Discord servers. All new L2 server openings are in one place — updated daily, with real player online counts so you always know where people actually play. Features: 🔔 Telegram Bot (@l2Soon_bot) — alerts 24h & 1h before server launch 📅 Accurate launch times — in your local timezone ⚔️ All chronicles — Interlude, High Five, GoD, Classic, Essence, Grand Crusade and more 🎯 Filters — by chronicle, rates (x1–x1000+) and server type (PvP, RvR, GvE, Craft, Low Rate...) ⭐ VIP servers — verified projects pinned at the top 🌍 Multi-language — EN, UK, RU, PT Listing is completely FREE. 🔗 https://l2soon.com/en Feedback welcome — drop a comment or contact us via Telegram @l2Soon_bot
-
-
Topics

Question
retejas
Hi all, then i tried to create offline shop mode in aCis source i get erorrs and for me its imposible to fix it. Maby someone will fix it
This is a code of oflinetrade.java
/* * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more * details. * * You should have received a copy of the GNU General Public License along with * this program. If not, see <http://www.gnu.org/licenses/>. */ package net.sf.l2j.gameserver.datatables; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.util.Calendar; import java.util.logging.Level; import java.util.logging.Logger; import net.sf.l2j.Config; import net.sf.l2j.L2DatabaseFactory; import net.sf.l2j.gameserver.LoginServerThread; import net.sf.l2j.gameserver.model.L2ManufactureItem; import net.sf.l2j.gameserver.model.L2ManufactureList; import net.sf.l2j.gameserver.model.L2World; import net.sf.l2j.gameserver.model.TradeList.TradeItem; import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance; import net.sf.l2j.gameserver.network.L2GameClient; import net.sf.l2j.gameserver.network.L2GameClient.GameClientState; public class OfflineTradersTable { private static Logger _log = Logger.getLogger(OfflineTradersTable.class.getName()); //SQL DEFINITIONS private static final String SAVE_OFFLINE_STATUS = "INSERT INTO character_offline_trade (`charId`,`time`,`type`,`title`) VALUES (?,?,?,?)"; private static final String SAVE_ITEMS = "INSERT INTO character_offline_trade_items (`charId`,`item`,`count`,`price`) VALUES (?,?,?,?)"; private static final String CLEAR_OFFLINE_TABLE = "DELETE FROM character_offline_trade"; private static final String CLEAR_OFFLINE_TABLE_ITEMS = "DELETE FROM character_offline_trade_items"; private static final String LOAD_OFFLINE_STATUS = "SELECT * FROM character_offline_trade"; private static final String LOAD_OFFLINE_ITEMS = "SELECT * FROM character_offline_trade_items WHERE charId = ?"; public static void storeOffliners() { Connection con = null; try { con = L2DatabaseFactory.getInstance().getConnection(); PreparedStatement stm = con.prepareStatement(CLEAR_OFFLINE_TABLE); stm.execute(); stm.close(); stm = con.prepareStatement(CLEAR_OFFLINE_TABLE_ITEMS); stm.execute(); stm.close(); con.setAutoCommit(false); // avoid halfway done stm = con.prepareStatement(SAVE_OFFLINE_STATUS); PreparedStatement stm_items = con.prepareStatement(SAVE_ITEMS); //TextBuilder items = TextBuilder.newInstance(); for (L2PcInstance pc : L2World.getInstance().getAllPlayers().values()) { try { if ((pc.getPrivateStoreType() != L2PcInstance.STORE_PRIVATE_NONE) && (pc.getClient() == null || pc.getClient().isDetached())) { stm.setInt(1, pc.getObjectId()); //Char Id stm.setLong(2, pc.getOfflineStartTime()); stm.setInt(3, pc.getPrivateStoreType()); //store type String title = null; switch (pc.getPrivateStoreType()) { case L2PcInstance.STORE_PRIVATE_BUY: if (!Config.OFFLINE_TRADE_ENABLE) continue; title = pc.getBuyList().getTitle(); for (TradeItem i : pc.getBuyList().getItems()) { stm_items.setInt(1, pc.getObjectId()); stm_items.setInt(2, i.getItem().getItemId()); stm_items.setInt(3, i.getCount()); stm_items.setInt(4, i.getPrice()); stm_items.executeUpdate(); stm_items.clearParameters(); } break; case L2PcInstance.STORE_PRIVATE_SELL: case L2PcInstance.STORE_PRIVATE_PACKAGE_SELL: if (!Config.OFFLINE_TRADE_ENABLE) continue; title = pc.getSellList().getTitle(); for (TradeItem i : pc.getSellList().getItems()) { stm_items.setInt(1, pc.getObjectId()); stm_items.setInt(2, i.getObjectId()); stm_items.setInt(3, i.getCount()); stm_items.setInt(4, i.getPrice()); stm_items.executeUpdate(); stm_items.clearParameters(); } break; case L2PcInstance.STORE_PRIVATE_MANUFACTURE: if (!Config.OFFLINE_CRAFT_ENABLE) continue; title = pc.getCreateList().getStoreName(); for (L2ManufactureItem i : pc.getCreateList().getList()) { stm_items.setInt(1, pc.getObjectId()); stm_items.setInt(2, i.getRecipeId()); stm_items.setLong(3, 0); stm_items.setLong(4, i.getCost()); stm_items.executeUpdate(); stm_items.clearParameters(); } } stm.setString(4, title); stm.executeUpdate(); stm.clearParameters(); con.commit(); // flush } } catch (Exception e) { _log.log(Level.WARNING, "OfflineTradersTable[storeTradeItems()]: Error while saving offline trader: " pc.getObjectId() " " e, e); } } stm.close(); stm_items.close(); _log.info("Offline traders stored."); } catch (Exception e) { _log.log(Level.WARNING,"OfflineTradersTable[storeTradeItems()]: Error while saving offline traders: " e,e); } finally { try { con.close(); } catch (Exception e) { } con = null; } } public static void restoreOfflineTraders() { _log.info("Loading offline traders..."); Connection con = null; int nTraders = 0; try { con = L2DatabaseFactory.getInstance().getConnection(); PreparedStatement stm = con.prepareStatement(LOAD_OFFLINE_STATUS); ResultSet rs = stm.executeQuery(); while (rs.next()) { long time = rs.getLong("time"); if (Config.OFFLINE_MAX_DAYS > 0) { Calendar cal = Calendar.getInstance(); cal.setTimeInMillis(time); cal.add(Calendar.DAY_OF_YEAR, Config.OFFLINE_MAX_DAYS); if (cal.getTimeInMillis() <= System.currentTimeMillis()) continue; } int type = rs.getInt("type"); if (type == L2PcInstance.STORE_PRIVATE_NONE) continue; L2PcInstance player = null; try { L2GameClient client = new L2GameClient(null); client.setDetached(true); player = L2PcInstance.load(rs.getInt("charId")); client.setActiveChar(player); player.setOnlineStatus(true, false); client.setAccountName(player.getAccountName()); client.setState(GameClientState.IN_GAME); player.setClient(client); player.setOfflineStartTime(time); player.spawnMe(player.getX(), player.getY(), player.getZ()); LoginServerThread.getInstance().addGameServerLogin(player.getAccountName(), client); PreparedStatement stm_items = con.prepareStatement(LOAD_OFFLINE_ITEMS); stm_items.setInt(1, player.getObjectId()); ResultSet items = stm_items.executeQuery(); switch (type) { case L2PcInstance.STORE_PRIVATE_BUY: while (items.next()) { if (player.getBuyList().addItemByItemId(items.getInt(2), items.getInt(3), items.getInt(4)) == null) throw new NullPointerException(); } player.getBuyList().setTitle(rs.getString("title")); break; case L2PcInstance.STORE_PRIVATE_SELL: case L2PcInstance.STORE_PRIVATE_PACKAGE_SELL: while (items.next()) { if (player.getSellList().addItem(items.getInt(2), items.getInt(3), items.getInt(4)) == null) throw new NullPointerException(); } player.getSellList().setTitle(rs.getString("title")); player.getSellList().setPackaged(type == L2PcInstance.STORE_PRIVATE_PACKAGE_SELL); break; case L2PcInstance.STORE_PRIVATE_MANUFACTURE: L2ManufactureList createList = new L2ManufactureList(); while (items.next()) { createList.add(new L2ManufactureItem(items.getInt(2), items.getInt(4))); } player.setCreateList(createList); player.getCreateList().setStoreName(rs.getString("title")); break; } items.close(); stm_items.close(); player.sitDown(); if (Config.OFFLINE_SET_NAME_COLOR) player.getAppearance().setNameColor(Config.OFFLINE_NAME_COLOR); player.setPrivateStoreType(type); player.setOnlineStatus(true, true); player.restoreEffects(); player.broadcastUserInfo(); nTraders; } catch (Exception e) { _log.log(Level.WARNING, "OfflineTradersTable[loadOffliners()]: Error loading trader: "player,e); if (player != null) { player.deleteMe(); } } } rs.close(); stm.close(); _log.info("Loaded: " nTraders " offline trader(s)"); stm = con.prepareStatement(CLEAR_OFFLINE_TABLE); stm.execute(); stm.close(); stm = con.prepareStatement(CLEAR_OFFLINE_TABLE_ITEMS); stm.execute(); stm.close(); } catch (Exception e) { _log.log(Level.WARNING, "OfflineTradersTable[loadOffliners()]: Error while loading offline traders: ",e); } finally { try { con.close(); } catch (Exception e) { } con = null; } } }And this is errors
[javac] D:\MidSource\trunk_260\aCis_gameserver\java\net\sf\l2j\gameserver\datatables\OfflineTradersTable.java:130: error: ')' expected [javac] _log.log(Level.WARNING, "OfflineTradersTable[storeTradeItems()]: Error while saving offline trader: " pc.getObjectId() " " e, e); [javac] ^ [javac] D:\MidSource\trunk_260\aCis_gameserver\java\net\sf\l2j\gameserver\datatables\OfflineTradersTable.java:130: error: illegal start of expression [javac] _log.log(Level.WARNING, "OfflineTradersTable[storeTradeItems()]: Error while saving offline trader: " pc.getObjectId() " " e, e); [javac] ^ [javac] D:\MidSource\trunk_260\aCis_gameserver\java\net\sf\l2j\gameserver\datatables\OfflineTradersTable.java:130: error: ';' expected [javac] _log.log(Level.WARNING, "OfflineTradersTable[storeTradeItems()]: Error while saving offline trader: " pc.getObjectId() " " e, e); [javac] ^ [javac] D:\MidSource\trunk_260\aCis_gameserver\java\net\sf\l2j\gameserver\datatables\OfflineTradersTable.java:130: error: not a statement [javac] _log.log(Level.WARNING, "OfflineTradersTable[storeTradeItems()]: Error while saving offline trader: " pc.getObjectId() " " e, e); [javac] ^ [javac] D:\MidSource\trunk_260\aCis_gameserver\java\net\sf\l2j\gameserver\datatables\OfflineTradersTable.java:130: error: ';' expected [javac] _log.log(Level.WARNING, "OfflineTradersTable[storeTradeItems()]: Error while saving offline trader: " pc.getObjectId() " " e, e); [javac] ^ [javac] D:\MidSource\trunk_260\aCis_gameserver\java\net\sf\l2j\gameserver\datatables\OfflineTradersTable.java:130: error: not a statement [javac] _log.log(Level.WARNING, "OfflineTradersTable[storeTradeItems()]: Error while saving offline trader: " pc.getObjectId() " " e, e); [javac] ^ [javac] D:\MidSource\trunk_260\aCis_gameserver\java\net\sf\l2j\gameserver\datatables\OfflineTradersTable.java:130: error: ';' expected [javac] _log.log(Level.WARNING, "OfflineTradersTable[storeTradeItems()]: Error while saving offline trader: " pc.getObjectId() " " e, e); [javac] ^ [javac] D:\MidSource\trunk_260\aCis_gameserver\java\net\sf\l2j\gameserver\datatables\OfflineTradersTable.java:139: error: ')' expected [javac] _log.log(Level.WARNING,"OfflineTradersTable[storeTradeItems()]: Error while saving offline traders: " e,e); [javac] ^ [javac] D:\MidSource\trunk_260\aCis_gameserver\java\net\sf\l2j\gameserver\datatables\OfflineTradersTable.java:139: error: illegal start of expression [javac] _log.log(Level.WARNING,"OfflineTradersTable[storeTradeItems()]: Error while saving offline traders: " e,e); [javac] ^ [javac] D:\MidSource\trunk_260\aCis_gameserver\java\net\sf\l2j\gameserver\datatables\OfflineTradersTable.java:139: error: ';' expected [javac] _log.log(Level.WARNING,"OfflineTradersTable[storeTradeItems()]: Error while saving offline traders: " e,e); [javac] ^ [javac] D:\MidSource\trunk_260\aCis_gameserver\java\net\sf\l2j\gameserver\datatables\OfflineTradersTable.java:238: error: not a statement [javac] nTraders; [javac] ^ [javac] D:\MidSource\trunk_260\aCis_gameserver\java\net\sf\l2j\gameserver\datatables\OfflineTradersTable.java:242: error: ')' expected [javac] _log.log(Level.WARNING, "OfflineTradersTable[loadOffliners()]: Error loading trader: "player,e); [javac] ^ [javac] D:\MidSource\trunk_260\aCis_gameserver\java\net\sf\l2j\gameserver\datatables\OfflineTradersTable.java:242: error: illegal start of expression [javac] _log.log(Level.WARNING, "OfflineTradersTable[loadOffliners()]: Error loading trader: "player,e); [javac] ^ [javac] D:\MidSource\trunk_260\aCis_gameserver\java\net\sf\l2j\gameserver\datatables\OfflineTradersTable.java:242: error: ';' expected [javac] _log.log(Level.WARNING, "OfflineTradersTable[loadOffliners()]: Error loading trader: "player,e); [javac] ^ [javac] D:\MidSource\trunk_260\aCis_gameserver\java\net\sf\l2j\gameserver\datatables\OfflineTradersTable.java:251: error: ')' expected [javac] _log.info("Loaded: " nTraders " offline trader(s)"); [javac] ^ [javac] D:\MidSource\trunk_260\aCis_gameserver\java\net\sf\l2j\gameserver\datatables\OfflineTradersTable.java:251: error: not a statement [javac] _log.info("Loaded: " nTraders " offline trader(s)"); [javac] ^ [javac] D:\MidSource\trunk_260\aCis_gameserver\java\net\sf\l2j\gameserver\datatables\OfflineTradersTable.java:251: error: ';' expected [javac] _log.info("Loaded: " nTraders " offline trader(s)"); [javac] ^ [javac] 17 errors3 answers to this question
Recommended Posts