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!

[Release] MuCore Exchange Online Time Module

Skilled Illusionist
Joined
Jul 16, 2013
Messages
317
Reaction score
9
<fieldset> <legend>ONLINE TO CREDITS EXCHANGER</legend><table align=center border=0 width=500><tr><td align=center>
<?


if(!isset($_SESSION['user_auth_id'])) { die("You need to be logged in."); }$name = $_SESSION['user_auth_id'];
$query = mssql_query("Select OnlineHours from MEMB_STAT where memb___id='$name'");
$hour = mssql_fetch_row($query);
$hours = $hour[0];
if(!isset($_POST['agree']))
{


?><form action="" method="post" name="module">


<table style="padding-left: 10px;" border="0" cellpadding="0" cellspacing="4" width="100%">
<tbody><tr>
<td align="left">Your Online Hours : <b><font color="#2e9e1b"><? if($hours == "") { $hours = "0"; } echo($hours); ?></font></b></td>
</tr>
<tr>
<td align="left">You Will Get : <b><em><? $k = $hours*10; echo($k); ?>
<font color="red">Credits</font></em></b></td>
</tr>
<tr>
<td align="left"><div align="right"><strong>
<input name="agree" type="submit" id="agree" value="Exchange">
</strong></div></td>
</tr>
</tbody></table>
</form>
<?
}
else
{
$name = $_SESSION['user_auth_id'];
$queryy = mssql_query("Select OnlineHours from MEMB_STAT where memb___id='$name'");
$hr = mssql_fetch_row($queryy);
$hh = $hr[0];


$mm = mssql_query("Select connectstat from MEMB_STAT where Memb___id='$name'");
$fmm = mssql_fetch_row($mm);
if($fmm[0] == "1")
{
die("<strong>You need to be <font color=red>OFFLINE</font> before you trade your hours.</strong>");
}
$credit = mssql_query("Select Credits from MEMB_CREDITS where memb___id='$name'");
$cr = mssql_fetch_row($credit);
$k = $hh * 10 + $cr[0];
mssql_query("Update MEMB_CREDITS set Credits='$k' where memb___id='$name'");
mssql_query("Delete from MEMB_STAT where memb___id='$name'");
$queryyy = mssql_query("Select OnlineHours from MEMB_STAT where memb___id='$name'");
$hrr = mssql_fetch_row($queryyy);
$hhh = $hrr[0];
echo("<strong>You have now <font color=red>".$k." Credits</font> and <font color=red>0</font> Online Hours</strong>");
}
?>
</td></tr></table></fieldset>

Anyone can check this script?

Cause it doesn't counts the online time of my players T.T
 
Junior Spellweaver
Joined
Sep 5, 2012
Messages
148
Reaction score
2
can u make a guide how to make it work, i still got 0 credits and 0 online hours, i am using MUENGINE FREE VERSION REPACK BY SCRIPTKID

and in mucore it still shows 0 online hours
 
Newbie Spellweaver
Joined
Aug 15, 2013
Messages
60
Reaction score
26
WZ_DISCONNECT_MEMB from page 1 (TotalTime) doesn't disconnect some players some times. They still show on the server at Online Players even if they are not. ConnectStats remain 1 sometimes when players disconnect. Why ? :D I use the same WZ_DISCONNECT_MEMB from the page 1 of this topic.
 
Initiate Mage
Joined
Aug 1, 2014
Messages
4
Reaction score
0
Installed this module and added query sql. All done like in guide and comments but there is a problem:
JVXssbD - [Release] MuCore Exchange Online Time Module - RaGEZONE Forums


It does not count online hours.
In sql MEMB table TotalTime is okay it counts.
Help me with that. What would be a problem?
 

Attachments

You must be registered for see attachments list
Newbie Spellweaver
Joined
Apr 9, 2014
Messages
33
Reaction score
1
hope someone can assist me with this.
i want to create a wcoins info page like credits in mucore 1.0.8
but i really don't know how to define the wcoins to select from DB.

please help me with this



nevermind allready fixed this part now the ingamestore wont show my coins...but will fix that later
 
Newbie Spellweaver
Joined
Feb 21, 2016
Messages
51
Reaction score
0
please help im noob can anyone give me a tutorial step by step in adding new query im using sql 2000 please help me
 
Back
Top