break; case 'DA': $t = EquipDA($effect, $skillid, $touseid); $result0 = mysql_query("UPDATE roleset SET {$usename} = NULL WHERE Name='{$nam}'"); if ($t) { Put2Bag($t); } break; case 'DH': $t = EquipDH($effect, $skillid, $touseid); $result0 = mysql_query("UPDATE roleset SET {$usename} = NULL WHERE Name='{$nam}'"); if ($t) { Put2Bag($t); } break; case 'A': $t = EquipA($effect, $skillid, $touseid); $result0 = mysql_query("UPDATE roleset SET {$usename} = NULL WHERE Name='{$nam}'"); if ($t) { Put2Bag($t); } break; case 'TR': $t = EquipTR($effect, $skillid, $touseid); $result0 = mysql_query("UPDATE roleset SET {$usename} = NULL WHERE Name='{$nam}'"); if ($t) { Put2Bag($t); } break; } }
if ($idarray[$i] == $Bag3) { $flag[$i] = 'Bag3'; } if ($idarray[$i] == $Bag4) { $flag[$i] = 'Bag4'; } if ($idarray[$i] == $Bag5) { $flag[$i] = 'Bag5'; } } $fl = 1; } $f = 0; for ($i = 0; $i < $j; $i++) { if ($result[$i] != '') { $final[$f] = $result[$i]; $f++; } } if ($final[0] != '' && $final[1] == '') { $s = explode("=", $final[0]); $i = 0; while ($flag[$i] != '') { $result0 = mysql_query("UPDATE RoleSet SET {$flag[$i]} = NULL WHERE Name='{$nam}'"); $i++; } Put2Bag($s[1]); echo '<br /><br /><br />合成成功!'; } else { echo '<br /><br /><br />合成失败!'; }