Jump to content
×
×
  • Create New...
  • 0

Private shop


monsterd2w4

Question

14 answers to this question

Recommended Posts

  • 0
  • Honorable Member

It depends how you want to do it, mixed with items you want to place for sale and some items for showcase only, or all the items are just for showcase.

Both ways are possible, but you can wait until 2038 that somebody will code it for you especially for free ?.

 

The principle of operation can be simple or complex, depends how you code it.

Basically the best option is when you set an extra variable for every each item, that it is sellable or not, then block the buy function on those items where that flag has been set.

Also you can mark those items on clientside, to let the players see those items are not for sale.

For a last word, hire a dev if you can't code this for yourself.

  • Love 1
  • Good 1
  • Lmao 1
Link to comment
Share on other sites

  • 0
2 hours ago, Jxxkub said:

Thats not the functionality of a shop.

 

You describing a sort of a 'stand' that showcases items - you let people view them without the ability to buy it.

you let people view them without the ability to buy it.    yah

26 minutes ago, xP3NG3Rx said:

It depends how you want to do it, mixed with items you want to place for sale and some items for showcase only, or all the items are just for showcase.

Both ways are possible, but you can wait until 2038 that somebody will code it for you especially for free ?.

 

The principle of operation can be simple or complex, depends how you code it.

Basically the best option is when you set an extra variable for every each item, that it is sellable or not, then block the buy function on those items where that flag has been set.

Also you can mark those items on clientside, to let the players see those items are not for sale.

For a last word, hire a dev if you can't code this for yourself.

you let people view them without the ability to buy it.

Link to comment
Share on other sites

  • 0
  • Premium

Easy around solution would be to add a new currency that is not used ingame just to use it for viewing the item and call it [Viewing item]?

My only accounts are here and on M2D, Don't trust anyone else from other shitty sites.

Link to comment
Share on other sites

  • 0
6 hours ago, MrQuin said:

Easy around solution would be to add a new currency that is not used ingame just to use it for viewing the item and call it [Viewing item]?


There is an easier way than what you suggested ?
Just pick random number from range 0 to GOLD_MAX (higher number should be more "user-friendly")
and if price==your_number:
return SHOP_SUBHEADER_GC_NOT_ENOUGH_MONEY;

The rest is just python part with interface (uishop) and so on

https://metin2.download/picture/FqIC1d611oE87t0128eZi9URw638cFFe/.gif

I'm not a big fan of adding new solutions when you can use already implemented ones ?

Edited by Metin2 Dev
Core X - External 2 Internal
  • Love 1

.png

Link to comment
Share on other sites

  • 0
2 hours ago, Nirray said:


There is an easier way than what you suggested ?
Just pick random number from range 0 to GOLD_MAX (higher number should be more "user-friendly")
and if price==your_number:
return SHOP_SUBHEADER_GC_NOT_ENOUGH_MONEY;

The rest is just python part with interface (uishop) and so on

https://metin2.download/picture/FqIC1d611oE87t0128eZi9URw638cFFe/.gif

I'm not a big fan of adding new solutions when you can use already implemented ones ?

thanks you ❤️ i love u

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • 0
13 hours ago, Nirray said:


There is an easier way than what you suggested ?
Just pick random number from range 0 to GOLD_MAX (higher number should be more "user-friendly")
and if price==your_number:
return SHOP_SUBHEADER_GC_NOT_ENOUGH_MONEY;

The rest is just python part with interface (uishop) and so on

https://metin2.download/picture/FqIC1d611oE87t0128eZi9URw638cFFe/.gif

I'm not a big fan of adding new solutions when you can use already implemented ones ?

creating system 100% thanks ❤️  today work my system ❤️   https://metin2.download/picture/r3F9504x09DVmF8K988YXgTtGTP6KMUj/.gif   video :D fixxed

13 hours ago, Nirray said:


There is an easier way than what you suggested ?
Just pick random number from range 0 to GOLD_MAX (higher number should be more "user-friendly")
and if price==your_number:
return SHOP_SUBHEADER_GC_NOT_ENOUGH_MONEY;

The rest is just python part with interface (uishop) and so on

https://metin2.download/picture/FqIC1d611oE87t0128eZi9URw638cFFe/.gif

I'm not a big fan of adding new solutions when you can use already implemented ones ?

https://metin2.download/picture/r3F9504x09DVmF8K988YXgTtGTP6KMUj/.gif   video :D fixxed ❤️ 

20 hours ago, Jxxkub said:

As @xP3NG3Rxmentioned above, you either code it yourself, or get a professional that will do it for you.

 https://metin2.download/picture/r3F9504x09DVmF8K988YXgTtGTP6KMUj/.gif  creating 

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Answer this question...

×   Pasted as rich text.   Restore formatting

  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.

  • Recently Browsing   0 members

    • No registered users viewing this page.


  • Metin2 Dev Github
  • Activity

    1. 6

      Owsap Productions

    2. 11

      BUG SAFEBOX disappear stacks ..

    3. 2

      Error no member named SetcCreateTime in Citem

    4. 2

      Need some help with effect slot on pickup system

    5. 1

      GF Pet system "x" level / percent

    6. 1

      disable quest esc

    7. 2

      Navicat Premium 16.1.3 x64

    8. 2

      Join the Metin2 Dev team

    9. 2

      Error no member named SetcCreateTime in Citem

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.