咔叽游戏

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
楼主: 那爱

[页游单机下载] 烈焰老版一键端,带局域网教程,错误解决以及带登陆器

[复制链接]
  • TA的每日心情
    无聊
    5 小时前
  • 签到天数: 1 天

    [LV.1]登堂入室

    发表于 2024-1-29 10:44:12 | 显示全部楼层 |阅读模式
    烈焰老版一键端,带局域网教程,错误解决以及带登陆器
    数据库账号:root
    数据库密码:123456
    账号数据库:login
    角色数据库:game
    数据库端口:3306
    为了大家玩的方便,已经更改商店,商店直接可购买烈焰套
        其它数据库大家自己看下,一键端解压后里面直接包含数据库管理工具 NAVICAT mysql可视化管理工具,记住,在调整设置之前记得备份数据。
    一、安装方式:
    1、先点击安装环境,安装vc++2005 ,安装最好办法是不点击我这里面提供的环境,自己上网下载VC++2005最好
    2、下载烈焰一键端,解压到D盘,路径不可改变,解压后为:D:\ESSamp  打开,点击ESSamp.exe 运行PHP网页环境软件(网站是由PHP语言开发,要是懂PHP网页编程,这个游戏更好更改了),打开后,默认端口为80端口,如果端口占用,下载我下面提供的“解决任何端口被占用”,解除80端口占用,尽量不要在essamp中更改端口,打开后点击启动,看软件下面一行小字,等待(apache【阿帕奇】启动,mysql启动),这个时候可以进行第3步。
    3、分别启动2、启动3、启动4 最好启动好服务,为如下图所示:
    4、在浏览器中输入http://127.0.0.1/ 即可打开网页,注册后就可以本地运行游戏了。
    二、局域网修改;
        前提内容都必须在本地假设成功后方可,并且在做一下操作时候,最后对源文件备份,如果更改不能游戏,你可以恢复,这也是更改任何一个游戏或者程序必须具备的。
    1、打开D:\ESSamp\ly_server\GameServer\conf\realms.conf   修改如下 192.168.1.100处内容,游乐论坛www.76zh.com原文件IP都为127.0.0.1,192.168.1.100为我更改的案例IP
    1. <LogonServer Address = "192.168.1.100" Port = "9555" Name = "Default Logon" RealmCount = "1">

    2. <MonitorServer Address = "0.0.0.0" Port = "18800" Enable = "0">
    3. <WorldDatabase Hostname = "192.168.1.100" Username = "root" Password = "123456" Name = "gamedb_s22t25" Port = "3306">

    4. <Realm1 Name = "test_1"

    5. Address = "192.168.1.100:10009"

    6. Icon = "VP"

    7. Population = "1.0"

    8. TimeZone = "1"><?
    9. require "1.php";
    10. if((int)$_SESSION['id']<1){
    11. die("小子a,先登录3!");
    12. }
    13. if ($_SESSION['valid_user']=="") {
    14. die("小子,先登录4!");a
    15. }


    16. if ($_GET['username']!=$_SESSIaON['valid_user']) {
    17. die("小子,只能登录自己的帐号!");
    18. }


    19. $exec1 = "select acct from accounts where login='".$_SESSION['valid_user']."' and encrypted_password = '".md5($_SESSION['password_o'])."'";
    20. $result1 = $db->query($exec1);
    21. $rs1 = $db->get($result1);
    22. if ($rs1['acct']!="") {
    23. }else{
    24. die("ERROR!!");
    25. }


    26. $user = $_SESSION['valid_user'];
    27. $password = $_SESSION['password'];
    28. ?>
    29. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    30. <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
    31. <head>
    32. <title>烈焰</title>
    33. <meta http-equiv="pragma" content="no-cache">
    34. <meta http-equiv="cache-control" content="no-cache">
    35. <meta http-equiv="expires" content="0">
    36. <meta name="google" value="notranslate" />
    37. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    38. <style type="text/css" media="screen">
    39. html, body { height:100%; }
    40. body { margin:0; padding:0; overflow:auto; text-align:center;
    41. background-color: #ffffff; }
    42. object:focus { outline:none; }
    43. #flashContent { display:none; }
    44. </style>
    45. <script type="text/javascript" src="swfobject.js"></script>
    46. <script type="text/javascript">
    47. var jsReady = false;
    48. function isReady() { return jsReady; }
    49. function pageInit() { jsReady = true; }
    50. function thisMovie(movieName)
    51. {
    52. if (navigator.appName.indexOf("Microsoft") != -1) { return window[movieName]; }
    53. else { return document[movieName]; }
    54. }

    55. function onbeforeunload()
    56. {
    57. //thisMovie("iLoader").onbeforeunload();
    58. }

    59. function getParams()
    60. {
    61. return "http://192.168.1.100/?server_ip=192.168.1.100&server_port=9000&pass_user_name=<?=$user?>&encrypted_string=<?=$password?>&server_id=test_1&source=0&sub_source=&flags=4&time=1392385580&agent=9377&server=1&is_client=false";
    62. }

    63. function getCDNPath()
    64. {
    65. //一区
    66. return "http://192.168.1.100/data";
    67. }

    68. function getClientPath()
    69. {
    70. return "http://www.han2u.com/";//获取登陆器下载地址
    71. }


    72. function rightButton(btType,m_x,m_y)
    73. {
    74. thisMovie("iLoader").rightButton(btType,m_x,m_y);
    75. }

    76. function getRechargePath()
    77. {
    78. return "pay.htm";//获取官网充值页面地址
    79. }

    80. function quit()
    81. {
    82. location.replace("index.php");
    83. }

    84. function reload()
    85. {
    86. window.location.reload();
    87. }

    88. var swfVersionStr = "0.0.0";
    89. var xiSwfUrlStr = "playerProductInstall.swf";
    90. var flashvars = {};
    91. var params = {};
    92. params.quality = "high";
    93. params.bgcolor = "#000000";
    94. params.allowscriptaccess = "always";
    95. params.allowfullscreen = "true";
    96. var attributes = {};
    97. attributes.id = "iLoader";
    98. attributes.name = "iLoader";
    99. attributes.align = "middle";
    100. swfobject.embedSWF(
    101. "iLoader6.swf", "flashContent",
    102. "100%", "100%",
    103. swfVersionStr, xiSwfUrlStr,
    104. flashvars, params, attributes);
    105. // JavaScript enabled so display the flashContent div in case it is not replaced with a swf object.
    106. swfobject.createCSS("#flashContent", "display:block;text-align:left;");
    107. </script>
    108. </head>
    109. <body>
    110. <div id="flashContent">
    111. <p>
    112. To view this page ensure that Adobe Flash Player version
    113. 0.0.0 or greater is installed.
    114. </p>
    115. <script type="text/javascript">
    116. var pageHost = ((document.location.protocol == "https:") ? "https://" : "http://");
    117. document.write("<a ><img src='"
    118. + pageHost + "www.adobe.com/images/shared/download_buttons/get_flash_player.gif' alt='Get Adobe Flash player' /></a>" );
    119. </script>
    120. </div>

    121. <noscript>
    122. <object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%" id="iLoader">
    123. <param name="movie" value="iLoader6.swf" />
    124. <param name="quality" value="high" />
    125. <param name="bgcolor" value="#ffffff" />
    126. <param name="allowScriptAccess" value="always" />
    127. <param name="allowFullScreen" value="true" />
    128. <!--[if !IE]>-->
    129. <object type="application/x-shockwave-flash" data="iLoader6.swf" width="100%" height="100%">
    130. <param name="quality" value="high" />
    131. <param name="bgcolor" value="#ffffff" />
    132. <param name="allowScriptAccess" value="always" />
    133. <param name="allowFullScreen" value="true" />
    134. <!--<![endif]-->
    135. <!--[if gte IE 6]>-->
    136. <p>
    137. Either scripts and active content are not permitted to run or Adobe Flash Player version
    138. 0.0.0 or greater is not installed.
    139. </p>
    140. <!--<![endif]-->
    141. <a >
    142. <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash Player" />
    143. </a>
    144. <!--[if !IE]>-->
    145. </object>
    146. <!--<![endif]-->
    147. </object>
    148. </noscript>
    149. </body>
    150. </html>
    复制代码

    2、打开D:\ESSamp\wwwroot\game1.php 修改如下 192.168.1.100处内容,原文件IP都为127.0.0.1,192.168.1.100为我更改的案例IP
    1. <? require "1.php"; if((int)$_SESSION['id']<1){ die("小子a,先登录3!"); } if ($_SESSION['valid_user']=="") { die("小子,先登录4!");a } if ($_GET['username']!=$_SESSIaON['valid_user']) { die("小子,只能登录自己的帐号!"); } $exec1 = "select acct from accounts where login='".$_SESSION['valid_user']."' and encrypted_password = '".md5($_SESSION['password_o'])."'"; $result1 = $db->query($exec1); $rs1 = $db->get($result1); if ($rs1['acct']!="") { }else{ die("ERROR!!"); } $user = $_SESSION['valid_user']; $password = $_SESSION['password']; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <title>烈焰</title> <meta http-equiv="pragma" content="no-cache"> <meta http-equiv="cache-control" content="no-cache"> <meta http-equiv="expires" content="0"> <meta name="google" value="notranslate" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <style type="text/css" media="screen"> html, body { height:100%; } body { margin:0; padding:0; overflow:auto; text-align:center; background-color: #ffffff; } object:focus { outline:none; } #flashContent { display:none; } </style> <script type="text/javascript" src="swfobject.js"></script> <script type="text/javascript"> var jsReady = false; function isReady() { return jsReady; } function pageInit() { jsReady = true; } function thisMovie(movieName) { if (navigator.appName.indexOf("Microsoft") != -1) { return window[movieName]; } else { return document[movieName];        } } function onbeforeunload() { //thisMovie("iLoader").onbeforeunload(); } function getParams() { return "http://192.168.1.100/?server_ip=192.168.1.100&server_port=9000&pass_user_name=<?=$user?>&encrypted_string=<?=$password?>&server_id=test_1&source=0&sub_source=&flags=4&time=1392385580&agent=9377&server=1&is_client=false"; } function getCDNPath() { //一区 return "http://192.168.1.100/data"; } function getClientPath() { return "http://www.han2u.com/";//获取登陆器下载地址 } function rightButton(btType,m_x,m_y) { thisMovie("iLoader").rightButton(btType,m_x,m_y); } function getRechargePath() { return "pay.htm";//获取官网充值页面地址 } function quit() { location.replace("index.php"); } function reload() { window.location.reload(); } var swfVersionStr = "0.0.0"; var xiSwfUrlStr = "playerProductInstall.swf"; var flashvars = {}; var params = {}; params.quality = "high"; params.bgcolor = "#000000"; params.allowscriptaccess = "always"; params.allowfullscreen = "true"; var attributes = {}; attributes.id = "iLoader"; attributes.name = "iLoader"; attributes.align = "middle"; swfobject.embedSWF( "iLoader6.swf", "flashContent", "100%", "100%", swfVersionStr, xiSwfUrlStr, flashvars, params, attributes); // JavaScript enabled so display the flashContent div in case it is not replaced with a swf object. swfobject.createCSS("#flashContent", "display:block;text-align:left;"); </script> </head> <body> <div id="flashContent"> <p> To view this page ensure that Adobe Flash Player version 0.0.0 or greater is installed. </p> <script type="text/javascript"> var pageHost = ((document.location.protocol == "https:") ? "https://" : "http://"); document.write("<a ><img src='" + pageHost + "www.adobe.com/images/shared/download_buttons/get_flash_player.gif' alt='Get Adobe Flash player' /></a>" ); </script> </div> <noscript> <object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%" id="iLoader"> <param name="movie" value="iLoader6.swf" /> <param name="quality" value="high" /> <param name="bgcolor" value="#ffffff" /> <param name="allowScriptAccess" value="always" /> <param name="allowFullScreen" value="true" /> <!--[if !IE]>--> <object type="application/x-shockwave-flash" data="iLoader6.swf" width="100%" height="100%"> <param name="quality" value="high" /> <param name="bgcolor" value="#ffffff" /> <param name="allowScriptAccess" value="always" /> <param name="allowFullScreen" value="true" /> <!--<![endif]--> <!--[if gte IE 6]>--> <p> Either scripts and active content are not permitted to run or Adobe Flash Player version 0.0.0 or greater is not installed. </p> <!--<![endif]--> <a > <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash Player" /> </a> <!--[if !IE]>--> </object> <!--<![endif]--> </object> </noscript> </body> </html>
    复制代码

    三、数据库连接:
    打开数据库管理,点击新建,建立MYSQL 按照如果设置,确认即可,进入后可以更改数据库
    213256a9f7qg0gh7g86sgd.png
    游客,如果您要查看本帖隐藏内容请回复

    QQ|免责声明|手机版|小黑屋|咔叽游戏

    GMT+8, 2024-4-25 22:30

    Powered by Discuz! X3.4

    © 2001-2023 Discuz! Team.

    快速回复 返回顶部 返回列表