We moved our repositories to BitBucket!

If you can't login or you can't register to the forums do not rise an issue, instead please write to support (at) l2jserver.com

Check our wiki!

Report server issues here

Forum has been updated to phpBB 3.2, let's see if this fixes some minor bugs we had.

Thank you for visiting http://www.l2jserver.com/

Category Mind Blown Question "Choose your adventure"

This is not a Support area! Discuss about the Server here. Non-Server related discussion goes in Off-Topic Discussion.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
LordDimitri
Posts: 4
Joined: Sat Feb 09, 2019 10:59 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

Category Mind Blown Question "Choose your adventure"

Post by LordDimitri » Sun Feb 10, 2019 1:29 am

Well hello everyone I'm looking for a way to have a npc that you just click (or double click) and it teleports you directly or uses a bypass without asking questions.

Reason why I created a account and a login is that for the oldies you'll remember the old "So you want to be a hero" adventure book series that give you a choice page 4 for this page 12 for that well I pulled off code in l2 to make a children book but clicking a button to force a choice on a npc is a two step (L2 has some cute npc's made for kids and some decent areas hidden within the map files) so the million dollar question is there a way to remove the on click and just let it go to the location?

If there is no easy answer it's ok i'll keep working at it might be a interesting event code to make with instances maybe..

No need for build specific I can manage otherwise heck if there is a npc that does a direct call I'll handle the rest and share the script my goal would be a 10 choice so 9440323.xml would equal npc choice 9 first step then 4 ... etc ... I'm also aware loading time this would probably make the starting scream but hey when you want to make someone happy you can have the program already loaded.

Best Regards

User avatar
Zoey76
L2j Inner Circle
L2j Inner Circle
Posts: 6912
Joined: Tue Aug 11, 2009 3:36 am
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

Re: Category Mind Blown Question "Choose your adventure"

Post by Zoey76 » Sun Feb 10, 2019 6:05 pm

Let's see if I understand, you want to click an NPC and then trigger some action?
Using Eclipse 4.12 - OpenJDK11 - MariaDB 10.4 - L2J Server 2.6.1.0

LordDimitri
Posts: 4
Joined: Sat Feb 09, 2019 10:59 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

Re: Category Mind Blown Question "Choose your adventure"

Post by LordDimitri » Sun Feb 10, 2019 9:05 pm

@Zoey76

Thanks for the quick reply.
That's exactly what I'm looking for,I should of had phrased that better.

LordDimitri

LordDimitri
Posts: 4
Joined: Sat Feb 09, 2019 10:59 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

Re: Category Mind Blown Question "Choose your adventure"

Post by LordDimitri » Tue Feb 12, 2019 11:10 pm

@Zoey76

Found my answer and boy I feel like an idiot cause on any server I ever played first place I always go is pagan temple and the npc that does this is triol mirror from pagan temple entrance and is a direct teleport npc.

Well problem solved.

LordDimitri

User avatar
yksdtc
Posts: 76
Joined: Sat Jul 30, 2011 1:16 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

Re: Category Mind Blown Question "Choose your adventure"

Post by yksdtc » Wed Mar 06, 2019 2:49 pm

ActionHandler

Post Reply
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable