Page 1 of 1
How to access L2VillageMasterInstance onBypassFeedback
Posted: Wed Nov 26, 2014 7:39 pm
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?
Re: How to access L2VillageMasterInstance onBypassFeedback
Posted: Wed Nov 26, 2014 7:58 pm
by Sdw
You should be able to that with listener
Check the custom/listener package.
Re: How to access L2VillageMasterInstance onBypassFeedback
Posted: Wed Nov 26, 2014 8:00 pm
by HappyLDE
Thanks i will check that!
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.
Re: How to access L2VillageMasterInstance onBypassFeedback
Posted: Wed Nov 26, 2014 10:29 pm
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 !"); } }
Re: How to access L2VillageMasterInstance onBypassFeedback
Posted: Thu Nov 27, 2014 4:33 pm
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).
Re: How to access L2VillageMasterInstance onBypassFeedback
Posted: Fri Nov 28, 2014 7:13 pm
by HappyLDE
Ok what this post is about: talk to any npc from distance (any distance or position).
Any idea?

Re: How to access L2VillageMasterInstance onBypassFeedback
Posted: Fri Nov 28, 2014 8:26 pm
by Sdw
Disable it in RequestBypassToServer