Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Questions and Supports (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=18)
-   -   help with an explore page please.. (http://www.mysidiaadoptables.com/forum/showthread.php?t=5200)

Ittermat 09-21-2016 10:20 AM

help with an explore page please..
 
Okay so...I've been trying to figure out what I did wrong, and being that I dont know coding...of course I screwed it up... lol... I've been looking at it and trying to fix it for hours now..

I was trying to modify - This coding To work a bit differently...

But anytime I try to fix it? I make more problems...
I know its probably a really stupid mistake... but if anyone can help me out with fixing it thatd be awesome.

I was also wondering how to add in that the user has an amount of an item.
like..

You currently have 5 Sherlock holmes books

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){
$document->add(new Comment("<center><img src='http://atrocity.mysidiahost.com/picuploads/png/b30c16d80645c40477b2143fae5f5eeb.png'></center>"FALSE));
    
$document->add(new Comment("<center>Cant guarantee a win!</center>, FALSE));

            
$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 >= 31 && $random <= 40){
                
$item "Red Pirahna Toy";
                
$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("<center>Ugh! I cant lose... fine... take this <img src='http://atrocity.mysidiahost.com/picuploads/png/b5249b5da4564c210d83f7cd61de9d33.png'><b>$item</b>!</center>"FALSE));
            }
            elseif(
$random >= 41 && $random <= 60){
                
$item "Fake fangs";
                
$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("<center>Take it Human thing...The <img src='http://atrocity.mysidiahost.com/picuploads/png/69680cfc5d803f9170fe6549655f7f5b.png'><b>$item</b> is yours!</center>"FALSE));
            }
            elseif(
$random >= 101 && $random <= 110){
                
$item "Red Gummy eye";
                
$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("Fine Human thing...take the treasure.. the <img src='http://atrocity.mysidiahost.com/picuploads/png/40618507daa6fe0dd5708d878139c1e4.png'><b>$item</b> belongs to you now.</center>"FALSE));
            }
            elseif(
$random >= 61 && $random <= 70){
                
$item "Halloween Kazoo";
                
$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 "Jar of Halloween spirit";
                
$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 >= 76 && $random <= 80){
                
$item "Mystery candy";
                
$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("Fine human thing....take my <img src='http://atrocity.mysidiahost.com/picuploads/png/282ad92a5ac391066e7e1999809f39ab.png'> <b>$item</b>!</center>"FALSE));
            }
            elseif(
$random >= 81 && $random <= 90){
                
$item "Zombie arm";
                
$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("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 >= 111 && $random <= 115){
                
$item "Halloween Treat basket";
                
$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 alright...the <img src='http://atrocity.mysidiahost.com/picuploads/png/6282ede37f0ccc934ea7336751740ccc.png'> <b>$item</b> is yours.</center>"FALSE));
            }
            elseif(
$random >= 91 && $random <= 99){
                 
$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("You lose Human thing!</center>"FALSE));
            }
            elseif(
$random == 100){
                
$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("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));
}  

    }
    }

?>

Thank you in advance

Dinocanid 09-21-2016 09:03 PM

I'd like to help, but what problems are you having? Are you getting any error messages or anything? As for adding how much of an item a user has, you can use:

PHP Code:

$item "nameofitem"
                
$hasitem $mysidia->db->select("inventory", array("quantity"), "itemname ='{$item}' and owner='{$mysidia->user->username}'")->fetchColumn(); 
                if(
$hasitem){ 
                    
$document->add(new Comment("You have $hasitem {$item}!")); 

It will show as:
You have [itemamount] [itemname]!

Ittermat 09-21-2016 09:06 PM

It gives me a lot of errors... the main one- seems to be this-

Parse error: syntax error, unexpected '>' in /home/atrocity/public_html/view/exploreeyresgameview.php on line 15


But im sure theres other ones... I even tried using a PHP checker to pinpoint the problem better... and it didnt help.. x.x

Dinocanid 09-21-2016 09:19 PM

There does't seem to be anything wrong with line 15 itself (meaning the coding isn't typed incorrectly or anything), did you try moving it to:
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){
$document->add(new Comment("<center><img src='http://atrocity.mysidiahost.com/picuploads/png/b30c16d80645c40477b2143fae5f5eeb.png'></center>"FALSE));
    
$document->add(new Comment("<center>Cant guarantee a win!</center>, FALSE));
$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));
}


Ittermat 09-21-2016 09:24 PM

Haha...Yea I dont actually know coding at all...so yea.... also it still gives me the same error... x.x

Dinocanid 09-21-2016 09:36 PM

It took me a while of staring to figure out the problem xD
You're missing quotation marks in some places/ have them in the wrong spots. See this?

PHP Code:

