There was a previous post in the old forums about someone asking about if it was possible to have an all-in-one npc that could be a shop and other things.
I have the idea that this can be achieved via having a link that doesnt go to the next html code of the npc, but links to an external npcs chat, so that the current chat window opens up a different npc's chat window allowing you to access everything in one NPC.
I do not have the time right now to test this out, but all i think that is the hard part is getting the chat to open an external chat.
Hope this Helped!
All in one Shop/GK/Buffer/Etc.
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
-
- Posts: 16
- Joined: Wed Apr 15, 2009 10:19 pm
- Location: San Diego, California
-
- Posts: 16
- Joined: Wed Apr 15, 2009 10:19 pm
- Location: San Diego, California
Re: All in one Shop/GK/Buffer/Etc.
Any News on this?
-
- Posts: 31
- Joined: Fri Dec 07, 2007 4:03 pm
Re: All in one Shop/GK/Buffer/Etc.
I am working in an All in One Npc, it's not completed yet but if there is someone interested i can share it. You don't need to link to external npcs html, you only need a npc type merchant and make the buffer and the gatekeeper in jython.
P.D. Sorry for my bad english
P.D. Sorry for my bad english
-
- Posts: 750
- Joined: Sun Dec 07, 2008 7:01 pm
- Location: Poland
Re: All in one Shop/GK/Buffer/Etc.
It's definitely possible.
I did it for my server back around the end of November.
Made a custom class for mine. And yes, extending merchant is the best way so you don't have to modify any of the store security in place for packets/handlers.
But mine has:
Teleport
Buffs
Augment
Warhouse (all WH functions)
Symbols
Subclass
VIP area
Rules
Server Info
It's actually pretty slick and I've not seen any other server with an AIO npc OR with an NPC as cleanly done. I'm anal retentive about my NPC and spent a lot of time getting it just right.
Btw, no jython, all the bypass stuff is handled within the custom class. It was my first real project on L2J and helped me learn a lot. Really if you want it, I suggest starting with the L2MerchantInstance file, copy it into a new instance, and just start playing with it. Reverse engineer, see how the other instances handle their bypass functions and just add them one at a time, making modifications where needed.
I did it for my server back around the end of November.
Made a custom class for mine. And yes, extending merchant is the best way so you don't have to modify any of the store security in place for packets/handlers.
But mine has:
Teleport
Buffs
Augment
Warhouse (all WH functions)
Symbols
Subclass
VIP area
Rules
Server Info
It's actually pretty slick and I've not seen any other server with an AIO npc OR with an NPC as cleanly done. I'm anal retentive about my NPC and spent a lot of time getting it just right.
Btw, no jython, all the bypass stuff is handled within the custom class. It was my first real project on L2J and helped me learn a lot. Really if you want it, I suggest starting with the L2MerchantInstance file, copy it into a new instance, and just start playing with it. Reverse engineer, see how the other instances handle their bypass functions and just add them one at a time, making modifications where needed.
-
- L2j Veteran
- Posts: 3437
- Joined: Wed Apr 30, 2008 8:53 am
- Location: Russia
Re: All in one Shop/GK/Buffer/Etc.
I remember 5 or 10 contribs "all in one"
Search old forum.
Search old forum.
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
public static final int PI = 3.1415926535897932384626433832795;
-
- Posts: 16
- Joined: Wed Apr 15, 2009 10:19 pm
- Location: San Diego, California
Re: All in one Shop/GK/Buffer/Etc.
I wanted to extend it to anotehr npc chat, because, lets say for example, im using House's buffer (best buffer ever, but needs some formatting, maybe use icons instead. too bad he stopped developing it.) Thing is, if i added the shop to the buffer, i would need to add a new html page (no problem, but im a lil lazy ) so i can have the home page. But this wouldnt work also, because House's buffer isnt set as an L2Merchant, its class is L2Buffer. And thats why i was wondering if the external link is possible.
-
- Posts: 5
- Joined: Fri May 29, 2009 1:15 am
Re: All in one Shop/GK/Buffer/Etc.
It would be awsome if someone post here a good All-in-One NPC for Gracia Final.