Jump to content
  • 0

Store items revolving


kiova

Question


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.00
  • Content Count:  59
  • Reputation:   0
  • Joined:  09/02/12
  • Last Seen:  

Hi all. I've been wanting to create a dynamic shop for my server, but not the typical regular store that we all know. I would create a store to choose between a number of items that the store and the fence exchanging each week / month etc.. I do not know if the river is possible to do that, maybe by database. The truth is not where to start. My idea is that the npc to sell a series of 10 items and somewhere in the script and add 10 more items npc itself every so often incorporate them into the store and spent 1 day retire. Someone could help me with this idea and tell me if it is possible to carry it out? Thanks in advance

Sorry for the translation. Use google translator

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   344
  • Joined:  10/17/12
  • Last Seen:  

This is possible yes, unfortunately im busy this weekend and wont be to much help.

Basically you need dynamic shop

a base item list

And a dynamic item list

combine the 2 list when player invokes the shop.

On phone sorry if confusing

Edit: if your just using zeny might be easier to just callshop with a few different invusible shops

Edited by Stolao
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1132
  • Joined:  05/27/12
  • Last Seen:  

If you're using my Quest Shop, you can write this at the beginning of OnInit to reset the shops initially:

    for(set .@i,1; .@i<=getarraysize(.Shops$); set .@i,.@i+1)
       npcshopitem "qshop"+.@i,909,10;

Then, you can use some clock trigger event to set a variable which will dictate (through conditionals) which items to Add(), then execute the OnInit label again. Done. :>

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.00
  • Content Count:  59
  • Reputation:   0
  • Joined:  09/02/12
  • Last Seen:  

Euphy not seen your quest npc shop, but if your npc prodria do I could spend the script to test it?. Is that I would like to implement something like this on my server

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
Answer this question...

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