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 > 1 && $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)