原帖由 kevin 於 2009-1-14 01:27 發表 訪客無法瀏覽此圖片或連結,請先註冊或登入會員。
我剛剛查了程式沒問題啊,請您們多試試幾次看看是否真的跑不出來,謝謝。
$npcinfo=$db->get_one("select * from {$tablepre}wxnpcdata where mapid='$mapid' and ((pktime<$timestamp-4 and npctime=0) or (npctime>0 and npchp>0) or (npctime>0 and npchp=0 and pktime<$timestamp-npctime*60)) order by rand() limit 1");
if(!$npcinfo){
$npcinfo=$db->get_one("select * from {$tablepre}wxnpcdata where mapid=0 order by rand() limit 1");
}
歡迎光臨 亞寶論壇 (http://bbs.ahpal.com/) | Powered by Discuz! 7.0.0 |