Page 1 of 2
Add sell button to GMShop
Posted: Sat Nov 08, 2014 3:06 pm
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
Re: Add sell button to GMShop
Posted: Sat Nov 08, 2014 4:05 pm
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>
Re: Add sell button to GMShop
Posted: Sat Nov 08, 2014 4:21 pm
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
Re: Add sell button to GMShop
Posted: Sat Nov 08, 2014 8:38 pm
by II337
There is no multisell file with that ID.
There is no buylist folder in game/data...
Re: Add sell button to GMShop
Posted: Sun Nov 09, 2014 12:39 pm
by HappyLDE
Copy the multisell file there maybe (or buylist one).
Re: Add sell button to GMShop
Posted: Sun Nov 09, 2014 12:48 pm
by II337
Which one?
Re: Add sell button to GMShop
Posted: Sun Nov 09, 2014 1:23 pm
by HappyLDE
II337 wrote:I edited my whole GMShop
You said you edited your gmshop xml files, copy those.
Re: Add sell button to GMShop
Posted: Sun Nov 09, 2014 1:26 pm
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
Re: Add sell button to GMShop
Posted: Sun Nov 09, 2014 5:17 pm
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

Re: Add sell button to GMShop
Posted: Sun Nov 09, 2014 5:42 pm
by II337
Thanks looks good. but there is no buylist folder on my server?
Should I add it to multisell?
Re: Add sell button to GMShop
Posted: Sun Nov 09, 2014 5:45 pm
by dasoldier
It should be there.
Game>data>buylists>custom ?
Re: Add sell button to GMShop
Posted: Sun Nov 09, 2014 6:46 pm
by II337
Nope there is not even a buylist folder

Re: Add sell button to GMShop
Posted: Sun Nov 09, 2014 7:27 pm
by Stalitsa
II337 wrote:Nope there is not even a buylist folder

you better tell us your Revision numbers to help you!!!

Re: Add sell button to GMShop
Posted: Sun Nov 09, 2014 7:45 pm
by II337
Data:10421
Server : 6622
Re: Add sell button to GMShop
Posted: Sun Nov 09, 2014 8:37 pm
by II337
I have a custom_merchant_buylist table.
Mabye it works over this