Jump to content

Recommended Posts

Posted

when the options are ready, write //startvotes for html ...

also //showvotes will show the votes

//clear - the command will help you to clear the options and votes

 

Are Those Guys Too Stupid Or I Just Started To Reading Java ?ahahaha Fail They Cant Understand

Posted

Ain't a whole new Bypass Handler useless, just for that?

srsly i'm working with bypass in classes, everyone can use it in my way or in other ways.

Posted

Nice idea...you can make an auto-manager that will take an action based on the votes...Like a trivia or anti-bot or a lot of other events. And it could be edited so you ca show that html to a person or a party or a clan or who knows what...Gj

Posted

Nice idea...you can make an auto-manager that will take an action based on the votes...Like a trivia or anti-bot or a lot of other events. And it could be edited so you ca show that html to a person or a party or a clan or who knows what...Gj

I will extend it including your idea

Posted

from  RequestBypassToServer.java - Index: net.sf.l2j.gameserver.clientpackets

 

i get error this line

 

else if (_command.startsWith("Quest "))

{

if(!activeChar.validateBypass(_command))

return;

 

L2PcInstance player = getClient().getActiveChar();

if (player == null) return;

 

String p = _command.substring(6).trim();

int idx = p.indexOf(' ');

if (idx < 0)

player.processQuestEvent(p, "");

else

player.processQuestEvent(p.substring(0, idx), p.substring(idx).trim());

}

+ else if(_command.startsWith("custom_"))

+ {

+ L2PcInstance player = getClient().getActiveChar();

+ if(!player.validateBypass(_command))

+ return;

+

+ BypassHandler.getInstance().handleBypass(player, _command);

+ }

 

 

i can't find this cordination ... BypassHandler.java - Index: net.sf.l2j.gameserver.model.custom

 

from   Vote.java - Index: net.sf.l2j.gameserver.model.entity.Events

 

/* 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 2, 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, write to the Free Software

* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA

* 02111-1307, USA.

*

* http://www.gnu.org/copyleft/gpl.html

*/

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

 

import net.sf.l2j.gameserver.handler.admincommandhandlers.AdminCustom;

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

import net.sf.l2j.gameserver.serverpackets.NpcHtmlMessage;

 

/**

* @author  xAddytzu

*/

public class Vote

{

private static Vote _instance = null;

private List<String> _IPs = new FastList<String>();

public static int voteCount1 = 0;

public static int voteCount2 = 0;

public static int voteCount3 = 0;

public static Vote getInstance()

{

if(_instance == null)

_instance = new Vote();

 

return _instance;

}

public void handleCommand(L2PcInstance player,String command)

{

if(command.startsWith("custom_vote_1"))

{

if (_IPs.contains(player.getClient().getConnection().getSocketChannel().socket().getInetAddress().getHostAddress()))

continue;

 

_IPs.add(player.getClient().getConnection().getSocketChannel().socket().getInetAddress().getHostAddress());

voteCount1++;

player.sendMessage("Thanks for your vote.");

}

else if(command.startsWith("custom_vote_2"))

{

if (_IPs.contains(player.getClient().getConnection().getSocketChannel().socket().getInetAddress().getHostAddress()))

continue;

 

_IPs.add(player.getClient().getConnection().getSocketChannel().socket().getInetAddress().getHostAddress());

voteCount2++;

player.sendMessage("Thanks for your vote.");

}

else if(command.startsWith("custom_vote_3"))

{

if (_IPs.contains(player.getClient().getConnection().getSocketChannel().socket().getInetAddress().getHostAddress()))

continue;

 

_IPs.add(player.getClient().getConnection().getSocketChannel().socket().getInetAddress().getHostAddress());

voteCount3++;

player.sendMessage("Thanks for your vote.");

}

}

public void showVoteHtml(L2PcInstance activeChar)

{

String htmFile = "data/html/custom/vote.htm";

NpcHtmlMessage html = new NpcHtmlMessage(1);

html.setFile(htmFile);

html.replace("%first%", String.valueOf(AdminCustom.first));

html.replace("%second%", String.valueOf(AdminCustom.second));

html.replace("%third%", String.valueOf(AdminCustom.third));

html.replace("%voteCount1%", String.valueOf(voteCount1));

html.replace("%voteCount2%", String.valueOf(voteCount2));

html.replace("%voteCount3%", String.valueOf(voteCount3));

activeChar.sendPacket(html);

}

public void clear()

{

voteCount1 = 0;

voteCount2 = 0;

voteCount3 = 0;

AdminCustom.first = "";

AdminCustom.second = "";

AdminCustom.third = "";

_IPs.clear();

}

}

 

