How to access L2VillageMasterInstance onBypassFeedback

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
User avatar
HappyLDE
Posts: 123
Joined: Tue Sep 10, 2013 6:22 pm
Location: Belgium
Contact:

How to access L2VillageMasterInstance onBypassFeedback

Post by HappyLDE »

Hello i need to access for example L2VillageMasterInstance onBypassFeedback from my script so that i can work with it, any idea?

I have one npc that will access multiple npcs types, L2VillageMasterInstance being one.

Edit: For now i have something like this.

Code: Select all

final L2NpcTemplate template = NpcData.getInstance().getTemplate(30120);L2VillageMasterInstance villageMaster = new L2VillageMasterInstance(30120, template);villageMaster.onBypassFeedback(player, "Clan");
But when the window opens, when i click any link inside, window closes and nothing happens, like if I'm too far from the npc. How to fix that?
Last edited by HappyLDE on Wed Nov 26, 2014 8:15 pm, edited 4 times in total.
Thank you for making L2JServer happen! :D
"If you believe you will fail or succeed, in both ways you are right." - Henry Ford
Sdw
L2j Veteran
L2j Veteran
Posts: 855
Joined: Mon May 03, 2010 8:38 am
Location: France

Re: How to access L2VillageMasterInstance onBypassFeedback

Post by Sdw »

You should be able to that with listener

Check the custom/listener package.
User avatar
HappyLDE
Posts: 123
Joined: Tue Sep 10, 2013 6:22 pm
Location: Belgium
Contact:

Re: How to access L2VillageMasterInstance onBypassFeedback

Post by HappyLDE »

Thanks i will check that! :D

Edit: Doesn't seem to be what I'm looking for or i don't understand how to use it since those listeners are there to listen when something predetermined happens.
Thank you for making L2JServer happen! :D
"If you believe you will fail or succeed, in both ways you are right." - Henry Ford
Sdw
L2j Veteran
L2j Veteran
Posts: 855
Joined: Mon May 03, 2010 8:38 am
Location: France

Re: How to access L2VillageMasterInstance onBypassFeedback

Post by Sdw »

Code: Select all

     @RegisterEvent(EventType.ON_PLAYER_BYPASS)    @RegisterType(ListenerRegisterType.GLOBAL_PLAYERS)    public void onPlayerBypass(OnPlayerBypass event)    {        if (event.getCommand().equals("create_clan"))        {            _log.info(event.getActiveChar() + " attempts to create a clan !");        }    }
User avatar
HappyLDE
Posts: 123
Joined: Tue Sep 10, 2013 6:22 pm
Location: Belgium
Contact:

Re: How to access L2VillageMasterInstance onBypassFeedback

Post by HappyLDE »

Thank you it's actually the other way around, have one npc that we talk to, then we can access L2VillageMasterInstance like i did in the first post.

Now it works but only the initial screen, the links inside that i get don't actually work (like when we are too far from a npc that we talked to).
Thank you for making L2JServer happen! :D
"If you believe you will fail or succeed, in both ways you are right." - Henry Ford
User avatar
HappyLDE
Posts: 123
Joined: Tue Sep 10, 2013 6:22 pm
Location: Belgium
Contact:

Re: How to access L2VillageMasterInstance onBypassFeedback

Post by HappyLDE »

Ok what this post is about: talk to any npc from distance (any distance or position). 8)

Any idea? :mrgreen:
Thank you for making L2JServer happen! :D
"If you believe you will fail or succeed, in both ways you are right." - Henry Ford
Sdw
L2j Veteran
L2j Veteran
Posts: 855
Joined: Mon May 03, 2010 8:38 am
Location: France

Re: How to access L2VillageMasterInstance onBypassFeedback

Post by Sdw »

Disable it in RequestBypassToServer
Post Reply