Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[Test]Start the launcehr by ur site

Newbie Spellweaver
Joined
Nov 25, 2009
Messages
13
Reaction score
0
Idk if this can work or no i don't have test it , it someone can for me plz ...

This is the code from ijji fo run the GunzLauncehr , edited by me ( normaly it's run the "u_gunz.exe" on ur ijji folder , for install the client first , i've edit this for run directly the Launcher :

Code:
<!-- 090417 playlivemain01_422px -->
<div id="playlivemain01_422px">
<div class="plvmain_bg"></div>
<div class="plvmain_playersonline"><a href="http://urdownloadlink.com"><img src="http://yourimages/bla.png" width="135" height="10" alt="Direct File Download"></a>
</div>
<div class="plvmain_downloadsize">File Size (The size of ur .exe)</div>
<div class="plvmain_btn"><a href="javascript:gamestart('GunzLauncher.exe', '');">Star GunZ Launcher</a></div>
</div>
<!-- //090417 playlivemain01_422px -->

Plz some one for test it ... ?
 
Custom Title Activated
Loyal Member
Joined
Nov 14, 2007
Messages
1,829
Reaction score
177
there is more to it the use a program for it(the ijji plugins they make you download)
 
Elite Diviner
Joined
Aug 19, 2007
Messages
437
Reaction score
152
If you did want to know more, however:

Code:
function gamestart(gameId) {
	var startFrame = document.getElementById("startFrame");
	if (startFrame == null)	{
		var obj = document.createElement('iframe');
		obj.setAttribute('id','startFrame');
		obj.style.border = '0px';
		obj.style.width = '0px';
		obj.style.height = '0px';
		obj.style.visibility = 'hidden';
		startFrame = document.body.appendChild(obj);
	}
	startFrame.src="/common/pregamestart.nhn?gameId=" + gameId + "&posx=" + __mouse_pos2_x + "&posy=" + __mouse_pos2_y;
}

And then on /common/pregamestart.nhn

Code:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Cache-Control" content="No-Cache" />
<meta http-equiv="Pragma"	content="No-Cache" />
<meta http-equiv="Expires" content="-1" />
<script type="text/javascript" src="http://images.ijjimax.com/common/scripts/jquery/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="/common/scripts/common.js"></script>
<script type="text/javascript" src="/common/scripts/json_ajax.js"></script>
<script type="text/javascript" src="/common/scripts/hanset.js"></script>

<script type="text/javascript">
function isOS_Windows(){if (window.navigator.userAgent.toUpperCase().indexOf("WINDOWS") != -1) return true;else return false;}
function isBrowser_IE() {if (window.navigator.userAgent.indexOf("MSIE") != -1) return true;else return false;}
function isBrowser_FF() {if (window.navigator.userAgent.toUpperCase().indexOf("FIREFOX") != -1) return true;else return false;}
function isSupportedPlatform() {
	if (!isOS_Windows()) return false;
	if (isBrowser_IE() || isBrowser_FF()) return true;
	return false;
}
function wbersPosLog(gameid, code) {
	ajaxHttpRequest("http://wbers.ijji.com/wbers/post.php?project=" + gameid + "&id=&subject=poslog&value=" + code);
}
</script>
<script type="text/javascript">
// Autoinstaller detection
function debug(msg) {/*alert(msg);*/}
var autoInstallerFound = true;
if (isSupportedPlatform()) { 
	try {if (!_check_SetUpObj_()){downloadReactor();}} catch (e){}
	try {if (!_check_SetUpVer_()){downloadReactor();}} catch (e){}
} else {
	top.location.href = '/common/activexInstall.nhn?windows=' + isOS_Windows() + '&supportedbrowser=' + isSupportedPlatform();
}
function downloadReactor() {
	autoInstallerFound = false;
	showDownloadReactorPopup();
}
// Update controls by autoinstaller
// pubplugin.dll & firefox plugins
if (autoInstallerFound == true) {if (typeof(_check_OBJ_update_) == "function") _check_OBJ_update_("reactor");}

// Create plugin elements
function getReactorLaunchingPluginForIE() {return '<object id="reactorLaunchingPlugin" CLASSID="CLSID:F8160836-0C11-4CA4-AD87-944542C7BCBD" style="display:none"></object>';}
function getReactorLaunchingPluginForFF() {return '<embed id="reactorLaunchingPluginForFF" type="application/ijjiStarter" width="1" height="1" hidden="true" />';}
function getReactorLaunchingPlugin() {
	if (isBrowser_IE()) return document.getElementById('reactorLaunchingPlugin');
	if (isBrowser_FF()) return document.getElementById('reactorLaunchingPluginForFF');
	return null;
}
if (autoInstallerFound == true) {
	document.write(getReactorLaunchingPluginForIE());
	document.write(getReactorLaunchingPluginForFF());
}

var REACTOR_GAMESTART_FAILED = 'Game failed to start. code=';
function init() {
	// ---------------------------------------------------
	// Firefox crashes when the page moves to other page 
	// before being referenced by getElementById.
	// This line shouldn't be removed.
	// ---------------------------------------------------
	if (isBrowser_FF()) {var reactorLaunchingPlugin = getReactorLaunchingPlugin();}
	// ---------------------------------------------------
	if (autoInstallerFound == false) {return;}
	var loggedin = 'false';
	if (loggedin == 'false') {
		redirectToLogin();
		return;
	}
	if (isBrowser_FF()) {
		// A designed delay for FF2
		setTimeout(startReactor, 500);
	} 
	else {
		startReactor();
	}
}
function startReactor(gameId) {
	var gameId = 'u_gunz';
	var reactor = getReactorLaunchingPlugin();
	if (isReactorLauncherInstalled(reactor) == false) {
		//alert(REACTOR_GAMESTART_FAILED + '1001');
		showDownloadReactorPopup();
		return;
	}
	//debug('PubPlugin.dll IsReactorInstalled()=' + reactor.IsReactorInstalled());
	if (reactor.IsReactorInstalled() != 1 /*NOT INSTALLED*/) {
		showDownloadReactorPopup();
		return;
	}
	ajaxHttpRequest("/common/reactorGameLaunch.nhn?gameId=" + gameId, function(obj) {
		if (obj == '') {alert(REACTOR_GAMESTART_FAILED + '1011');return;}
		if(!obj.isLogin) {redirectToLogin();return;}
		if (obj.isUnder) {alert(obj.message.replace(/\\n/gi, "\n"));return;}
		if (!obj.isValid) {alert(REACTOR_GAMESTART_FAILED + '1012');return;}
		//var reactor = getReactorLaunchingPlugin();
		wbersPosLog(gameId, '108');
		try {
			reactor.StartReactor(obj.launchScript);
		} catch (e) {
			alert(REACTOR_GAMESTART_FAILED + '1013');
			showDownloadReactorPopup();
		}
	});
}
function isReactorLauncherInstalled(obj) {
	if (
			(obj != null) && 
			(typeof(obj) == 'object' || typeof(obj) == 'function') && 
			(typeof(obj.StartReactor) != 'undefined') && 
			(typeof(obj.IsReactorInstalled) != 'undefined')
		) {
		return true;
	}
	return false;
}
function redirectToLogin() {
	top.location.href = 'http://login.ijji.com/login.nhn?nextURL=' + escape(top.location.href);
}

function showDownloadReactorPopup() {
	var posx = 509;
	var posy = 501;
	var box_width = 412;var box_height = 160;
	var offset_x = 5;var offset_y = 5;
	var box_left = posx - (box_width + offset_x);
	var box_top = posy - (box_height + offset_y);
	if (box_left <= 0) {
		box_left = posx + offset_x;
	}
	var layer = top.document.getElementById('reactorDownloadLayer');
	if (layer == null)	{
		var obj = top.document.createElement('div');
		obj.setAttribute('id','reactorDownloadLayer');
		//obj.style.border = '5px';
		obj.style.width = '1px';
		obj.style.height = '1px';
		obj.style.position = 'absolute';
		obj.style.left = '50%';
		obj.style.top = '150px';
		obj.style.zIndex = '1000';
		obj.innerHTML = getAutoInstallerBoxHtml();
		layer = top.document.body.appendChild(obj);
	} else {
		layer.style.display = 'none';
		layer.style.display = 'block';
	}
	top.scrollTo(0, 0);
}
function getAutoInstallerBoxHtml() {
	var s = '';
	s += '<div id="layer_reactor" style="position:absolute; left:50%; top:150px; width:1px; height:1px; z-index:1000;">';
	s += '<div class="inbox" style="position:relative; width:1px; height:1px;">';
	s += '	<div class="con_ly" style="background:url(http://images.ijjimax.com/v4/reactor/popup/en/bg_layer_reactor.jpg) no-repeat;position:absolute; left:-340px; top:0; width:633px; height:435px; text-align:left;">';
	s += '		<p class="logo" style="margin:0; padding:27px 0 15px 28px;"><img src="http://images.ijjimax.com/v4/reactor/popup/logo_reactor.jpg" width="177" height="44" alt=""></p>';
	s += '		<div class="txt" style="height:244px; padding:0 0 0 34px;">';
	s += '			<img src="http://images.ijjimax.com/v4/reactor/popup/en/t_layer_reactor01.gif" alt="" style="margin-bottom:10px;display:block;">';
	s += '			<img src="http://images.ijjimax.com/v4/reactor/popup/en/t_layer_reactor02.gif" alt="" style="margin-bottom:26px;display:block;">';
	s += '			<img src="http://images.ijjimax.com/v4/reactor/popup/en/t_layer_reactor03.gif" alt=""style="margin-bottom:28px;display:block;">';
	s += '			<img src="http://images.ijjimax.com/v4/reactor/popup/en/t_layer_reactor04.gif" alt="">';
	s += '		</div>';
	//s += '		<p class="btn" style="padding-top:21px; text-align:center;"><a href="http://cdn.ijjimax.com/nhnusa/games/arcade/purple/plii/miracle/REACTOR_INST_EN.exe" onclick="void(document.getElementById(\'reactorDownloadLayer\').style.display=\'none\');"><img src="http://images.ijjimax.com/v4/reactor/popup/en/btn_layer_reactor.gif" width="301" height="48" alt="Start REACTOR and play games!"></a></p>';
	s += '		<p class="btn" style="padding-top:21px; text-align:center;"><a href="http://cdn.ijji.com/nhnusa/games/arcade/purple/plii/miracle/IJJI_REACTOR_INST_EN.exe" onclick="void(document.getElementById(\'reactorDownloadLayer\').style.display=\'none\');ajaxHttpRequest(\'http://wbers.ijji.com/wbers/post.php?project=u_gunz&id=&subject=poslog&value=91\');"><img src="http://images.ijjimax.com/v4/reactor/popup/en/btn_layer_reactor.gif" width="301" height="48" style="display:inline;" alt="Start REACTOR and play games!" border="0"></a></p>';
	s += '	</div>';
	s += '	<div class="btn_close" style="position:absolute; top:10px; left:258px;"><a href="#" onclick="void(document.getElementById(\'reactorDownloadLayer\').style.display=\'none\');"><img src="http://images.ijjimax.com/v4/reactor/popup/btn_layer_close.gif" width="25" height="25" alt="Close" border="0"></a></div>';
	s += '</div>';
	s += '</div>';
	return s;	
}
</script>
</head>
<body onload="init();">
</body>
</html>

Personally, I don't see the point in launching from the website, it wastes time :(.
 
Experienced Elementalist
Joined
Mar 23, 2009
Messages
239
Reaction score
17
If you did want to know more, however:

Code:
function gamestart(gameId) {
	var startFrame = document.getElementById("startFrame");
	if (startFrame == null)	{
		var obj = document.createElement('iframe');
		obj.setAttribute('id','startFrame');
		obj.style.border = '0px';
		obj.style.width = '0px';
		obj.style.height = '0px';
		obj.style.visibility = 'hidden';
		startFrame = document.body.appendChild(obj);
	}
	startFrame.src="/common/pregamestart.nhn?gameId=" + gameId + "&posx=" + __mouse_pos2_x + "&posy=" + __mouse_pos2_y;
}

And then on /common/pregamestart.nhn

Code:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Cache-Control" content="No-Cache" />
<meta http-equiv="Pragma"	content="No-Cache" />
<meta http-equiv="Expires" content="-1" />
<script type="text/javascript" src="http://images.ijjimax.com/common/scripts/jquery/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="/common/scripts/common.js"></script>
<script type="text/javascript" src="/common/scripts/json_ajax.js"></script>
<script type="text/javascript" src="/common/scripts/hanset.js"></script>

<script type="text/javascript">
function isOS_Windows(){if (window.navigator.userAgent.toUpperCase().indexOf("WINDOWS") != -1) return true;else return false;}
function isBrowser_IE() {if (window.navigator.userAgent.indexOf("MSIE") != -1) return true;else return false;}
function isBrowser_FF() {if (window.navigator.userAgent.toUpperCase().indexOf("FIREFOX") != -1) return true;else return false;}
function isSupportedPlatform() {
	if (!isOS_Windows()) return false;
	if (isBrowser_IE() || isBrowser_FF()) return true;
	return false;
}
function wbersPosLog(gameid, code) {
	ajaxHttpRequest("http://wbers.ijji.com/wbers/post.php?project=" + gameid + "&id=&subject=poslog&value=" + code);
}
</script>
<script type="text/javascript">
// Autoinstaller detection
function debug(msg) {/*alert(msg);*/}
var autoInstallerFound = true;
if (isSupportedPlatform()) { 
	try {if (!_check_SetUpObj_()){downloadReactor();}} catch (e){}
	try {if (!_check_SetUpVer_()){downloadReactor();}} catch (e){}
} else {
	top.location.href = '/common/activexInstall.nhn?windows=' + isOS_Windows() + '&supportedbrowser=' + isSupportedPlatform();
}
function downloadReactor() {
	autoInstallerFound = false;
	showDownloadReactorPopup();
}
// Update controls by autoinstaller
// pubplugin.dll & firefox plugins
if (autoInstallerFound == true) {if (typeof(_check_OBJ_update_) == "function") _check_OBJ_update_("reactor");}

// Create plugin elements
function getReactorLaunchingPluginForIE() {return '<object id="reactorLaunchingPlugin" CLASSID="CLSID:F8160836-0C11-4CA4-AD87-944542C7BCBD" style="display:none"></object>';}
function getReactorLaunchingPluginForFF() {return '<embed id="reactorLaunchingPluginForFF" type="application/ijjiStarter" width="1" height="1" hidden="true" />';}
function getReactorLaunchingPlugin() {
	if (isBrowser_IE()) return document.getElementById('reactorLaunchingPlugin');
	if (isBrowser_FF()) return document.getElementById('reactorLaunchingPluginForFF');
	return null;
}
if (autoInstallerFound == true) {
	document.write(getReactorLaunchingPluginForIE());
	document.write(getReactorLaunchingPluginForFF());
}

var REACTOR_GAMESTART_FAILED = 'Game failed to start. code=';
function init() {
	// ---------------------------------------------------
	// Firefox crashes when the page moves to other page 
	// before being referenced by getElementById.
	// This line shouldn't be removed.
	// ---------------------------------------------------
	if (isBrowser_FF()) {var reactorLaunchingPlugin = getReactorLaunchingPlugin();}
	// ---------------------------------------------------
	if (autoInstallerFound == false) {return;}
	var loggedin = 'false';
	if (loggedin == 'false') {
		redirectToLogin();
		return;
	}
	if (isBrowser_FF()) {
		// A designed delay for FF2
		setTimeout(startReactor, 500);
	} 
	else {
		startReactor();
	}
}
function startReactor(gameId) {
	var gameId = 'u_gunz';
	var reactor = getReactorLaunchingPlugin();
	if (isReactorLauncherInstalled(reactor) == false) {
		//alert(REACTOR_GAMESTART_FAILED + '1001');
		showDownloadReactorPopup();
		return;
	}
	//debug('PubPlugin.dll IsReactorInstalled()=' + reactor.IsReactorInstalled());
	if (reactor.IsReactorInstalled() != 1 /*NOT INSTALLED*/) {
		showDownloadReactorPopup();
		return;
	}
	ajaxHttpRequest("/common/reactorGameLaunch.nhn?gameId=" + gameId, function(obj) {
		if (obj == '') {alert(REACTOR_GAMESTART_FAILED + '1011');return;}
		if(!obj.isLogin) {redirectToLogin();return;}
		if (obj.isUnder) {alert(obj.message.replace(/\\n/gi, "\n"));return;}
		if (!obj.isValid) {alert(REACTOR_GAMESTART_FAILED + '1012');return;}
		//var reactor = getReactorLaunchingPlugin();
		wbersPosLog(gameId, '108');
		try {
			reactor.StartReactor(obj.launchScript);
		} catch (e) {
			alert(REACTOR_GAMESTART_FAILED + '1013');
			showDownloadReactorPopup();
		}
	});
}
function isReactorLauncherInstalled(obj) {
	if (
			(obj != null) && 
			(typeof(obj) == 'object' || typeof(obj) == 'function') && 
			(typeof(obj.StartReactor) != 'undefined') && 
			(typeof(obj.IsReactorInstalled) != 'undefined')
		) {
		return true;
	}
	return false;
}
function redirectToLogin() {
	top.location.href = 'http://login.ijji.com/login.nhn?nextURL=' + escape(top.location.href);
}

function showDownloadReactorPopup() {
	var posx = 509;
	var posy = 501;
	var box_width = 412;var box_height = 160;
	var offset_x = 5;var offset_y = 5;
	var box_left = posx - (box_width + offset_x);
	var box_top = posy - (box_height + offset_y);
	if (box_left <= 0) {
		box_left = posx + offset_x;
	}
	var layer = top.document.getElementById('reactorDownloadLayer');
	if (layer == null)	{
		var obj = top.document.createElement('div');
		obj.setAttribute('id','reactorDownloadLayer');
		//obj.style.border = '5px';
		obj.style.width = '1px';
		obj.style.height = '1px';
		obj.style.position = 'absolute';
		obj.style.left = '50%';
		obj.style.top = '150px';
		obj.style.zIndex = '1000';
		obj.innerHTML = getAutoInstallerBoxHtml();
		layer = top.document.body.appendChild(obj);
	} else {
		layer.style.display = 'none';
		layer.style.display = 'block';
	}
	top.scrollTo(0, 0);
}
function getAutoInstallerBoxHtml() {
	var s = '';
	s += '<div id="layer_reactor" style="position:absolute; left:50%; top:150px; width:1px; height:1px; z-index:1000;">';
	s += '<div class="inbox" style="position:relative; width:1px; height:1px;">';
	s += '	<div class="con_ly" style="background:url(http://images.ijjimax.com/v4/reactor/popup/en/bg_layer_reactor.jpg) no-repeat;position:absolute; left:-340px; top:0; width:633px; height:435px; text-align:left;">';
	s += '		<p class="logo" style="margin:0; padding:27px 0 15px 28px;"><img src="http://images.ijjimax.com/v4/reactor/popup/logo_reactor.jpg" width="177" height="44" alt=""></p>';
	s += '		<div class="txt" style="height:244px; padding:0 0 0 34px;">';
	s += '			<img src="http://images.ijjimax.com/v4/reactor/popup/en/t_layer_reactor01.gif" alt="" style="margin-bottom:10px;display:block;">';
	s += '			<img src="http://images.ijjimax.com/v4/reactor/popup/en/t_layer_reactor02.gif" alt="" style="margin-bottom:26px;display:block;">';
	s += '			<img src="http://images.ijjimax.com/v4/reactor/popup/en/t_layer_reactor03.gif" alt=""style="margin-bottom:28px;display:block;">';
	s += '			<img src="http://images.ijjimax.com/v4/reactor/popup/en/t_layer_reactor04.gif" alt="">';
	s += '		</div>';
	//s += '		<p class="btn" style="padding-top:21px; text-align:center;"><a href="http://cdn.ijjimax.com/nhnusa/games/arcade/purple/plii/miracle/REACTOR_INST_EN.exe" onclick="void(document.getElementById(\'reactorDownloadLayer\').style.display=\'none\');"><img src="http://images.ijjimax.com/v4/reactor/popup/en/btn_layer_reactor.gif" width="301" height="48" alt="Start REACTOR and play games!"></a></p>';
	s += '		<p class="btn" style="padding-top:21px; text-align:center;"><a href="http://cdn.ijji.com/nhnusa/games/arcade/purple/plii/miracle/IJJI_REACTOR_INST_EN.exe" onclick="void(document.getElementById(\'reactorDownloadLayer\').style.display=\'none\');ajaxHttpRequest(\'http://wbers.ijji.com/wbers/post.php?project=u_gunz&id=&subject=poslog&value=91\');"><img src="http://images.ijjimax.com/v4/reactor/popup/en/btn_layer_reactor.gif" width="301" height="48" style="display:inline;" alt="Start REACTOR and play games!" border="0"></a></p>';
	s += '	</div>';
	s += '	<div class="btn_close" style="position:absolute; top:10px; left:258px;"><a href="#" onclick="void(document.getElementById(\'reactorDownloadLayer\').style.display=\'none\');"><img src="http://images.ijjimax.com/v4/reactor/popup/btn_layer_close.gif" width="25" height="25" alt="Close" border="0"></a></div>';
	s += '</div>';
	s += '</div>';
	return s;	
}
</script>
</head>
<body onload="init();">
</body>
</html>

Personally, I don't see the point in launching from the website, it wastes time :(.

Encourages people to buy GCoins, and creates traffic making more money from ads. That's why they do it.
 
Legendary Battlemage
Joined
Dec 21, 2007
Messages
645
Reaction score
85
Is it like ijji's. like On your website click Start Game then your launcher appears and starts the game?
 
Back
Top