Esempio n. 1
0
function use_func_item($usemode, $item)
{
    if ($usemode == "poison") {
        poison($item);
    } elseif ($usemode == "wthchange") {
        wthchange($item);
    } elseif ($usemode == "hack") {
        hack($item);
    } elseif ($usemode == "newradar") {
        newradar($item);
    } elseif ($usemode == "divining") {
        divining($item);
    } elseif ($usemode == "divining1") {
        divining1($item);
    } elseif ($usemode == "divining2") {
        divining2($item);
    } elseif ($usemode == "deathnote") {
        deathnote($item);
    } elseif ($usemode == "qianghua") {
        qianghua($item);
    } elseif ($usemode == "nametag") {
        nametag($item);
    } elseif ($usemode == "supernametag") {
        supernametag($item);
    }
}
Esempio n. 2
0
function act()
{
    if (eval(__MAGIC__)) {
        return $___RET_VALUE;
    }
    eval(import_module('sys', 'player', 'input'));
    if ($mode == 'deathnote') {
        if ($dnname) {
            deathnote($item, $dnname, $dndeath, $dngender, $dnicon, $name);
        } else {
            $log .= '嗯,暂时还不想杀人。<br>你合上了■DeathNote■。<br>';
            $mode = 'command';
        }
        return;
    }
    $chprocess();
}
Esempio n. 3
0
 } elseif ($mode == 'shop') {
     if (in_array($pls, $shops)) {
         if ($command == 'shop') {
             $mode = 'sp_shop';
         } else {
             include_once GAME_ROOT . './include/game/itemmain.func.php';
             itembuy($command, $shoptype, $buynum);
         }
     } else {
         $log .= '<span class="yellow">你所在的地区没有商店。</span><br />';
         $mode = 'command';
     }
 } elseif ($mode == 'deathnote') {
     if ($dnname) {
         include_once GAME_ROOT . './include/game/item2.func.php';
         deathnote($item, $dnname, $dndeath, $dngender, $dnicon, $name);
     } else {
         $log .= '嗯,暂时还不想杀人。<br>你合上了■DeathNote■。<br>';
         $mode = 'command';
     }
 } elseif ($mode == 'oneonone') {
     if ($dnname) {
         include_once GAME_ROOT . './include/game/special.func.php';
         oneonone($dnname, $name);
     } else {
         $log .= '约战取消。<br>';
         $mode = 'command';
     }
 } elseif ($mode == 'sp_skpts') {
     include_once GAME_ROOT . './include/game/clubskills.func.php';
     upgradeclubskills($command);