Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Addons and Modifications > Addons/Mods Graveyard

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 12-06-2009, 05:43 AM
SleepWalker SleepWalker is offline
Member
 
Join Date: Jul 2009
Posts: 32
Credits: 4,466
SleepWalker
Default Extra click

I'm planning a new mod:the extra click system!The meaning:when somebody clikc on your adoptable,due to type the clicks are multiplying.
Step 1:Create a new adoptable type under the name extra.Be sure to make the adoptable with restrictions such as donator-only and artist-only or promo code,etc.
Step 2:modify the levelup.php(put this code under the Adoptable is NOT frozen...comment)
PHP Code:
mysql_query("SELECT * FROM ".$prefix." adopts_owned_adoptables WHERE type = '$type'");
if (
$type "extra"){
$newclicks $currentclicks 2;}
else{
$newclicks =$currentclicks 1;} 
This is my first mod.I'm going to make a level-dependent and a giving system.If you found some errors in my script,please write to this thread.
Reply With Quote
  #2  
Old 12-06-2009, 08:44 AM
Arianna's Avatar
Arianna Arianna is offline
Dev Staff
 
Join Date: Sep 2009
Posts: 334
Gender: Female
Credits: 26,324
Arianna will become famous soon enough
Default RE: Extra click

I don't know how you are planning to update it... Isn't the code usually somewhat different? It lists the table and stuff like that in the update query.
Reply With Quote
  #3  
Old 12-06-2009, 08:52 AM
SleepWalker SleepWalker is offline
Member
 
Join Date: Jul 2009
Posts: 32
Credits: 4,466
SleepWalker
Default RE: Extra click

UPDATE in the code means changing the number of the clicks to the most recent.Plus,this code means to make special adoptables with faster growing.
Reply With Quote
  #4  
Old 12-06-2009, 09:12 AM
Arianna's Avatar
Arianna Arianna is offline
Dev Staff
 
Join Date: Sep 2009
Posts: 334
Gender: Female
Credits: 26,324
Arianna will become famous soon enough
Default RE: Extra click

Yes, but doesn't it usually have a whole query? Otherwise, you'd be changing a variable, like $update, and then changing the query. Lemme get this code and I'll show you. ;)[hr]
Here we go...
PHP Code:
    $query "UPDATE ".$prefix."owned_adoptables SET totalclicks='".$newclicks."' WHERE aid='".$id."'";
    
mysql_query($query); 
You see? :/ You have to have stuff like that in there. :)
Reply With Quote
  #5  
Old 12-06-2009, 10:42 AM
SleepWalker SleepWalker is offline
Member
 
Join Date: Jul 2009
Posts: 32
Credits: 4,466
SleepWalker
Default RE: Extra click

Good tip from you.I will test it.
Reply With Quote
  #6  
Old 12-06-2009, 10:43 AM
Arianna's Avatar
Arianna Arianna is offline
Dev Staff
 
Join Date: Sep 2009
Posts: 334
Gender: Female
Credits: 26,324
Arianna will become famous soon enough
Default RE: Extra click

Haha, yeah. You gotta have the tables in the queries, or they're useless!
Reply With Quote
  #7  
Old 12-06-2009, 10:53 AM
SleepWalker SleepWalker is offline
Member
 
Join Date: Jul 2009
Posts: 32
Credits: 4,466
SleepWalker
Default RE: Extra click

Thanks again!
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
Extra BBcode AlexC Mys v1.2.x Mods 0 04-14-2011 12:48 PM
Extra Options for ROOT Admins Ashje Questions and Supports 7 07-14-2009 10:44 PM
[Theme] - Smile - Extra Mods Built In! Rsmiley Templates and Themes 25 04-01-2009 02:33 PM
Adopting "Extra" Pets - Exploiting a bug Seapyramid Questions and Supports 3 02-07-2009 09:55 PM
Extra Pages? rosepose Questions and Supports 2 02-05-2009 09:28 AM


All times are GMT -5. The time now is 06:11 AM.

Currently Active Users: 802 (0 members and 802 guests)
Threads: 4,081, Posts: 32,029, 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