why i get this errors? i do everything right..

Posted

+            BypassHandler.getInstance().handleBypass(player, _command);

just import the file :)


 

well, there isnt any class "IPs". any solution?

 

is the same...again i get error...from all cordinate where i need put java codes i get errors..Isn't for IL?

Posted

+            BypassHandler.getInstance().handleBypass(player, _command);

just import the file :)


 

well, there isnt any class "IPs". any solution?

_IPs is a list.

 

import java.util.List;

import javolution.util.FastList;

 

anyway if you are using Eclipse, hold Ctrl+Shift+O (Organize Imports)

 

Posted

_IPs is a list.

 

import java.util.List;

import javolution.util.FastList;

Oh okey, now it gotten fixed. But im now im having problems with getSocketChannel, even if i change it to Socket.

 

Any solution again? Thanks

Posted

Oh okey, now it gotten fixed. But im now im having problems with getSocketChannel, even if i change it to Socket.

 

Any solution again? Thanks

Search in your source code how to get an ip ...

Posted

well, i made it

_IPs.add(player.getClient().getConnection().getSocket().getInetAddress().getHostAddress());

, i deleted getsocketchanel and socket and added getSocket. No errors.

 

but is it going to work?

 

 


 

Edit:

			if (_IPs.contains(player.getClient().getConnection().getSocket().getInetAddress().getHostAddress()))
			[color=yellow]continue;[/color]

