PDA

View Full Version : ICash Integration


Enigami
03-21-2007, 09:10 PM
I am currently wanting to put a points system on my website and with vbplaze not availible due to recent exploits i have to use an alternative...i choose icash/ibank/ishop but need to integrate the arcade with the points system. Does anyone know of this hack? or is there one being developed?
thanks, ENigami

MrZeropage
03-22-2007, 05:16 PM
ibProArcade has all necessary hooks for ICash-PlugIns included, somebody just needs to dothe plugins...

does anybody have the vbPlaza-PlugIns from last release for ibProArcade ? I guess they are easy to adapt to ICash, maybe I take a look if somebody provides them :)

Vinyljunky
03-27-2007, 07:37 PM
Im sure that this has been answered within the icash post ;)

A few people have done it.


Regards

VJ...

MrZeropage
03-27-2007, 08:05 PM
any link to a iCash-Plugin for ibProArcade ?

Black Tiger
03-28-2007, 12:10 AM
https://vborg.vbsupport.ru/showthread.php?t=119086&page=27
Post number: 392

That's an example if you want to have users pay with icash to play games.

Would be nice if you could tell us such example how to make it so that if they win a game, they get "amount=x" of money into their account.;)

kylek
05-02-2007, 09:17 PM
https://vborg.vbsupport.ru/showthread.php?t=119086&page=27
Post number: 392

That's an example if you want to have users pay with icash to play games.

Would be nice if you could tell us such example how to make it so that if they win a game, they get "amount=x" of money into their account.;)


I got the above working to charge per game play with ICash and it works great. But it does not seem to work for games played in a new window. Anyone got any ideas for how to include these?

MrZeropage
05-03-2007, 12:26 PM
did you use all hooks/plugins ?
There is a hook "ibproarcade_play_game_popup" which should be helpful :)

You also should think about the tournaments ect.

Here is a list of all available hooks in ibProArcade:
ibproarcade_global_start
ibproarcade_navbar_complete
ibproarcade_play_game
ibproarcade_play_game_popup
ibproarcade_play_game_tourney
ibproarcade_new_champ
ibproarcade_tourney_won
ibproarcade_register_tourney_start
ibproarcade_do_create_tourney_start
ibproarcade_gamebit

kylek
05-05-2007, 01:34 AM
Thanks, that list helps. I used the same code that was shown here https://vborg.vbsupport.ru/showt...119086&page=27 (https://vborg.vbsupport.ru/showthread.php?t=119086&page=27)
Post number: 392 and made a new plug in called ibproarcade_play_game_popup and it now charges a price for games opened in a new window also.

MrZeropage
05-05-2007, 04:24 PM
you should make use of all the hooks to provide full payment options throughout the arcade ...

spaceman33
05-08-2007, 12:01 PM
Can someone help me out here?

I tried this but kept getting the error message "phrase xxx could not be found". Can I check I have tried to do this right:

Created a plugin:
Product=ibproarcade for vbulletin, title ibproarcade pay
code:
$amount = '50';

if (($vbulletin->userinfo[$vbulletin->options['money']] - $amount) < 0) {
eval(standard_error(fetch_error('ibproarcade_short age')));
}
$vbulletin->db->query("update " . TABLE_PREFIX . "user set {$vbulletin->options['money']}={$vbulletin->options['money']}-'{$amount}' where userid='{$vbulletin->userinfo['userid']}'");

Phrase:
Created a phrase:
Product=ibproarcade for vbulletin, varname ibproarcade_shortage, Text You dont have enough to play this game

Am I missing something obvious?

Cheers.

ArchangelX
09-21-2007, 09:07 PM
https://vborg.vbsupport.ru/showthread.php?t=119086&page=27
Post number: 392

That's an example if you want to have users pay with icash to play games.

Would be nice if you could tell us such example how to make it so that if they win a game, they get "amount=x" of money into their account.;)

Does anyone have a plug-in built to do this yet? Thanks!

McCarroll21
09-29-2007, 10:51 AM
Can you tell us what each hook does?

Like, which hook should I call to 'charge' to play in a tournament?

And will the members have to 'pay' to play games in a tournament if I am already 'charging' so much for playing games by using plugins that call these hooks?

ibproarcade_play_game
ibproarcade_play_game_popup

SBlueman
10-08-2007, 01:17 AM
Does anyone have a plug-in built to do this yet? Thanks!

Same question. A plugin would rock!

Zaiaku
12-30-2007, 06:39 PM
I'm needing this pretty bad, does anyone have a way to make this work?

ArchangelX
01-03-2008, 04:22 AM
Same here...anyone? It seems kinda funny that noone has this working...I would think that it's a great option. :(

--------------- Added 1199343901 at 1199343901 ---------------

I take it back...it was actually pretty easy after I checked it out! Thanks for those hooks, MrZeropage!

Zaiaku
01-06-2008, 12:32 PM
Maybe its just me butSeeing the method being use there only 1 price for all games instead of settin a price for each game.