• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Solved] Trouble with Item-Type Hashtable (Remove item from Marketplace with it's ItemID)

Status
Not open for further replies.

Uncle

Warcraft Moderator
Level 64
Joined
Aug 10, 2018
Messages
6,537
EDIT: Got it all working. Accidentally deleted most of the post but here's what I was having issues with. Didn't know how to remove/add Items to and from a Marketplace using Item Integers from my Hashtable. Figured it out:

  • Custom script: call RemoveItemFromStockBJ( LoadInteger(udg_ItemHashtable, udg_key1, udg_key2), udg_tempUnit )
  • Custom script: call AddItemToStockBJ( LoadInteger(udg_ItemHashtable, udg_key1, udg_key2), udg_tempUnit, 1, 1 )
 
Last edited:
Status
Not open for further replies.
Top