$document->add(new Comment("<center>Cant guarantee a win!</center>, FALSE)); 

It should be:

PHP Code:

$document->add(new Comment("<center>Cant guarantee a win!</center>, FALSE")); 

This:
PHP Code:

$document->add(new Comment("<b><center>Eyres Hand".</center></b>", FALSE)); 

Should be this:
PHP Code:

$document->add(new Comment("<b><center>Eyres Hand.</center></b>, FALSE")); 

(You can check and fix all the others that are like that)

Basically have only/make sure you have 2 quotation marks. So the "formula" should be:
$document->add(new Comment("CodeGoesHere"));
No extra quotation marks should go anywhere inside that line.

An easy way to spot these mistakes is looking at your code and seeing if too many of the lines are blue. If your "elseif" statement is blue instead of green, then you probably need to fix the quotation marks. The same goes for "if" statements. "$document" should also always be gold/yellow.

Ittermat 09-21-2016 09:48 PM

Did all those things... and it still gives me the same error... is there possibly the problem is that the

PHP Code:

$document->add(new Comment("<center><img src='http://atrocity.mysidiahost.com/picuploads/png/b30c16d80645c40477b2143fae5f5eeb.png'></center>, FALSE"));
    
$document->add(new Comment("<center>Cant guarantee a win!</center>, FALSE));
$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){ 

$random = rand(1,115);

Doesnt have brackets around it? Its not inside of any opening or closing brackets...but im not sure how to remedy that..

Dinocanid 09-21-2016 10:03 PM

I plugged the code in on a test page to see if I could smooth out any errors and I found:

Parse error: syntax error, unexpected 'http' (T_STRING) in /home/adopttes/public_html/view/explorearea2view.php on line 45

The answer to that would be to change this:
PHP Code:

$document->add(new Comment("<center><img src="http://pile.randimg.net/1/90/85239/Hanafuda%20losers.png"></center>", FALSE)); 

To this:
PHP Code:

$document->add(new Comment("<center><img src='http://pile.randimg.net/1/90/85239/Hanafuda%20losers.png'></center>"FALSE)); 

After that it seems to run fine. (Yours wouldn't say explorearea2view though, it would be wherever your code is)

Ittermat 09-21-2016 10:10 PM

I'm still getting this error though...

Parse error: syntax error, unexpected '>' in /home/atrocity/public_html/view/exploreeyresgameview.php on line 15

What code did you use?

Dinocanid 09-21-2016 10:17 PM

I used the one in the original post after fixing all the quotation marks. Maybe try replacing it with the one I edited?:
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){
$document->add(new Comment("<center><img src='http://atrocity.mysidiahost.com/picuploads/png/b30c16d80645c40477b2143fae5f5eeb.png'></center>"FALSE));
    
$document->add(new Comment("<center>Cant guarantee a win!</center>, FALSE"));

            
$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 >= 31 && $random <= 40){
                
$item "Red Pirahna Toy";
                
$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("<center>Ugh! I cant lose... fine... take this <img src='http://atrocity.mysidiahost.com/picuploads/png/b5249b5da4564c210d83f7cd61de9d33.png'><b>$item</b>!</center>"FALSE));
            }
            elseif(
$random >= 41 && $random <= 60){
                
$item "Red Pirahna Toy";
                
$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("<center>Take it Human thing...The <img src='http://atrocity.mysidiahost.com/picuploads/png/69680cfc5d803f9170fe6549655f7f5b.png'><b>$item</b> is yours!</center>"FALSE));
            }
            elseif(
$random >= 101 && $random <= 110){
                
$item "Red Gummy eye";
                
$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("Fine Human thing...take the treasure.. the <img src='http://atrocity.mysidiahost.com/picuploads/png/40618507daa6fe0dd5708d878139c1e4.png'><b>$item</b> belongs to you now.</center>"FALSE));
            }
            elseif(
$random >= 61 && $random <= 70){
                
$item "Halloween Kazoo";
                
$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 "Jar of Halloween spirit";
                
$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 >= 76 && $random <= 80){
                
$item "Mystery candy";
                
$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("Fine human thing....take my <img src='http://atrocity.mysidiahost.com/picuploads/png/282ad92a5ac391066e7e1999809f39ab.png'> <b>$item</b>!</center>"FALSE));
            }
            elseif(
$random >= 81 && $random <= 90){
                
$item "Zombie arm";
                
$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 >= 111 && $random <= 115){
                
$item "Halloween Treat basket";
                
$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("Alright alright...the <img src='http://atrocity.mysidiahost.com/picuploads/png/6282ede37f0ccc934ea7336751740ccc.png'> <b>$item</b> is yours.</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));
}  

    }
    }

?>



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

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.