Jump to content
Cydh

Item and Point Shop

Recommended Posts

commit: 32fd3ee, 1ce4dbf
suggestion: Specialty Shops

 

 

conf/misc.conf

// Is item's price at item/point shop discountable?
// 0 = No (Default)
// 1 = Item shops
// 2 = Point shops
// 3 = Item & point shops
discount_item_point_shop: 0

Itemshop
Makes shop NPC sells items with item currency 

-%TAB%itemshop%TAB%<NPC Name>%TAB%<sprite id>,<costitemid>{:<discount>},<itemid>:<price>{,<itemid>:<price>...}

example:

prontera,155,158,4 itemshop ItemShop-Test1 123,501,1201:3,1202:5

(makes the price is affected by discount)

prontera,155,160,4 itemshop ItemShop-Test2 123,502:1,2201:3,2202:5

 
 
Pointshop
Makes shop NPC sells items with character/account variable as cost 

-%TAB%pointshop%TAB%<NPC Name>%TAB%<sprite id>,<costvariable>{:<discount>},<itemid>:<price>{,<itemid>:<price>...}

example:

prontera,155,166,4 pointshop PointShop-Test3 123,#votepoints,678:5,607:5,608:3

(makes the price is affected by discount)

prontera,155,162,4 pointshop PointShop-Test1 123,points:1,501:1,502:2

Link to comment
Share on other sites

hi cydh! can i suggest a stock system in our itemshop and pointshop? for example:

 

-%TAB%pointshop%TAB%<NPC Name>%TAB%<sprite id>,<costvariable>{:<discount>},<itemid>:<price>:<stocks>{,<itemid>:<price>:<stocks>...}

 

if i input 0 = unlimited

 

then if a player purchased an item with 10 or 20 stocks are left, it will show a message like this,

 

the '%s' has '%d' stocks left.

 

thanks!

Link to comment
Share on other sites

I was playing with ur suggestion, lol, I got memleak. I broke it somewhere. :o

 

well, since u're the suggesting it, like or not, I force u to test this. /gg

the stock will be shown when u open the buylist.

 

NOTE: I tried to make it 'restockable', but it only helped me to make good cycle.  /panic

newshops-expandwithstock.diff

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.