• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

How I can made Next pages in the shop?

Status
Not open for further replies.
Level 6
Joined
Apr 5, 2018
Messages
116
Oh Very very hard to make this. I try Simple GUI Shop System 1.02 tomorrow. How make random hero icon, when player click this icon in the tavern player get random hero unit from 60 custom heroes? Where I can find hero glow, who no only red, I want hero glow for peasant and other no hero models? No only red please, I want team behavioral hero glow to work like paladin. RED TEAM=RED GLOW BLUE TEAM=BLUE GLOW
I don't want Red glow on Teal team.
 
Level 6
Joined
Apr 5, 2018
Messages
116
Last edited:
Level 6
Joined
Apr 5, 2018
Messages
116
I have problem.
 

Attachments

  • aaaaaaaaaaa.png
    aaaaaaaaaaa.png
    2.4 MB · Views: 81
Level 6
Joined
Apr 5, 2018
Messages
116
  • ShopSetup
    • Events
      • Time - Elapsed game time is 0.01 seconds
    • Conditions
    • Actions
      • Hashtable - Create a hashtable
      • Set ShopTable = (Last created hashtable)
      • -------- ShopUnitType is the main shop, the one you place on the map. --------
      • Set ShopUnitType = Sklep Zapomnianego Mędrca
      • -------- ShopTotalCategories is the number of categories you want to have INCLUDING YOUR MAIN SHOP. --------
      • -------- So you set ShopTotalCategories to your number of categories plus one. --------
      • Set ShopTotalCategories = 6
      • -------- ShopCategory 1 is your main shop. --------
      • Set ShopCategory[1] = Sklep Zapomnianego Mędrca
      • -------- The rest is your categories in numerical order. --------
      • Set ShopCategory[2] = Sklep Zapomnianego Mędrca 1
      • Set ShopCategory[3] = Sklep Zapomnianego Mędrca 2
      • Set ShopCategory[4] = Sklep Zapomnianego Mędrca 3
      • Set ShopCategory[5] = Sklep Zapomnianego Mędrca 4
      • Set ShopCategory[6] = Sklep Zapomnianego Mędrca 5
      • -------- ShopSpell 1 is the spell you use for returning to the main shop. --------
      • Set ShopCategoryItem[1] = POWRÓĆ
      • -------- The rest is for the categories in numerical order. --------
      • Set ShopCategoryItem[2] = KATEGORIA
      • Set ShopCategoryItem[3] = KATEGORIA II
      • Set ShopCategoryItem[4] = KATEGORIA III
      • Set ShopCategoryItem[5] = KATEGORIA IV
      • Set ShopCategoryItem[6] = KATEGORIA V
      • Trigger - Run ShopInit <gen> (ignoring conditions)
  • ShopSetup Copy
    • Events
      • Time - Elapsed game time is 0.01 seconds
    • Conditions
    • Actions
      • Hashtable - Create a hashtable
      • Set ShopTable = (Last created hashtable)
      • -------- ShopUnitType is the main shop, the one you place on the map. --------
      • Set ShopUnitType = Sklep Tajniaków
      • -------- ShopTotalCategories is the number of categories you want to have INCLUDING YOUR MAIN SHOP. --------
      • -------- So you set ShopTotalCategories to your number of categories plus one. --------
      • Set ShopTotalCategories = 6
      • -------- ShopCategory 1 is your main shop. --------
      • Set ShopCategory[1] = Sklep Tajniaków
      • -------- The rest is your categories in numerical order. --------
      • Set ShopCategory[2] = Sklep Tajniaków 1
      • Set ShopCategory[3] = Sklep Tajniaków 2
      • Set ShopCategory[4] = Sklep Tajniaków 3
      • Set ShopCategory[5] = Sklep Tajniaków 4
      • Set ShopCategory[6] = Sklep Tajniaków 5
      • -------- ShopSpell 1 is the spell you use for returning to the main shop. --------
      • Set ShopCategoryItem[1] = POWRÓĆ
      • -------- The rest is for the categories in numerical order. --------
      • Set ShopCategoryItem[2] = KATEGORIA
      • Set ShopCategoryItem[3] = KATEGORIA II
      • Set ShopCategoryItem[4] = KATEGORIA III
      • Set ShopCategoryItem[5] = KATEGORIA IV
      • Set ShopCategoryItem[6] = KATEGORIA V
      • Trigger - Run ShopInit <gen> (ignoring conditions)
  • ShopSetup Copy 2
    • Events
      • Time - Elapsed game time is 0.01 seconds
    • Conditions
    • Actions
      • Hashtable - Create a hashtable
      • Set ShopTable = (Last created hashtable)
      • -------- ShopUnitType is the main shop, the one you place on the map. --------
      • Set ShopUnitType = Zbrojownia Zimnej Wojny
      • -------- ShopTotalCategories is the number of categories you want to have INCLUDING YOUR MAIN SHOP. --------
      • -------- So you set ShopTotalCategories to your number of categories plus one. --------
      • Set ShopTotalCategories = 6
      • -------- ShopCategory 1 is your main shop. --------
      • Set ShopCategory[1] = Zbrojownia Zimnej Wojny
      • -------- The rest is your categories in numerical order. --------
      • Set ShopCategory[2] = Zbrojownia Zimnej Wojny 1
      • Set ShopCategory[3] = Zbrojownia Zimnej Wojny 2
      • Set ShopCategory[4] = Zbrojownia Zimnej Wojny 3
      • Set ShopCategory[5] = Zbrojownia Zimnej Wojny 4
      • Set ShopCategory[6] = Zbrojownia Zimnej Wojny 5
      • -------- ShopSpell 1 is the spell you use for returning to the main shop. --------
      • Set ShopCategoryItem[1] = POWRÓĆ
      • -------- The rest is for the categories in numerical order. --------
      • Set ShopCategoryItem[2] = KATEGORIA
      • Set ShopCategoryItem[3] = KATEGORIA II
      • Set ShopCategoryItem[4] = KATEGORIA III
      • Set ShopCategoryItem[5] = KATEGORIA IV
      • Set ShopCategoryItem[6] = KATEGORIA V
      • Trigger - Run ShopInit <gen> (ignoring conditions)
  • ShopSetup Copy 3
    • Events
      • Time - Elapsed game time is 0.01 seconds
    • Conditions
    • Actions
      • Hashtable - Create a hashtable
      • Set ShopTable = (Last created hashtable)
      • -------- ShopUnitType is the main shop, the one you place on the map. --------
      • Set ShopUnitType = Prohibere Mortus
      • -------- ShopTotalCategories is the number of categories you want to have INCLUDING YOUR MAIN SHOP. --------
      • -------- So you set ShopTotalCategories to your number of categories plus one. --------
      • Set ShopTotalCategories = 6
      • -------- ShopCategory 1 is your main shop. --------
      • Set ShopCategory[1] = Prohibere Mortus
      • -------- The rest is your categories in numerical order. --------
      • Set ShopCategory[2] = Prohibere Mortus 1
      • Set ShopCategory[3] = Prohibere Mortus 2
      • Set ShopCategory[4] = Prohibere Mortus 3
      • Set ShopCategory[5] = Prohibere Mortus 4
      • Set ShopCategory[6] = Prohibere Mortus 5
      • -------- ShopSpell 1 is the spell you use for returning to the main shop. --------
      • Set ShopCategoryItem[1] = POWRÓĆ
      • -------- The rest is for the categories in numerical order. --------
      • Set ShopCategoryItem[2] = KATEGORIA
      • Set ShopCategoryItem[3] = KATEGORIA II
      • Set ShopCategoryItem[4] = KATEGORIA III
      • Set ShopCategoryItem[5] = KATEGORIA IV
      • Set ShopCategoryItem[6] = KATEGORIA V
      • Trigger - Run ShopInit <gen> (ignoring conditions)
  • ShopSetup Copy 4
    • Events
      • Time - Elapsed game time is 0.01 seconds
    • Conditions
    • Actions
      • Hashtable - Create a hashtable
      • Set ShopTable = (Last created hashtable)
      • -------- ShopUnitType is the main shop, the one you place on the map. --------
      • Set ShopUnitType = Tajemniczy Market
      • -------- ShopTotalCategories is the number of categories you want to have INCLUDING YOUR MAIN SHOP. --------
      • -------- So you set ShopTotalCategories to your number of categories plus one. --------
      • Set ShopTotalCategories = 6
      • -------- ShopCategory 1 is your main shop. --------
      • Set ShopCategory[1] = Tajemniczy Market
      • -------- The rest is your categories in numerical order. --------
      • Set ShopCategory[2] = Tajemniczy Market 1
      • Set ShopCategory[3] = Tajemniczy Market 2
      • Set ShopCategory[4] = Tajemniczy Market 3
      • Set ShopCategory[5] = Tajemniczy Market 4
      • Set ShopCategory[6] = Tajemniczy Market 5
      • -------- ShopSpell 1 is the spell you use for returning to the main shop. --------
      • Set ShopCategoryItem[1] = POWRÓĆ
      • -------- The rest is for the categories in numerical order. --------
      • Set ShopCategoryItem[2] = KATEGORIA
      • Set ShopCategoryItem[3] = KATEGORIA II
      • Set ShopCategoryItem[4] = KATEGORIA III
      • Set ShopCategoryItem[5] = KATEGORIA IV
      • Set ShopCategoryItem[6] = KATEGORIA V
      • Trigger - Run ShopInit <gen> (ignoring conditions)
  • ShopSetup Copy 5
    • Events
      • Time - Elapsed game time is 0.01 seconds
    • Conditions
    • Actions
      • Hashtable - Create a hashtable
      • Set ShopTable = (Last created hashtable)
      • -------- ShopUnitType is the main shop, the one you place on the map. --------
      • Set ShopUnitType = Hurtownia Im.Braci Wright
      • -------- ShopTotalCategories is the number of categories you want to have INCLUDING YOUR MAIN SHOP. --------
      • -------- So you set ShopTotalCategories to your number of categories plus one. --------
      • Set ShopTotalCategories = 6
      • -------- ShopCategory 1 is your main shop. --------
      • Set ShopCategory[1] = Hurtownia Im.Braci Wright
      • -------- The rest is your categories in numerical order. --------
      • Set ShopCategory[2] = Hurtownia Im.Braci Wright 1
      • Set ShopCategory[3] = Hurtownia Im.Braci Wright 2
      • Set ShopCategory[4] = Hurtownia Im.Braci Wright 3
      • Set ShopCategory[5] = Hurtownia Im.Braci Wright 4
      • Set ShopCategory[6] = Hurtownia Im.Braci Wright 5
      • -------- ShopSpell 1 is the spell you use for returning to the main shop. --------
      • Set ShopCategoryItem[1] = POWRÓĆ
      • -------- The rest is for the categories in numerical order. --------
      • Set ShopCategoryItem[2] = KATEGORIA
      • Set ShopCategoryItem[3] = KATEGORIA II
      • Set ShopCategoryItem[4] = KATEGORIA III
      • Set ShopCategoryItem[5] = KATEGORIA IV
      • Set ShopCategoryItem[6] = KATEGORIA V
      • Trigger - Run ShopInit <gen> (ignoring conditions)
  • ShopSetup Copy 6
    • Events
      • Time - Elapsed game time is 0.01 seconds
    • Conditions
    • Actions
      • Hashtable - Create a hashtable
      • Set ShopTable = (Last created hashtable)
      • -------- ShopUnitType is the main shop, the one you place on the map. --------
      • Set ShopUnitType = Galeria Chwały
      • -------- ShopTotalCategories is the number of categories you want to have INCLUDING YOUR MAIN SHOP. --------
      • -------- So you set ShopTotalCategories to your number of categories plus one. --------
      • Set ShopTotalCategories = 6
      • -------- ShopCategory 1 is your main shop. --------
      • Set ShopCategory[1] = Galeria Chwały
      • -------- The rest is your categories in numerical order. --------
      • Set ShopCategory[2] = Galeria Chwały 1
      • Set ShopCategory[3] = Galeria Chwały 2
      • Set ShopCategory[4] = Galeria Chwały 3
      • Set ShopCategory[5] = Galeria Chwały 4
      • Set ShopCategory[6] = Galeria Chwały 5
      • -------- ShopSpell 1 is the spell you use for returning to the main shop. --------
      • Set ShopCategoryItem[1] = POWRÓĆ
      • -------- The rest is for the categories in numerical order. --------
      • Set ShopCategoryItem[2] = KATEGORIA
      • Set ShopCategoryItem[3] = KATEGORIA II
      • Set ShopCategoryItem[4] = KATEGORIA III
      • Set ShopCategoryItem[5] = KATEGORIA IV
      • Set ShopCategoryItem[6] = KATEGORIA V
      • Trigger - Run ShopInit <gen> (ignoring conditions)
  • ShopSetup Copy 6 Copy
    • Events
      • Time - Elapsed game time is 0.01 seconds
    • Conditions
    • Actions
      • Hashtable - Create a hashtable
      • Set ShopTable = (Last created hashtable)
      • -------- ShopUnitType is the main shop, the one you place on the map. --------
      • Set ShopUnitType = Dom Handlowy Zarckenga
      • -------- ShopTotalCategories is the number of categories you want to have INCLUDING YOUR MAIN SHOP. --------
      • -------- So you set ShopTotalCategories to your number of categories plus one. --------
      • Set ShopTotalCategories = 6
      • -------- ShopCategory 1 is your main shop. --------
      • Set ShopCategory[1] = Dom Handlowy Zarckenga
      • -------- The rest is your categories in numerical order. --------
      • Set ShopCategory[2] = Dom Handlowy Zarckenga 1
      • Set ShopCategory[3] = Dom Handlowy Zarckenga 2
      • Set ShopCategory[4] = Dom Handlowy Zarckenga 3
      • Set ShopCategory[5] = Dom Handlowy Zarckenga 4
      • Set ShopCategory[6] = Dom Handlowy Zarckenga 5
      • -------- ShopSpell 1 is the spell you use for returning to the main shop. --------
      • Set ShopCategoryItem[1] = POWRÓĆ
      • -------- The rest is for the categories in numerical order. --------
      • Set ShopCategoryItem[2] = KATEGORIA
      • Set ShopCategoryItem[3] = KATEGORIA II
      • Set ShopCategoryItem[4] = KATEGORIA III
      • Set ShopCategoryItem[5] = KATEGORIA IV
      • Set ShopCategoryItem[6] = KATEGORIA V
      • Trigger - Run ShopInit <gen> (ignoring conditions)
  • ShopInit
    • Events
    • Conditions
    • Actions
      • Set ShopTempGroup = (Units owned by Neutral Passive matching ((Unit-type of (Matching unit)) Equal to ShopUnitType))
      • Unit Group - Pick every unit in ShopTempGroup and do (Actions)
        • Loop - Actions
          • Set ShopTempGroup = (Units in (Playable map area) owned by (Owner of (Picked unit)))
          • Set ShopTempPoint = (Position of ShopTempUnit)
          • Set ShopInteger = (ShopInteger + 1)
          • Set ShopNumber[1] = ShopTempUnit
          • Hashtable - Save ShopInteger as 1 of (Key (Picked unit)) in ShopTable
          • Custom script: if udg_ShopGroup[udg_ShopInteger] == null then
          • Custom script: set udg_ShopGroup[udg_ShopInteger] = CreateGroup()
          • Custom script: endif
          • Unit Group - Add ShopTempUnit to ShopGroup[ShopInteger]
          • Trigger - Add to ShopCategory <gen> the event (Unit - (Picked unit) Sells an item (from shop))
          • For each (Integer A) from 6 to ShopTotalCategories, do (Actions)
            • Loop - Actions
              • Unit - Create 8 ShopCategory[(Integer A)] for Neutral Passive at ShopTempPoint facing Default building facing degrees
              • Hashtable - Save ShopInteger as 1 of (Key (Last created unit)) in ShopTable
              • Unit Group - Add Sklep Zapomnianego Mędrca 0035 <gen> to ShopGroup[ShopInteger]
              • Unit Group - Add Tajemniczy Market 0563 <gen> to ShopGroup[ShopInteger]
              • Unit Group - Add Galeria Chwały 1090 <gen> to ShopGroup[ShopInteger]
              • Unit Group - Add Zbrojownia Zimnej Wojny 0231 <gen> to ShopGroup[ShopInteger]
              • Unit Group - Add Prohibere Mortus 1319 <gen> to ShopGroup[ShopInteger]
              • Unit Group - Add Sklep Tajniaków 0370 <gen> to ShopGroup[ShopInteger]
              • Unit Group - Add Hurtownia Im.Braci Wright 0671 <gen> to ShopGroup[ShopInteger]
              • Unit Group - Add Dom Handlowy Zarckenga 0880 <gen> to ShopGroup[ShopInteger]
              • Trigger - Add to ShopCategory <gen> the event (Unit - (Last created unit) Sells an item (from shop))
          • Custom script: call RemoveLocation(udg_ShopTempPoint)
      • Custom script: call DestroyGroup(udg_ShopTempGroup)
  • ShopCategory
    • Events
    • Conditions
    • Actions
      • Set ShopPlayer = (Owner of (Buying unit))
      • Set ShopPersonalInteger = (Load 1 of (Key (Selling unit)) from ShopTable)
      • For each (Integer A) from 8 to ShopTotalCategories, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Item-type of (Sold Item)) Equal to ShopCategoryItem[(Integer A)]
            • Then - Actions
              • Set ShopSoldCatNumber = (Integer A)
            • Else - Actions
      • Unit Group - Pick every unit in ShopGroup[ShopPersonalInteger] and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Unit-type of (Picked unit)) Equal to ShopCategory[ShopSoldCatNumber]
            • Then - Actions
              • Selection - Select (Picked unit) for ShopPlayer
            • Else - Actions
