Archived copy of warcraft-source.com, the Warcraft: Source (WCS) forum (2007–2011), rebuilt from the Internet Archive by wc3mods.net. This page was captured on 2010-09-01 (original capture). Home · Forum · All archived topics · Downloads

Author Topic: Shop item Category’s  (Read 79 times)

mister-man

  • Level 0 Beginner
  • Posts: 10
Shop item Category’s
« on: August 27, 2010, 02:20:35 PM »

Hallo community!
We are planning to restructured our wcs shop menu. But I can’t find how I can set the maximum number of items for each category a player can buy. And I can’t find how can I sort the items to a category, because at this time a player buys of category one and two a item. Now he should buy a second of category two. But the bag is full.
I would structure the shop so, that in every shop 1, 2, 3 , etc you can buy 2 Items (or 3).

Thanks a lot for your helping!

mister-man

  • Level 0 Beginner
  • Posts: 10
Re: Shop item Category’s
« Reply #1 on: August 31, 2010, 11:58:48 AM »
HallO!

And a secount Question:
Can I add more than 9 shop categorys?
The WCS shows me 10 an 11 but i cant choose it.

MiB

  • Custom Coder
  • Level 7 Expert
  • Posts: 1039
Re: Shop item Category’s
« Reply #2 on: August 31, 2010, 12:48:27 PM »
No you can't.

~MiB

~The Sig Changes Each Time~
~The Sigs Them Selfs Are By Hybrid Click The Sigs To See His Other Sigs~

mister-man

  • Level 0 Beginner
  • Posts: 10
Re: Shop item Category’s
« Reply #3 on: August 31, 2010, 01:58:06 PM »
Okay, I can use 9 categories in the shop.
Can set the max amount of items for every category?

E.G. :
1. Power UP
2. HP Items
3. XP Items
4. ….
5…….
6………….
7……………
8………………
9………………….

1. 1 Item
2. 2 Item´s
3. 1 Item
4. 3 Items
Etc.


Is it possible?

mister-man

  • Level 0 Beginner
  • Posts: 10
Re: Shop item Category’s
« Reply #4 on: Today at 09:53:29 AM »
Halo

Is this the part in the shopcode, where the maximum number of shop items is set?

Code: [Select]
          // refresh the steamid/ip
          es_keycreate server_var(wcs_icat) server_var(wcs_userid)
          es_keysetvalue server_var(wcs_icat) server_var(wcs_userid) id server_var(wcs_id)
          // check if second is free
          es_keygetvalue wcs_icmd2 server_var(wcs_icat) server_var(wcs_userid) icmd2
          es_strlen wcs_strlen server_var(wcs_icmd2)
          if (server_var(wcs_strlen) <= 1) then es_xset wcs_islot "2"
          // check if first is free
          es_keygetvalue wcs_icmd1 server_var(wcs_icat) server_var(wcs_userid) icmd1
          es_strlen wcs_strlen server_var(wcs_icmd1)
          if (server_var(wcs_strlen) <= 1) then es_xset wcs_islot "1"
          if (server_var(wcs_islot) = "0") do

Can I extend it or modefi like my last question?