All Data Structures Namespaces Files Functions Variables Pages
game.func.php
Go to the documentation of this file.
<?php
if(!defined('IN_GAME')) {
exit('Access Denied');
}
function init_playerdata(){
global $lvl,$baseexp,$exp,$gd,$icon,$arbe,$arhe,$arae,$arfe,$weather,$fog,$weps,$arbs,$log,$upexp,$lvlupexp,$iconImg,$ardef;
$upexp = round(($lvl*$baseexp)+(($lvl+1)*$baseexp));
$lvlupexp = $upexp - $exp;
$iconImg = $gd.'_'.$icon.'.gif';
$ardef = $arbe + $arhe + $arae + $arfe;
if(($weather == 8)||($weather == 9)||($weather == 12)) {
$fog = true;
}
if(!$weps) {
global $nowep,$nosta,$wep,$wepk,$wepsk,$wepe;
$wep = $nowep;$wepk = 'WN';$wepsk = '';
$wepe = 0; $weps = $nosta;
}
if(!$arbs) {
global $noarb,$nosta,$arb,$arbk,$arbsk,$arbe;
$arb = $noarb;$arbk = 'DN'; $arbsk = '';
$arbe = 0; $arbs = $nosta;
}
}
function init_profile(){
global $inf,$infinfo,$hp,$mhp,$sp,$msp,$hpcolor,$spcolor,$newhpimg,$newspimg,$ardef,$arbe,$arhe,$arae,$arfe;
global $iteminfo,$wepk,$arbk,$arhk,$arak,$arfk,$artk,$itmk0,$itmk1,$itmk2,$itmk3,$itmk4,$itmk5,$itmk6,$rp,$killnum,$karma,$def,$att;
global $itemspkinfo,$wepsk,$arbsk,$arhsk,$arask,$arfsk,$artsk,$itmsk0,$itmsk1,$itmsk2,$itmsk3,$itmsk4,$itmsk5,$itmsk6;
global $nospk,$wepsk_words,$arbsk_words,$arhsk_words,$arask_words,$arfsk_words,$artsk_words,$itmsk0_words,$itmsk1_words,$itmsk2_words,$itmsk3_words,$itmsk4_words,$itmsk5_words,$itmsk6_words;
global $wepk_words,$arbk_words,$arhk_words,$arak_words,$arfk_words,$artk_words,$itmk0_words,$itmk1_words,$itmk2_words,$itmk3_words,$itmk4_words,$itmk5_words,$itmk6_words;
foreach (Array('wepk','arbk','arhk','arak','arfk','artk','itmk0','itmk1','itmk2','itmk3','itmk4','itmk5','itmk6') as $k_value) {
if(${$k_value}){
${$k_value.'_words'} = '';
foreach($iteminfo as $info_key => $info_value){
if(strpos(${$k_value},$info_key)===0){
${$k_value.'_words'} = $info_value;
break;
}
}
} else {
${$k_value.'_words'} = '';
}
}
foreach (Array('wepsk','arbsk','arhsk','arask','arfsk','artsk','itmsk0','itmsk1','itmsk2','itmsk3','itmsk4','itmsk5','itmsk6') as $sk_value) {
if(${$sk_value} && is_numeric(${$sk_value}) === false){
${$sk_value.'_words'} = '';
for ($i = 0; $i < strlen($sk_value); $i++) {
$sub = substr(${$sk_value},$i,1);
if(!empty($sub)){
if(!empty(${$sk_value.'_words'})){
${$sk_value.'_words'} .= '+'.$itemspkinfo[$sub];
}else{
${$sk_value.'_words'} = $itemspkinfo[$sub];
}
}
}
} else {
${$sk_value.'_words'} =$nospk;
}
}
$ardef = $arbe + $arhe + $arae + $arfe;
$karma = ($rp * $killnum - $def )+ $att;
// $infdata = '';
//
// if(strpos($inf,'h') !== false || strpos($inf,'b') !== false ||strpos($inf,'a') !== false ||strpos($inf,'f') !== false){
// //$infdata = '<span class="red b">';
// $infimg .= '<img src="img/injured.gif" style="position:absolute;top:0;left:10;width:84;height:20">';
// if(strpos($inf,'h') !== false){
// $infdata .= $infinfo['h'];
// $infimg .= '<img src="img/hurt.gif" style="position:absolute;top:0;left:121;width:37;height:37">';
// }
// if(strpos($inf,'a') !== false){
// $infdata .= $infinfo['a'];
// $infimg .= '<img src="img/hurt.gif" style="position:absolute;top:17;left:102;width:37;height:37">';
// }
// if(strpos($inf,'b') !== false){
// $infdata .= $infinfo['b'];
// $infimg .= '<img src="img/hurt.gif" style="position:absolute;top:43;left:121;width:37;height:37">';
// }
// if(strpos($inf,'f') !== false){
// $infdata .= $infinfo['f'];
// $infimg .= '<img src="img/hurt.gif" style="position:absolute;top:111;left:121;width:37;height:37">';
// }
// } else {
// $infimg .= '<img src="img/injured2.gif" style="position:absolute;top:0;left:10;width:84;height:20">';
// }
// //$infdata .= '</span>';
// if(strpos($inf,'p') !== false) {
// $infdata .= $infinfo['p'];
// //$infdata .= "<span class=\"purple b\">{$infinfo['p']}</span>";
// $infimg .= '<img src="img/p.gif" style="position:absolute;top:20;left:4;width:98;height:20">';
// } else {
// $infimg .= '<img src="img/p2.gif" style="position:absolute;top:20;left:4;width:98;height:20">';
// }
// if(strpos($inf,'u') !== false) {
// $infdata .= $infinfo['u'];
// //$infdata .= "<span class=\"red b\">{$infinfo['u']}</span>";
// $infimg .= '<img src="img/u.gif" style="position:absolute;top:40;left:11;width:81;height:20">';
// } else {
// $infimg .= '<img src="img/u2.gif" style="position:absolute;top:40;left:11;width:81;height:20">';
// }
// if(strpos($inf,'i') !== false) {
// $infdata .= $infinfo['i'];
// //$infdata .= "<span class=\"clan b\">{$infinfo['i']}</span>";
// $infimg .= '<img src="img/i.gif" style="position:absolute;top:60;left:13;width:77;height:20">';
// } else {
// $infimg .= '<img src="img/i2.gif" style="position:absolute;top:60;left:13;width:77;height:20">';
// }
// if(strpos($inf,'e') !== false) {
// $infdata .= $infinfo['e'];
// //$infdata .= "<span class=\"yellow b\">{$infinfo['e']}</span>";
// $infimg .= '<img src="img/e.gif" style="position:absolute;top:80;left:2;width:101;height:20">';
// } else {
// $infimg .= '<img src="img/e2.gif" style="position:absolute;top:80;left:2;width:101;height:20">';
// }
// if(strpos($inf,'w') !== false) {
// $infdata .= $infinfo['w'];
// $infimg .= '<img src="img/w.gif" style="position:absolute;top:100;left:3;width:100;height:20">';
// } else {
// $infimg .= '<img src="img/w2.gif" style="position:absolute;top:100;left:3;width:100;height:20">';
// }
$hpcolor = 'clan';
if($hp <= 0 ){
//$infimg .= '<img src="img/dead.gif" style="position:absolute;top:120;left:6;width:94;height:40">';
$hpcolor = 'red';
} elseif($hp <= $mhp*0.2){
//$infimg .= '<img src="img/danger.gif" style="position:absolute;top:120;left:5;width:95;height:37">';
$hpcolor = 'red';
} elseif($hp <= $mhp*0.5){
//$infimg .= '<img src="img/caution.gif" style="position:absolute;top:120;left:5;width:95;height:36">';
$hpcolor = 'yellow';
} elseif($inf == ''){
//$infimg .= '<img src="img/fine.gif" style="position:absolute;top:120;left:12;width:81;height:38">';
}
if($sp <= $msp*0.2){
$spcolor = 'grey';
} elseif($sp <= $msp*0.5){
$spcolor = 'yellow';
} else {
$spcolor = 'clan';
}
$newhppre = 5+floor(151*(1-$hp/$mhp));
$newhpimg = '<img src="img/red2.gif" style="position:absolute; clip:rect('.$newhppre.'px,55px,160px,0px);">';
$newsppre = 5+floor(151*(1-$sp/$msp));
$newspimg = '<img src="img/yellow2.gif" style="position:absolute; clip:rect('.$newsppre.'px,55px,160px,0px);">';
return;
}
function init_battle($ismeet = 0){
global $w_type,$w_name,$w_gd,$w_sNo,$w_icon,$w_lvl,$w_rage,$w_hp,$w_sp,$w_mhp,$w_msp,$w_wep,$w_wepk,$w_wepe,$w_sNoinfo,$w_iconImg,$w_hpstate,$w_spstate,$w_ragestate,$w_wepestate,$w_isdead,$hpinfo,$spinfo,$rageinfo,$wepeinfo,$fog,$typeinfo,$sexinfo,$infinfo,$w_exp,$w_upexp,$baseexp,$w_pose,$w_tactic,$w_inf,$w_infdata;
$w_upexp = round(($w_lvl*$baseexp)+(($w_lvl+1)*$baseexp));
if (CURSCRIPT == 'botservice')
{
echo "w_name=$w_name\n";
echo "w_type=$w_type\n";
echo "w_sNo=$w_sNo\n";
}
if($w_hp <= 0) {
$w_hpstate = "<span class=\"red\">$hpinfo[3]</span>";
$w_spstate = "<span class=\"red\">$spinfo[3]</span>";
$w_ragestate = "<span class=\"red\">$rageinfo[3]</span>";
$w_isdead = true;
if (CURSCRIPT == 'botservice') echo "w_dead=1\n";
} else{
if($w_hp < $w_mhp*0.2) {
$w_hpstate = "<span class=\"red\">$hpinfo[2]</span>";
if (CURSCRIPT == 'botservice') echo "w_hpstate=2\n";
} elseif($w_hp < $w_mhp*0.5) {
$w_hpstate = "<span class=\"yellow\">$hpinfo[1]</span>";
if (CURSCRIPT == 'botservice') echo "w_hpstate=1\n";
} else {
$w_hpstate = "<span class=\"clan\">$hpinfo[0]</span>";
if (CURSCRIPT == 'botservice') echo "w_hpstate=0\n";
}
if($w_sp < $w_msp*0.2) {
$w_spstate = "$spinfo[2]";
} elseif($w_sp < $w_msp*0.5) {
$w_spstate = "$spinfo[1]";
} else {
$w_spstate = "$spinfo[0]";
}
if($w_rage >= 100) {
$w_ragestate = "<span class=\"red\">$rageinfo[2]</span>";
} elseif($w_rage >= 30) {
$w_ragestate = "<span class=\"yellow\">$rageinfo[1]</span>";
} else {
$w_ragestate = "$rageinfo[0]";
}
}
if($w_wepe >= 400) {
$w_wepestate = "$wepeinfo[3]";
if (CURSCRIPT == 'botservice') echo "w_wepestate=3\n";
} elseif($w_wepe >= 200) {
$w_wepestate = "$wepeinfo[2]";
if (CURSCRIPT == 'botservice') echo "w_wepestate=2\n";
} elseif($w_wepe >= 60) {
$w_wepestate = "$wepeinfo[1]";
if (CURSCRIPT == 'botservice') echo "w_wepestate=1\n";
} else {
$w_wepestate = "$wepeinfo[0]";
if (CURSCRIPT == 'botservice') echo "w_wepestate=0\n";
}
if(!$fog||$ismeet) {
$w_sNoinfo = "$typeinfo[$w_type]({$sexinfo[$w_gd]}{$w_sNo}号)";
$w_i = $w_type > 0 ? 'n' : $w_gd;
$w_iconImg = $w_i.'_'.$w_icon.'.gif';
if($w_inf) {
$w_infdata = '';
foreach ($infinfo as $inf_ky => $inf_nm) {
if(strpos($w_inf,$inf_ky) !== false) {
$w_infdata .= $inf_nm;
}
}
//$w_infdata = '<span class="red b">';
/*if(strpos($w_inf,'h') !== false){
$w_infdata .= $infinfo['h'];
}
if(strpos($w_inf,'a') !== false){
$w_infdata .= $infinfo['a'];
}
if(strpos($w_inf,'b') !== false){
$w_infdata .= $infinfo['b'];
}
if(strpos($w_inf,'f') !== false){
$w_infdata .= $infinfo['f'];
}*/
//$infdata .= '</span>';
/*if(strpos($w_inf,'p') !== false) {
$w_infdata .= "<span class=\"purple b\">{$infinfo['p']}</span>";
}
if(strpos($w_inf,'u') !== false) {
$w_infdata .= "<span class=\"yellow b\">{$infinfo['u']}</span>";
}
if(strpos($w_inf,'i') !== false) {
$w_infdata .= "<span class=\"clan b\">{$infinfo['i']}</span>";
}*/
} else {
$w_infdata = '';
}
} else {
$w_sNoinfo = '？？？';
$w_iconImg = 'question.gif';
$w_name = '？？？';
$w_wep = '？？？';
$w_infdata = '？？？';
$w_pose = -1;
$w_tactic = -1;
$w_lvl = '？';
$w_hpstate = '？？？';
$w_spstate = '？？？';
$w_ragestate = '？？？';
$w_wepestate = '？？？';
$w_wepk = '';
}
return;
}
//function get_pstate($pid){//玩家状态储存在内存表里，读取之前先判断是否存在
// global $db,$tablepre,$now;
// $result=$db->query("SELECT * FROM {$tablepre}pstate WHERE pid = '$pid'");
// if($db->num_rows($result)){
// $psdata = $db->fetch_array($result);
// }else{
// $psdata = false;
// }
// return $psdata;
//}
//function set_pstate($psdata){//玩家状态储存在内存表里，若存在则更新记录，否则创建记录
// global $db,$tablepre;
// $pid = $psdata['pid'];
// $result=$db->query("SELECT * FROM {$tablepre}pstate WHERE pid = '$pid'");
// if($db->num_rows($result)){
// return $db->array_update("{$tablepre}pstate",$psdata," pid = '$pid'");
// }else{
// return $db->array_insert("{$tablepre}pstate",$psdata);
// }
//}
function get_remaincdtime($pid){
$psdata = get_pstate($pid);
if($psdata){
$cdover = $psdata['cdsec']*1000 + $psdata['cdmsec'] + $psdata['cdtime'];
$nowmtime = floor(getmicrotime()*1000);
$rmtime = $nowmtime >= $cdover ? 0 : $cdover - $nowmtime;
return floor($rmtime);
}else{
return 0;
}
}
function player_save($data){
global $db,$tablepre;
if(isset($data['pid'])){
$pid = $data['pid'];
unset($data['pid']);
$db->array_update("{$tablepre}players",$data,"pid='$pid'");
}
return;
}
function w_save($id){
global $db,$tablepre,$w_name,$w_pass,$w_type,$w_endtime,$w_deathtime,$w_gd,$w_sNo,$w_icon,$w_club,$w_hp,$w_mhp,$w_sp,$w_msp,$w_att,$w_def,$w_pls,$w_lvl,$w_exp,$w_money,$w_bid,$w_inf,$w_rage,$w_pose,$w_tactic,$w_killnum,$w_state,$w_wp,$w_wk,$w_wg,$w_wc,$w_wd,$w_wf,$w_teamID,$w_teamPass,$w_wep,$w_wepk,$w_wepe,$w_weps,$w_arb,$w_arbk,$w_arbe,$w_arbs,$w_arh,$w_arhk,$w_arhe,$w_arhs,$w_ara,$w_arak,$w_arae,$w_aras,$w_arf,$w_arfk,$w_arfe,$w_arfs,$w_art,$w_artk,$w_arte,$w_arts,$w_itm0,$w_itmk0,$w_itme0,$w_itms0,$w_itm1,$w_itmk1,$w_itme1,$w_itms1,$w_itm2,$w_itmk2,$w_itme2,$w_itms2,$w_itm3,$w_itmk3,$w_itme3,$w_itms3,$w_itm4,$w_itmk4,$w_itme4,$w_itms4,$w_itm5,$w_itmk5,$w_itme5,$w_itms5,$w_itm6,$w_itmk6,$w_itme6,$w_itms6,$w_wepsk,$w_arbsk,$w_arhsk,$w_arask,$w_arfsk,$w_artsk,$w_itmsk0,$w_itmsk1,$w_itmsk2,$w_itmsk3,$w_itmsk4,$w_itmsk5,$w_itmsk6,$w_rp,$w_action,$w_achievement,$w_skillpoint;
$db->query("UPDATE {$tablepre}players SET name='$w_name',pass='$w_pass',type='$w_type',endtime='$w_endtime',deathtime='$w_deathtime',gd='$w_gd',sNo='$w_sNo',icon='$w_icon',club='$w_club',hp='$w_hp',mhp='$w_mhp',sp='$w_sp',msp='$w_msp',att='$w_att',def='$w_def',pls='$w_pls',lvl='$w_lvl',exp='$w_exp',money='$w_money',bid='$w_bid',inf='$w_inf',rage='$w_rage',pose='$w_pose',tactic='$w_tactic',state='$w_state',killnum='$w_killnum',action='$w_action',wp='$w_wp',wk='$w_wk',wg='$w_wg',wc='$w_wc',wd='$w_wd',wf='$w_wf',teamID='$w_teamID',teamPass='$w_teamPass',wep='$w_wep',wepk='$w_wepk',wepe='$w_wepe',weps='$w_weps',wepsk='$w_wepsk',arb='$w_arb',arbk='$w_arbk',arbe='$w_arbe',arbs='$w_arbs',arbsk='$w_arbsk',arh='$w_arh',arhk='$w_arhk',arhe='$w_arhe',arhs='$w_arhs',arhsk='$w_arhsk',ara='$w_ara',arak='$w_arak',arae='$w_arae',aras='$w_aras',arask='$w_arask',arf='$w_arf',arfk='$w_arfk',arfe='$w_arfe',arfs='$w_arfs',arfsk='$w_arfsk',art='$w_art',artk='$w_artk',arte='$w_arte',arts='$w_arts',artsk='$w_artsk',itm0='$w_itm0',itmk0='$w_itmk0',itme0='$w_itme0',itms0='$w_itms0',itmsk0='$w_itmsk0',itm1='$w_itm1',itmk1='$w_itmk1',itme1='$w_itme1',itms1='$w_itms1',itmsk1='$w_itmsk1',itm2='$w_itm2',itmk2='$w_itmk2',itme2='$w_itme2',itms2='$w_itms2',itmsk2='$w_itmsk2',itm3='$w_itm3',itmk3='$w_itmk3',itme3='$w_itme3',itms3='$w_itms3',itmsk3='$w_itmsk3',itm4='$w_itm4',itmk4='$w_itmk4',itme4='$w_itme4',itms4='$w_itms4',itmsk4='$w_itmsk4',itm5='$w_itm5',itmk5='$w_itmk5',itme5='$w_itme5',itms5='$w_itms5',itmsk5='$w_itmsk5',itm6='$w_itm6',itmk6='$w_itmk6',itme6='$w_itme6',itms6='$w_itms6',itmsk6='$w_itmsk6',rp='$w_rp',achievement='$w_achievement',skillpoint='$w_skillpoint' WHERE pid='$id'");
//$db->query("UPDATE {$tablepre}players SET name='$w_name',pass='$w_pass',type='$w_type',endtime='$w_endtime',gd='$w_gd',sNo='$w_sNo',icon='$w_icon',club='$w_club',hp='$w_hp',mhp='$w_mhp',sp='$w_sp',msp='$w_msp',att='$w_att',def='$w_def',pls='$w_pls',lvl='$w_lvl',exp='$w_exp',money='$w_money',bid='$w_bid',inf='$w_inf',rage='$w_rage',pose='$w_pose',tactic='$w_tactic',state='$w_state',killnum='$w_killnum',wp='$w_wp',wk='$w_wk',wg='$w_wg',wc='$w_wc',wd='$w_wd',wf='$w_wf',teamID='$w_teamID',teamPass='$w_teamPass',wep='$w_wep',wepk='$w_wepk',wepe='$w_wepe',weps='$w_weps',wepsk='$w_wepsk',arb='$w_arb',arbk='$w_arbk',arbe='$w_arbe',arbs='$w_arbs',arbsk='$w_arbsk',arh='$w_arh',arhk='$w_arhk',arhe='$w_arhe',arhs='$w_arhs',arhsk='$w_arhsk',ara='$w_ara',arak='$w_arak',arae='$w_arae',aras='$w_aras',arask='$w_arask',arf='$w_arf',arfk='$w_arfk',arfe='$w_arfe',arfs='$w_arfs',arfsk='$w_arfsk',art='$w_art',artk='$w_artk',arte='$w_arte',arts='$w_arts',artsk='$w_artsk',itm0='$w_itm0',itmk0='$w_itmk0',itme0='$w_itme0',itms0='$w_itms0',itmsk0='$w_itmsk0',itm1='$w_itm1',itmk1='$w_itmk1',itme1='$w_itme1',itms1='$w_itms1',itmsk1='$w_itmsk1',itm2='$w_itm2',itmk2='$w_itmk2',itme2='$w_itme2',itms2='$w_itms2',itmsk2='$w_itmsk2',itm3='$w_itm3',itmk3='$w_itmk3',itme3='$w_itme3',itms3='$w_itms3',itmsk3='$w_itmsk3',itm4='$w_itm4',itmk4='$w_itmk4',itme4='$w_itme4',itms4='$w_itms4',itmsk4='$w_itmsk4',itm5='$w_itm5',itmk5='$w_itmk5',itme5='$w_itme5',itms5='$w_itms5',itmsk5='$w_itmsk5',itm6='$w_itm6',itmk6='$w_itmk6',itme6='$w_itme6',itms6='$w_itms6',itmsk6='$w_itmsk6' WHERE pid='$id'");
return ;
}
function w_save2(&$data){
global $db,$tablepre;
if(isset($data)){
extract($data,EXTR_PREFIX_ALL,'w');
$db->query("UPDATE {$tablepre}players SET name='$w_name',pass='$w_pass',type='$w_type',endtime='$w_endtime',deathtime='$w_deathtime',gd='$w_gd',sNo='$w_sNo',icon='$w_icon',club='$w_club',hp='$w_hp',mhp='$w_mhp',sp='$w_sp',msp='$w_msp',att='$w_att',def='$w_def',pls='$w_pls',lvl='$w_lvl',exp='$w_exp',money='$w_money',bid='$w_bid',inf='$w_inf',rage='$w_rage',pose='$w_pose',tactic='$w_tactic',state='$w_state',killnum='$w_killnum',wp='$w_wp',wk='$w_wk',wg='$w_wg',wc='$w_wc',wd='$w_wd',wf='$w_wf',teamID='$w_teamID',teamPass='$w_teamPass',wep='$w_wep',wepk='$w_wepk',wepe='$w_wepe',weps='$w_weps',wepsk='$w_wepsk',arb='$w_arb',arbk='$w_arbk',arbe='$w_arbe',arbs='$w_arbs',arbsk='$w_arbsk',arh='$w_arh',arhk='$w_arhk',arhe='$w_arhe',arhs='$w_arhs',arhsk='$w_arhsk',ara='$w_ara',arak='$w_arak',arae='$w_arae',aras='$w_aras',arask='$w_arask',arf='$w_arf',arfk='$w_arfk',arfe='$w_arfe',arfs='$w_arfs',arfsk='$w_arfsk',art='$w_art',artk='$w_artk',arte='$w_arte',arts='$w_arts',artsk='$w_artsk',itm0='$w_itm0',itmk0='$w_itmk0',itme0='$w_itme0',itms0='$w_itms0',itmsk0='$w_itmsk0',itm1='$w_itm1',itmk1='$w_itmk1',itme1='$w_itme1',itms1='$w_itms1',itmsk1='$w_itmsk1',itm2='$w_itm2',itmk2='$w_itmk2',itme2='$w_itme2',itms2='$w_itms2',itmsk2='$w_itmsk2',itm3='$w_itm3',itmk3='$w_itmk3',itme3='$w_itme3',itms3='$w_itms3',itmsk3='$w_itmsk3',itm4='$w_itm4',itmk4='$w_itmk4',itme4='$w_itme4',itms4='$w_itms4',itmsk4='$w_itmsk4',itm5='$w_itm5',itmk5='$w_itmk5',itme5='$w_itme5',itms5='$w_itms5',itmsk5='$w_itmsk5',itm6='$w_itm6',itmk6='$w_itmk6',itme6='$w_itme6',itms6='$w_itms6',itmsk6='$w_itmsk6',rp='$w_rp',achievement='$w_achievement',skillpoint='$w_skillpoint' WHERE pid='$w_pid'");
//$db->query("UPDATE {$tablepre}players SET name='$w_name',pass='$w_pass',type='$w_type',endtime='$w_endtime',gd='$w_gd',sNo='$w_sNo',icon='$w_icon',club='$w_club',hp='$w_hp',mhp='$w_mhp',sp='$w_sp',msp='$w_msp',att='$w_att',def='$w_def',pls='$w_pls',lvl='$w_lvl',exp='$w_exp',money='$w_money',bid='$w_bid',inf='$w_inf',rage='$w_rage',pose='$w_pose',tactic='$w_tactic',state='$w_state',killnum='$w_killnum',wp='$w_wp',wk='$w_wk',wg='$w_wg',wc='$w_wc',wd='$w_wd',wf='$w_wf',teamID='$w_teamID',teamPass='$w_teamPass',wep='$w_wep',wepk='$w_wepk',wepe='$w_wepe',weps='$w_weps',wepsk='$w_wepsk',arb='$w_arb',arbk='$w_arbk',arbe='$w_arbe',arbs='$w_arbs',arbsk='$w_arbsk',arh='$w_arh',arhk='$w_arhk',arhe='$w_arhe',arhs='$w_arhs',arhsk='$w_arhsk',ara='$w_ara',arak='$w_arak',arae='$w_arae',aras='$w_aras',arask='$w_arask',arf='$w_arf',arfk='$w_arfk',arfe='$w_arfe',arfs='$w_arfs',arfsk='$w_arfsk',art='$w_art',artk='$w_artk',arte='$w_arte',arts='$w_arts',artsk='$w_artsk',itm0='$w_itm0',itmk0='$w_itmk0',itme0='$w_itme0',itms0='$w_itms0',itmsk0='$w_itmsk0',itm1='$w_itm1',itmk1='$w_itmk1',itme1='$w_itme1',itms1='$w_itms1',itmsk1='$w_itmsk1',itm2='$w_itm2',itmk2='$w_itmk2',itme2='$w_itme2',itms2='$w_itms2',itmsk2='$w_itmsk2',itm3='$w_itm3',itmk3='$w_itmk3',itme3='$w_itme3',itms3='$w_itms3',itmsk3='$w_itmsk3',itm4='$w_itm4',itmk4='$w_itmk4',itme4='$w_itme4',itms4='$w_itms4',itmsk4='$w_itmsk4',itm5='$w_itm5',itmk5='$w_itmk5',itme5='$w_itme5',itms5='$w_itms5',itmsk5='$w_itmsk5',itm6='$w_itm6',itmk6='$w_itmk6',itme6='$w_itme6',itms6='$w_itms6',itmsk6='$w_itmsk6' WHERE pid='$w_pid'");
}
return;
}
?>
$inf
$inf
Definition: botservice.php:49
$tablepre
$tablepre
Definition: config.inc.php:58
$iteminfo
$iteminfo
Definition: resources_1.php:683
w_save
w_save($id)
Definition: game.func.php:328
$baseexp
$baseexp
Definition: gamecfg_1.php:55
$sexinfo
$sexinfo
Definition: resources_1.php:51
w_save2
w_save2(&$data)
Definition: game.func.php:337
get_remaincdtime
get_remaincdtime($pid)
Definition: game.func.php:306
$nospk
$nospk
Definition: resources_1.php:15
$spinfo
$spinfo
Definition: resources_1.php:53
$infinfo
$infinfo
Definition: resources_1.php:178
$i
$i
Definition: botservice.php:267
$db
$db
Definition: clear.php:32
$itemspkinfo
$itemspkinfo
Definition: resources_1.php:747
player_save
player_save($data)
Definition: game.func.php:318
elseif
【生存者数：<?php echo $alivenum?> 人】< input type="button"value="显示全部幸存者"onClick="$('alivemode').value='all';$('gbmode').value='none';postCmd('alive','alive.php');"></p > if($gamblingon &&$gamestate >=20) elseif($gamblingon &&$gamestate<=10)
Definition: 1_alive.tpl.php:18
init_profile
init_profile()
Definition: game.func.php:32
$log
$log
Definition: botservice.php:34
$weather
$weather
Definition: gameinfo.php:11
getmicrotime
getmicrotime()
Definition: global.func.php:484
$wepeinfo
$wepeinfo
Definition: resources_1.php:55
$noarb
$noarb
Definition: resources_1.php:9
CURSCRIPT
const CURSCRIPT
Definition: admin.php:3
$nowep
$nowep
Definition: resources_1.php:6
$nosta
$nosta
Definition: resources_1.php:13
init_battle
init_battle($ismeet=0)
Definition: game.func.php:170
$typeinfo
$typeinfo
Definition: resources_1.php:58
$rageinfo
$rageinfo
Definition: resources_1.php:54
$hpinfo
$hpinfo
Definition: resources_1.php:52
init_playerdata
if(!defined('IN_GAME')) init_playerdata()
Definition: game.func.php:9