function

07/23/2012 07:34 ridhapellz#1
Hi pepole Trying to make Lua Code
But i cant find The Function to Open Store :D anyone can help l
07/23/2012 07:53 Xijezu#2
open_market('market_name')
07/23/2012 07:55 ridhapellz#3
Thanks a lot and i should get the Market ID or name from SQL Right
and one final question i should also change markts items from SQL Too ?
and thank you Very much
07/23/2012 08:28 Xijezu#4
Arcadia.dbo.MarketResource, there you can see the names, e.g. secroute_etc.
so basically it would be open_market('secroute_etc').
What do you mean with change the items from sql ?
If you want to edit your shops you have to edit those. ;)
07/23/2012 08:33 Vake24#5
if u want New shop u must create New SQL with Marketresource
or if u want edit old shop u can edit dbo.Marketresource
([dbo].[MarketResource] (1[sort_id], 2[name], 3[code], 4[price_ratio], 5[huntaholic_ratio])
([dbo].[MarketResource] (1[id in your shop can be 1, 2, 3... or 5000, 5001], 2[the name of the shop like this - Shop_test], 3[this is a code(ID) of item u want sell in shop], 4[% of price], 5[% of huntaholic price(ursa points)])

example of new sql

USE [Arcadia]
GO

INSERT [dbo].[MarketResource] ([sort_id], [name], [code], [price_ratio], [huntaholic_ratio]) VALUES (45109, N'Shop_name', 5032014, 1, 0)