HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

"buy item" order

08-10-2008, 10:48 AM#1
agentex
I need order some unit to buy an item from shop. How can i make it? (in common.j i found only functions which order to buy a units)
08-10-2008, 08:56 PM#2
Vexorian
Collapse JASS:
native IssueNeutralImmediateOrder       takes player forWhichPlayer, unit neutralStructure, string unitToBuild returns boolean
native IssueNeutralImmediateOrderById   takes player forWhichPlayer,unit neutralStructure, integer unitId returns boolean
native IssueNeutralPointOrder           takes player forWhichPlayer,unit neutralStructure, string unitToBuild, real x, real y returns boolean
native IssueNeutralPointOrderById       takes player forWhichPlayer,unit neutralStructure, integer unitId, real x, real y returns boolean
native IssueNeutralTargetOrder          takes player forWhichPlayer,unit neutralStructure, string unitToBuild, widget target returns boolean
native IssueNeutralTargetOrderById      takes player forWhichPlayer,unit neutralStructure, integer unitId, widget target returns boolean

Just use the item's id instead of a unitid.