Reselling an Item

Zurtrogx

Active Member
Reaction score
24
Problem status: SOLVED

______________________________________________________________


Some of you may have experienced (or may have not) that now and again you purchase an item that you didn't required and, because of the way the map is designed, your only option (other than using it) is to sell it back to the shop, usually at 50% of the initially cost.

Now, in my map, I want to have a function so that if something like this does happen, you can type a special command that sells the last item for 100% of the initially cost.

My question is, how do you determine how much the item sells for?
Because I cannot seem to find an "Item - Gold Cost" or anything like that in the triggering interface. Is there a JASS way to determine the item cost?
 

Nexor

...
Reaction score
74
Try searching for it, there is a solution.
Player 12 (or 13 I dont remember) buys an item (player has 50000 gold) and saves the itemcost in the gamecache, so after that you are able to refer to the itemcost.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top