Jump to content

vickers

VIP Member
  • Posts

    21
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by vickers

  1. 12 hours ago, Kara` said:

    You seem nice person and i like the fact that you're searching on your own instead of beg for codes.

    Here's a little help in your request:

     

    
    ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(() -> L2World.getInstance().getPlayers().stream().filter(player -> player.getTwitch() != null).forEach(player ->
    {
    	final Twitch twitch = new Twitch();
    	twitch.setClientId(Config.TWITCH_TOKEN);
    			
    	twitch.streams().get(player.getTwitch(), new StreamResponseHandler()
    	{
    		@Override
    		public void onFailure(Throwable arg0)
    		{
    					
    		}
    				
    		@Override
    		public void onFailure(int arg0, String arg1, String arg2)
    		{
    					
    		}
    				
    		@Override
    		public void onSuccess(Stream stream)
    		{
               System.out.println(stream.getGame()); //Your code
    		}
    }

    getTwitch() method return just a simple String of twitch channel name (When i say name i refer only in twitch name no the whole link) that player somehow must input via voice command or idk.

     

    the Config.TWITCH_TOKEN is basically a token that you get from twitch.tv when you create an account is like 0x0g43kf23ghu23gjh23igj2g283jg2i3gj23ig2

     

    The code i gave you basically every X time check for all player's twitch filtered them by not null twitch and do some check upon onSuccess.

    I'm not asking for the because i won't learn what i wish, in fact i don't learn anything. I'm just asking for help where to look for it or where  can i get good tutorials for coding. Nobody has born with the knowlodge of java, so how much you live, you learn....it only needs time. Thank you for your suport

  2. 28 minutes ago, Kara` said:

    You seem nice person and i like the fact that you're searching on your own instead of beg for codes.

    Here's a little help in your request:

     

    
    ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(() -> L2World.getInstance().getPlayers().stream().filter(player -> player.getTwitch() != null).forEach(player ->
    {
    	final Twitch twitch = new Twitch();
    	twitch.setClientId(Config.TWITCH_TOKEN);
    			
    	twitch.streams().get(player.getTwitch(), new StreamResponseHandler()
    	{
    		@Override
    		public void onFailure(Throwable arg0)
    		{
    					
    		}
    				
    		@Override
    		public void onFailure(int arg0, String arg1, String arg2)
    		{
    					
    		}
    				
    		@Override
    		public void onSuccess(Stream stream)
    		{
               System.out.println(stream.getGame()); //Your code
    		}
    }

    getTwitch() method return just a simple String of twitch channel name (When i say name i refer only in twitch name no the whole link) that player somehow must input via voice command or idk.

     

    the Config.TWITCH_TOKEN is basically a token that you get from twitch.tv when you create an account is like 0x0g43kf23ghu23gjh23igj2g283jg2i3gj23ig2

     

    The code i gave you basically every X time check for all player's twitch filtered them by not null twitch and do some check upon onSuccess.

    Thank you once again for your help, this is very helpful.

  3. Thank

    9 hours ago, Kara` said:

    If you call your self amateur as i see mean you understand at least the basics of java. Takin an API and read the info is something that amateurs can do easily. The code itself is 10 lines or less using the twitch.jar library. Did you gave it a try?

    Thank you for the info, i will look into it....

  4. i

    15 minutes ago, Kara` said:

    What kind of customs did you make so? Why don't you check at Stream API ?

    i`v made some custom zones, and i need to modify the mobs atk, df, drop etc.

    As for streaming, i`m looking for something that players can use in game, so they can stream over the twitch...., srry my english is not so good.

     

  5. 1 minute ago, Kara` said:

    Time to learn some SQL to change massively data in database as drop data e.t.c it's very easy if you spend 1-2 hours

    A few years ago there was a tool that reduce the time for that, i know that editing from html/sql etc can be done, but with a good interface, the time spent for editing can be used for something else...

  6. For over 2 weeks i`m working on my l2 h5 server, i`v manage to do some custom things on it, i`m not a good developer, i could describe me as a newbie, in java, but i`m learning fast.

    Is the any chance that someone could share the streaming files(.stream comand in game and you are log in for stream ....) for l2j h5 server?

  7. Nice job, thank you for this share, i respect your decision that you don`t wana give the password to all of us, just to those who has posts in forum, but maiby some of us have choosen not to write on every post on this forum "nice, gj, ty, wow, etc".

    Me for example, i`m on this forum for over 3 years, i was reading, taking a peek on all that you guys share, for over 2 weeks, i decided to start a l2 server, soo, i bought some server files(clean ones), and no i`m starting to implement things in it....

    This community board it`s heaven :P, but because i don`t have activity on forum, i won`t test it.

    Should i start  comment on all the topics on the forum so i can make "activity"?

     

    Thank you, and once again, it looks awesom.... Good Job.

×
×
  • Create New...