'普埃塔', 2=>'极乐世界', 3=>'贝尔特伦', 4=>'埃尔特内', 5=>'泰奥勃莫斯', 6=>'因特尔蒂卡', 7=>'伊斯夏尔肯', 8=>'伏魔殿', 9=>'阿尔特盖德', 10=>'布鲁斯特豪宁', 11=>'莫尔海姆', 12=>'贝鲁斯兰', 13=>'欧比斯入场任务', 14=>'埃雷修兰塔', 15=>'天魔战争', 16=>'测试区' ); $czyn=array( '1'=>'战士', '2'=>'侦查者', '3'=>'法师', '4'=>'祭师', '5'=>'剑星', '6'=>'守护星', '7'=>'杀星', '8'=>'弓星', '9'=>'魔道星', '10'=>'精灵星', '11'=>'护法星', '12'=>'治愈星', '13'=>'全部' ); $aa=array( 'Passive'=>'被动', 'Active'=>'主动', 'Toggle'=>'触发', 'Maintain'=>'持续', 'Provoked'=>'激发', ); $jlcn=array( 'parry'=>'武器防御', 'attackDelay'=>'攻击速度', 'critical'=>'致命一击', 'phyAttack'=>'物理攻击', 'maxHp'=>'增加生命', 'hitAccuracy'=>'命中', 'maxMp'=>'增加法量', 'speed'=>'速度', 'maxFp'=>'最大飞行时间', 'edWater'=>'水系防御', 'block'=>'武器防御', 'dodge'=>'回避', 'edAir'=>'风系防御', 'PhysicalDefend'=>'物理防御', 'magicalskillboost'=>'魔法增幅力', 'magicalhitAccuracy'=>'魔法命中', 'magicalCritical'=>'魔法致命一击' ); $zs_arr=array_flip($z_arr); $c_arr=array( task=>'委托', quest=>'一般', mission=>'使命' ); $czz1=array('light'=>'天族','dark'=>'魔族'); $c_=array( 1=>'quest', 2=>'mission', 3=>'task' ); //职业数组 $ezy=array(warrior,scout,mage,cleric,fighter,knight,assassin,ranger,wizard,elementallist,chanter,priest); $czy=array( warrior=>'战士', scout=>'侦察者', mage=>'法师', cleric=>'祭祀', fighter=>'剑星', knight=>'守护星', assassin=>'杀星', ranger=>'弓星', wizard=>'魔道星', elementallist=>'精灵星', chanter=>'护法星', priest=>'治愈星' ); //种族 function zzgc($ezz){ if($ezz=='pc_light')$czz='天族'; if($ezz=='pc_dark')$czz='魔族'; if($ezz=='pc_light pc_dark')$czz='全部'; return $czz; } $where=array(); $id=postget('id'); $id=getid('quest',$id); if(empty($id)){ echo "
无参数,请返回
"; exit(); } $where='id='.$id; $plussql='limit 1'; $listarr = selecttable('quest', array(), $where, $plussql); $qv=$listarr['0']; //任务提供:quest_work_item1 quest_work_item2 quest_work_item3 quest_work_item4 $qwi=array(); if($qv['quest_work_item1']!='')$qwi[]=$qv['quest_work_item1']; if($qv['quest_work_item2']!='')$qwi[]=$qv['quest_work_item2']; if($qv['quest_work_item3']!='')$qwi[]=$qv['quest_work_item3']; if($qv['quest_work_item4']!='')$qwi[]=$qv['quest_work_item4']; //任务需要:collect_item1 collect_item2 collect_item3 collect_item4 $ci=array(); if($qv['collect_item1']!='')$ci[]=$qv['collect_item1']; if($qv['collect_item2']!='')$ci[]=$qv['collect_item2']; if($qv['collect_item3']!='')$ci[]=$qv['collect_item3']; if($qv['collect_item4']!='')$ci[]=$qv['collect_item4']; //通过物品名称找物品ID和图标 function geti($itname){ global $db; $item=array(); if($item=$db->getfirst("select id,quality,name_string,icon_name from item where name_string='$itname' limit 1")){; return $item; } } //通过物品名称找NPC名称 function getn($npcid){ global $db; $npc=array(); if($npc=$db->getfirst("select desc_name from npc where id='$npcid' limit 1")){; return $npc['desc_name']; } } //通过id找物品名称 function fq($id){ global $db; if($r=$db->getfirst('select * from quest where id='.$id.'')){; //$name=$r['name_string']; } return $r; } //通过物品名称找称号ID和图标 function gett($rt){ global $db; $item=array(); if($item=$db->getfirst("select * from title where name='$rt' limit 1")){; return $item; } } function getskill($sname){ global $db; $skill=array(); if($skill=$db->getfirst("select * from skill where name='$sname' limit 1")){; return $skill; } } //取对话文件 $filename='quest_'.$qv['name'].'.html'; $filename=str_replace('Q','q',$filename); $dh=@file_get_contents('./temp_dh/'.$filename); if($dh!=''){ $dh=str_replace('[%collectitem]','',$dh); $dh=str_replace('[%userclass]','',$dh); $dh=str_replace(' 新任务:[%questname] 进行中:[%questname] ','',$dh); preg_match_all('/(

