Please Help custom server Build
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
-
- Posts: 16
- Joined: Sat Sep 25, 2010 7:27 am
Please Help custom server Build
Hi, we are a group of friends and we decided to create our own L2j private server to play together via LAN.
The server will be build on a old AMD Athlon XP 2600+ with 1gb of Ram, running Ubuntu 9.10 and will handle 4-5 players only connected by a small switch, is that enough or we'll experience lags?
Will we be able to create 2 server channels one for low rates and the other for high rates, in order to use the first one to enjoy the game and the other dedicated to pvp?
BTW for the moment we just downloaded the datapack and the server files, fixed the rates and some minor things such as setting the weapon/armor cost to 1 adena... but we're having problems in modifying NPC shop in order to add items, in particular we want blessed scroll and other unshoppable items to be in the shop, how do we do?
We found how to add items to a shop, but in case we want to create a completely new shop is that possible?
If we want to create a custom necklace (not modify the values of an existig one) how do we proceed?
Ty for u all
The server will be build on a old AMD Athlon XP 2600+ with 1gb of Ram, running Ubuntu 9.10 and will handle 4-5 players only connected by a small switch, is that enough or we'll experience lags?
Will we be able to create 2 server channels one for low rates and the other for high rates, in order to use the first one to enjoy the game and the other dedicated to pvp?
BTW for the moment we just downloaded the datapack and the server files, fixed the rates and some minor things such as setting the weapon/armor cost to 1 adena... but we're having problems in modifying NPC shop in order to add items, in particular we want blessed scroll and other unshoppable items to be in the shop, how do we do?
We found how to add items to a shop, but in case we want to create a completely new shop is that possible?
If we want to create a custom necklace (not modify the values of an existig one) how do we proceed?
Ty for u all
- jurchiks
- Posts: 6769
- Joined: Sat Sep 19, 2009 4:16 pm
- Location: Eastern Europe
Re: Please Help custom server Build
Creation of custom items involves client modifying, we don't provide info about that here.
Custom shops are the same as any other shop, either buylist in database (merchant_buylists & merchant_shopids) or an .xml file in data/multisell, examples there should be enough. The NPC must be L2Merchant in npc table, his htm's go into data/html/merchant (file extension .htm, without L), bypass for multisells (.xml) is
<a action="bypass -h npc_%objectId%_multisell NAME OF THE MULTISELL FILE without extension">name of the link</a>
and for buylists -
<a action="bypass -h npc_%objectId%_Buy ID OF THE BUYLIST FROM DB">name of the link</a>
Custom shops are the same as any other shop, either buylist in database (merchant_buylists & merchant_shopids) or an .xml file in data/multisell, examples there should be enough. The NPC must be L2Merchant in npc table, his htm's go into data/html/merchant (file extension .htm, without L), bypass for multisells (.xml) is
<a action="bypass -h npc_%objectId%_multisell NAME OF THE MULTISELL FILE without extension">name of the link</a>
and for buylists -
<a action="bypass -h npc_%objectId%_Buy ID OF THE BUYLIST FROM DB">name of the link</a>
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
-
- Posts: 154
- Joined: Sat Dec 25, 2010 10:09 pm
- Location: Portugal
Re: Please Help custom server Build
Cant we change that for:jurchiks wrote: <a action="bypass -h npc_%objectId%_multisell NAME OF THE MULTISELL FILE without extension">name of the link</a>
and for buylists -
<a action="bypass -h npc_%objectId%_Buy ID OF THE BUYLIST FROM DB">name of the link</a>
<center>
<button action="bypass -h npc_%objectId%_multisell 1234" value="ABC" width=200 height=21 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df">
</center>
or
<button action="bypass -h npc_%objectId%_Buy 1234" value="ABC" width=200 height=21 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df">
??
And another simple question. Imagine we have 2 or more .htm files to the same NPC.
Is this link correct?
<button action=”bypass –h npc_%objectId%_Chat 1” value="ABCD" width=200 height=21 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df">
Ty
My teachers XD: jurchiks
- jurchiks
- Posts: 6769
- Joined: Sat Sep 19, 2009 4:16 pm
- Location: Eastern Europe
Re: Please Help custom server Build
It's the same, except '<a action...' shows a blue link, but '<button action...' shows an actual button.
And yes, 'Chat 1' will always link to 'npcId-1.htm' from any page. BUT it will only work for default htmls, not event ones or similar. I.E. if npc type is L2Npc then 'Chat 1' will always show a html from 'html/default' and nowhere else. Unless you modify the bypass ofc.
And yes, 'Chat 1' will always link to 'npcId-1.htm' from any page. BUT it will only work for default htmls, not event ones or similar. I.E. if npc type is L2Npc then 'Chat 1' will always show a html from 'html/default' and nowhere else. Unless you modify the bypass ofc.
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
-
- Posts: 154
- Joined: Sat Dec 25, 2010 10:09 pm
- Location: Portugal
Re: Please Help custom server Build
ok, so Should work on and New NPC (made by me) Type L2Merchant.
I dont know what is happening, because Is just not working. I changed the links to buttons. Nothing else. And dont work. =(
Is a copy for now from the Merchant in giran (Wizzard Armor) but changed to buttons and Multisell.
Any other way to link the Htmls??
Thanks.
Edit:
Changed the button to Link again and it works. Need to see what I wrote wrong. But the multisell is not working =(
Edit2:
ahahahah XD Multisell was not working because I forgot to close the production item XD "/>" this.
I dont know what is happening, because Is just not working. I changed the links to buttons. Nothing else. And dont work. =(
Is a copy for now from the Merchant in giran (Wizzard Armor) but changed to buttons and Multisell.
Any other way to link the Htmls??
Thanks.
Edit:
Changed the button to Link again and it works. Need to see what I wrote wrong. But the multisell is not working =(
Edit2:
ahahahah XD Multisell was not working because I forgot to close the production item XD "/>" this.
Last edited by Ralm on Wed Jan 19, 2011 7:47 pm, edited 1 time in total.
My teachers XD: jurchiks
- jurchiks
- Posts: 6769
- Joined: Sat Sep 19, 2009 4:16 pm
- Location: Eastern Europe
Re: Please Help custom server Build
try with capital M.
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
-
- Posts: 154
- Joined: Sat Dec 25, 2010 10:09 pm
- Location: Portugal
Re: Please Help custom server Build
XD all is working now LOL
Ive notice when changing Buffer Htm that the server is really specific, like one space more is enought for not working. IS anoiying =S
But all is working now as it should thanks XD
Ive notice when changing Buffer Htm that the server is really specific, like one space more is enought for not working. IS anoiying =S
But all is working now as it should thanks XD
My teachers XD: jurchiks
- jurchiks
- Posts: 6769
- Joined: Sat Sep 19, 2009 4:16 pm
- Location: Eastern Europe
Re: Please Help custom server Build
That's because commands are not split with \\s+ regex, but with a simple space. Shouldn't matter much for bypasses though, mostly voiced commands.
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
-
- Posts: 154
- Joined: Sat Dec 25, 2010 10:09 pm
- Location: Portugal
Re: Please Help custom server Build
I have no Ideia on what are you talking about XDjurchiks wrote:That's because commands are not split with \\s+ regex, ....

Can you teach me??

My teachers XD: jurchiks
- jurchiks
- Posts: 6769
- Joined: Sat Sep 19, 2009 4:16 pm
- Location: Eastern Europe
Re: Please Help custom server Build
It's all about bypass handlers and a few client packet handling. You should learn some more basic stuff first.
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
-
- Posts: 154
- Joined: Sat Dec 25, 2010 10:09 pm
- Location: Portugal
Re: Please Help custom server Build
XD True. That I know. As you refered before I just asked about it =) I got curious.
One simple thing: Where is java.config ?? To edit enchant rate.
One simple thing: Where is java.config ?? To edit enchant rate.
My teachers XD: jurchiks
- dark911_ro
- Posts: 80
- Joined: Wed Sep 08, 2010 11:48 am
- Location: Romania
Re: Please Help custom server Build
enchant rate configs are in : gameserver/config/Character.propertiesRalm wrote:XD True. That I know. As you refered before I just asked about it =) I got curious.
One simple thing: Where is java.config ?? To edit enchant rate.
-
- Posts: 154
- Joined: Sat Dec 25, 2010 10:09 pm
- Location: Portugal
Re: Please Help custom server Build
Yes but if you read better:
"Defaul needs to be verified, Must be changed here and in Config.Java If not Correct"
This statment is in Character.properties file!!
"Defaul needs to be verified, Must be changed here and in Config.Java If not Correct"
This statment is in Character.properties file!!
My teachers XD: jurchiks
- dark911_ro
- Posts: 80
- Joined: Wed Sep 08, 2010 11:48 am
- Location: Romania
Re: Please Help custom server Build
For your mental safety .. resume it to character.properties . 
Else start downloading eclipse and have fun modifying core files.

Else start downloading eclipse and have fun modifying core files.
-
- Posts: 154
- Joined: Sat Dec 25, 2010 10:09 pm
- Location: Portugal
Re: Please Help custom server Build
What the fck?? For my mental Safety?? who you think you are?
And who tell you that I havent allready Eclipse??
And who tell you that I havent allready Eclipse??
My teachers XD: jurchiks