Page 1 of 2

Please Help custom server Build

Posted: Sat Sep 25, 2010 8:16 am
by DonaldDuck
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

Re: Please Help custom server Build

Posted: Sat Sep 25, 2010 9:12 am
by jurchiks
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>

Re: Please Help custom server Build

Posted: Wed Jan 19, 2011 7:05 pm
by Ralm
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>
Cant we change that for:
<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

Re: Please Help custom server Build

Posted: Wed Jan 19, 2011 7:15 pm
by jurchiks
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.

Re: Please Help custom server Build

Posted: Wed Jan 19, 2011 7:34 pm
by Ralm
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.

Re: Please Help custom server Build

Posted: Wed Jan 19, 2011 7:46 pm
by jurchiks
try with capital M.

Re: Please Help custom server Build

Posted: Wed Jan 19, 2011 7:52 pm
by Ralm
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

Re: Please Help custom server Build

Posted: Wed Jan 19, 2011 8:50 pm
by jurchiks
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.

Re: Please Help custom server Build

Posted: Wed Jan 19, 2011 8:56 pm
by Ralm
jurchiks wrote:That's because commands are not split with \\s+ regex, ....
I have no Ideia on what are you talking about XD
:lol:

Can you teach me?? :D

Re: Please Help custom server Build

Posted: Wed Jan 19, 2011 9:00 pm
by jurchiks
It's all about bypass handlers and a few client packet handling. You should learn some more basic stuff first.

Re: Please Help custom server Build

Posted: Wed Jan 19, 2011 9:04 pm
by Ralm
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.

Re: Please Help custom server Build

Posted: Wed Jan 19, 2011 9:12 pm
by dark911_ro
Ralm 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.
enchant rate configs are in : gameserver/config/Character.properties

Re: Please Help custom server Build

Posted: Wed Jan 19, 2011 9:34 pm
by Ralm
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!!

Re: Please Help custom server Build

Posted: Wed Jan 19, 2011 10:00 pm
by dark911_ro
For your mental safety .. resume it to character.properties . :)

Else start downloading eclipse and have fun modifying core files.

Re: Please Help custom server Build

Posted: Wed Jan 19, 2011 10:03 pm
by Ralm
What the fck?? For my mental Safety?? who you think you are?
And who tell you that I havent allready Eclipse??