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 09-22-2016, 09:09 PM
Dinocanid's Avatar
Dinocanid Dinocanid is offline
Member
 
Join Date: Aug 2016
Location: Maryland, USA
Posts: 516
Gender: Unknown/Other
Credits: 96,422
Dinocanid is on a distinguished road
Default

I honestly have no idea why it's not working either since I'm using the exact same script I posted in my last reply and it runs and ends fine. Maybe try replacing the entire script with:
PHP Code:
<?php 

class ExploreeyresgameView extends View
     
    public function 
index(){ 
        
$mysidia Registry::get("mysidia"); 
        
$document $this->document
            
$document->setTitle("<center>Hanafuda with Eyre</center>");           
$item "Sherlock Holmes Book"
$hasitem $mysidia->db->select("inventory", array("quantity"), "itemname ='{$item}' and owner='{$mysidia->user->username}'")->fetchColumn(); 
if(
$hasitem 0){ 
    
$document->add(new Comment("You have $hasitem {$item}!")); 
}                     
   
$item_name "Sherlock Holmes Book"
$qty 1
$item = new PrivateItem($item$mysidia->user->username); 
$item->remove($qty$mysidia->user->username);  
  
            
$document->add(new Comment("<center><a href='http://atrocity.mysidiahost.com/exploreeyresgame'>Play again?</a> Or <a href='http://atrocity.mysidiahost.com/pages/view/bakenekohalloween'> Go back to the event plaza</a></center>"FALSE));   
         
            
$random rand(1,115); 
             
            if(
$random && $random 20){ 
$document->add(new Comment("<b><center>Eyres Hand</center></b>"FALSE)); 
                
$document->add(new Comment("<center><img src='http://atrocity.mysidiahost.com/picuploads/png/291a4c3f9d34e71b1a97ba1ea41a2476.png'>")); 
$document->add(new Comment("<center><img src='http://pile.randimg.net/1/90/85238/Hanafuda%20winners.png'></center>"FALSE)); 
$document->add(new Comment("<b><center>Your Hand</center></b>"FALSE)); 
$document->add(new Comment("<center><img src='http://pile.randimg.net/1/90/85239/Hanafuda%20losers.png'></center>"FALSE)); 
                
$document->add(new Comment("<center>You lost!</center>"FALSE)); 
            } 
            elseif(
$random >= 21 && $random <= 30){ 
                
$amount rand(5,20); 
                
$mysidia->user->changecash($amount);  
$document->add(new Comment("<b><center>Eyres Hand.</center></b>"FALSE)); 
                
$document->add(new Comment("<center><img src='http://atrocity.mysidiahost.com/picuploads/png/8a513071bd47ab3361b61942118f8b87.png'>")); 
$document->add(new Comment("center><img src='http://pile.randimg.net/1/90/85240/Hanafuda%20ties.png'></center>"FALSE)); 
$document->add(new Comment("<b><center>Your Hand</center></b>"FALSE)); 
$document->add(new Comment("<center><img src='http://pile.randimg.net/1/90/85240/Hanafuda%20ties.png'></center>"FALSE)); 
                
$document->add(new Comment("<center>Its a Tie...I guess I'll give you some beads...<i>You got $amount Beads!</center></i>"FALSE));  
            } 
            elseif(
$random >= 61 && $random <= 70){ 
                
$item "Sherlock Holmes Book"
                
$qty 1
                
$newitem = new StockItem($item); 
                
$newitem->append($qty$mysidia->user->username); 
                 
$document->add(new Comment("<b><center>Eyres Hand.</center></b>"FALSE)); 
                
$document->add(new Comment("<center><img src='http://atrocity.mysidiahost.com/picuploads/png/8a513071bd47ab3361b61942118f8b87.png'>")); 
  
$document->add(new Comment("<center><img src='http://pile.randimg.net/1/90/85239/Hanafuda%20losers.png'></center>"FALSE)); 
$document->add(new Comment("<b><center>Your Hand.</center></b>, FALSE")); 
$document->add(new Comment("<center><img src='http://pile.randimg.net/1/90/85238/Hanafuda%20winners.png'></center>"FALSE));   
                
$document->add(new Comment("Alright Human thing... you can have my uncommon <img src='http://atrocity.mysidiahost.com/picuploads/png/6cd9c65227f0ae199cf399f294c1acb1.png'> <b>$item</b>!</center>"FALSE)); 
            } 
            elseif(
$random >= 71 && $random <= 75){ 
                
$item "Sherlock Holmes Book"
                
$qty 1
                
$newitem = new StockItem($item); 
                
$newitem->append($qty$mysidia->user->username); 
                 
$document->add(new Comment("<b><center>Eyres Hand.</center></b>"FALSE)); 
                
$document->add(new Comment("<center><img src='http://atrocity.mysidiahost.com/picuploads/png/8a513071bd47ab3361b61942118f8b87.png'>")); 
  
$document->add(new Comment("<center><img src='http://pile.randimg.net/1/90/85239/Hanafuda%20losers.png'></center>"FALSE)); 
$document->add(new Comment("<b><center>Your Hand.</center></b>"FALSE)); 
$document->add(new Comment("<center><img src='http://pile.randimg.net/1/90/85238/Hanafuda%20winners.png'></center>"FALSE));   
                
$document->add(new Comment("No...not my rare <img src=http://atrocity.mysidiahost.com/picuploads/png/63388ceaa8e021597d9af37977138554.png'> <b>$item</b>!Human thing you are unfair!</center>"FALSE)); 
            } 
            elseif(
$random >= 81 && $random <= 90){ 
                
$item "Sherlock Holmes Book"
                
$qty 1
                
$newitem = new StockItem($item); 
                
$newitem->append($qty$mysidia->user->username); 
                 
$document->add(new Comment("<b><center>Eyre's Hand.</center></b>"FALSE)); 
                
$document->add(new Comment("<center><img src='http://atrocity.mysidiahost.com/picuploads/png/8a513071bd47ab3361b61942118f8b87.png'>")); 
  
$document->add(new Comment("<center><img src='http://pile.randimg.net/1/90/85239/Hanafuda%20losers.png'></center>"FALSE)); 
$document->add(new Comment("<b><center>Your Hand.</center></b>"FALSE)); 
$document->add(new Comment("<center><img src='http://pile.randimg.net/1/90/85238/Hanafuda%20winners.png'></center>"FALSE));   
                
$document->add(new Comment("This is why I hate Human things... they always take my <img src='http://atrocity.mysidiahost.com/picuploads/png/856746dbbefc14049ea9d29bf86049a7.png'><b>$item</b>!</center>"FALSE)); 
            } 
            elseif(
$random >= 91 && $random <= 99){ 
                 
$document->add(new Comment("<b><center>Eyre's Hand.</center></b>"FALSE)); 
                
$document->add(new Comment("<center><img src='http://atrocity.mysidiahost.com/picuploads/png/291a4c3f9d34e71b1a97ba1ea41a2476.png'>")); 
  
$document->add(new Comment("<center><img src='http://pile.randimg.net/1/90/85238/Hanafuda%20winners.png'></center>"FALSE)); 
$document->add(new Comment("<b><center>Your Hand.</center></b>"FALSE)); 
$document->add(new Comment("<center><img src='http://pile.randimg.net/1/90/85239/Hanafuda%20losers.png'></center>"FALSE));   
                
$document->add(new Comment("You lose Human thing!</center>"FALSE)); 
            } 
            elseif(
$random == 100){ 
                
$document->add(new Comment("<b><center>Eyre's Hand.</center></b>"FALSE)); 
                
$document->add(new Comment("<center><img src='http://atrocity.mysidiahost.com/picuploads/png/291a4c3f9d34e71b1a97ba1ea41a2476.png'>")); 
  
$document->add(new Comment("<center><img src='http://pile.randimg.net/1/90/85238/Hanafuda%20winners.png'></center>"FALSE)); 
$document->add(new Comment("<b><center>Your Hand.</center></b>"FALSE)); 
$document->add(new Comment("<center><img src='http://pile.randimg.net/1/90/85239/Hanafuda%20losers.png'></center>"FALSE));   
                
$document->add(new Comment("You lose Human thing!</center>"FALSE)); 
            } 
             else { 
    
$document->add(new Comment("<center><img src='http://atrocity.mysidiahost.com/picuploads/png/b30c16d80645c40477b2143fae5f5eeb.png'></center>"FALSE)); 
    
$document->add(new Comment("<center>You are out of candy...come back when you have more!!</center>"FALSE)); 
}    
    } 
   }  
?>
You would need at least 1 Sherlock Holmes Book in your inventory to play the game, but after that you should get the game over message. Try refreshing a few times to see if it happens. It's basically the same script I edited but you don't have an item called asda so I changed it. Are you sure the items you have are consumable? (You can check through the adminCP)
Reply With Quote
Reply

Thread Tools
Display Modes

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 05:10 PM.

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