Last error >:(

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



  • Posts

    • THE CAMERA DISTORTS – AND THAT CAN EXPOSE YOU ▪ You look at the photo: “looks fine.” But the sensor has already altered it – and without that, the shot doesn’t exist. ▪ Rolling shutter. The frame is read line by line objects slightly “drift”, geometry isn’t perfect that’s not a bug – that’s the baseline. ▪ Sensor noise. Even in good lighting there’s still grain every sensor has its own signature too clean = unnatural. ▪ Aberrations. Color shifts appear near the edges lenses aren’t perfect, and it shows perfect edges with no shift are rare. ▪ Reality ≠ what the camera records. It always adds distortion. ▪ Want to know where your file is “too perfect”? Send it over – we’ll break it down for you. › TG: @mustang_service ( https:// t.me/ mustang_service ) › Channel: Mustang Service ( https:// t.me/ +JPpJCETg-xM1NjNl ) #editing #photoshop #distortion #verification #camera
    • We’re not trying to be “Reborn” or anyone else and you have copy the server concept,the reborn website,the reborn logo,the reborn community board html,lol trash
    • SOCNET is a universal service that combines a digital goods store, an SMM panel, a Telegram bot for purchasing Telegram Stars and a Telegram bot for renting virtual numbers. Here you will find accounts for TikTok, Instagram, Reddit, Twitter, Telegram, Facebook, LinkedIn, WhatsApp, SnapChat, YouTube, Google, Discord, email (Outlook, Hotmail, Gmail, Rambler, Firstmail and others), proxies, virtual servers, advertising accounts, access to ChatGPT 5, gift cards and premium subscriptions to numerous services — and all this at the best prices!   SOCNET STARS is a service that helps you quickly and profitably purchase Telegram Stars and subscribe to Telegram Premium. Using our Telegram bot you can buy Telegram Stars at the lowest prices on the market and use them to pay for gifts, reactions, donations and other features inside Telegram.   Our bot also features a NEW gaming feature — gift slots, where users can win valuable prizes: Telegram gifts, bonuses from our partners and the SOCNET company, stars and premium subscriptions. The game mechanics are completely transparent: no tricks, only real luck decides. You can try it at any time — bets start from just 1 ruble. We also provide the opportunity for a one-time free spin!   Available payment methods: LOLZTEAM, Crypto Bot, Cryptocurrency, Bank cards and SBP ⭐ Our online store ⭐ SOCNET.STORE ⭐ Telegram store ⭐ SOCNET.SHOP ⭐ Our SMM Panel for social media promotion ⭐ SOCNET.PRO ⭐ Our Telegram bot for purchasing Telegram Stars ⭐ SOCNET.CC ⭐ Our SMS Service ⭐ SOCNET.APP ✅ News resources: ➡ Telegram channel ➡ WhatsApp channel ➡ Discord server ✅ Contacts and support: ➡ Telegram support ➡ WhatsApp support ➡ Discord support: socnet_support ➡ Email support: help@socnet.pro We have been operating for a long time and have gathered a huge list of reviews about our work! Our huge list of positive and honest reviews is presented on our website! ⭐We invite you to COOPERATE and EARN with us ⭐ Want to sell your product or service in our stores and make money? Become our partner or suggest mutually beneficial cooperation? You can contact us via the CONTACTS listed in this topic. If you have any questions or problems, our fast customer support is ready to respond to your requests! Refunds for a service that does not fully meet the requirements or quality are issued only if a guarantee and warranty period were specified in the product description. In all other cases, refunds for the service will not be fully processed or issued! By purchasing such a service, you automatically agree to our refund policy for non-provided services! We currently accept Any type of cryptocurrency (Cryptomus, Binance Pay, CryptoBot), any bank cards (VISA, Mastercard, MIR Pay, SBP), LolzTeam Market, Wise, Revolut, Paypal Friends&Families. We value every customer and provide replacements for invalid accounts and services through our contact methods!
    • SOCNET is a universal service that combines a digital goods store, an SMM panel, a Telegram bot for purchasing Telegram Stars and a Telegram bot for renting virtual numbers. Here you will find accounts for TikTok, Instagram, Reddit, Twitter, Telegram, Facebook, LinkedIn, WhatsApp, SnapChat, YouTube, Google, Discord, email (Outlook, Hotmail, Gmail, Rambler, Firstmail and others), proxies, virtual servers, advertising accounts, access to ChatGPT 5, gift cards and premium subscriptions to numerous services — and all this at the best prices!   SOCNET STARS is a service that helps you quickly and profitably purchase Telegram Stars and subscribe to Telegram Premium. Using our Telegram bot you can buy Telegram Stars at the lowest prices on the market and use them to pay for gifts, reactions, donations and other features inside Telegram.   Our bot also features a NEW gaming feature — gift slots, where users can win valuable prizes: Telegram gifts, bonuses from our partners and the SOCNET company, stars and premium subscriptions. The game mechanics are completely transparent: no tricks, only real luck decides. You can try it at any time — bets start from just 1 ruble. We also provide the opportunity for a one-time free spin!   Available payment methods: LOLZTEAM, Crypto Bot, Cryptocurrency, Bank cards and SBP ⭐ Our online store ⭐ SOCNET.STORE ⭐ Telegram store ⭐ SOCNET.SHOP ⭐ Our SMM Panel for social media promotion ⭐ SOCNET.PRO ⭐ Our Telegram bot for purchasing Telegram Stars ⭐ SOCNET.CC ⭐ Our SMS Service ⭐ SOCNET.APP ✅ News resources: ➡ Telegram channel ➡ WhatsApp channel ➡ Discord server ✅ Contacts and support: ➡ Telegram support ➡ WhatsApp support ➡ Discord support: socnet_support ➡ Email support: help@socnet.pro We have been operating for a long time and have gathered a huge list of reviews about our work! Our huge list of positive and honest reviews is presented on our website! ⭐We invite you to COOPERATE and EARN with us ⭐ Want to sell your product or service in our stores and make money? Become our partner or suggest mutually beneficial cooperation? You can contact us via the CONTACTS listed in this topic. If you have any questions or problems, our fast customer support is ready to respond to your requests! Refunds for a service that does not fully meet the requirements or quality are issued only if a guarantee and warranty period were specified in the product description. In all other cases, refunds for the service will not be fully processed or issued! By purchasing such a service, you automatically agree to our refund policy for non-provided services! We currently accept Any type of cryptocurrency (Cryptomus, Binance Pay, CryptoBot), any bank cards (VISA, Mastercard, MIR Pay, SBP), LolzTeam Market, Wise, Revolut, Paypal Friends&Families. We value every customer and provide replacements for invalid accounts and services through our contact methods!
    • SOCNET is a universal service that combines a digital goods store, an SMM panel, a Telegram bot for purchasing Telegram Stars and a Telegram bot for renting virtual numbers. Here you will find accounts for TikTok, Instagram, Reddit, Twitter, Telegram, Facebook, LinkedIn, WhatsApp, SnapChat, YouTube, Google, Discord, email (Outlook, Hotmail, Gmail, Rambler, Firstmail and others), proxies, virtual servers, advertising accounts, access to ChatGPT 5, gift cards and premium subscriptions to numerous services — and all this at the best prices!   SOCNET STARS is a service that helps you quickly and profitably purchase Telegram Stars and subscribe to Telegram Premium. Using our Telegram bot you can buy Telegram Stars at the lowest prices on the market and use them to pay for gifts, reactions, donations and other features inside Telegram.   Our bot also features a NEW gaming feature — gift slots, where users can win valuable prizes: Telegram gifts, bonuses from our partners and the SOCNET company, stars and premium subscriptions. The game mechanics are completely transparent: no tricks, only real luck decides. You can try it at any time — bets start from just 1 ruble. We also provide the opportunity for a one-time free spin!   Available payment methods: LOLZTEAM, Crypto Bot, Cryptocurrency, Bank cards and SBP ⭐ Our online store ⭐ SOCNET.STORE ⭐ Telegram store ⭐ SOCNET.SHOP ⭐ Our SMM Panel for social media promotion ⭐ SOCNET.PRO ⭐ Our Telegram bot for purchasing Telegram Stars ⭐ SOCNET.CC ⭐ Our SMS Service ⭐ SOCNET.APP ✅ News resources: ➡ Telegram channel ➡ WhatsApp channel ➡ Discord server ✅ Contacts and support: ➡ Telegram support ➡ WhatsApp support ➡ Discord support: socnet_support ➡ Email support: help@socnet.pro We have been operating for a long time and have gathered a huge list of reviews about our work! Our huge list of positive and honest reviews is presented on our website! ⭐We invite you to COOPERATE and EARN with us ⭐ Want to sell your product or service in our stores and make money? Become our partner or suggest mutually beneficial cooperation? You can contact us via the CONTACTS listed in this topic. If you have any questions or problems, our fast customer support is ready to respond to your requests! Refunds for a service that does not fully meet the requirements or quality are issued only if a guarantee and warranty period were specified in the product description. In all other cases, refunds for the service will not be fully processed or issued! By purchasing such a service, you automatically agree to our refund policy for non-provided services! We currently accept Any type of cryptocurrency (Cryptomus, Binance Pay, CryptoBot), any bank cards (VISA, Mastercard, MIR Pay, SBP), LolzTeam Market, Wise, Revolut, Paypal Friends&Families. We value every customer and provide replacements for invalid accounts and services through our contact methods!
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..