HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Ordering a hero to purchase an item at a store (not AI)

09-29-2003, 01:41 PM#1
Vexorian
How can I do it with jass? I already have a trigger that gives computer players items and takes some gold from them, but that just ignores the item cooldown.
09-30-2003, 12:10 AM#2
AIAndy
call IssueNeutralImmediateOrderById(player_to_buy, shop_unit, id_of_unit_or_item_to_buy)

Example:
call IssueNeutralImmediateOrderById(Player(0), tavern_unit, 'Nngs')
This buys a sea witch at the tavern for player 0. Of course a unit of the player has to stand nearby for this to work.
09-30-2003, 12:14 AM#3
Vexorian
Thanks, I kinda knew you could help me.