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 04-11-2012, 01:03 AM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 84,632
SilverDragonTears is on a distinguished road
Default Help with alts

I use the altimage field for female images and the primary for male images so for the item alts1 to work, I added altm and altf into the levels table. Now I need to change this part of the code to work with it . I'll use one function for males and the other for females.

Code:
function items_alts1($item, $adopt){
  // First lets check if alternative image exists for an adoptable at this level.
  $lev = $GLOBALS['adopts']->select("levels", array(), "adoptiename='{$adopt->type}' and thisislevel ='{$adopt->currentlevel}'")->fetchObject();
  if($lev->altm == ""){
      // The alternate image does not exist, cannot convert adoptable into its alternate form
    $note = "It appears that your dragon does not have an alternate image at its given level...<br>";
  }
  else{
      // The alternate image exists, conversion between primary and alternate image is possible.
    switch($adopt->imageurl){
      case "yes": 
        $GLOBALS['adopts']->update("owned_adoptables", array("imageurl" => ''), "aid ='{$adopt->aid}' and owner='{$item->owner}'");		
        $note = "Your dragon has assumed the species primary form.";
        break;
      default:
        $GLOBALS['adopts']->update("owned_adoptables", array("imageurl" => '{$levels->altm}'), "aid ='{$adopt->aid}' and owner='{$item->owner}'");	   
        $note = "Your dragon {$adopt->name} has assume the species alternate form.";
    }
      //Update item quantity...
      $delitem = $item->removeitem(1, $item->owner);    
  }
  return $note;    
}
__________________

Check out SilvaTales
Reply With Quote
  #2  
Old 04-11-2012, 01:13 AM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 394,826
Hall of Famer is on a distinguished road
Default

Well I found out the cause of this glitch, I've posted the solution to the bug tracker. Lemme know if you need extra help since your script apparently differs from others.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #3  
Old 04-11-2012, 01:20 AM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 84,632
SilverDragonTears is on a distinguished road
Default

Did you read my post? O.o lol, this doesn't relate to the item glitch.
__________________

Check out SilvaTales
Reply With Quote
  #4  
Old 04-11-2012, 01:27 AM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 394,826
Hall of Famer is on a distinguished road
Default

Oh nvm, but you still need to take care of the item glitch anyway. Just download the file from bugtracker and you should be able to use level1, level2, level3, click1, click2, click3 and breed1 without problem.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #5  
Old 04-11-2012, 01:30 AM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 84,632
SilverDragonTears is on a distinguished road
Default

I will but can you help me here? Seems I just need to somehow get the altm from the levels table and put it in the imageurl for the owned_adoptables table
__________________

Check out SilvaTales
Reply With Quote
  #6  
Old 04-11-2012, 01:38 AM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 394,826
Hall of Famer is on a distinguished road
Default

Well I am too busy at this moment, just spent a few minutes getting rid of the item glitch and now I have to study for the test. I will think about this tomorrow I think(or tonight if it is already tomorrow technically).
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #7  
Old 04-11-2012, 01:42 AM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 84,632
SilverDragonTears is on a distinguished road
Default

I just figured it out >.<
__________________

Check out SilvaTales
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


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

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