npc trader/clas tutorial page

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
trophy
Posts: 16
Joined: Mon Jan 17, 2011 9:16 pm

npc trader/clas tutorial page

Post by trophy »

If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision Number:4488
L2JDP Revision Number:7761
hello XD i hope to have been posted in right place, i need to ask you two bit things, XD
first how i can edit the tutorial page opened to make a class exchange wiouth quest? not the html but the item need to class, default is nothings but i want to add some item to class XD
Second i don't know how to create a npc trader (not the seller i know how to make a custom npc that sell item for only adena), anyone can tell me how create a custom npc that trade item for item? not only adena but item XD
sry for my bad english XD
_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

Re: npc trader/clas tutorial page

Post by _DS_ »

XD
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
User avatar
dark911_ro
Posts: 80
Joined: Wed Sep 08, 2010 11:48 am
Location: Romania

Re: npc trader/clas tutorial page

Post by dark911_ro »

Code: Select all

  <item id="2">        <!-- Adena -->        <ingredient count="5400" id="57" /> <-- change ingredient id and count with what u want -->            <!-- Wooden Breastplate -->        <production count="1" id="23" />    </item>  
User avatar
shinomidefuego
Posts: 122
Joined: Thu Jun 28, 2007 5:37 pm
Location: Venezuela
Contact:

Re: npc trader/clas tutorial page

Post by shinomidefuego »

wtf? -.- .-.
Image
MMMMMmmmmmMMMMM
trophy
Posts: 16
Joined: Mon Jan 17, 2011 9:16 pm

Re: npc trader/clas tutorial page

Post by trophy »

sry dont't understand
User avatar
Flashy
Posts: 310
Joined: Mon Sep 29, 2008 11:49 am
Location: Germany

Re: npc trader/clas tutorial page

Post by Flashy »

Trader
http://trac.l2jserver.com/wiki/multisell

NPC:
npc Table ---> active in config. custom Tables
copy from npc table the npc, what u want edit to custom_npc.
Edit the id to a new id. then edit the stats etc.

htm: same like the npc id.. if u use npc with id 99999 ur htm in /data/htm should called 99999.htm.
same for mulltisell the id is part of the mulisell xml name.

so it was a very short explaination, but try it, look to other npc's and multisells how it realized and try to make ur own one....
Ralm
Posts: 154
Joined: Sat Dec 25, 2010 10:09 pm
Location: Portugal

Re: npc trader/clas tutorial page

Post by Ralm »

yeah in the HTML set the link to a Multisell list. For example:

Code: Select all

<button action="bypass -h npc_%objectId%_multisell 50001" value="weapons" width=200 height=21 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df">
So this is for a button where the value="weapons" is what appears to the player and the 50001 is the nr of the multisell file you have created.

Code: Select all

<a action="bypass -h npc_%objectId%_multisell 50001">Weapons</a>
The same thing in normal link.

Now Press Board Index(at the top in the forum) and use search with the right keywords.

Cya

P.S.: how to do a XML list?? see the files allready there, compare, and dark911_ro allready shown.
My teachers XD: jurchiks
Bani
Posts: 21
Joined: Sun Jan 30, 2011 11:55 pm

Re: npc trader/clas tutorial page

Post by Bani »

I got a problem with multisell also.

I am using correct links etc but the multisell won't connect to the merchant.

Any ideas ?
Ralm
Posts: 154
Joined: Sat Dec 25, 2010 10:09 pm
Location: Portugal

Re: npc trader/clas tutorial page

Post by Ralm »

NPC type is L2Merchant??
My teachers XD: jurchiks
Bani
Posts: 21
Joined: Sun Jan 30, 2011 11:55 pm

Re: npc trader/clas tutorial page

Post by Bani »

Well what i did do is make almost a clean copy of Lector ( Weapons Dealer in Talking Island Village) and yes it is a L2Merchant type. When i SHIFT+Click on him he has Shop between the buttons. But when i click him everything loads up (htm) but when i click the button where targets are set as multisell nothing comes up :/

EDIT: I have tryed to connect to other multisell s and they are working fine ... I will try to do something with the multisells :)
EDIT 2: This is what i am using conflict-npc. Vesper shop is working fine for me but i can't get GM Shop to work properly :/. It comes without SQL so maybe i made a mistake there or ?

Bani
Ralm
Posts: 154
Joined: Sat Dec 25, 2010 10:09 pm
Location: Portugal

Re: npc trader/clas tutorial page

Post by Ralm »

I think your Multisell file ( .xml) is not well writen. Check when loading the multisell if gives any error at server.
My teachers XD: jurchiks
Post Reply