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 01-27-2009, 02:34 AM
crilleaz crilleaz is offline
Member
 
Join Date: Jan 2009
Posts: 14
Credits: 1,728
crilleaz
Default level up to 100!

can someone help me to change the current level (8) to level 100? thanks so much! or atleast tell me wich lines to change! PLEASE!

i will pay you if that works better..Really need max level 100 or no max level at all..

[size=large]Due to lack of service i will pay the one who helps me with this 10$ either by paypal or letter, <3 the service![/size]
Reply With Quote
  #2  
Old 01-27-2009, 09:55 AM
crilleaz crilleaz is offline
Member
 
Join Date: Jan 2009
Posts: 14
Credits: 1,728
crilleaz
Default RE: level up to 100!

really need help guys!
Reply With Quote
  #3  
Old 01-27-2009, 04:57 PM
BMR777 BMR777 is offline
Member
 
Join Date: Jan 2011
Posts: 1,122
Gender: Male
Credits: 10,736
BMR777 is on a distinguished road
Default RE: level up to 100!

Sorry about the delay, sometimes you've got to be a little patient though. I check these forums daily though as I am a full time college student I'm not on until afternoon time. :)

Anyway, to the issue at hand, the file levelup.php handles the actual calculation of how to do a level up for a creature. If you want to see the code, it starts after this line:

PHP Code:
//Begin the level up procedure 
The level up procedure is similar, but not identical for both registered users and guests.

Here's the actual code that does the level up for logged in users:

PHP Code:
$query "SELECT * FROM owned_adoptables WHERE uid = '$id'";
            
$result = @mysql_query($query);
            
$num = @mysql_numrows($result);

            
//Loop out code
            
$i=0;
            while (
$i 1) {

            
$name=@mysql_result($result,$i,"name");
            
$imageurl=@mysql_result($result,$i,"imageurl");
            
$currentlevel=@mysql_result($result,$i,"currentlevel");
            
$totalclicks=@mysql_result($result,$i,"totalclicks");
            
$type=@mysql_result($result,$i,"type");

            
$i++;
            }

            
$plus1 $totalclicks 1;
            
mysql_query("UPDATE owned_adoptables SET totalclicks='".$plus1."' WHERE uid='".$id."'");    

            
//Check and see if we need a level up...
            
$levelup checklevel($totalclicks);
            if(
$levelup $currentlevel){
            
//The creature needs to level up
            //Check if we are at max level

            
$query "SELECT * FROM adoptable_rankimages WHERE name = '$type'";
            
$result = @mysql_query($query);
            
$num = @mysql_numrows($result);

            
//Loop out code
            
$i=0;
            while (
$i 1) {

            
$l1i=@mysql_result($result,$i,"l1i");
            
$l2i=@mysql_result($result,$i,"l2i");
            
$l3i=@mysql_result($result,$i,"l3i");
            
$l4i=@mysql_result($result,$i,"l4i");
            
$l5i=@mysql_result($result,$i,"l5i");    
            
$l6i=@mysql_result($result,$i,"l6i");
            
$l7i=@mysql_result($result,$i,"l7i");
            
$l8i=@mysql_result($result,$i,"l8i");
        

            
$i++;
            }
            
            
$mymax 8;
            if(
$l1i == "" || l1i == NULL){
            
$mymax 0;
            
$img $l1i;
            }    
            else if(
$l2i == "" || l2i == NULL){
            
$mymax 1;
            
$img $l2i;
            }
            else if(
$l3i == "" || l3i == NULL){
            
$mymax 2;
            
$img $l3i;
            }
            else if(
$l4i == "" || l4i == NULL){
            
$mymax 3;
            
$img $l4i;
            }
            else if(
$l5i == "" || l5i == NULL){
            
$mymax 4;
            
$img $l5i;
            }
            else if(
$l6i == "" || l6i == NULL){
            
$mymax 5;
            
$img $l6i;
            }
            else if(
$l7i == "" || l7i == NULL){
            
$mymax 6;
            
$img $l7i;
            }
            else if(
$l8i == "" || l8i == NULL){
            
$mymax 7;
            
$img $l8i;
            }


            if(
$currentlevel $mymax){
            
//Not at max level, rank them up
    
            
if($levelup == "1" and $mymax >= $levelup){
            
$img $l1i;
            }        
            if(
$levelup == "2" and $mymax >= $levelup){
            
$img $l2i;
            }
            if(
$levelup == "3" and $mymax >= $levelup){
            
$img $l3i;
            }
            if(
$levelup == "4" and $mymax >= $levelup){
            
$img $l4i;
            }
            if(
$levelup == "5" and $mymax >= $levelup){
            
$img $l5i;
            }
            if(
$levelup == "6" and $mymax >= $levelup){
            
$img $l6i;
            }
            if(
$levelup == "7" and $mymax >= $levelup){
            
$img $l7i;
            }
            if(
$levelup == "8" and $mymax >= $levelup){
            
$img $l8i;
            }

            
mysql_query("UPDATE owned_adoptables SET currentlevel='".$levelup."' WHERE uid='".$id."'");
            
mysql_query("UPDATE owned_adoptables SET imageurl='".$img."' WHERE uid='".$id."'");
            
$flag 1;
            
$currentlevel $levelup;
            }


            } 
