• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

remove item and cr8 new in same slot

Status
Not open for further replies.
Level 29
Joined
Jul 29, 2007
Messages
5,174
Impossible with pure GUI.
Use this custom script
  • Custom script: call UnitAddItemToSlotById( your unit , the item's ID , slot number )

The "your unit" value is the unit you want to add the item to.
In case your unit isn't in a variable, you can use any action that uses your unit, convert it into Custom Text, and you'll see the value in Jass (which is what you need).

The "item's ID" value is your item's Rawcode.
To see rawcodes in the object editor click Ctrl+D (and again to exit rawcode mode).
Rawcodes must be typed inside *dunno how they are called in english*, this guys: ' ' (NOT " "), so for example a rawcode of an item can look like this - 'I000'.

And finaly, the "slot number" value is the slot number...
 
Status
Not open for further replies.
Top