Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Addons and Modifications > Mys v1.2.x Mods

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-04-2011, 12:40 PM
mapleblade mapleblade is offline
Epicness sausage
 
Join Date: May 2009
Posts: 180
Gender: Male
Credits: 19,891
mapleblade
Default slotmachine.php, the slotmachine from the levelup, but for the arcade!

Hiya there as u may have seen, ive made a slotmachine script for when u level and adoptable, that u have a chance to win prices!

Now ive made it that its an new .php file wich includes:

-Unspammable (users can only use it once a day)
-Easy customizable price gold amount



First of all, you will need to run a MYSQL Query
PHP Code:
CREATE TABLE IF NOT EXISTS `adopts_slotmachine_used` (
  `
datevarchar(30) DEFAULT NULL,
  `
usernamevarchar(50) DEFAULT NULL,
  `
ipvarchar(50) DEFAULT NULL
ENGINE=MyISAM DEFAULT CHARSET=latin1
Second: Download the slotmachine map for the images (if you dont already have it from the levelup script)

Third: Download slotmachine.php

And your done :D

EXTRA!
Now the prices seem pretty low, 20,30,50 for once a day, but here i will explain how to edit the prices.

in slotmachine.php find:
PHP Code:
if($slot1 == && $slot2 == && $slot3 == 1){ 
You will see this line under it, this is if all slots are pointed at 1
PHP Code:
$reward 20
Change that value to whatever you like to get as prize when someone gets all 1's

Example:
PHP Code:
$reward 300
Do that the same for 2 and 3, those are precisely the same as the above, and should be under this first code.

Hoep i helped :)
Attached Files
File Type: zip slotmachine.zip (1.2 KB, 112 views)
File Type: php slotmachine.php (2.6 KB, 106 views)
__________________
Need coding help? send me a PM! :)
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with levelup in 1.3.3? Infernette Questions and Supports 1 03-25-2013 05:47 PM
Arcade Site Idea Nemesis Other Chat 8 09-01-2012 05:16 PM
Slotmachine mapleblade Mys v1.2.x Mods 17 05-11-2011 05:23 PM
help with levelup.php please Sensacionsk8 Questions and Supports 7 02-27-2011 01:44 PM
help me with levelup.php Sensacionsk8 Questions and Supports 0 02-23-2011 05:48 PM


All times are GMT -5. The time now is 10:21 AM.

Currently Active Users: 9711 (0 members and 9711 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636