Exemple #1
0
     include_once GAME_ROOT . './include/game/search.func.php';
     move($var1);
     $cmdnum++;
 } else {
     if ($command == 'search') {
         include_once GAME_ROOT . './include/game/search.func.php';
         search();
         $cmdnum++;
     } else {
         if ($command == 'itemget') {
             include_once GAME_ROOT . './include/game/itemmain.func.php';
             itemget();
         } else {
             if ($command == 'getcorpse') {
                 include_once GAME_ROOT . './include/game/itemmain.func.php';
                 getcorpse($var1);
             } else {
                 if ($command == 'attack') {
                     include_once GAME_ROOT . './include/game/combat.func.php';
                     if ($var1 == 'back') {
                         combat(1, $var1);
                     } else {
                         combat(1);
                     }
                 } else {
                     if (strpos($command, 'drop') === 0) {
                         include_once GAME_ROOT . './include/game/itemmain.func.php';
                         $drop_item = substr($command, 4);
                         itemdrop($drop_item);
                     } else {
                         if (strpos($command, 'off') === 0) {
Exemple #2
0
function act()
{
    if (eval(__MAGIC__)) {
        return $___RET_VALUE;
    }
    eval(import_module('sys', 'player'));
    if ($mode == 'corpse') {
        getcorpse($command);
        return;
    }
    if (strpos($action, 'pacorpse') === 0) {
        $cid = str_replace('pacorpse', '', $action);
        if ($cid) {
            $result = $db->query("SELECT * FROM {$tablepre}players WHERE pid='{$cid}' AND hp=0");
            if ($db->num_rows($result) > 0) {
                $edata = $db->fetch_array($result);
                findcorpse($edata);
                return;
            }
        }
    }
    $chprocess();
}
Exemple #3
0
     senditem();
 } elseif ($mode == 'combat') {
     include_once GAME_ROOT . './include/game/combat.func.php';
     combat(1, $command);
 } elseif ($mode == 'rest') {
     include_once GAME_ROOT . './include/state.func.php';
     rest($command);
     //		} elseif($mode == 'chgpassword') {
     //			include_once GAME_ROOT.'./include/game/special.func.php';
     //			chgpassword($oldpswd,$newpswd,$newpswd2);
     //		} elseif($mode == 'chgword') {
     //			include_once GAME_ROOT.'./include/game/special.func.php';
     //			chgword($newmotto,$newlastword,$newkillmsg);
 } elseif ($mode == 'corpse') {
     include_once GAME_ROOT . './include/game/itemmain.func.php';
     getcorpse($command);
 } elseif ($mode == 'team') {
     include_once GAME_ROOT . './include/game/team.func.php';
     if ($command == "teammake") {
         teammake($nteamID, $nteamPass);
     }
     if ($command == "teamjoin") {
         teamjoin($nteamID, $nteamPass);
     }
     if ($command == "teamquit") {
         teamquit($nteamID, $nteamPass);
     }
 } elseif ($mode == 'shop') {
     if (in_array($pls, $shops)) {
         if ($command == 'shop') {
             $mode = 'sp_shop';