Page 1 of 1

npc trader/clas tutorial page

Posted: Wed Jan 26, 2011 3:55 pm
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

Re: npc trader/clas tutorial page

Posted: Wed Jan 26, 2011 4:10 pm
by _DS_
XD

Re: npc trader/clas tutorial page

Posted: Wed Jan 26, 2011 4:39 pm
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>  

Re: npc trader/clas tutorial page

Posted: Wed Jan 26, 2011 5:01 pm
by shinomidefuego
wtf? -.- .-.

Re: npc trader/clas tutorial page

Posted: Wed Jan 26, 2011 5:39 pm
by trophy
sry dont't understand

Re: npc trader/clas tutorial page

Posted: Wed Jan 26, 2011 5:55 pm
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....

Re: npc trader/clas tutorial page

Posted: Sun Jan 30, 2011 2:32 pm
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.

Re: npc trader/clas tutorial page

Posted: Sat Feb 05, 2011 11:38 pm
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 ?

Re: npc trader/clas tutorial page

Posted: Sun Feb 06, 2011 4:52 am
by Ralm
NPC type is L2Merchant??

Re: npc trader/clas tutorial page

Posted: Sun Feb 06, 2011 8:30 am
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

Re: npc trader/clas tutorial page

Posted: Sun Feb 06, 2011 9:17 pm
by Ralm
I think your Multisell file ( .xml) is not well writen. Check when loading the multisell if gives any error at server.