Kết quả 41 đến 50 của 81
-
22-08-11, 04:31 PM #41Thành Viên
- Ngày tham gia
- Feb 2010
- Bài viết
- 399
- Thanks
- 108
- Thanked 66 Times in 37 Posts
Ðề: Webgame - Xnova revolution 5.1 - Tiếng Việt
dân chuyên PHP thì thiếu gì trình độ để xây dựng 1 web game hoành tráng
, qua ASP làm gì cho khó khăn
Khách viếng thăm hãy cùng skriptank xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!
-
22-08-11, 05:08 PM #42Thành Viên
- Ngày tham gia
- Aug 2011
- Bài viết
- 45
- Thanks
- 14
- Thanked 1 Time in 1 Post
Ðề: Webgame - Xnova revolution 5.1 - Tiếng Việt
Khách viếng thăm hãy cùng LinhKid xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!
-
22-08-11, 05:27 PM #43Thành Viên
- Ngày tham gia
- Aug 2011
- Bài viết
- 45
- Thanks
- 14
- Thanked 1 Time in 1 Post
Ðề: Webgame - Xnova revolution 5.1 - Tiếng Việt
Cái file nv của tank xài ntn thế nhỉ @@, về up lên rồi, vào file game.php để chèn rồi nhưng ko biết khai báo hàm ShowTutorialPage ở chỗ nào
.
Bạn nào chỉ chi tiết luôn là chỉnh sửa file nào nữa đi
, hix.
Khách viếng thăm hãy cùng LinhKid xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!
-
22-08-11, 05:36 PM #44Thành Viên
- Ngày tham gia
- Feb 2010
- Bài viết
- 399
- Thanks
- 108
- Thanked 66 Times in 37 Posts
Ðề: Webgame - Xnova revolution 5.1 - Tiếng Việt
Tống hết các file vào thư mục như n2t168 đã nói
mở game.php và chèn dòng này vào, vào đâu thì tùy
mở left_meu.tpl và chèn dòng này vào chỗ nào bạn muốn hiển thịcase 'tutorial': include_once(ROOT_PATH . 'includes/pages/ShowTutorialPage.php'); new ShowTutorialPage(); break;
Mở class.ShowFleetPage.php lên tìm đoạn này:<li><a href="?page=tutorial">Tutorial</a></li>
Thêm vào sau đó đoạn này:public static function ShowFleetPage()
{
global $USER, $PLANET, $reslist, $resource, $db, $LNG, $ExtraDM;
$PlanetRess = new ResourceUpdate();
$PlanetRess->CalcResource();
$PlanetRess->SavePlanetToDB();
$parse= $LNG;
$FleetID= request_var('fleetid', 0);
$GetAction= request_var('action', "");
$template= new template();
$template->loadscript('flotten.js');
// starting tutorial
$query = $db->uniquequery("SELECT `fleet_mission` FROM ".FLEETS." WHERE `fleet_owner` = '". $USER['id'] ."' AND `fleet_mission` = '6';");
if($query)
$db->query("UPDATE ".USERS." SET `tuto_spia_fin`=tuto_spia_fin+1 WHERE id=".$USER['id']."");
$query = $db->uniquequery("SELECT * FROM ".BUDDY." WHERE `sender` = '". $USER['id'] ."';");
$query2= $db->uniquequery("SELECT `fleet_mission` FROM ".FLEETS." WHERE `fleet_owner` = '". $USER['id'] ."' AND `fleet_mission` = '8';");
if($query2)
$db->query("UPDATE ".USERS." SET `tuto_detriti_fin`=tuto_detriti_fin+1 WHERE id=".$USER['id']."");
if($USER['tuto_miniera']==0){
if($PLANET['metal_mine'] >=4 && $PLANET['crystal_mine'] >=2 && $PLANET['solar_plant'] >=4){
$db->query("UPDATE ".USERS." SET `tuto_miniera`=tuto_miniera+1 WHERE id=".$USER['id']."");
$db->query("UPDATE ".USERS." SET `darkmatter`=darkmatter+200 WHERE id=".$USER['id']."");
$template->message("Congratulations you have completed Task 1 of this tutorial! You received just 200 dark matter!", "?page=fleet", 3);
exit;
}
}
if($USER['tuto_difesa']==0){
if($PLANET['deuterium_sintetizer'] >=2 && $PLANET['robot_factory'] >=2 && $PLANET['hangar'] >=1&& $PLANET['misil_launcher'] >=1){
$db->query("UPDATE ".USERS." SET `tuto_difesa`=tuto_difesa+1 WHERE id=".$USER['id']."");
$db->query("UPDATE ".USERS." SET `darkmatter`=darkmatter+200 WHERE id=".$USER['id']."");
$template->message("Congratulations you have completed Task 2 of this tutorial! You received just 200 dark matter!", "?page=fleet", 3);
exit;
}
}
if($USER['tuto_pianeta']==0){
if($PLANET['metal_mine'] >=10 && $PLANET['crystal_mine'] >=7 && $PLANET['deuterium_sintetizer'] >=5){
$db->query("UPDATE ".USERS." SET `tuto_pianeta`=tuto_pianeta+1 WHERE id=".$USER['id']."");
$db->query("UPDATE ".USERS." SET `darkmatter`=darkmatter+200 WHERE id=".$USER['id']."");
$template->message("Congratulations you have completed Task 3 of this tutorial! You received just 200 dark matter!", "?page=fleet", 3);
exit;
}
}
if($USER['tuto_nave']==0){
if($PLANET['laboratory'] >=1 && $PLANET['hangar'] >=2 && $PLANET['small_ship_cargo'] >=1 && $USER['combustion_tech'] >=2){
$db->query("UPDATE ".USERS." SET `tuto_nave`=tuto_nave+1 WHERE id=".$USER['id']."");
$db->query("UPDATE ".USERS." SET `darkmatter`=darkmatter+200 WHERE id=".$USER['id']."");
$template->message("Congratulations you have completed Task 4 of this tutorial! You received just 200 dark matter!", "?page=fleet", 3);
exit;
}
}
if($USER['tuto_tec'] == 0){
if($USER['ally_id'] > 0 && $query>1){
$db->query("UPDATE ".USERS." SET `tuto_tec`=tuto_tec+1 WHERE id=".$USER['id']."");
$db->query("UPDATE ".USERS." SET `darkmatter`=darkmatter+200 WHERE id=".$USER['id']."");
$template->message("Congratulations you have completed Task 5 of this tutorial! You received just 200 dark matter!", "?page=fleet", 3);
exit;
}
}
if($USER['tuto_mercante'] == 0){
if($USER['used_trader'] >= 1 && $PLANET['metal_store'] >= 1 or $PLANET['crystal_store'] >= 1 or $PLANET['deuterium_store'] >=1 ){
$db->query("UPDATE ".USERS." SET `tuto_mercante`=tuto_mercante+1 WHERE id=".$USER['id']."");
$db->query("UPDATE ".USERS." SET `darkmatter`=darkmatter+200 WHERE id=".$USER['id']."");
$template->message("Congratulations you have completed Task 6 of this tutorial! You received just 200 dark matter!", "?page=fleet", 3);
exit;
}
}
if($USER['tuto_spia'] == 0){
if($PLANET['spy_sonde'] >=1 && $USER['tuto_spia_fin'] = 1){
$db->query("UPDATE ".USERS." SET `tuto_spia`=tuto_spia+1 WHERE id=".$USER['id']."");
$db->query("UPDATE ".USERS." SET `darkmatter`=darkmatter+200 WHERE id=".$USER['id']."");
$template->message("Congratulations you have completed Task 7 of this tutorial! You received just 200 dark matter!", "?page=fleet", 3);
exit;
}
}
if($USER['tuto_colonia'] ==0){
$query = $db->uniquequery("SELECT count
AS planet_count FROM ".PLANETS." WHERE `id_owner` = '". $USER['id'] ."';");
$planet_count = $query['planet_count'];
if($planet_count >=2){
$db->query("UPDATE ".USERS." SET `tuto_colonia`=tuto_colonia+1 WHERE id=".$USER['id']."");
$db->query("UPDATE ".USERS." SET `darkmatter`=darkmatter+1000 WHERE id=".$USER['id']."");
$template->message("Congratulations you have completed Task 8 of this tutorial! You received just 1000 dark matter!", "?page=fleet", 3);
exit;
}
}
if($USER['tuto_detriti']==0){
$query = $db->uniquequery("SELECT `fleet_mission` FROM ".FLEETS." WHERE `fleet_owner` = '". $USER['id'] ."' AND `fleet_mission` = '8';");
if($USER['tuto_detriti_fin']>=1 && $PLANET['recycler'] >= 1){
$db->query("UPDATE ".USERS." SET `tuto_detriti`=tuto_detriti+1 WHERE id=".$USER['id']."");
$db->query("UPDATE ".USERS." SET `darkmatter`=darkmatter+2000 WHERE id=".$USER['id']."");
$template->message("Congratulations you have completed Task 9 of this tutorial! You received just 2000 dark matter!", "?page=fleet", 3);
exit;
}
}
//-->end tutorial
Mở class.ShowBuildingPage.php tìm đoạn này:
Thêm dòng này phía dướipublic function __construct()
{
global $ProdGrid, $LNG, $resource, $reslist, $CONF, $db, $PLANET, $USER;
include_once(ROOT_PATH . 'includes/functions/IsTechnologieAccessible.php');
include_once(ROOT_PATH . 'includes/functions/GetElementPrice.php');
$TheCommand = request_var('cmd','');
$Element = request_var('building',0);
$ListID = request_var('listid',0);
Giờ đến phần truy xuất cơ sở dữ liệu, vào phpadmin của bạn$template=new template();
vàTruy suất MySQL :
ALTER TABLE `uni1_users` ADD `started_tut` TINYINT(1) NOT NULL DEFAULT '0'
Lưu ý: trong lệnh truy suất cơ sở dữ liệu, tên "uni1_users" bạn chú ý đến "uni1", đó là tiền tố khi bạn cài đặt database lúc install game. Nếu bạn đặt tên tiền tố là "abc_", thì thay vào chỗ đó là "abc_users", còn nếu bạn cài game với tiền tố mặc định thì để nguyên câu lệnh truy xuất đó.Truy suất MySQL
ALTER TABLE `uni1_users` ADD `tuto_miniera` enum('0','1') NOT NULL DEFAULT '0', ADD `tuto_difesa` enum('0','1') NOT NULL DEFAULT '0', ADD `tuto_pianeta` enum('0','1') NOT NULL DEFAULT '0', ADD `tuto_nave` enum('0','1') NOT NULL DEFAULT '0', ADD `tuto_mercante` enum('0','1') NOT NULL DEFAULT '0', ADD `tuto_spia` enum('0','1') NOT NULL DEFAULT '0', ADD `tuto_spia_fin` enum('0','1') NOT NULL DEFAULT '0', ADD `tuto_colonia` enum('0','1') NOT NULL DEFAULT '0', ADD `tuto_tec` enum('0','1') NOT NULL DEFAULT '0', ADD `tuto_tec_due` enum('0','1') NOT NULL DEFAULT '0', ADD `tuto_detriti` enum('0','1') NOT NULL DEFAULT '0', ADD `tuto_detriti_fin` enum('0','1') NOT NULL DEFAULT '0', ADD `tuto_spedizione_fin` enum('0','1') NOT NULL DEFAULT '0', ADD `tuto_spedizione` enum('0','1') NOT NULL DEFAULT '0', ADD `used_trader` INT(11) NOT NULL DEFAULT '0'
Good luckKhách viếng thăm hãy cùng skriptank xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!
-
Các thành viên gởi lời cảm ơn đến skriptank vì bài viết này !
LinhKid (22-08-11)
-
22-08-11, 05:41 PM #45Thành Viên
- Ngày tham gia
- Aug 2011
- Bài viết
- 45
- Thanks
- 14
- Thanked 1 Time in 1 Post
Ðề: Webgame - Xnova revolution 5.1 - Tiếng Việt
Thanks bạn nhiều lắm, tớ cũng đã chèn mấy thêm vào game.php và file class với lib, vậy mà ko đc, hóa ra còn nhiều thứ như thế này @@
Khách viếng thăm hãy cùng LinhKid xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!
-
22-08-11, 05:43 PM #46Thành Viên
- Ngày tham gia
- Aug 2009
- Bài viết
- 140
- Thanks
- 32
- Thanked 27 Times in 13 Posts
Ðề: Webgame - Xnova revolution 5.1 - Tiếng Việt
Mình có đính kèm cái file hướng dẫn lun rồi mà ta

Cái game này chưa vọc qua. khi nào việt hóa cái game này xong load về xem thử.Hì hì, cảm ơn cả 2 bạn nhiều lắm ^^
n2t168 có biết game King of world share bên Galaxy ko ? Mình rất kết mấy game cổ trang chiến thuật xây dựng kiểu ấy. Mình có download về, cài đc 1 phần rồi, nhưng tới mục config thì làm mãi theo hướng dẫn mà ko đc.
Với lại cho mình hỏi là ngoài SQL 2005 thì có thể làm trên Apache sr hoặc xampp đc ko ? Mấy cái ấy mình quen dùng hơn @@, chứ xài cái SQL 2005 này khó nhằn quá [Only registered and activated users can see links. ], dân chuyên PHP tự nhiên đụng phải ASP đã nản rồi, đến cái csdl của nó cũng lại lạ nữa, làm mãi ko đc [Only registered and activated users can see links. ].
Nếu ko phiền rất mong bạn hướng dẫn qua cho mình cách config cái bộ King of world. Cảm ơn bạn trước ^^
Lần sửa cuối bởi n2t168, ngày 22-08-11 lúc 05:47 PM.
Khách viếng thăm hãy cùng n2t168 xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!
-
22-08-11, 05:48 PM #47Thành Viên
- Ngày tham gia
- Feb 2010
- Bài viết
- 399
- Thanks
- 108
- Thanked 66 Times in 37 Posts
Ðề: Webgame - Xnova revolution 5.1 - Tiếng Việt
Khách viếng thăm hãy cùng skriptank xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!
-
22-08-11, 05:51 PM #48Thành Viên
- Ngày tham gia
- Aug 2011
- Bài viết
- 45
- Thanks
- 14
- Thanked 1 Time in 1 Post
Ðề: Webgame - Xnova revolution 5.1 - Tiếng Việt
Hình như khai báo hàm vẫn thiếu bạn ạ, làm xong hết rồi nó vẫn báo là ko hiểu function ShowTutorilPage. Bạn thử check lại xem còn thiếu đoạn nào ko ?
Cảm ơn bạn nhiều nhé
Khách viếng thăm hãy cùng LinhKid xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!
-
22-08-11, 05:52 PM #49Thành Viên
- Ngày tham gia
- Aug 2009
- Bài viết
- 140
- Thanks
- 32
- Thanked 27 Times in 13 Posts
Ðề: Webgame - Xnova revolution 5.1 - Tiếng Việt
Khách viếng thăm hãy cùng n2t168 xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!
-
22-08-11, 05:56 PM #50Thành Viên
- Ngày tham gia
- Feb 2010
- Bài viết
- 399
- Thanks
- 108
- Thanked 66 Times in 37 Posts
Ðề: Webgame - Xnova revolution 5.1 - Tiếng Việt
Chơi nhau đây mà, tên này phải ngàn lần [Only registered and activated users can see links. ][Only registered and activated users can see links. ][Only registered and activated users can see links. ][Only registered and activated users can see links. ][Only registered and activated users can see links. ][Only registered and activated users can see links. ][Only registered and activated users can see links. ][Only registered and activated users can see links. ][Only registered and activated users can see links. ][Only registered and activated users can see links. ][Only registered and activated users can see links. ][Only registered and activated users can see links. ][Only registered and activated users can see links. ][Only registered and activated users can see links. ][Only registered and activated users can see links. ][Only registered and activated users can see links. ][Only registered and activated users can see links. ][Only registered and activated users can see links. ][Only registered and activated users can see links. ][Only registered and activated users can see links. ][Only registered and activated users can see links. ][Only registered and activated users can see links. ][Only registered and activated users can see links. ][Only registered and activated users can see links. ][Only registered and activated users can see links. ][Only registered and activated users can see links. ][Only registered and activated users can see links. ][Only registered and activated users can see links. ][Only registered and activated users can see links. ][Only registered and activated users can see links. ][Only registered and activated users can see links. ][Only registered and activated users can see links. ][Only registered and activated users can see links. ][Only registered and activated users can see links. ][Only registered and activated users can see links. ][Only registered and activated users can see links. ][Only registered and activated users can see links. ][Only registered and activated users can see links. ][Only registered and activated users can see links. ][Only registered and activated users can see links. ][Only registered and activated users can see links. ][Only registered and activated users can see links. ][Only registered and activated users can see links. ][Only registered and activated users can see links. ][Only registered and activated users can see links. ][Only registered and activated users can see links. ][Only registered and activated users can see links. ][Only registered and activated users can see links. ][Only registered and activated users can see links. ][Only registered and activated users can see links. ][Only registered and activated users can see links. ][Only registered and activated users can see links. ][Only registered and activated users can see links. ][Only registered and activated users can see links. ][Only registered and activated users can see links. ][Only registered and activated users can see links. ][Only registered and activated users can see links. ][Only registered and activated users can see links. ][Only registered and activated users can see links. ][Only registered and activated users can see links. ][Only registered and activated users can see links. ][Only registered and activated users can see links. ][Only registered and activated users can see links. ][Only registered and activated users can see links. ][Only registered and activated users can see links. ][Only registered and activated users can see links. ][Only registered and activated users can see links. ]
Khách viếng thăm hãy cùng skriptank xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!
Các Chủ đề tương tự
-
[Giới thiệu] Mu 0.97N Moded Ver 2 - The End Of Revolution v0.97!!
Bởi Destruct trong diễn đàn ReleasesTrả lời: 348Bài viết cuối: 09-07-12, 08:18 PM -
[Thao Luận] XNova Có thể phát triển map như Ikariam ko?
Bởi robin007 trong diễn đàn Hỏi Đáp/ Yêu CầuTrả lời: 2Bài viết cuối: 18-06-11, 09:45 PM





Trả lời kèm Trích dẫn
