Shakes & Fidget Private - Final Script (Tower, Toilet, Witch, Epic)

04/14/2014 14:31 nomercy115#16
Ahoj kdo mi pomůže píše mi to pořád že nemám připojení k internetu nebo že probíha údržba/Hi there to help me write me all the time that I have no internet connection or be in the maintenance
04/14/2014 14:38 shirowa#17
Je spoustu možností,buď nemáš dostatečný výkon nebo máš někde bug.
04/14/2014 14:51 tulyita#18
Quote:
Originally Posted by shirowa View Post
Where we reduce the price of weapons?

Sorry for my bad English
PHP Code:
.
.
.
    if (
$option == "toilet" or $option == "dungeon"){
    
$itemMush = 0;
    }
    
    
$item = array (
            
"item_type" => "1",
            
"item_id" => "1005",
            
"dmg_min" => "1",
            
"dmg_max" => "0",
            
"atr_type_1" => "0",
            
"atr_type_2" => "0",
            
"atr_type_3" => "0",
            
"atr_val_1" => "0",
            
"atr_val_2" => "0",
            
"atr_val_3" => "0",
            
"gold" => rand($lvl * 100, $lvl * 10000), //this is the price of an item. random value between lvl*100 and lvl*10000
            
"mush" => $itemMush,
            
"slot" => "0",
            
"owner_id" => $itemOwner
    
);
    
    if (
$shop == 0) {
        
$type = rand ( 1, 7 );
        while ( 
$class != 1 && $type == 2 )
            
$type = rand ( 1, 7 );
        
        
$item ['item_type'] = $type;
        
$random = rand ( 1, $shakes_item_ids [$class - 1] [$type - 1] );
        if (
$epicRand == 1){
.
.
. 
04/14/2014 15:05 Dmixior#19
I've error.
[Only registered and activated users can see links. Click Here To Register...]
Help
04/14/2014 15:12 tulyita#20
Quote:
Originally Posted by Dmixior View Post
I've error.
[Only registered and activated users can see links. Click Here To Register...]
Help
Did you edited PDO? I mean this:

Search for "YOU HAVE TO EDIT THIS" in the file, and edit it below.
(Because of the connection to database)
04/14/2014 15:31 TheCry#21
How to got epic only in dungeons... not in shops... in shops only normal items, keys, potions, no epics! ?

Sorry for my bad english:)
04/14/2014 15:31 Dmixior#22
Oh, thanks. You're big:D:D
I've question to toilet, it's normal?
[Only registered and activated users can see links. Click Here To Register...]
04/14/2014 15:39 shirowa#23
How to add mushrooms to fall out of quests?

Quote:
// generate new quests
$quests = array ();

for($i = 0; $i < 3; $i ++) {
// multiplier
$m = mt_rand ( 900, 1100 ) / 1000;

// random length
$l = rand(1, 4);

$quests [] = array (
$db_data ['lvl'] * rand(100, 1000),
getQuestExp ( $db_data ['lvl'] ) * $l * $m,
$l
);
}
04/14/2014 16:07 tulyita#24
Quote:
Originally Posted by shirowa View Post
How to add mushrooms to fall out of quests?
PHP Code:
function finishQuest($db_data){
.
.
.    
    
// generate new quests
    
$quests = array ();
    
    for(
$i = 0; $i < 3; $i ++) {
        
// multiplier
        
$m = mt_rand ( 900, 1100 ) / 1000;
            
        
// random length
        
$l = rand(1, 4);
            
        
$quests [] = array (
                
$db_data ['lvl'] * rand(100, 1000),
                
getQuestExp ( $db_data ['lvl'] ) * $l * $m,
                
$l
        
);
    }

    
$mushRand = rand(1, 25); //4% chance for mushroom
    
if ($mushRand == 1){
    
$addMush = 1; //reward 1 mush
    
} else {
    
$addMush = 0;
    }    
    
// update database
    
$qry = $db->prepare ( "UPDATE user_data SET
                        silver = :silver,
                        exp = :exp,
                        lvl = :lvl,
                        mushroom = mushroom + 
$addMush,
                        status = 0,
                        thirst = :awa,
                        quest_gold_1 = :qg1,
                        quest_gold_2 = :qg2,
                        quest_gold_3 = :qg3,
                        quest_exp_1 = :qe1,
                        quest_exp_2 = :qe2,
                        quest_exp_3 = :qe3,
                        quest_dur_1 = :qd1,
                        quest_dur_2 = :qd2,
                        quest_dur_3 = :qd3
                        WHERE ssid = :ssid" 
);
    
$qry->bindParam ( ':ssid', $SSID );
    
$qry->bindParam ( ':silver', $db_data ['silver'] );
    
$qry->bindParam ( ':exp', $db_data ['exp'] );
    
$qry->bindParam ( ':lvl', $db_data ['lvl'] );
    
$qry->bindParam ( ':awa', $db_data ['thirst'] );
    
$i = 1;
    foreach ( 
$quests as $q ) {
        
$qry->bindParam ( ':qg' . $i, $q [0] );
        
$qry->bindParam ( ':qe' . $i, $q [1] );
        
$qry->bindParam ( ':qd' . $i, $q [2] );
            
        
$i ++;
    }
    
$qry->execute ();
    
// var_dump($qry -> errorInfo());
} 
I'm not sure if this works.
04/14/2014 17:01 barteklorek123#25
Hi! You're divine! xd I have a question whether it is possible to do that instead of this:
[Only registered and activated users can see links. Click Here To Register...]

It was once:D

[Only registered and activated users can see links. Click Here To Register...]

And what do you do as the whole time the same opponent? It is possible to do something about it

sory for my English but I'm a poland :D
04/14/2014 17:06 TheCry#26
barteklorek wieża nie jest jest skonczona... narazie praktycznie nie ma żadnej funkcji... możesz tylko wejsc ;d
04/14/2014 17:16 barteklorek123#27
Aha nieno to ok bo myslalem ze dziala chociaż walka P ok dzieki za odp :D
04/14/2014 20:06 endrehalo3#28
Hi! You do not want it Ceh attack / dungeon to do the dirty? Script pls!!! Thanks you good job!
04/14/2014 20:08 chyba404#29
Where I can change max level?
Sorry for my english, im from czech :) :D
04/14/2014 20:10 Wolgix#30
Hi, looking for script with slow exp and mushrooms of quests. Someone can help me ?