SMF Shop

SMFShop => Completed Additions => Modifications => Topic started by: 0mfg wtf man on March 30, 2012, 03:33:11 am

Title: [Mod] SMF Arcade SA Shop Integration 2.0
Post by: 0mfg wtf man on March 30, 2012, 03:33:11 am
Requires
- SMF Arcade 2.5 RC1 -  http://mods.simplemachines.org/index.php?mod=36
- SMFShop3.2 - http://mods.simplemachines.org/?mod=65

Description
This mod allows users to get money/cash for the shop after getting a high score in the game. This mod also has a arcade pass feature. Once mod is installed, every user needs to have a arcade pass in order to use arcade.

The default amount that a user receives after getting a high score is 25
If you wanna change how much each user gets when getting a high score. Open up /Sources/Subs-Arcade.php
Code: [Select]
// Give the user their points
$smcFunc['db_query']('', '
UPDATE {db_prefix}members
SET money = money + 25
WHERE id_member = {int:member}
LIMIT 1',
array(
'member' => $user_info['id'],
)
);
Search for this code and change the 25 to whatever number you want them to receive after getting a high score



Title: Re: [Mod] SMF Arcade SA Shop Integration 2.0
Post by: angeljs on April 24, 2014, 11:25:26 pm
This works great, thanks! Is there a way to modify the code so the user has to pay for each game he plays? For instance, 1 credit or 5 credits per play.
Title: Re: [Mod] SMF Arcade SA Shop Integration 2.0
Post by: alfredote on July 28, 2014, 03:44:46 am
i wanna know the same as angeljs. I want to put a price per play in the arcade.

Title: Re: [Mod] SMF Arcade SA Shop Integration 2.0
Post by: Kimmie on August 25, 2014, 08:12:26 am
Does this still work?