Advertisement
dstorm

Untitled

Feb 3rd, 2014
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1.  
  2. un-gold = 100
  3. re-gold = 200
  4.  
  5. i bought this item costing = 150
  6.  
  7. So,
  8.  
  9. un-gold = 0
  10. re-gold = 150
  11.  
  12. Now, dota_item_purchased is called,
  13.  
  14. Current un-gold = 0
  15. Current re-gold = 150
  16.  
  17. item cost = 150
  18. gold left = 150
  19.  
  20. if 150>=0 then // true
  21. modify gold ( Current un-gold - gold left) // 0 - 150 = -150
  22. // erraneous?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement