Jump to content

Recommended Posts

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

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

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

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

I completely abandoned working on the files for this game. I do not respond to private messages.

.png

Link to comment
Share on other sites

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

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.