IT IS DON'T WORK!
 

Uncle

Warcraft Moderator
Level 64
Joined
Aug 10, 2018
Messages
6,579
Did you try downloading a shop system yet?

Here's one I've been working on, file attached below. I think it's good enough as is, although it could use some testing. I haven't tested it in multiplayer yet so maybe you can do that for me, lol.

Edit: Uploaded a new version of the shop system.
 

Attachments

  • Uncle Shop System v.1.2.w3x
    87.1 KB · Views: 43
Last edited:
Level 6
Joined
Apr 5, 2018
Messages
116
After Patch today my map is Broken! units have omitted names with objects, all names have been mixed up, the map is for dumping. End of Maping, my map is dead, but silly editor patch. How repair this? The editor has replaced names. Do not say that I have to rewrite and invent names for units, skills and others.
 

Attachments

  • ghrdhttjdrfhfgjj.png
    ghrdhttjdrfhfgjj.png
    33 KB · Views: 44
  • ^^^^^^^^^^^^^^^^^^^^^^.png
    ^^^^^^^^^^^^^^^^^^^^^^.png
    1.6 MB · Views: 63
Last edited:

Uncle

Warcraft Moderator
Level 64
Joined
Aug 10, 2018
Messages
6,579
After Patch today my map is Broken! units have omitted names with objects, all names have been mixed up, the map is for dumping. End of Maping, my map is dead, but silly editor patch. How repair this? The editor has replaced names. Do not say that I have to rewrite and invent names for units, skills and others.

Make a back-up of your map. I would be careful until the bugs are sorted out, all of our maps are having problems with the new patch.
 
Status
Not open for further replies.
Top