Jump to content

glemor123

Members
  • Content Count

    287
  • Joined

  • Last visited

Posts posted by glemor123


  1. yes. the status.php is the same with default. It's the same with what I posted earlier.

    nope sir is does not change the offline thing

     

    this is my status from that default flux 

     

    <?phpif (!defined('FLUX_ROOT')) exit; $title = Flux::message('ServerStatusTitle');$cache = FLUX_DATA_DIR.'/tmp/ServerStatus.cache'; if (file_exists($cache) && (time() - filemtime($cache)) < (Flux::config('ServerStatusCache') * 60)) {	$serverStatus = unserialize(file_get_contents($cache));}else {	$serverStatus = array();	foreach (Flux::$loginAthenaGroupRegistry as $groupName => $loginAthenaGroup) {		if (!array_key_exists($groupName, $serverStatus)) {			$serverStatus[$groupName] = array();		} 		$loginServerUp = $loginAthenaGroup->loginServer->isUp(); 		foreach ($loginAthenaGroup->athenaServers as $athenaServer) {			$serverName = $athenaServer->serverName; 			$sql = "SELECT COUNT(char_id) AS players_online FROM {$athenaServer->charMapDatabase}.char WHERE online > 0";			$sth = $loginAthenaGroup->connection->getStatement($sql);			$sth->execute();			$res = $sth->fetch(); 			$serverStatus[$groupName][$serverName] = array(				'loginServerUp' => $loginServerUp,				 'charServerUp' => $athenaServer->charServer->isUp(),				  'mapServerUp' => $athenaServer->mapServer->isUp(),				'playersOnline' => intval($res ? $res->players_online : 0)			);		}	}		$fp = fopen($cache, 'w');	if (is_resource($fp)) {		fwrite($fp, serialize($serverStatus));		fclose($fp);	}}?>

  2.  

     

     

    find this themes/server/status.php

     

     

    <?php if (!defined('FLUX_ROOT')) exit; ?><h2><?php echo htmlspecialchars(Flux::message('ServerStatusHeading')) ?></h2><p><?php echo htmlspecialchars(Flux::message('ServerStatusInfo')) ?></p><?php foreach ($serverStatus as $privServerName => $gameServers): ?><h3>Server Status for <?php echo htmlspecialchars($privServerName) ?></h3><table id="server_status">	<tr>		<td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusServerLabel')) ?></td>		<td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusLoginLabel')) ?></td>		<td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusCharLabel')) ?></td>		<td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusMapLabel')) ?></td>		<td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusOnlineLabel')) ?></td>	</tr>	<?php foreach ($gameServers as $serverName => $gameServer): ?>	<tr>		<th class="server"><?php echo htmlspecialchars($serverName) ?></th>		<td class="status"><?php echo $this->serverUpDown($gameServer['loginServerUp']) ?></td>		<td class="status"><?php echo $this->serverUpDown($gameServer['charServerUp']) ?></td>		<td class="status"><?php echo $this->serverUpDown($gameServer['mapServerUp']) ?></td>		<td class="status"><?php echo $gameServer['playersOnline'] ?></td>	</tr>	<?php endforeach ?></table><?php endforeach ?>

     

    replace by..

     

     

    <?php if (!defined('FLUX_ROOT')) exit; ?><h2><?php echo htmlspecialchars(Flux::message('ServerStatusHeading')) ?></h2><p><?php echo htmlspecialchars(Flux::message('ServerStatusInfo')) ?></p><?php foreach ($serverStatus as $privServerName => $gameServers): ?><h3>Server Status for <?php echo htmlspecialchars($privServerName) ?></h3><table id="server_status">	<tr>		<td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusServerLabel')) ?></td>		<td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusLoginLabel')) ?></td>		<td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusCharLabel')) ?></td>		<td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusMapLabel')) ?></td>		<td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusOnlineLabel')) ?></td>	</tr>	<?php foreach ($gameServers as $serverName => $gameServer): ?>	<tr>		<th class="server"><?php echo htmlspecialchars($serverName) ?></th>		<td class="status"><?php echo $this->ONLINE ?></td>		<td class="status"><?php echo $this->ONLINE ?></td>		<td class="status"><?php echo $this->ONLINE ?></td>		<td class="status"><?php echo $gameServer['playersOnline'] ?></td>	</tr>	<?php endforeach ?></table><?php endforeach ?>

    doesnt work..your status is different to my status

     

    You should have told me that you're not using a default theme.

    sorry about that..the status i posted above is my status


  3.  

    find this themes/server/status.php

     

     

    <?php if (!defined('FLUX_ROOT')) exit; ?><h2><?php echo htmlspecialchars(Flux::message('ServerStatusHeading')) ?></h2><p><?php echo htmlspecialchars(Flux::message('ServerStatusInfo')) ?></p><?php foreach ($serverStatus as $privServerName => $gameServers): ?><h3>Server Status for <?php echo htmlspecialchars($privServerName) ?></h3><table id="server_status">	<tr>		<td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusServerLabel')) ?></td>		<td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusLoginLabel')) ?></td>		<td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusCharLabel')) ?></td>		<td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusMapLabel')) ?></td>		<td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusOnlineLabel')) ?></td>	</tr>	<?php foreach ($gameServers as $serverName => $gameServer): ?>	<tr>		<th class="server"><?php echo htmlspecialchars($serverName) ?></th>		<td class="status"><?php echo $this->serverUpDown($gameServer['loginServerUp']) ?></td>		<td class="status"><?php echo $this->serverUpDown($gameServer['charServerUp']) ?></td>		<td class="status"><?php echo $this->serverUpDown($gameServer['mapServerUp']) ?></td>		<td class="status"><?php echo $gameServer['playersOnline'] ?></td>	</tr>	<?php endforeach ?></table><?php endforeach ?>

     

    replace by..

     

     

    <?php if (!defined('FLUX_ROOT')) exit; ?><h2><?php echo htmlspecialchars(Flux::message('ServerStatusHeading')) ?></h2><p><?php echo htmlspecialchars(Flux::message('ServerStatusInfo')) ?></p><?php foreach ($serverStatus as $privServerName => $gameServers): ?><h3>Server Status for <?php echo htmlspecialchars($privServerName) ?></h3><table id="server_status">	<tr>		<td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusServerLabel')) ?></td>		<td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusLoginLabel')) ?></td>		<td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusCharLabel')) ?></td>		<td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusMapLabel')) ?></td>		<td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusOnlineLabel')) ?></td>	</tr>	<?php foreach ($gameServers as $serverName => $gameServer): ?>	<tr>		<th class="server"><?php echo htmlspecialchars($serverName) ?></th>		<td class="status"><?php echo $this->ONLINE ?></td>		<td class="status"><?php echo $this->ONLINE ?></td>		<td class="status"><?php echo $this->ONLINE ?></td>		<td class="status"><?php echo $gameServer['playersOnline'] ?></td>	</tr>	<?php endforeach ?></table><?php endforeach ?>

    doesnt work..your status is different to my status


  4.  

     

    Don't use '127.0.0.1' on your server.php, instead, put your real IP address there.

     

    it is already set

    >Maybe the website doesn't allow outgoing ports?

     

    i think it does not allow.. how can i fake the offline text there and make it to online?

     

    themes/status/status.php if i'm not mistaken..

     

    what to edit here

     

    <?phpif (!defined('FLUX_ROOT')) exit;$title = Flux::message('ServerStatusTitle');$cache = FLUX_DATA_DIR.'/tmp/ServerStatus.cache';if (file_exists($cache) && (time() - filemtime($cache)) < (Flux::config('ServerStatusCache') * 60)) {	$serverStatus = unserialize(file_get_contents($cache));}else {	$serverStatus = array();	foreach (Flux::$loginAthenaGroupRegistry as $groupName => $loginAthenaGroup) {		if (!array_key_exists($groupName, $serverStatus)) {			$serverStatus[$groupName] = array();		}		$loginServerUp = $loginAthenaGroup->loginServer->isUp();		foreach ($loginAthenaGroup->athenaServers as $athenaServer) {			$serverName = $athenaServer->serverName;			$sql = "SELECT COUNT(char_id) AS players_online FROM {$athenaServer->charMapDatabase}.char WHERE online > 0";			$sth = $loginAthenaGroup->connection->getStatement($sql);			$sth->execute();			$res = $sth->fetch();			$serverStatus[$groupName][$serverName] = array(				'loginServerUp' => $loginServerUp,				 'charServerUp' => $athenaServer->charServer->isUp(),				  'mapServerUp' => $athenaServer->mapServer->isUp(),				'playersOnline' => intval($res ? $res->players_online : 0)			);		}	}		$fp = fopen($cache, 'w');	if (is_resource($fp)) {		fwrite($fp, serialize($serverStatus));		fclose($fp);	}}?>

  5. Don't use '127.0.0.1' on your server.php, instead, put your real IP address there.

     

    it is already set

    Maybe the website doesn't allow outgoing ports? 

    i think it does not allow.. how can i fake the offline text there and make it to online?


  6. rathena is down so i have no choice but to post here

    i am using rathena svn

    the problem is 

     

    why is my amplify magic power has no casting time even though i have no stats added yet..

     

     

    next is

     

    when i put items to my cart then remove my cart then rent a cart again..my items that i put to my cart is lost

    what should i do??

    i can post the code here just tell me what to post thank you


  7. is this correct??

     

    zhakastia,98,39,8	script	Woe Prize	1002,{	if ( agitcheck() ) goto L_woeon;	if ( agitcheck2() ) goto L_woeon;	menu 		"Rothenburg",L_aldeg_cas05,		"Bergel",L_gefg_cas04,		"HolyShadow",L_payg_cas03,		"Swanhild",L_prtg_cas02,		"HORN",L_arug_cas03;L_aldeg_cas05:	if ( getcastledata( "aldeg_cas05", 1) != getcharid(2) ) goto L_not_owner;	if ( $castle_claimed[2] ) goto L_claimed;	if ( getguildmasterid( getcharid(2) ) != getcharid(0) ) goto L_not_gm;	mes "receiving the reward for this castle";	getitem 674, 15;	set $castle_claimed[2], 1;	close;L_gefg_cas04:	if ( getcastledata( "gefg_cas04", 1) != getcharid(2) ) goto L_not_owner;	if ( $castle_claimed[3] ) goto L_claimed;	if ( getguildmasterid( getcharid(2) ) != getcharid(0) ) goto L_not_gm;	mes "receiving the reward for this castle";	getitem 674, 15;	set $castle_claimed[3], 1;	close;L_payg_cas03:	if ( getcastledata( "payg_cas03", 1) != getcharid(2) ) goto L_not_owner;	if ( $castle_claimed[4] ) goto L_claimed;	if ( getguildmasterid( getcharid(2) ) != getcharid(0) ) goto L_not_gm;	mes "receiving the reward for this castle";	getitem 674, 15;	set $castle_claimed[4], 1;	close;L_prtg_cas02:	if ( getcastledata( "prtg_cas02", 1) != getcharid(2) ) goto L_not_owner;	if ( $castle_claimed[5] ) goto L_claimed;	if ( getguildmasterid( getcharid(2) ) != getcharid(0) ) goto L_not_gm;	mes "receiving the reward for this castle";	getitem 674, 15;	set $castle_claimed[5], 1;	close;L_arug_cas03:	if ( getcastledata( "arug_cas03", 1) != getcharid(2) ) goto L_not_owner;	if ( $castle_claimed[1] ) goto L_claimed;	if ( getguildmasterid( getcharid(2) ) != getcharid(0) ) goto L_not_gm;	mes "receiving the reward for this castle";	getitem 674, 15;	set $castle_claimed[1], 1;	close;L_woeon:	mes "a war is currently in progress";	mes "if your guild owned a castle ask your guild master to see me to claim the reward";	close;L_not_owner:	mes "your guild failed to take this castle";	mes "if your guild owned a castle ask your guild master to claim reward from me";	close;L_claimed:	mes "your guild already received the reward for this castle";	close;L_not_gm:	mes "ask your guild master to see me";	close;OnMon1500:	set $castle_claimed[1], 0; // everytime woe ends the variable resets	end;OnMon2100:	set $castle_claimed[2], 0;	end;OnTue1500:	set $castle_claimed[3], 0;end;OnTue2100:	set $castle_claimed[4], 0;end;OnWed1500:	set $castle_claimed[2], 0;	end;OnWed2100:	set $castle_claimed[3], 0;end;OnThu1500:	set $castle_claimed[4], 0;end;OnThu2100:	set $castle_claimed[1], 0; // everytime woe ends the variable resets	end;OnFri1500:	set $castle_claimed[2], 0;	end;OnFri2100:	set $castle_claimed[2], 0;	end;OnSat1500:	set $castle_claimed[5], 0;end;OnSat2100:	set $castle_claimed[5], 0;end;OnSun1500:	set $castle_claimed[5], 0;	end;OnSun2100:	set $castle_claimed[5], 0;	end;}

  8. show your WOE schedule .....

     

    OnAgitEnd:	set $castle_claimed, 0; // everytime woe ends the variable resets	end;

     

    this part alway reset ... every woe end...so you have to re-create this part to only remove / reset certain castles reward ....

    can you give me an example for that so i can recreate it..i dont know how to code those things


  9. show your WOE schedule .....

     

    OnAgitEnd:	set $castle_claimed, 0; // everytime woe ends the variable resets	end;

     

    this part alway reset ... every woe end...so you have to re-create this part to only remove / reset certain castles reward ....

    i dont know how to edit the agit end

     

    also

     

    this is my woe schedule

     

    from monday to sunday 14:00-15:00 then from 20:00-21:00

     

    with different castles

    monday 14:00-15:00 =swan 20:00-21:00 =payg_cas03

    etc..


  10. the problem to my woe prize giver is example

    omega guild owns 3 castle already fad,swan,arug

     

    then today the castle opened is swan then guild omega successfully defended there castle

    so they will get the prize for swan,.

    the problem is they can also get again the prize for fad,arug..that should not be because swan only opened this day

     

    here is my script i am using 3ceam

     

    zhakastia,98,39,8	script	Woe Prize	1002,{	if ( agitcheck() ) {		mes "a war is currently in progress";		mes "if your guild owned a castle ask your guild master to see me to claim the reward";		close;	}	else if ( agitcheck2() ) {		mes "a war is currently in progress";		mes "if your guild owned a castle ask your guild master to see me to claim the reward";		close;	}	set .@menu, select(.menu$) -1;	if ( getcastledata( .castlemap$[.@menu], 1) == getcharid(2) ) {		if ( $castle_claimed & pow(2, .@menu) ) {			mes "your guild already received the reward for "+ .castlename$[.@menu];			close;		}		else if ( getguildmasterid( getcharid(2) ) == getcharid(0) ) {			mes "receiving the reward for "+ .castlename$[.@menu];			getitem 674, 15;			set $castle_claimed, $castle_claimed | pow(2, .@menu);			close;		}		else {			mes "ask your guild master to see me";			close;		}	}	mes "your guild failed to take "+ .castlename$[.@menu];	mes "if your guild owned a castle ask your guild master to claim reward from me";	close;OnAgitEnd:	set $castle_claimed, 0; // everytime woe ends the variable resets	end;OnInit:	setarray .castlemap$,		"arug_cas03",		"aldeg_cas05",		"gefg_cas04",		"payg_cas03",		"prtg_cas02";	for ( set .@i, 0; .@i < 5; set .@i, .@i +1 ) {		set .castlename$[.@i], getcastlename(.castlemap$[.@i]);		set .menu$, .menu$ + .castlename$[.@i] +":";	}	}

     

     

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.