Add sell button to GMShop

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
II337
Posts: 67
Joined: Mon Oct 27, 2014 9:44 pm

Add sell button to GMShop

Post by II337 »

I edited my whole GMShop already but I found out
that It does not have a sell button and I would like to add on?
With which multisell or html should I connect it? I really dont have a clue
User avatar
HappyLDE
Posts: 123
Joined: Tue Sep 10, 2013 6:22 pm
Location: Belgium
Contact:

Re: Add sell button to GMShop

Post by HappyLDE »

You mean to show to users the GMSHop?

Code: Select all

// 55555555 should be the id of the mutisell file<a action="bypass -h npc_%objectId%_multisell 55555555">Sell</a>
Thank you for making L2JServer happen! :D
"If you believe you will fail or succeed, in both ways you are right." - Henry Ford
Stalitsa
Initiates
Initiates
Posts: 88
Joined: Fri Jul 26, 2013 10:16 am

Re: Add sell button to GMShop

Post by Stalitsa »

HappyLDE wrote:You mean to show to users the GMSHop?

Code: Select all

// 55555555 should be the id of the mutisell file<a action="bypass -h npc_%objectId%_multisell 55555555">Sell</a>
i think sell transaction is made by Buylist and not in multisell!

game\data\buylists
Image
II337
Posts: 67
Joined: Mon Oct 27, 2014 9:44 pm

Re: Add sell button to GMShop

Post by II337 »

There is no multisell file with that ID.
There is no buylist folder in game/data...
User avatar
HappyLDE
Posts: 123
Joined: Tue Sep 10, 2013 6:22 pm
Location: Belgium
Contact:

Re: Add sell button to GMShop

Post by HappyLDE »

Copy the multisell file there maybe (or buylist one).
Thank you for making L2JServer happen! :D
"If you believe you will fail or succeed, in both ways you are right." - Henry Ford
II337
Posts: 67
Joined: Mon Oct 27, 2014 9:44 pm

Re: Add sell button to GMShop

Post by II337 »

Which one?
User avatar
HappyLDE
Posts: 123
Joined: Tue Sep 10, 2013 6:22 pm
Location: Belgium
Contact:

Re: Add sell button to GMShop

Post by HappyLDE »

II337 wrote:I edited my whole GMShop
You said you edited your gmshop xml files, copy those.
Thank you for making L2JServer happen! :D
"If you believe you will fail or succeed, in both ways you are right." - Henry Ford
II337
Posts: 67
Joined: Mon Oct 27, 2014 9:44 pm

Re: Add sell button to GMShop

Post by II337 »

I edited my whole gmshop and I need a path to a sell multisell or buylist.....
Cause I want to add a "sell" button. In my multisells I only can buy
dasoldier
Posts: 73
Joined: Wed May 31, 2006 6:26 pm
Location: Holland
Contact:

Re: Add sell button to GMShop

Post by dasoldier »

Hey,

Or just create a new buylist.

Add a file to buylists>custom>1234.xml

Content:

Code: Select all

 <?xml version="1.0" encoding="UTF-8"?><list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/buylist.xsd">    <npcs>        <npc>12345</npc> <!-- YOUR_NPC_ID -->    </npcs>    <item id="57" price="1" /> <!-- adena --></list> 
then add this to your npc:

Code: Select all

<button value="Sell" action="bypass -h npc_%objectId%_buy 1234" width=90 height=21 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df">
And ofcourse change this in general.properties to true
# Default: False
CustomBuyListLoad = True

Good luck :)
II337
Posts: 67
Joined: Mon Oct 27, 2014 9:44 pm

Re: Add sell button to GMShop

Post by II337 »

Thanks looks good. but there is no buylist folder on my server?
Should I add it to multisell?
dasoldier
Posts: 73
Joined: Wed May 31, 2006 6:26 pm
Location: Holland
Contact:

Re: Add sell button to GMShop

Post by dasoldier »

It should be there.
Game>data>buylists>custom ?
II337
Posts: 67
Joined: Mon Oct 27, 2014 9:44 pm

Re: Add sell button to GMShop

Post by II337 »

Nope there is not even a buylist folder :)
Stalitsa
Initiates
Initiates
Posts: 88
Joined: Fri Jul 26, 2013 10:16 am

Re: Add sell button to GMShop

Post by Stalitsa »

II337 wrote:Nope there is not even a buylist folder :)
you better tell us your Revision numbers to help you!!! :wink:
Image
II337
Posts: 67
Joined: Mon Oct 27, 2014 9:44 pm

Re: Add sell button to GMShop

Post by II337 »

Data:10421
Server : 6622
II337
Posts: 67
Joined: Mon Oct 27, 2014 9:44 pm

Re: Add sell button to GMShop

Post by II337 »

I have a custom_merchant_buylist table.
Mabye it works over this
Post Reply