The number of levels is hard-coded into the script. I am assuming though you want to be able to have 100 separate images for a creature? That would be possible by editing the level up code, the database table structure and the levelup.php file to accommodate more images, but having that many images there could be sloppy and tedious.

BMR777
Reply With Quote
  #4  
Old 01-27-2009, 05:25 PM
livingingc livingingc is offline
Member
 
Join Date: Jan 2009
Posts: 36
Credits: 3,837
livingingc
Default RE: level up to 100!

I would kill myself if i had to draw 100 images of each pet.
Reply With Quote
  #5  
Old 01-28-2009, 06:22 AM
crilleaz crilleaz is offline
Member
 
Join Date: Jan 2009
Posts: 14
Credits: 1,728
crilleaz
Default RE: level up to 100!

Well, thanks for your help guys, its sad it have to be so hard to make this work, hope in future you guys will add an option on "unlimitated" levels. thank you and goodbye
Reply With Quote
  #6  
Old 01-28-2009, 09:46 AM
agnyz agnyz is offline
Member
 
Join Date: Jan 2009
Posts: 31
Credits: 1,986
agnyz
Default RE: level up to 100!

It's a good script. Yeah it has to be tweaked a little here and there to get it to do what you want, but that is how you learn to do stuff.

I have had to wait a little while to get the help I needed to make it do what I wanted it to do but that is ok.

The script is free and the support is great, just my own thoughts but I don't see where anyone has the right to complain about it.

I'll be honest if I had made the program I would be selling it for at least 20 bucks and not just giving it away.

You can't complain when someone hands you a script like this and says' "Here you can have this for free and I will help you as much as I can but keep in mind I don't have a lot of time".
Reply With Quote
  #7  
Old 01-28-2009, 02:20 PM
livingingc livingingc is offline
Member
 
Join Date: Jan 2009
Posts: 36
Credits: 3,837
livingingc
Default RE: level up to 100!

I feel the same way. Thats why I donated. I dont have much $$ right now, but it is a quality product and service.
This thread ticks me off. What was he expecting? Custom support at any time? Even after he got the answer to do what he wanted, he still through a fit.


Quote:
Originally Posted by www.agnyz.com
It's a good script. Yeah it has to be tweaked a little here and there to get it to do what you want, but that is how you learn to do stuff.

I have had to wait a little while to get the help I needed to make it do what I wanted it to do but that is ok.

The script is free and the support is great, just my own thoughts but I don't see where anyone has the right to complain about it.

I'll be honest if I had made the program I would be selling it for at least 20 bucks and not just giving it away.

You can't complain when someone hands you a script like this and says' "Here you can have this for free and I will help you as much as I can but keep in mind I don't have a lot of time".
Reply With Quote
  #8  
Old 01-28-2009, 04:27 PM
BMR777 BMR777 is offline
Member
 
Join Date: Jan 2011
Posts: 1,122
Gender: Male
Credits: 10,736
BMR777 is on a distinguished road
Default RE: level up to 100!

Thanks everyone. :)

Yeah, I know the script isn't quite perfect and it is lacking some things but I feel it is a pretty good script for the price and from what I know the only other alternative is one by some guy named Mike that he sells for $30. I do my best to provide support as well, but with school lately my time has been somewhat limited, so I can't be online all the time, but I do check the forums daily when I get home, so I'm not like some developers where I'm never online. That's part of the reason I have taken on more staff and developers, such as Johnathon who will be developing this script going forward and Roger Smiley who is good at providing support, so there are more people offering support when needed. :)

Thanks,
Brandon
Reply With Quote
  #9  
Old 01-28-2009, 10:00 PM
agnyz agnyz is offline
Member
 
Join Date: Jan 2009
Posts: 31
Credits: 1,986
agnyz
Default RE: level up to 100!

you guys do a good job, enough said.
Reply With Quote
  #10  
Old 01-29-2009, 02:38 PM
BMR777 BMR777 is offline
Member
 
Join Date: Jan 2011
Posts: 1,122
Gender: Male
Credits: 10,736
BMR777 is on a distinguished road
Default RE: level up to 100!

Thanks. Yeah, enough said.

[CLOSED]
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
Max level? kristhasirah Questions and Supports 2 09-14-2011 01:41 PM
Max level? RipJawWolfFang Questions and Supports 1 04-17-2009 09:13 AM
max level trainerluke Questions and Supports 11 04-16-2009 01:09 AM
Max Level (v2) LilPixie Questions and Supports 4 02-17-2009 08:15 PM
Max level? LilPixie Questions and Supports 2 02-15-2009 08:41 PM


All times are GMT -5. The time now is 06:17 PM.

Currently Active Users: 9370 (0 members and 9370 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