Archived copy of war3source.com, the War3Source forum (2009–2020), rebuilt from the Internet Archive by wc3mods.net. This page was captured on 2012-10-25 (original capture). Forum · All archived topics · Wiki · Bug tracker · Blog
Chat

War3:Source
October 24, 2012, 10:19:52 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Download: http://war3source.com/index.php?board=9.0
What is War3Source?: http://war3source.com/index.php?topic=200.0
Sample Stats: http://war3source.com/war3stats
Steam Community Group: http://steamcommunity.com/groups/war3source
War3Source SVN Checkout: http://ownageclan.com/svn/war3source/
War3Source servers: http://www.game-monitor.com/search.php?vars=war3_version=
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: OnItemPurchase pre hook  (Read 216 times)
Frenzzy
Full Member
***
Posts: 217


337905984 frenzzy@live.ru
View Profile WWW
« on: December 24, 2010, 07:40:13 AM »

It'll be nice to add OnItemPurchase pre hook, so we can discard it aswell as a message about successfull bought or change a cost for example.
« Last Edit: December 24, 2010, 09:23:55 PM by Ownz » Logged

O_o
Glider⠠⠵
Global Moderator
Sr. Member
*****
Posts: 413


⠠⠵


View Profile
« Reply #1 on: December 24, 2010, 07:46:31 AM »

Doesn't DoTriedToBuyItem do that?
Logged

Frenzzy
Full Member
***
Posts: 217


337905984 frenzzy@live.ru
View Profile WWW
« Reply #2 on: December 24, 2010, 01:52:40 PM »

Doesn't DoTriedToBuyItem do that?
hmm.. but how can I do for example this:
http://war3source.com/index.php?topic=57.msg3541#msg3541
without "You have successfully purchased {itemname}." message and gold/money spend?

Added:
..or how to block DoTriedToBuyItem event?
« Last Edit: December 24, 2010, 02:01:21 PM by Frenzzy » Logged

O_o
Ownz
Developer
Administrator
Hero Member
*****
Posts: 2046



View Profile WWW Email
« Reply #3 on: December 24, 2010, 02:06:59 PM »

OnCanPurchaseItem would be a better name
Logged

DarkEnergy
Ownz
Developer
Administrator
Hero Member
*****
Posts: 2046



View Profile WWW Email
« Reply #4 on: December 24, 2010, 09:21:42 PM »

next version:
CanBuyItem
Logged

DarkEnergy
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!