Auto update plusses staying 1hour

Started on the old forum in August 2010 · view the original in the archive · old links redirect here

22 replies · 2,380 views · started 16 years ago · 1 min read

TL;DR · summary of 22 replies
  • Rab Mooney got a white page because of spelling mistake in totaltime.
  • The core.php file needs to be checked for errors after fixing the spelling mistake.
  • nimeshka provided modifications to make the script work better, but still had issues with updating online location.

Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.

11 participants
nimeshka Developer · 180 posts #21

mazalo wrote: Hmmm... function addonline

########
$lastactive2 = mysql_fetch_array(mysql_query("SELECT resetime FROM ibwf_users WHERE id='".$uid."'"));
$tolsla2 = time() - $lastactive2[0];
$totaltimeonline2 = mysql_fetch_array(mysql_query("SELECT onlinetime FROM ibwf_users WHERE id='".$uid."'"));
$totaltimeonline2 = $totaltimeonline2[0] + $tolsla2;
$onlinetime = mysql_fetch_array(mysql_query("SELECT onlinetime FROM ibwf_users WHERE id='".$uid."'"));
$num = $onlinetime[0]/86400;
$days = intval($num);
$num2 = ($num - $days)*24;
$hours = intval($num2);
$num3 = ($num2 - $hours)*60;
$mins = intval($num3);
$num4 = ($num3 - $mins)*60;
$secs = intval($num4);
if(!onlinetime($uid))
    {
if($hours==1)
    {
$kano ="100";
$msg = "".getnick_uid(getuid_sid($sid))."Congratulation! You are lucky, coz even if you did not reach 1 hours. Youve got 50plusses n 50bp."."[br/][small]Note: This is an automated PM[/small]";
          autopm($msg, $uid);
$res = mysql_query("UPDATE ibwf_users SET plusses=plusses+'$kano' WHERE id='".$uid."'");
$res = mysql_query("UPDATE ibwf_users SET onlinedone='1' WHERE id='".$uid."'");
$res = mysql_query("UPDATE ibwf_users SET battlep=battlep+'$kano' WHERE id='".$uid."'");
}
}


$ttime = time();
$res = mysql_query("UPDATE ibwf_users SET resetime='".$ttime."' WHERE id='".$uid."'");
 $res = mysql_query("UPDATE ibwf_users SET lastact='".time()."' WHERE id='".$uid."'");
  $res = mysql_query("INSERT INTO ibwf_online SET userid='".$uid."', actvtime='".$tm."', place='".$place."', placedet='".$plclink."'");
  if(!$res)
  {
    //most probably userid already in the online list
    //so just update the place and time
    $res = mysql_query("UPDATE ibwf_online SET actvtime='".$tm."', place='".$place."', placedet='".$plclink."' WHERE userid='".$uid."'");
	}
##########  

and ...

function onlinetime($uid)
{
  $not = mysql_fetch_array(mysql_query("SELECT onlinedone FROM ibwf_users WHERE id='".$uid."'"));
  if($not[0]=='1')
  { return true;
  }else{
    return false;
  }
}

And nothing happens...What's mistake?

Yep it wont work.......i had to do some modifications...now it works well with me..bt still thers a problem in updatin online location

External image (may be gone)

I'm Proud to be a Sri Lankan!

abhitn Junior · 15 posts #23

Since some people still brag about lavalair and everything, and m a bit drunk so let me reply to this topic. Something else, Uh surely didn't knew what this code gonna do for some people who knows how things work like for the owner of arawap....

if someone wants a gold coin script for their lavalair, Its in this topic, mark it. Take the code of "something else" and modify it, if uh know how to code, m sure you will figure it out how to use this code and apply to ur web... This code is the origin of gold coin script... Just had to use ur brains... and remember "toaltime should be totaltime"

And people looking for farm script still? Read your lavalair script throughly, learn about putting timers in script, it will take some time but m sure people who knows coding will figure it out and will make one for themselves, creating sql will be a bit headache so make sure uh learn languages and info about creating tables before going into these things. I still don't know how to code, but I was able to figure it out these things and they worked fine...

I still gets amaze sometimes that people praising arawap or any other lavalair based social web don't know that every code of their web is from our coding-talk..... The staff of coding-talk was ahead of their time and people who had brains took these codes to far level by modifying them and applying them to their web.... It's amazing na? Some people still look for these scripts but they don't research before posting something..

Everything is here, in your own home.. No one created anything new by their own in lavalair,, they just took codes from here and made it look as their own prize.. 🙂

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close