⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 buy.pl

📁 三国网页游戏原码 增加了亡命也就是判国 还修进了管理工具
💻 PL
字号:
#_/_/_/_/_/_/_/_/#
#      攧攦      #
#_/_/_/_/_/_/_/_/#

sub BUY {

	if($in{'no'} eq ""){&ERR("NO:没有选择.");}
	&CHARA_MAIN_OPEN;
	&TOWN_DATA_OPEN($kpos);

	&HEADER;
	$no = $in{'no'} + 1;

	$get_sol1 = int($kgold * $zsouba);
	$get_sol2 = int($krice / $zsouba);
	if($get_sol1 > 3000){
		$get_sol1 = 3000;
	}
	if($get_sol2 > 3000){
		$get_sol2 = 3000;
	}

	print <<"EOM";
<TABLE border=0 width=100% height=100%><TR><TD align=center>
<TABLE border=0 width=100%>
<TR><TH bgcolor=414141>
<font color=ffffff> - 米·钱交易 - </font>
</TH></TR>
<TR><TD>

<TABLE bgcolor=$ELE_BG[$xele]><TBODY bgcolor=$ELE_C[$xele]>
<TR><TH colspan=7 bgcolor=$ELE_BG[$xele]><font color=$ELE_C[$xele]>$kname</font></TH></TR>

<TR><TD rowspan=2 width=5><img src=$IMG/$kchara.gif></TD><TD>武力</TD><TH>$kstr</TH><TD>智力</TD><TH>$kint</TH><TD>统率力</TD><TH>$klea</TH></TR>
<TR><TD>金钱</TD><TH>$kgold</TH><TD>米</TD><TH>$krice</TH><TD>贡献</TD><TH>$kcex</TH></TR>
<TR><TD>所属国家</TD><TH colspan=2>$cou_name[$kcon]国家</TH><TD>士兵</TD><TH>$ksol</TH><TD>训练</TD><TH>$kgat</TH></TR>
</TBODY></TABLE>
</TD></TR>
<TR><TD>
<TABEL bgcolor=#AA0000><TR><TD bgcolor=#000000>
<font color=white>欢迎光临<BR>这里是交换米和钱的场所<BR>现在的行情是 1 钱对米<font color=red>$zsouba</font>是<BR>1 次的交易能买卖的最大 3000 到是.<BR>要交换多少?</font>
</TD></TR></TABLE>
</TD></TR>
<TR><TD>
买米的:
<form action="$COMMAND" method="POST"><input type=hidden name=id value=$kid><input type=hidden name=pass value=$kpass>
米<input type=text name=num value=$get_sol1 size=4>
<input type=hidden name=no value=$in{'no'}>
<input type=hidden name=mode value=19>
<input type=hidden name=type value=1>
<input type=submit value=\"买米\"></form>

用米换钱的:
<form action="$COMMAND" method="POST"><input type=hidden name=id value=$kid><input type=hidden name=pass value=$kpass>
金钱<input type=text name=num value=$get_sol2 size=4>
<input type=hidden name=no value=$in{'no'}>
<input type=hidden name=mode value=19>
<input type=hidden name=type value=0>
<input type=submit value=\"换钱\"></form>


<form action="$FILE_STATUS" method="post">
<input type=hidden name=id value=$kid>
<input type=hidden name=pass value=$kpass>
<input type=hidden name=mode value=STATUS>
<input type=submit value="返回"></form></CENTER>
</TD></TR></TABLE>
</TD></TR></TABLE>

EOM

	&FOOTER;

	exit;

}
1;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -