Beispiel #1
0
         if (mysql_error()) {
             echo "alert('" . mysql_error() . "');";
         }
         if (mysql_num_rows($insultes) > 0) {
             while ($insulte = mysql_fetch_assoc($insultes)) {
                 if (preg_match("#.*Elle vous prendra dorénavant comme adversaire privilégié.*#", $insulte["texte"])) {
                     echo "\$(anchorCellDesc).append(' <img align=\\'ABSMIDDLE\\' title=\\'Insulté par " . addslashes($insulte["nom_troll"]) . " le " . $insulte["date"] . " \\' src=\\'http://" . $_SERVER['SERVER_NAME'] . "/images/firemago/insulte.png\\'/> ');";
                     $insulte = addslashes($insulte["nom_troll"]) . " à " . $insulte["date"];
                     break;
                 }
             }
         }
     }
     // Ajoute des icones
     if ($monsterEtages[$i] == $etageTroll) {
         echo "\$(anchorCellDesc).append('" . addIcon($vttTroll, $dist, $degbm) . "');";
     }
     if (isMonsterSearch($name) && !preg_match("#.*Gowap.*#", $name)) {
         echo "\$(anchorCellDesc).append('" . addEMIcon($name) . "');";
     }
     if (preg_match("#.*abishaii|ame-en-peine|aragnarok du chaos|banshee|barghest|behemoth|beholder|bouj'dla placide|champi-glouton|chauve-souris geante|chevalier du chaos|chimere|daemonite|diablotin|ectoplasme|effrit|elémentaire d'air|erinyes|essaim craterien|essaim sanguinaire|fantôme|fumeux|fungus géant|fungus violet|gnu|goule|gritche|hellrot|incube|marilith|molosse satanique|momie|nécrochore|nécromant|ombre|ombre de roches|palefroi infernal|phoenix|pititabeille|plante carnivore|shai|sorcière|sphinx|squelette|succube|tertre errant|tubercule tueur|vampire|zombie.*#i", $name)) {
         echo "\$(anchorCellDesc).append('" . addVLC() . "');";
     }
     // Ajoute le monstre au Cr
     if ($dist <= 5 && $monsterEtages[$i] == $etageTroll && !preg_match("#.*Gowap.*#", $name) || $dist <= 3 && $monsterEtages[$i] != $etageTroll && !preg_match("#.*Gowap.*#", $name)) {
         echo addMonsterInCr($name, $monsterIds[$i], $caracTot, $insulte);
     }
 }
 echo "if ( uncookifyButton ( document.getElementsByName ( 'delgowap' )[0] ) ) \t{ toggleGowap (); }\n\t\t\t} catch ( e ) { \n\t\t\talert ( e, 'Monsters Colouring error' );\n\t\t} \n";
 if ($_REQUEST["end"]) {
     echo "\$('#cr').append('[/quote]');";
Beispiel #2
0
            $caracTot .= $vtt["REG"] . "+" . $vtt["REGB"] . ";";
            $caracTot .= $vtt["ARM"] . "+" . $vtt["ARMB"] . ";";
            $caracTot .= $vtt["VUE"] . "+" . $vtt["VUEB"] . ";";
            $caracTot .= $vtt["RM"] . "+" . $vtt["RMB"] . ";";
            $caracTot .= $vtt["MM"] . "+" . $vtt["MMB"] . ";";
            $colPV = $vtt["Peremption"] / 24 > 5 ? 1 : 0;
            if ($vtt["PV_ACTUELS"]) {
                echo "tableTrolls[{$rang}].childNodes[6].appendChild( createBarrePV({$colPV},{$vtt['PV_ACTUELS']},{$vtt['PVs']},'{$vtt['PV_ACTUELS']}/{$vtt['PVs']}') );";
            }
            echo "tableTrolls[{$rang}].childNodes[3].setAttribute ( 'onmouseover', 'this.style.cursor = \\'pointer\\';this.className = \\'mh_tdtitre\\';');";
            echo "tableTrolls[{$rang}].childNodes[3].setAttribute ( 'onclick', 'infoBulle (\\'{$nom_troll}\\',event,\\'caracTroll\\',\\'{$caracTot}\\');');";
            echo "tableTrolls[{$rang}].childNodes[3].setAttribute ( 'onmouseout', '";
            echo !empty($colorTroll) ? "\$(this).attr(\\'class\\',\\'\\');\$(this).css(\\'background-color\\',{$colorTroll});" : "this.className = \\'mh_tdpage\\';";
            echo "' );";
        }
        // infobulle contenant les stats du troll à partir des AA
        if (isset($arrayAna[$trollsid[$i]])) {
            echo "tableTrolls[{$rang}].childNodes[3].setAttribute ( 'onmouseover', 'this.style.cursor = \\'pointer\\';this.className = \\'mh_tdtitre\\';');";
            echo "tableTrolls[{$rang}].childNodes[3].setAttribute ( 'onclick', 'infoBulle (\\'{$nom_troll}\\',event,\\'caracTrollAna\\',\\'" . addslashes(htmlspecialchars(implode('|', $arrayAna[$trollsid[$i]]), ENT_QUOTES)) . "\\');');";
            echo "tableTrolls[{$rang}].childNodes[3].setAttribute ( 'onmouseout', '";
            echo !empty($colorTroll) ? "\$(this).attr(\\'class\\',\\'\\');\$(this).css(\\'background-color\\',{$colorTroll});" : "this.className = \\'mh_tdpage\\';";
            echo "' );";
        }
        // Ajoute les icônes pour la charge/projo/...
        if ($trollEtages[$i] == $etageTroll) {
            echo "\$('>*:eq(2)',tableTrolls[{$rang}]).append('" . addIcon($vttTroll, $dist, $degbm) . "');";
        }
    }
    echo "if ( uncookifyButton ( document.getElementsByName ( 'delint' )[0] ) ) \t{ toggleIntangible (); }";
    echo "} catch ( e ) { error ( e, 'Troll Colouring error' ); } \n";
}