Tokiwa Battle Royale  GE777
A PHP Battle Royale inspired game
 All Data Structures Namespaces Files Functions Variables Pages
command.php
Go to the documentation of this file.
1 <?php
2 
3 define('CURSCRIPT', 'game');
4 
5 require './include/common.inc.php';
6 //$t_s=getmicrotime();
7 //require_once GAME_ROOT.'./include/JSON.php';
8 require GAME_ROOT.'./include/game.func.php';
9 require config('combatcfg',$gamecfg);
10 
11 //判断是否进入游戏
12 if(!$cuser||!$cpass) { gexit($_ERROR['no_login'],__file__,__line__); }
13 
14 $result = $db->query("SELECT * FROM {$tablepre}players WHERE name = '$cuser' AND type = 0");
15 
16 if(!$db->num_rows($result)) { header("Location: valid.php");exit(); }
17 
18 $pdata = $db->fetch_array($result);
19 
20 //判断是否密码错误
21 if($pdata['pass'] != $cpass) {
22  $tr = $db->query("SELECT `password` FROM {$tablepre}users WHERE username='$cuser'");
23  $tp = $db->fetch_array($tr);
24  $password = $tp['password'];
25  if($password == $cpass) {
26  $db->query("UPDATE {$tablepre}players SET pass='$password' WHERE name='$cuser'");
27  } else {
28  gexit($_ERROR['wrong_pw'],__file__,__line__);
29  }
30 }
31 
32 //判断游戏状态和玩家状态,如果符合条件则忽略指令
33 if($gamestate == 0) {
34  $gamedata['url'] = 'end.php';
35  ob_clean();
37  echo $jgamedata;
38  ob_end_flush();
39  exit();
40 }
41 
42 //初始化各变量
43 extract($pdata,EXTR_REFS);
44 $log = $cmd = $main = '';
45 $gamedata = array();
47 
48 //读取玩家互动信息
49 $result = $db->query("SELECT lid,time,log FROM {$tablepre}log WHERE toid = '$pid' AND prcsd = 0 ORDER BY time,lid");
50 $llist = '';
51 while($logtemp = $db->fetch_array($result)){
52  $log .= date("H:i:s",$logtemp['time']).','.$logtemp['log'].'<br />';
53  $llist .= $logtemp['lid'].',';
54 }
55 if(!empty($llist)){
56  $llist = '('.substr($llist,0,-1).')';
57  $db->query("UPDATE {$tablepre}log SET prcsd=1 WHERE toid = '$pid' AND lid IN $llist");
58 }
59 
60 //var_dump($_POST);
61 if($hp > 0){
62  //显示枪声信息
63  if(($now <= $noisetime+$noiselimit)&&$noisemode&&($noiseid!=$pid)&&($noiseid2!=$pid)) {
64  if(($now-$noisetime) < 60) {
65  $noisesec = $now - $noisetime;
66  $log .= "<span class=\"yellow b\">{$noisesec}秒前,{$plsinfo[$noisepls]}传来了{$noiseinfo[$noisemode]}。</span><br>";
67  } else {
68  $noisemin = floor(($now-$noisetime)/60);
69  $log .= "<span class=\"yellow b\">{$noisemin}分钟前,{$plsinfo[$noisepls]}传来了{$noiseinfo[$noisemode]}。</span><br>";
70  }
71  }
72 
73  if ($club==0 && !isset($clubavl))
74  {
75  include_once GAME_ROOT.'./include/game/clubslct.func.php';
76  getclub($name,$c1,$c2,$c3);
77  $clubavl[0]=0; $clubavl[1]=$c1; $clubavl[2]=$c2; $clubavl[3]=$c3;
78  }
79 
80  //判断冷却时间是否过去
81  if($coldtimeon){
82  $cdover = $cdsec*1000 + $cdmsec + $cdtime;
83  $nowmtime = floor(getmicrotime()*1000);
84  $rmcdtime = $nowmtime >= $cdover ? 0 : $cdover - $nowmtime;
85  }
86 
87  if($coldtimeon && $rmcdtime > 0 && (strpos($command,'move')===0 || strpos($command,'search')===0 || (strpos($command,'itm')===0)&&($command != 'itemget') || strpos($sp_cmd,'sp_weapon')===0 || strpos($command,'song')===0)){
88  $log .= '<span class="yellow">冷却时间尚未结束!</span><br>';
89  $mode = 'command';
90  }else{
91  //进入指令判断
92  if($mode !== 'combat' && $mode !== 'corpse' && strpos($action,'pacorpse')===false && $mode !== 'senditem'){
93  $action = '';
94  }
95  if($command == 'menu') {
96  $mode = 'command';
97  $action = '';
98  } elseif($mode == 'command') {
99  if($command == 'move') {
100  include_once GAME_ROOT.'./include/game/search.func.php';
101  move($moveto);
102  if($coldtimeon){$cmdcdtime=$movecoldtime;}
103  } elseif($command == 'search') {
104  include_once GAME_ROOT.'./include/game/search.func.php';
105  search();
106  if($coldtimeon){$cmdcdtime=$searchcoldtime;}
107  } elseif(strpos($command,'itm') === 0) {
108  include_once GAME_ROOT.'./include/game/item.func.php';
109  $item = substr($command,3);
110  itemuse($item);
111  if($coldtimeon){$cmdcdtime=$itemusecoldtime;}
112  } elseif(strpos($command,'rest') === 0) {
113  if($command=='rest3' && !in_array($pls,$hospitals)){
114  $log .= '<span class="yellow">你所在的位置并非医院,不能静养!</span><br>';
115  }else{
116  $state = substr($command,4,1);
117  $mode = 'rest';
118  }
119  } elseif($command == 'itemmain') {
120  $mode = $itemcmd;
121  } elseif($command == 'song') {
122  $sname=trim(trim($art,'【'),'】');
123  include_once GAME_ROOT.'./include/game/song.inc.php';
124  //$log.=$sname;
125  sing($sname);
126  }elseif($command == 'special') {
127  if($sp_cmd == 'sp_word'){
128  include_once GAME_ROOT.'./include/game/special.func.php';
129  getword();
130  $mode = $sp_cmd;
131  }elseif($sp_cmd == 'sp_adtsk'){
132  include_once GAME_ROOT.'./include/game/special.func.php';
133  adtsk();
134  $mode = 'command';
135  }elseif($sp_cmd == 'sp_trapadtsk'){
136  $position = 0;
137  if ($club==7)
138  {
139  foreach(Array(1,2,3,4,5,6) as $imn)
140  if(strpos(${'itmk'.$imn},'B')===0 && ${'itme'.$imn} > 0 ){
141  $position = $imn;
142  break;
143  }
144  if (!$position)
145  {
146  $log .= '<span class="red">你没有电池,无法改造陷阱!</span><br />';
147  $mode = 'command';
148  }
149  }
150  else if ($club==8)
151  {
152  foreach(Array(1,2,3,4,5,6) as $imn)
153  if(${'itm'.$imn} == '毒药' && ${'itmk'.$imn} == 'Y' && ${'itme'.$imn} > 0 ){
154  $position = $imn;
155  break;
156  }
157  if (!$position)
158  {
159  $log .= '<span class="red">你没有毒药,无法改造陷阱!</span><br />';
160  $mode = 'command';
161  }
162  }
163  else
164  {
165  $log .= '<span class="red">你不懂得如何改造陷阱!</span><br />';
166  $mode = 'command';
167  }
168  if ($position)
169  {
170  $position = 0;
171  foreach(Array(1,2,3,4,5,6) as $imn)
172  if(strpos(${'itmk'.$imn},'T')===0 && ${'itme'.$imn} > 0 ){
173  $position = $imn;
174  break;
175  }
176  if (!$position)
177  {
178  $log .= '<span class="red">你的背包中没有陷阱,无法改造!</span><br />';
179  $mode = 'command';
180  }
181  else $mode = 'sp_trapadtsk';
182  }
183  }elseif($sp_cmd == 'sp_trapadtskselected'){
184  if (!isset($choice) || $choice=='menu')
185  {
186  $mode='command';
187  }
188  else
189  {
190  $choice=(int)$choice;
191  if ($choice<1 || $choice>6)
192  $log.='<span class="red">无此物品。</span><br />';
193  else
194  {
195  include_once GAME_ROOT.'./include/game/special.func.php';
196  trap_adtsk($choice);
197  }
198  $mode='command';
199  }
200  }elseif($sp_cmd == 'sp_pbomb'){
201  $mode = 'sp_pbomb';
202  }elseif($sp_cmd == 'sp_weapon'){
203  include_once GAME_ROOT.'./include/game/special.func.php';
204  weaponswap();
205  $mode = 'command';
206  if($coldtimeon){$cmdcdtime=$weaponswapcoldtime;}
207  }elseif($sp_cmd == 'oneonone'){
208  $mode='oneonone';
209  }elseif($sp_cmd == 'sp_skpts'){
210  include_once GAME_ROOT.'./include/game/clubskills.func.php';
211  calcskills($skarr);
212  $p12[1]=1; $p12[2]=2;
213  $mode='sp_skpts';
214  }else{
215  $mode = $sp_cmd;
216  }
217 
218  } elseif($command == 'team') {
219  include_once GAME_ROOT.'./include/game/team.func.php';
220  if($teamcmd == 'teamquit') {
221  teamquit();
222  } else{
223  teamcheck();
224  }
225  }
226  } elseif($mode == 'item') {
227  include_once GAME_ROOT.'./include/game/item2.func.php';
228  $item = substr($command,3);
229  use_func_item($usemode,$item);
230  } elseif($mode == 'itemmain') {
231  include_once GAME_ROOT.'./include/game/itemmain.func.php';
232  if($command == 'itemget') {
233  itemget();
234  } elseif($command == 'itemadd') {
235  itemadd();
236  } elseif($command == 'itemmerge') {
237  if($merge2 == 'n'){itemadd();}
238  else{itemmerge($merge1,$merge2);}
239  } elseif($command == 'itemmove') {
240  itemmove($from,$to);
241  } elseif(strpos($command,'drop') === 0) {
242  $drop_item = substr($command,4);
243  itemdrop($drop_item);
244  } elseif(strpos($command,'off') === 0) {
245  $off_item = substr($command,3);
246  itemoff($off_item);
247  //itemadd();
248  } elseif(strpos($command,'swap') === 0) {
249  $swap_item = substr($command,4);
250  itemdrop($swap_item);
251  itemadd();
252  } elseif($command == 'itemmix') {
253  if (isset($itemselect) && $itemselect==999)
254  $mode='command';
255  else
256  {
257  $mixlist = array();
258  if (!isset($mixmask))
259  {
260  for($i=1;$i<=6;$i++)
261  if(isset(${'mitm'.$i}) && ${'mitm'.$i} == $i)
262  $mixlist[] = $i;
263  }
264  else
265  {
266  for($i=1;$i<=6;$i++)
267  if ($mixmask&(1<<($i-1)))
268  $mixlist[] = $i;
269  }
270  if (isset($itemselect))
271  itemmix($mixlist,$itemselect);
272  else itemmix($mixlist);
273  }
274  }
275  } elseif($mode == 'special') {
276  include_once GAME_ROOT.'./include/game/special.func.php';
277  if(strpos($command,'pose') === 0) {
278  $pose = substr($command,4,1);
279  $log .= "基础姿态变为<span class=\"yellow\">$poseinfo[$pose]</span>。<br> ";
280  $mode = 'command';
281  } elseif(strpos($command,'tac') === 0) {
282  $tactic = substr($command,3,1);
283  $log .= "应战策略变为<span class=\"yellow\">$tacinfo[$tactic]</span>。<br> ";
284  $mode = 'command';
285  } elseif(strpos($command,'inf') === 0) {
286  $infpos = substr($command,3,1);
287  chginf($infpos);
288  } elseif(strpos($command,'chkp') === 0) {
289  $itmn = substr($command,4,1);
290  chkpoison($itmn);
291  } elseif(strpos($command,'shop') === 0) {
292  $shop = substr($command,4,2);
293  shoplist($shop);
294  } elseif(strpos($command,'clubsel') === 0) {
295  $clubchosen = substr($command,7,1);
296  include_once GAME_ROOT.'./include/game/clubslct.func.php';
297  $retval=selectclub($clubchosen);
298  if ($retval==0)
299  $log.="称号选择成功。<br>";
300  else if ($retval==1)
301  $log.="称号选择失败,称号一旦被选择便无法更改。<br>";
302  else if ($retval==2)
303  $log.="未选择称号。<br>";
304  else $log.="称号选择非法!<br>";
305  $mode = 'command';
306  }
307  } elseif($mode == 'senditem') {
308  include_once GAME_ROOT.'./include/game/battle.func.php';
309  senditem();
310  } elseif($mode == 'combat') {
311  include_once GAME_ROOT.'./include/game/combat.func.php';
312  combat(1,$command);
313  } elseif($mode == 'rest') {
314  include_once GAME_ROOT.'./include/state.func.php';
315  rest($command);
316 // } elseif($mode == 'chgpassword') {
317 // include_once GAME_ROOT.'./include/game/special.func.php';
318 // chgpassword($oldpswd,$newpswd,$newpswd2);
319 // } elseif($mode == 'chgword') {
320 // include_once GAME_ROOT.'./include/game/special.func.php';
321 // chgword($newmotto,$newlastword,$newkillmsg);
322  } elseif($mode == 'corpse') {
323  include_once GAME_ROOT.'./include/game/itemmain.func.php';
324  getcorpse($command);
325  } elseif($mode == 'team') {
326  include_once GAME_ROOT.'./include/game/team.func.php';
327  if ($command=="teammake") teammake($nteamID,$nteamPass);
328  if ($command=="teamjoin") teamjoin($nteamID,$nteamPass);
329  if ($command=="teamquit") teamquit($nteamID,$nteamPass);
330  } elseif($mode == 'shop') {
331  if(in_array($pls,$shops)){
332  if($command == 'shop') {
333  $mode = 'sp_shop';
334  } else {
335  include_once GAME_ROOT.'./include/game/itemmain.func.php';
336  itembuy($command,$shoptype,$buynum);
337  }
338  }else{
339  $log .= '<span class="yellow">你所在的地区没有商店。</span><br />';
340  $mode = 'command';
341  }
342  } elseif($mode == 'deathnote') {
343  if($dnname){
344  include_once GAME_ROOT.'./include/game/item2.func.php';
345  deathnote($item,$dnname,$dndeath,$dngender,$dnicon,$name);
346  } else {
347  $log .= '嗯,暂时还不想杀人。<br>你合上了■DeathNote■。<br>';
348  $mode = 'command';
349  }
350  }elseif($mode == 'oneonone') {
351  if($dnname){
352  include_once GAME_ROOT.'./include/game/special.func.php';
353  oneonone($dnname,$name);
354  } else {
355  $log .= '约战取消。<br>';
356  $mode = 'command';
357  }
358  } elseif ($mode == 'sp_skpts') {
359  include_once GAME_ROOT.'./include/game/clubskills.func.php';
360  upgradeclubskills($command);
361  calcskills($skarr);
362  $p12[1]=1; $p12[2]=2;
363  } elseif ($mode == 'sp_pbomb') {
364  include_once GAME_ROOT.'./include/game/special.func.php';
365  if ($command=="YES") press_bomb();
366  $mode = 'command';
367  } else {
368  $mode = 'command';
369  }
370 
371  if(strpos($action,'pacorpse')===0 && $gamestate < 40){
372 // if($state == 1 || $state == 2 || $state ==3){
373 // $state = 0;
374 // }
375  $cid = str_replace('pacorpse','',$action);
376  if($cid){
377  $result = $db->query("SELECT * FROM {$tablepre}players WHERE pid='$cid' AND hp=0");
378  if($db->num_rows($result)>0){
379  $edata = $db->fetch_array($result);
380  include_once GAME_ROOT.'./include/game/battle.func.php';
381  findcorpse($edata);
382  }
383  }
384  }
385 
386  //指令执行完毕,更新冷却时间
387  if($coldtimeon && isset($cmdcdtime)){
388  $nowmtime = floor(getmicrotime()*1000);
389  $cdsec = floor($nowmtime/1000);
390  $cdmsec = fmod($nowmtime , 1000);
391  $cdtime = $cmdcdtime;
392  //$psdata = Array('pid' => $pid, 'cdsec' => $cdsec, 'cdmsec' => $cdmsec, 'cdtime' => $cdtime, 'cmd' => $mode);
393  //set_pstate($psdata);
394  $rmcdtime = $cmdcdtime;
395  }
396  $endtime = $now;
397  $cmdnum ++;
398  //var_dump($pdata['action']);
400  //$db->query("UPDATE {$tablepre}players SET endtime='$now',cdsec='$cdsec',cdmsec='$cdmsec',cdtime='$cdtime',club='$club',hp='$hp',mhp='$mhp',sp='$sp',msp='$msp',att='$att',def='$def',pls='$pls',lvl='$lvl',exp='$exp',money='$money',rp='$rp',bid='$bid',inf='$inf',rage='$rage',pose='$pose',tactic='$tactic',state='$state',killnum='$killnum',wp='$wp',wk='$wk',wg='$wg',wc='$wc',wd='$wd',wf='$wf',teamID='$teamID',teamPass='$teamPass',wep='$wep',wepk='$wepk',wepe='$wepe',weps='$weps',wepsk='$wepsk',arb='$arb',arbk='$arbk',arbe='$arbe',arbs='$arbs',arbsk='$arbsk',arh='$arh',arhk='$arhk',arhe='$arhe',arhs='$arhs',arhsk='$arhsk',ara='$ara',arak='$arak',arae='$arae',aras='$aras',arask='$arask',arf='$arf',arfk='$arfk',arfe='$arfe',arfs='$arfs',arfsk='$arfsk',art='$art',artk='$artk',arte='$arte',arts='$arts',artsk='$artsk',itm0='$itm0',itmk0='$itmk0',itme0='$itme0',itms0='$itms0',itmsk0='$itmsk0',itm1='$itm1',itmk1='$itmk1',itme1='$itme1',itms1='$itms1',itmsk1='$itmsk1',itm2='$itm2',itmk2='$itmk2',itme2='$itme2',itms2='$itms2',itmsk2='$itmsk2',itm3='$itm3',itmk3='$itmk3',itme3='$itme3',itms3='$itms3',itmsk3='$itmsk3',itm4='$itm4',itmk4='$itmk4',itme4='$itme4',itms4='$itms4',itmsk4='$itmsk4',itm5='$itm5',itmk5='$itmk5',itme5='$itme5',itms5='$itms5',itmsk5='$itmsk5',itm6='$itm6',itmk6='$itmk6',itme6='$itme6',itms6='$itms6',itmsk6='$itmsk6' where pid='$pid'");
401  }
402 
403  //显示指令执行结果
404  $gamedata['innerHTML']['notice'] = ob_get_contents();
405  if($coldtimeon && $showcoldtimer && $rmcdtime){
406  $gamedata['timer'] = $rmcdtime;
407  }
408  if($hp > 0 && $coldtimeon && $showcoldtimer && $rmcdtime){
409  $log .= "行动冷却时间:<span id=\"timer\" class=\"yellow\">0.0</span>秒<br>";
410  }
411 
412 }
413 init_profile();
414 
415 if($hp <= 0) {
416  $dtime = date("Y年m月d日H时i分s秒",$endtime);
417  $kname='';
418  if($bid) {
419  $result = $db->query("SELECT name FROM {$tablepre}players WHERE pid='$bid'");
420  if($db->num_rows($result)) { $kname = $db->result($result,0); }
421  }
422  ob_clean();
423  include template('death');
424  $gamedata['innerHTML']['cmd'] = ob_get_contents();
425  $mode = 'death';
426 } elseif($cmd){
427  $gamedata['innerHTML']['cmd'] = $cmd;
428 } elseif($itms0){
429  ob_clean();
430  include template('itemfind');
431  $gamedata['innerHTML']['cmd'] = ob_get_contents();
432 } elseif($state == 1 || $state == 2 || $state ==3) {
433  ob_clean();
434  include template('rest');
435  $gamedata['innerHTML']['cmd'] = ob_get_contents();
436 } elseif(!$cmd) {
437  ob_clean();
438  if($mode&&file_exists(GAME_ROOT.TPLDIR.'/'.$mode.'.htm')) {
439  include template($mode);
440  } else {
441  include template('command');
442  }
443  $gamedata['innerHTML']['cmd'] = ob_get_contents();
444  //$gamedata['cmd'] .= '<br><br><input type="button" id="submit" onClick="postCommand();return false;" value="提交">';
445 } else {
446  $log .= '游戏流程故障,请联系管理员<br>';
447  //$gamedata['innerHTML']['cmd'] = $cmd;
448  //$gamedata['cmd'] .= '<br><br><input type="button" id="submit" onClick="postCommand();return false;" value="提交">';
449 }
450 
451 
452 if(isset($url)){$gamedata['url'] = $url;}
453 $gamedata['innerHTML']['pls'] = $plsinfo[$pls];
454 $gamedata['innerHTML']['anum'] = $alivenum;
455 
456 ob_clean();
457 $main ? include template($main) : include template('profile');
458 $gamedata['innerHTML']['main'] = ob_get_contents();
459 $gamedata['innerHTML']['log'] = $log;
460 if(isset($error)){$gamedata['innerHTML']['error'] = $error;}
461 $gamedata['value']['teamID'] = $teamID;
462 if($teamID){
463  $gamedata['innerHTML']['chattype'] = "<select name=\"chattype\" value=\"2\"><option value=\"0\" selected>$chatinfo[0]<option value=\"1\" >$chatinfo[1]</select>";
464 }else{
465  $gamedata['innerHTML']['chattype'] = "<select name=\"chattype\" value=\"2\"><option value=\"0\" selected>$chatinfo[0]</select>";
466 }
467 //foreach($gamedata as $k => $v){
468 // $w .= "{ $k } => { $v };\n\r";
469 //}
470 //writeover('a.txt',$w);
471 ob_clean();
473 //$json = new Services_JSON();
474 //$jgamedata = $json->encode($gamedata);
475 echo $jgamedata;
476 
477 ob_end_flush();
478 //$t_e=getmicrotime();
479 //putmicrotime($t_s,$t_e,'cmd_time');
480 
481 ?>
chkpoison($itmn)
itemdrop($item)
itemoff($item)
getclub($who, &$c1, &$c2, &$c3)
$gamedata
Definition: command.php:45
$jgamedata
Definition: command.php:472
selectclub($id)
adtsk()
$noisetime
Definition: combatinfo.php:7
$noiseid2
Definition: combatinfo.php:10
trap_adtsk($which)
$hospitals
$gamecfg
Definition: system.php:22
sing($sn)
Definition: song.inc.php:3
teamjoin($tID, $tPass)
Definition: team.func.php:78
findcorpse(&$w_pdata)
Definition: battle.func.php:80
$noiseid
Definition: combatinfo.php:9
$searchcoldtime
Definition: gamecfg_1.php:34
itemadd()
$itemusecoldtime
Definition: gamecfg_1.php:36
weaponswap()
getcorpse($item)
if(!$db->num_rows($result)) $pdata
Definition: command.php:18
$plsinfo
teammake($tID, $tPass)
Definition: team.func.php:25
$i
Definition: botservice.php:267
$endtime
Definition: botservice.php:321
$noisemode
Definition: combatinfo.php:11
shoplist($sn)
if(!defined('IN_GAME')) use_func_item($usemode, $item)
Definition: item2.func.php:6
teamquit()
Definition: team.func.php:137
if(PHP_VERSION< '4.3.0') $action
Definition: install.php:14
$db
Definition: clear.php:32
itemmix($mlist, $itemselect=-1)
player_save($data)
Definition: game.func.php:318
itemget()
calcskills(&$arr)
itemmove($from, $to)
【生存者数:<?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
if(!$cuser||!$cpass) $result
Definition: command.php:14
$movecoldtime
Definition: gamecfg_1.php:32
init_profile()
Definition: game.func.php:32
if(!defined('IN_GAME')) teamcheck()
Definition: team.func.php:8
if(strpos($username,'Yoshiko')!==false) if(preg_match($iplimit, $onlineip)) $password
Definition: login.php:114
const GAME_ROOT
Definition: clear.php:6
$noiselimit
Definition: system.php:38
$showcoldtimer
Definition: gamecfg_1.php:30
itemmerge($itn1, $itn2)
$coldtimeon
Definition: gamecfg_1.php:28
$main
Definition: command.php:457
$alivenum
Definition: gameinfo.php:14
$error
Definition: errorpage.php:2
$now
Definition: clear.php:23
itembuy($item, $shop, $bnum=1)
$_ERROR
getmicrotime()
$log
Definition: command.php:44
upgradeclubskills($cmd)
$llist
Definition: command.php:50
$gamestate
Definition: gameinfo.php:4
search()
oneonone($sb, $sf)
config($file= '', $cfg=1)
press_bomb()
rest($command)
Definition: state.func.php:369
senditem()
deathnote($itmd=0, $dnname='', $dndeath='', $dngender='m', $dnicon=1, $sfn)
Definition: item2.func.php:374
gexit($message= '', $file= '', $line=0)
Definition: global.func.php:30
chginf($infpos)
if(!defined( 'IN_GAME')) itemuse($itmn)
Definition: item.func.php:7
$cmd
Definition: botservice.php:51
$cpass
Definition: common.inc.php:207
if(!defined( 'IN_GAME')) combat($active=1, $wep_kind= '')
Definition: combat.func.php:7
if(!defined('IN_GAME')) getword()
Definition: special.func.php:8
$shops
compatible_json_encode($data)
if(!defined('IN_GAME')) move($moveto=99)
if(!defined('IN_GAME')) init_playerdata()
Definition: game.func.php:9