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 02-26-2011, 06:47 PM
Sensacionsk8 Sensacionsk8 is offline
Member
 
Join Date: Feb 2011
Posts: 18
Gender: Male
Credits: 3,101
Sensacionsk8 is on a distinguished road
Exclamation help with levelup.php please

Hi, I need someone to help me change the levelup.php.
I need is the money earned by an adoptable to click, what won the owner of adoptable. maybe I can help of Hall of Famer or someone else please.
excuse for English, but I'm using google translator

Last edited by Sensacionsk8; 02-26-2011 at 06:52 PM.
Reply With Quote
  #2  
Old 02-26-2011, 06:55 PM
DragonTamerChris's Avatar
DragonTamerChris DragonTamerChris is offline
The Yoshi Member
 
Join Date: Jan 2011
Location: Somewhere
Posts: 106
Gender: Male
Credits: 7,902
DragonTamerChris is on a distinguished road
Default

Not to be rude but couldn't you have just bumped your old thread instead of making a new thread? People will try to help you as fast as you can, they just might have not found your thread yet. Making new topics just spams the forum.

I'm sorry I can't help you, I would if I could.

(Sorry to the mods if mini-modding is not allowed on the forums, I'm just simply stating a member oponion to this person.)
Reply With Quote
  #3  
Old 02-27-2011, 12:36 AM
fadillzzz fadillzzz is offline
Dev Staff
 
Join Date: Jan 2010
Posts: 501
Gender: Male
Credits: 37,737
fadillzzz is an unknown quantity at this point
Default

I can only understand your first sentence.
But I'm guessing that you want to make that only the owner of the adoptables will get money by clicking it... (is that correct?)
Also, if you're using google translate, try to use a proper sentence to get better result.
Reply With Quote
  #4  
Old 02-27-2011, 10:32 AM
Sensacionsk8 Sensacionsk8 is offline
Member
 
Join Date: Feb 2011
Posts: 18
Gender: Male
Credits: 3,101
Sensacionsk8 is on a distinguished road
Smile

Quote:
Originally Posted by fadillzzz View Post
I can only understand your first sentence.
But I'm guessing that you want to make that only the owner of the adoptables will get money by clicking it... (is that correct?)
Also, if you're using google translate, try to use a proper sentence to get better result.
is correct.
sorry for this other issue, but I thought that in the previous post is not understood.

Last edited by Sensacionsk8; 02-27-2011 at 10:36 AM.
Reply With Quote
  #5  
Old 02-27-2011, 10:52 AM
fadillzzz fadillzzz is offline
Dev Staff
 
Join Date: Jan 2010
Posts: 501
Gender: Male
Credits: 37,737
fadillzzz is an unknown quantity at this point
Default

Well first, we have to make the script check if the clicker is the owner before giving out the money and if it's not, don't give any.

open your levelup.php

find this code around line 231 - 236
PHP Code:
    // Start Rewards
                  
                  // ************************************************  
                  
                  
                  //Get currency on level up 
Add below
PHP Code:
if($owner == $loggedinname)

After that, find this
PHP Code:
                  $article_content $article_content "<div align='center'><br />You have earned "$amount ." Dollars for leveling up this Adoptable. <br />You now have  " $newbalance " Dollars.</div>"
below that, add the closing curly bracket
PHP Code:

hope this solves your problem :)
Reply With Quote
  #6  
Old 02-27-2011, 01:11 PM
Sensacionsk8 Sensacionsk8 is offline
Member
 
Join Date: Feb 2011
Posts: 18
Gender: Male
Credits: 3,101
Sensacionsk8 is on a distinguished road
Default

thanks, but Not exactly, what I want is this:
PHP Code:
 $newclicks $totalclicks 1// Add 1 click to the current click total of this adoptable...
 
$newdollars $dollar 10//make it work
 // Actually insert our click information into the database...
 
$query "UPDATE ".$prefix."owned_adoptables SET totalclicks='".$newclicks."' WHERE aid='".$id."'";
 
mysql_query($query);
 
 
$query "UPDATE ".$prefix."users SET dollar='".$newdollars."' WHERE uid='".$uid."'";
 
mysql_query($query); 
I need this:

Last edited by Sensacionsk8; 02-27-2011 at 01:13 PM.
Reply With Quote
  #7  
Old 02-27-2011, 01:41 PM
fadillzzz fadillzzz is offline
Dev Staff
 
Join Date: Jan 2010
Posts: 501
Gender: Male
Credits: 37,737
fadillzzz is an unknown quantity at this point
Default

Oh so what you mean was, everytime an adoptables receives a click, the owner of the adoptables get the money?
That's easy, just change this query from line 238
PHP Code:
                  $query "SELECT * FROM `".$prefix."users` WHERE `username`='$loggedinname'"
into this
PHP Code:
                  $query "SELECT * FROM `".$prefix."users` WHERE `username`='$owner'"
and on line 253, find this query
PHP Code:
                  mysql_query("UPDATE `".$prefix."users` SET `dollar`='" $newbalance "' WHERE `username`='$loggedinname'"); 
and change it into this
PHP Code:
                  mysql_query("UPDATE `".$prefix."users` SET `dollar`='" $newbalance "' WHERE `username`='$owner'"); 
I think that should do the trick..
Reply With Quote
  #8  
Old 02-27-2011, 02:44 PM
Sensacionsk8 Sensacionsk8 is offline
Member
 
Join Date: Feb 2011
Posts: 18
Gender: Male
Credits: 3,101
Sensacionsk8 is on a distinguished road
Default

thanks for your help, you are the best
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
Help with levelup in 1.3.3? Infernette Questions and Supports 1 03-25-2013 06:47 PM
Levelup Problems? Tequila Questions and Supports 4 11-19-2011 12:52 AM
Help altering levelup.php xCataluna Questions and Supports 6 07-07-2011 03:33 AM
help me with levelup.php Sensacionsk8 Questions and Supports 0 02-23-2011 06:48 PM
levelup issue ipman Questions and Supports 8 01-26-2011 10:33 AM


All times are GMT -5. The time now is 05:12 PM.

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