Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 10-25-2011, 01:02 PM
mapleblade mapleblade is offline
Epicness sausage
 
Join Date: May 2009
Posts: 180
Gender: Male
Credits: 30,125
mapleblade
Default

you can try this

PHP Code:

<?php

$treat 
secure($_GET['treat']);

if(!empty(
$_GET['treat'])){

$success 0;

if(
$treat == 0){

// query for adopt?
$success 1;
}
elseif(
$treat == 1){

// query for adopt?
$success 1;
}
elseif(
$treat == 2){

// query for adopt?
$success 1;
}
elseif(
$treat == 3){

// query for adopt?
$success 1;
}
elseif(
$treat == 4){

// query for adopt?
$success 1;
}
elseif(
$treat == 5){

// query for adopt?

$success 1;
}

if(
$success == 1){
echo 
"You have successfully collected this treat!";

}
}else{

$show rand(0,100);

$random rand(0,5);

// 1 on 100 chance to show an image

if($show == 1){

//random image, modify the $random etc, and add more if ya want
if($random == 0){

$image "http://image.com/lol.png";
$link "http://lol.com/adopt.php?id=bl1a";
}elseif(
$random == 1){

$image "http://image.com/lol1.png";
$link "http://lol.com/adopt.php?id=bla";
}
elseif(
$random == 2){

$image "http://image.com/lol1.png";
$link "http://lol.com/adopt.php?id=bla";
}
elseif(
$random == 3){

$image "http://image.com/lol1.png";
$link "http://lol.com/adopt.php?id=bla";
}
elseif(
$random == 4){

$image "http://image.com/lol1.png";
$link "http://lol.com/adopt.php?id=bla";
}
elseif(
$random == 5){

$image "http://image.com/lol1.png";
$link "http://lol.com/adopt.php?id=bla";
}




// now actually paste it

echo "<a href='".$link."'><img src='".$image."' /></a> <font color='red'>YOU FOUND A TREAT! CLICK HERE TO COLLECT IT!</font>";

}
}

?>
all i worry about is spamming treats, you could put some security on it, so it can only be gotten once a time or something :)
__________________
Need coding help? send me a PM! :)

Last edited by mapleblade; 10-25-2011 at 01:26 PM.
Reply With Quote
Reply


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
Random egg Skaiya Questions and Supports 2 03-30-2014 02:42 PM
Random 3D Art alonaria Art Gallery 4 06-13-2011 05:19 PM
Random thing I did RoconzaArt Art Gallery 0 02-11-2011 05:21 PM
Random Adoptables fadillzzz Questions and Supports 15 04-12-2010 10:29 PM
Random 5 is not realy random! RipJawWolfFang Questions and Supports 9 04-30-2009 06:03 AM


All times are GMT -5. The time now is 11:14 PM.

Currently Active Users: 4050 (0 members and 4050 guests)
Threads: 4,081, Posts: 32,032, 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 - 2025, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636