Jump to content

Item and Point Shop


Cydh

Recommended Posts


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  155
  • Topics Per Day:  0.03
  • Content Count:  647
  • Reputation:   16
  • Joined:  11/21/11
  • Last Seen:  

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


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

nice suggestion. make it loud. /heh

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  155
  • Topics Per Day:  0.03
  • Content Count:  647
  • Reputation:   16
  • Joined:  11/21/11
  • Last Seen:  

LOL.. haha


hope my suggestion will be implemented soon :)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  155
  • Topics Per Day:  0.03
  • Content Count:  647
  • Reputation:   16
  • Joined:  11/21/11
  • Last Seen:  

bump bump bump! xD

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

hmm, well. bump will solve nothing. xD I didn't do anything yet /heh

Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

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


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2346
  • Joined:  10/28/11
  • Last Seen:  

can make for hercules?

hercules already have similar features implemented. 

http://hercules.ws/board/topic/3614-christmas-patch-gifto/

Link to comment
Share on other sites

  • 1 year later...

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  68
  • Reputation:   6
  • Joined:  11/29/13
  • Last Seen:  

BUG: Im using v13742

http://postimg.org/image/aq1sjyyln/

Edited by Anime s2
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Forum Manager
  • Topic Count:  282
  • Topics Per Day:  0.06
  • Content Count:  3122
  • Reputation:   1616
  • Joined:  03/26/12
  • Last Seen:  

 

That has nothing to do with this thread. Please post your issue in the appropriate section.

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...