Whats needed next

Location of the Videos
coremonster
Posts: 7
Joined: Mon Jul 06, 2009 9:40 pm

Re: Whats needed next

Post by coremonster »

is this a good logout.php? im a total begginer at this pls help.
<?php
include_once 'connect.php';
session_start();
if (isset($_SESSION['player']))
{
$player=$_SESSION['player'];
}
else
{
echo "Not Logged in <br><br> <A href='login.php'>Login</a>";
exit;
}
$creature=$_GET['creature'];
$playerinfo="SELECT * from players where name='$player'";
$playerinfo2=mysql_query($playerinfo) or die("could not get player stats!");
$playerinfo3=mysql_fetch_array($playerinfo2);
echo "<a href='login.php?'>Login";
exit();
?>
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

Re: Whats needed next

Post by hallsofvallhalla »

where is your actual logout though? you need a session destroy

<?php
session_destroy();
echo " something about logged out";
?>

session destroy is what kills the session when a player is logged in.
fleaky
Posts: 27
Joined: Sun Jul 05, 2009 11:57 pm

Re: Whats needed next

Post by fleaky »

Im asking this question as it is around when this could or will happen.

In your script you mension DELETE creature. now thats all good if you wish to never have that creature againbut isn't there away you can just refresh creature or after a kill carry on freely and explore the world maybe?? killing off creatures in your datavase is wrecking the game's structure slowly which i have found out by testing it.

and when is the vid for session 8 coming out ?? i wonder what there is in store for the game.
User avatar
Warriorccc0
Posts: 92
Joined: Thu Jun 18, 2009 5:37 am

Re: Whats needed next

Post by Warriorccc0 »

This forum is pretty unorganized, perhaps you should have a stickied topic that have a organized list of the topics or something?

Anyway, I think I might try these tutorials out tomorrow or sometime.
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

Re: Whats needed next

Post by hallsofvallhalla »

killing off creatures in your datavase is wrecking the game's structure slowly which i have found out by testing it.
are you talking about FS? I have a cron that re spawns throughout time them but I disabled it due to not actively working on the game. I didnt want the creatures to take over everything.
coremonster
Posts: 7
Joined: Mon Jul 06, 2009 9:40 pm

Re: Whats needed next

Post by coremonster »

ty halls im completely new to coding.
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

Re: Whats needed next

Post by hallsofvallhalla »

well i am trying to tailor these tutorials to anyone new to coding. Glad you are learning from them.
User avatar
Warriorccc0
Posts: 92
Joined: Thu Jun 18, 2009 5:37 am

Re: Whats needed next

Post by Warriorccc0 »

Ugh, you need to put the codes, so its not such a trivial thing to copy it by hand.
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

Re: Whats needed next

Post by hallsofvallhalla »

i missed a few videos, but they are in the video 7 tutorial. I will go back and put the code in where it is missing. I think its only lkike 2 videos though.

I would just watch all the way up to video 7 then use the code from it.
mrmajic
Posts: 117
Joined: Sat Jun 27, 2009 9:37 am

Re: Whats needed next

Post by mrmajic »

Halls, when can we expect the next exciting episode?? im hanging for it....
Mr Majic...

Current Project: http://www.deltarealm.net
feedback welcome.
Post Reply

Return to “Older Browser MMO Videos”