Jump to content

Recommended Posts

Posted
Create a List, add the ip in the reward method and before check if ip is not in List.

 

:)

 

Let me help you 

 

Check multiple box protection  do you see a list with IPs ? you can use  a part of that script, idea is !  if you allow  2 or  XXXX box online where the reward will go ? on what char ?

 

Posted

 

 

:)

 

Let me help you  

 

Check multiple box protection  do you see a list with IPs ? you can use  a part of that script, idea is !  if you allow  2 or  XXXX box online where the reward will go ? on what char ?

 

 

are u read the script??

have u see what it do .. ?

 

PreparedStatement statement = con.prepareStatement("" +

+ "SELECT" +

+ " c.charId," +

+ " c.char_name" +

+ "FROM" +

+ " characters AS c" +

+ "LEFT JOIN" +

+ " accounts AS a" +

+ "ON" +

+ " c.account_name = a.login" +

+ "WHERE" +

+ " c.online > 0" +

+ "GROUP BY" +

+ " a.lastIP" +

+ "ORDER BY" +

+ " c.level" +

+ "DESC");

 

the mysql query getting only chars with unique ip read BetterCup read :)

 

  • 3 weeks later...
Posted

Already shared, i can't see it, but i know it already been shared 100000Time... Every 10 votes ppl get reward...

And code starts:

package net.sf.l2j.gameserver.model.entity.event;

 

import java.io.BufferedReader;

import java.io.IOException;

import java.io.InputStreamReader;

import java.net.URL;

import java.util.Collection;

import java.util.List;

 

import javolution.util.FastList;

 

 

import net.sf.l2j.gameserver.model.entity.Announcements;

import net.sf.l2j.gameserver.thread.ThreadPoolManager;

 

import net.sf.l2j.gameserver.model.L2World;

import net.sf.l2j.gameserver.model.actor.instance.L2ItemInstance;

import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;

 

public class AutoVoteRewardHandler

{

private int initialCheck = 60 * 1000; // 60 seconds = 1 minutes

private int delayForCheck = 300 * 1000; // 300 seconds = 10 minutes

//HopZone

 

Code an be founded on junk  section or on l2jserver forum

Posted

Registered on login as Server 1 : Bartz
Server Votes: 4038
Master access level set for character KenZoR! Just a warning to be careful ;)
FourSepulchersManager: Entry time: Sun Oct 10 14:55:26 EEST 2010
SevenSigns: Data updated successfully.
Server Votes: 4061
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in
your SQL syntax; check the manual that corresponds to your MySQL server version
for the right syntax to use near 'AS cLEFT JOIN accounts AS aON c.account_name =
a.loginWHERE   c.online > 0GROUP BY' at line 1
       at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

       at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

       at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou
rce)
       at java.lang.reflect.Constructor.newInstance(Unknown Source)
       at com.mysql.jdbc.Util.handleNewInstance(Util.java:409)
       at com.mysql.jdbc.Util.getInstance(Util.java:384)
       at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1054)
       at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3566)
       at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3498)
       at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1959)
       at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2113)
       at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2568)
       at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.ja
va:2113)
       at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:
2275)
       at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeQuery(NewPr
oxyPreparedStatement.java:76)
       at com.l2jserver.gameserver.instancemanager.AutoVoteRewardHandler$AutoRe
ward.run(AutoVoteRewardHandler.java:68)
       at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
       at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)

       at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
       at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
access$101(Unknown Source)
       at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
runPeriodic(Unknown Source)
       at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
run(Unknown Source)
       at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source
)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
       at java.lang.Thread.run(Unknown Source)

 

L2j Server - last rev. - freya!

 

From what I understand I think I have to mention the v. of MySQL : 5.1

  • 1 month later...
Posted

 

 

I know it is kinda late .. but I've added the java code correctly....

I've edited everything right..

 

take a look I hope is right:

 

+ private final String HOPZONE = "l2.hopzone.net/lineage2/moreinfo/l2goldenarmy/85584.html";

+ // 60 * 1000(1000milliseconds = 1 second) = 60seconds

+ private final int initialCheck = 60 * 1000;

+ // 1800 * 1000(1000milliseconds = 1 second) = 1800seconds = 30minutes

+ private final int delayForCheck = 60 * 1000;

+ private final int[] itemId = { 7569 };

+ private final int[] itemCount = { 5 };

+ private final int[] maxStack = { 1, 1, 1 };

+ private final int votesRequiredForReward = 5;

 

But yet.. I restart my server as well and nothing..

 

what can I do to fix it?:) thanks

Posted
  private final int[] maxStack = { 1, 1, 1 }

maxStack is about how many times you want to share this item!since you put only 1 item (itemId=7569) for share you just need to put how many times you want to share it at maxStack.so delete {1, 1, 1} cuz this is equal for 3 items and add only one value! it would be like private final int[] maxStack = { 9999 } in this way you share your item 9999 times.Try this one and if you have problem message me to give you the whole code...or you can find it at l2j server forum..

  • 3 weeks later...
Posted

this works on l2j?? or just is a shit code?

Yap!

 

 

But on l2jforum its says that it works only when you have same DB for gameserver and login...can someone tell me why and how i can fix it?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.




  • Posts

    • Discord         :  utchiha_market Telegram        : https://t.me/utchiha_market
    • as you said expose connections in the server and create a communication with your AI, ironically an AI can help you do excactly that, all you need is your time i dont think you can get any help on discovering something that dont exist out of the box, thats the history with emulating l2->j in general thats what people, here you can find only positive and sometimes toxic responses, just go ahead and do stuff
    • 高质量 LinkedIn 账号新品到货,助力自信推广与影响力提升 新增商品: LinkedIn 自注册账号,带真实好友 (50/100/250/500/1000 可选) | 地区:美国/欧洲 (可选) | 完善资料 | 实机注册 | 价格起步 $10 LinkedIn 自注册账号,带真实好友 + 高级订阅 (Career/Business/Sales Navigator/Recruiter 任意选择) | 地区:美国 | 完善资料 | 实机注册 | 价格起步 $15 我们的在线商店全品类: 账号:Telegram、Facebook、Reddit、Twitter (X)、Instagram、YouTube、TikTok、Discord、VK、LinkedIn、GitHub、Snapchat、Gmail、邮箱账号 (Outlook、Firstmail、Rambler、Onet、Gazeta、GMX、Yahoo、Proton、Web.de)、Google Voice、Google Ads 高级订阅:Telegram Premium、Twitter Premium X、YouTube Premium、Spotify Premium、Netflix Premium、Discord Nitro、ChatGPT Plus/PRO、XBOX Game Pass 附加服务:Telegram Stars、代理 (IPv4、IPv6、ISP、移动)、VPN (Outline、WireGuard、其他)、VDS/RDP 服务器 优惠码:AUGUST2025 (立减 10%) 支付方式:银行卡 · 加密货币 · 其他常用方式 如何购买: 在线商店: Click Telegram 机器人: Click 其他服务: SMM 面板: Click – 推广您的社交媒体账号 使用我们的 SMM 面板可提升:Facebook、Instagram、Telegram、Spotify、Soundcloud、YouTube、Reddit、Threads、Kick、Discord、LinkedIn、Likee、VK、Twitch、Kwai、Reddit、网站流量、TikTok、Trust Pilot、Apple Music、Tripadvisor、Snapchat 等数字产品。 首次试用 SMM 面板可获得 $1 奖励:只需在我们的网站 (Support) 提交工单,主题填写 “Get Trial Bonus”。 LinkedIn 账号种类: LINKEDIN.COM 账号 | 自带邮箱 @OUTLOOK.COM / HOTMAIL.COM / @FIRSTMAIL,男女皆有,部分资料已填,注册自美国 IP | 起价 $2.5 LINKEDIN.COM 账号 | 自带邮箱 @OUTLOOK.COM / HOTMAIL.COM / @FIRSTMAIL,男女皆有,部分资料已填,注册自欧洲 IP | 起价 $2.5 LINKEDIN.COM 账号 | 自带邮箱 @OUTLOOK.COM / HOTMAIL.COM / @FIRSTMAIL.COM,男女皆有,部分资料已填,注册自混合 IP | 起价 $2.5 LinkedIn 老号 (Brute) 带真实好友 (0 好友) | 混合地区 | 完善资料 | 实机注册 | 起价 $10 LinkedIn 自注册账号,带真实好友 (50/100/250/500/1000 可选) | 地区:美国/欧洲 (可选) | 完善资料 | 实机注册 | 起价 $10 LinkedIn 自注册账号,带真实好友 + 高级订阅 (Career/Business/Sales Navigator/Recruiter 任意选择) | 地区:美国 | 完善资料 | 实机注册 | 起价 $15 LinkedIn 高级老号 (Brute) (Premium) 带 1 个月有效高级订阅 | 地区:混合 | 实机注册 | 完整访问 | 起价 $20 LinkedIn 老号 (Brute) 带真实好友 (50 好友) | 混合地区 | 完善资料 | 实机注册 | 起价 $20 LinkedIn 老号 (Brute) 带真实好友 (100+ 好友) | 混合地区 | 完善资料 | 实机注册 | 起价 $39 LinkedIn 老号 (Brute) 带真实好友 (500+ 好友) | 混合地区 | 完善资料 | 实机注册 | 起价 $69 LinkedIn 已验证老号 (Brute) 带实名验证文件 | 混合地区 | 实机注册 | 完整访问 | 起价 $89 老客户专享 — 额外折扣与优惠码! 享受 10% – 20% 折扣 或 注册即送 $1 奖励 如果您想领取注册奖励 $1 或首次购买立减 10% – 20%,您可以留言: “SEND ME BONUS, MY USERNAME IS...” 您也可以在首次购买时使用优惠码:SOCNET (15% 折扣!) 联系方式与支持: Telegram: https://t.me/socnet_support Telegram 频道: https://t.me/accsforyou_shop WhatsApp: https://wa.me/79051904467 WhatsApp 频道: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n Discord: socnet_support Discord 服务器: https://discord.gg/y9AStFFsrh 邮箱: solomonbog@socnet.store 您还可以通过以上联系方式: — 咨询批发采购 — 建立合作伙伴关系 (现有合作伙伴: https://socnet.bgng.io/partners ) — 成为我们的供应商 SocNet – 数字商品与高级订阅商店 
    • Thanks a lot for the very interesting responses! To clarify, this is only for personal learning and use, I don't plan on earning any money!
    • 高质量 LinkedIn 账号新品到货,助力自信推广与影响力提升 新增商品: LinkedIn 自注册账号,带真实好友 (50/100/250/500/1000 可选) | 地区:美国/欧洲 (可选) | 完善资料 | 实机注册 | 价格起步 $10 LinkedIn 自注册账号,带真实好友 + 高级订阅 (Career/Business/Sales Navigator/Recruiter 任意选择) | 地区:美国 | 完善资料 | 实机注册 | 价格起步 $15 我们的在线商店全品类: 账号:Telegram、Facebook、Reddit、Twitter (X)、Instagram、YouTube、TikTok、Discord、VK、LinkedIn、GitHub、Snapchat、Gmail、邮箱账号 (Outlook、Firstmail、Rambler、Onet、Gazeta、GMX、Yahoo、Proton、Web.de)、Google Voice、Google Ads 高级订阅:Telegram Premium、Twitter Premium X、YouTube Premium、Spotify Premium、Netflix Premium、Discord Nitro、ChatGPT Plus/PRO、XBOX Game Pass 附加服务:Telegram Stars、代理 (IPv4、IPv6、ISP、移动)、VPN (Outline、WireGuard、其他)、VDS/RDP 服务器 优惠码:AUGUST2025 (立减 10%) 支付方式:银行卡 · 加密货币 · 其他常用方式 如何购买: 在线商店: Click Telegram 机器人: Click 其他服务: SMM 面板: Click – 推广您的社交媒体账号 使用我们的 SMM 面板可提升:Facebook、Instagram、Telegram、Spotify、Soundcloud、YouTube、Reddit、Threads、Kick、Discord、LinkedIn、Likee、VK、Twitch、Kwai、Reddit、网站流量、TikTok、Trust Pilot、Apple Music、Tripadvisor、Snapchat 等数字产品。 首次试用 SMM 面板可获得 $1 奖励:只需在我们的网站 (Support) 提交工单,主题填写 “Get Trial Bonus”。 LinkedIn 账号种类: LINKEDIN.COM 账号 | 自带邮箱 @OUTLOOK.COM / HOTMAIL.COM / @FIRSTMAIL,男女皆有,部分资料已填,注册自美国 IP | 起价 $2.5 LINKEDIN.COM 账号 | 自带邮箱 @OUTLOOK.COM / HOTMAIL.COM / @FIRSTMAIL,男女皆有,部分资料已填,注册自欧洲 IP | 起价 $2.5 LINKEDIN.COM 账号 | 自带邮箱 @OUTLOOK.COM / HOTMAIL.COM / @FIRSTMAIL.COM,男女皆有,部分资料已填,注册自混合 IP | 起价 $2.5 LinkedIn 老号 (Brute) 带真实好友 (0 好友) | 混合地区 | 完善资料 | 实机注册 | 起价 $10 LinkedIn 自注册账号,带真实好友 (50/100/250/500/1000 可选) | 地区:美国/欧洲 (可选) | 完善资料 | 实机注册 | 起价 $10 LinkedIn 自注册账号,带真实好友 + 高级订阅 (Career/Business/Sales Navigator/Recruiter 任意选择) | 地区:美国 | 完善资料 | 实机注册 | 起价 $15 LinkedIn 高级老号 (Brute) (Premium) 带 1 个月有效高级订阅 | 地区:混合 | 实机注册 | 完整访问 | 起价 $20 LinkedIn 老号 (Brute) 带真实好友 (50 好友) | 混合地区 | 完善资料 | 实机注册 | 起价 $20 LinkedIn 老号 (Brute) 带真实好友 (100+ 好友) | 混合地区 | 完善资料 | 实机注册 | 起价 $39 LinkedIn 老号 (Brute) 带真实好友 (500+ 好友) | 混合地区 | 完善资料 | 实机注册 | 起价 $69 LinkedIn 已验证老号 (Brute) 带实名验证文件 | 混合地区 | 实机注册 | 完整访问 | 起价 $89 老客户专享 — 额外折扣与优惠码! 享受 10% – 20% 折扣 或 注册即送 $1 奖励 如果您想领取注册奖励 $1 或首次购买立减 10% – 20%,您可以留言: “SEND ME BONUS, MY USERNAME IS...” 您也可以在首次购买时使用优惠码:SOCNET (15% 折扣!) 联系方式与支持: Telegram: https://t.me/socnet_support Telegram 频道: https://t.me/accsforyou_shop WhatsApp: https://wa.me/79051904467 WhatsApp 频道: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n Discord: socnet_support Discord 服务器: https://discord.gg/y9AStFFsrh 邮箱: solomonbog@socnet.store 您还可以通过以上联系方式: — 咨询批发采购 — 建立合作伙伴关系 (现有合作伙伴: https://socnet.bgng.io/partners ) — 成为我们的供应商 SocNet – 数字商品与高级订阅商店   
  • 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