餌をあげる なでる 外に出す |
遊ぶ しかる 飼い主ランキング |
# ------------------------- # # Sub Pet Form # ペットフォーム # ------------------------- # sub petform { &checkname; if (!$petname) { &nopet;exit; } &header; &title; &bodytop("ペットデータ($num代目)"); &petdata; &condition; if ($noaction == 0 && $enter != 1) { print "<tr>\n"; print "<td>\n"; &tabletop; if ($love < 0) { &input('radio','mode','feed',' checked','餌をあげる'); print "</td>\n"; print "<td>\n"; &input('radio','mode','owner','','飼い主ランキング'); print "</td>\n"; print "</tr>\n"; } elsif ($love < 5) { &input('radio','mode','feed',' checked','餌をあげる<br>'); &input('radio','mode','pat','','なでる;'); print "</td>\n"; print "<td>\n"; &input('radio','mode','hit','','しかる<br>'); &input('radio','mode','owner','','飼い主ランキング'); print "</td>\n"; print "</tr>\n"; } else { &input('radio','mode','feed',' checked','餌をあげる<br>'); &input('radio','mode','pat','','なでる<br>'); &input('radio','mode','out','','外に出す'); print "</td>\n"; print "<td>\n"; &input('radio','mode','play','','遊ぶ<br>'); &input('radio','mode','hit','','しかる<br>'); &input('radio','mode','owner','','飼い主ランキング'); print "</td>\n"; print "</tr>\n"; } print "<tr>\n"; print "<td colspan=\"2\">\n"; print "<div align=\"right\">\n"; &input('hidden','name',$FORM{'name'},'',''); &input('hidden','pass',$FORM{'pass'},'',''); &input('hidden','good',"$scheduledsr[$timeafter]$plusfeed",'',''); &input('hidden','bad',"$schedulednt[$timeafter]$minusfeed",'',''); &input('submit','','OK!','','<br>'); print "</div>\n"; &tablebottom; } else { $actionflag = 1; } &bodybottom; &openoutpetdata; &footer; } |
if ($noaction == 0 && $enter != 1) { print "<tr>\n"; print "<td>\n"; # &tabletop; print "<table width=\"100%\" border=\"0\" cellspacing=\"$f_space\" cellpadding=\"0\">\n"; print "<tr>\n"; print "<td valign=top>\n"; if ($love < 0) { &input('radio','mode','feed',' checked','餌をあげる;'); print "</td>\n"; print "<td valign=top>\n"; # &input('radio','mode','owner','','飼い主ランキング'); print "</td>\n"; print "</tr>\n"; } |
# ------------------------- # # Sub Pet Form # ペットフォーム # ------------------------- # sub petform { &checkname; if (!$petname) { &nopet;exit; } &header; &title; &bodytop("ペットデータ($num代目)"); &petdata; &condition; if ($noaction == 0 && $enter != 1) { print "<tr>\n"; print "<td>\n"; # &tabletop; print "<table width=\"100%\" border=\"0\" cellspacing=\"$f_space\" cellpadding=\"0\">\n"; # ランク表示の移動 print "<tr>\n"; print "<td valign=top>\n"; if ($love >= 50 && $event01 == 0 && $hungry == 0) { # 1回きりのイベント &input('radio','mode','event01_01',' checked','好感度アップ'); print "</td>\n"; print "<td valign=top>\n"; &input('radio','mode','event01_02','','好感度ダウン'); print "</td>\n"; print "</tr>\n"; } elsif ($love < 0) { &input('radio','mode','feed',' checked','餌をあげる;'); print "</td>\n"; print "<td valign=top>\n"; # &input('radio','mode','owner','','飼い主ランキング'); print "</td>\n"; print "</tr>\n"; } elsif ($love < 5) { &input('radio','mode','feed',' checked','餌をあげる<br>'); &input('radio','mode','pat','','なでる;'); print "</td>\n"; print "<td valign=top>\n"; &input('radio','mode','hit','','しかる<br>'); # &input('radio','mode','owner','','飼い主ランキング'); print "</td>\n"; print "</tr>\n"; } else { &input('radio','mode','feed',' checked','餌をあげる<br>'); &input('radio','mode','pat','','なでる<br>'); &input('radio','mode','out','','外に出す'); print "</td>\n"; print "<td valign=top>\n"; &input('radio','mode','play','','遊ぶ<br>'); &input('radio','mode','hit','','しかる<br>'); # &input('radio','mode','owner','','飼い主ランキング'); print "</td>\n"; print "</tr>\n"; } print "<tr>\n"; print "<td colspan=\"2\">\n"; print "<div align=\"right\">\n"; &input('hidden','name',$FORM{'name'},'',''); &input('hidden','pass',$FORM{'pass'},'',''); &input('hidden','good',"$scheduledsr[$timeafter]$plusfeed",'',''); &input('hidden','bad',"$schedulednt[$timeafter]$minusfeed",'',''); &input('submit','','OK!','','<br>'); print "</div>\n"; &tablebottom; } else { $actionflag = 1; } &bodybottom; &openoutpetdata; &footer; } |