([^<].+)<\/p>)/isU',$dh,$dh10); preg_match('/([^\/body>].*)<\/body>/isU',$dh,$dh20); //$dh1=$dh10[0][0].$dh10[0][1].$dh10[0][2]; $dh1=$dh20[1]; //检查是否有韩文 if(preg_match('/[\x{ac00}-\x{d7a3}]+/u',$dh)) $hk=1; else $hk=0; //$dh1=preg_replace($z_z,'\\2',$dh1); //print_r($dh20); } //任务奖励 $rwjl=array(); $xg_item=$xg_npc=array(); $ri_=array('reward_item1_1','reward_item1_2','reward_item1_3','reward_item2_1','reward_item3_1','reward_item4_1'); foreach($ri_ as $ri){ if($qv[$ri]!='')$rwjl[]=$qv[$ri]; } //任务可选择奖励 $rwjl2=array(); $sri_=array('selectable_reward_item1_1','selectable_reward_item1_2','selectable_reward_item1_3','selectable_reward_item1_4','selectable_reward_item1_5','selectable_reward_item1_6','selectable_reward_item1_7','selectable_reward_item1_8','selectable_reward_item2_1','selectable_reward_item2_2','selectable_reward_item2_3','selectable_reward_item3_2','selectable_reward_item3_2','selectable_reward_item3_3','selectable_reward_item3_4','selectable_reward_item4_1','selectable_reward_item4_2'); foreach($sri_ as $sri){ if($qv[$sri]!='')$rwjl2[]=$qv[$sri]; } // 金钱经验奖励 //$jj_=array('reward_gold1','reward_gold2','reward_gold3','reward_gold4','reward_exp1','reward_exp2','reward_exp3','reward_exp4'); $jl_=array(); for($j_=1;$j_<=4;$j_++){ $rg[$j_]=$qv['reward_gold'.$j_]; $rw[$j_]=$qv['reward_exp'.$j_]; $jl_[]=$rg[$j_].':'.$rw[$j_]; } $jl=array_unique($jl_); //奖励深渊点数 reward_abyss_point1,reward_abyss_point2 $rap=$qv['reward_abyss_point1']; //称号奖励 $rt=$qv['reward_title1']; //职业限制 $cp=explode(' ',$qv['class_permitted']); $cp_=array_intersect($cp,$ezy); //print_r($cp_); if(count($cp_)==12) { $cp_1='none'; }else{ $cp_1=''; foreach($cp_ as $cp_0){ $cp_1.=$czy[$cp_0].' '; } } //系列任务递归函数 function findrw($quest_ass){ global $db; $xgrw=array(); $id_=explode(',',$quest_ass); foreach($id_ as $id_1){ //echo $id_1.'
'; $sql2='select * from quest_ass where id='.$id_1.''; if($row2=$db->getfirst($sql2)){ $ii=1; while($row2['quest_'.$ii]!=''){ //echo $ii."++++"; $xgrw[]=$row2['quest_'.$ii]; $ii++; } } } return array_unique($xgrw); } $webname="[".$c_arr[$qv['category1']]."]".$qv['name_string']; require("header.php"); require("menu.php"); ?>

任务 »
[]
0){ ?>
任务提供:
0){ ?>
任务需要:
任务需要技能: