Browser MMO Video #20
Re: Video #20
hey!
When will the next movie come.
They are very instructive.
When will the next movie come.
They are very instructive.
- hallsofvallhalla
- Site Admin
- Posts: 12026
- Joined: Wed Apr 22, 2009 11:29 pm
Re: Video #20
i hope to have some out soon. Remember you can also check out Forsaken Sanctum tutorials and Urban Realms tutorials.
Re: Video #20
Hi!
I'm new right here, I have been watching your videos lately and I have just finish the last one some mins ago.
Are you planning to keep on this series?
I have read that you have done some, there's anny posibility?
In any case thanks for all! They are very instructive!
I'm new right here, I have been watching your videos lately and I have just finish the last one some mins ago.
Are you planning to keep on this series?
I have read that you have done some, there's anny posibility?
In any case thanks for all! They are very instructive!
- Jackolantern
- Posts: 10891
- Joined: Wed Jul 01, 2009 11:00 pm
Re: Video #20
Have you checked out the game-specific videos after 1 - 20 of the normal series? There is the Urban Realms series as well as the Forsaken Sanctum series and more. These videos go much more in-depth on topics the community had been requesting for some time, such as Javascript maps, etc.
The indelible lord of tl;dr
Re: Video #20
Yes, I have seen there are already there, I'll check, lot of thanks for all 
In anny case I have a little problem with what i've done
I'm having some problems with monsters on arena, here you have a screen:
http://img834.imageshack.us/i/capturafn.png/
It don't catch me anny monster >__<'', to try to solve the problem I have copied the code given. Here a screen: http://img834.imageshack.us/i/capturafn.png/
And I leave you here a screen of the db:
http://img153.imageshack.us/i/captura2kh.png/
Anny one knows what is happening?
EDIT: Here more screens of the db, probably they could help
http://img215.imageshack.us/i/capturakf.png/
http://img529.imageshack.us/i/captura2k.png/
http://img401.imageshack.us/i/captura3o.png/

In anny case I have a little problem with what i've done
I'm having some problems with monsters on arena, here you have a screen:
http://img834.imageshack.us/i/capturafn.png/
It don't catch me anny monster >__<'', to try to solve the problem I have copied the code given. Here a screen: http://img834.imageshack.us/i/capturafn.png/
And I leave you here a screen of the db:
http://img153.imageshack.us/i/captura2kh.png/
Anny one knows what is happening?
EDIT: Here more screens of the db, probably they could help
http://img215.imageshack.us/i/capturakf.png/
http://img529.imageshack.us/i/captura2k.png/
http://img401.imageshack.us/i/captura3o.png/
- Jackolantern
- Posts: 10891
- Joined: Wed Jul 01, 2009 11:00 pm
Re: Video #20
We would have to see your script to find out what is wrong.
The indelible lord of tl;dr
Re: Video #20
I have just tried with Hall's code :S
Here you have:
Here you have:
Code: Select all
<?php
include_once 'connect.php';
session_start();
include_once 'logo.php';
?>
<link href="style.css" rel="stylesheet" type="text/css" />
<div id="login2" div align="center">
<?php
if (isset($_SESSION['player']))
{
$player=$_SESSION['player'];
}
else
{
echo "Not Logged in <br><br> <A href='login.php'>Login</a>";
exit;
}
?>
</div>
<?php
$playerinfo="SELECT * from players where name='$player'";
$playerinfo2=mysql_query($playerinfo) or die("could not get player stats!");
$playerinfo3=mysql_fetch_array($playerinfo2);
include_once 'statpanel.php';
$pid = $playerinfo3['id'];
$name = $playerinfo3['name'];
$playerhp = $playerinfo3['hpoints'];
$playerattack = $playerinfo3['attack'];
$playerdefense = $playerinfo3['defense'];
?>
<div id="table">
<?php
if (isset($_GET['randid']))
{
$randid=$_GET['randid'];
$iteminfo="SELECT * from inventory where randid='$randid' AND id ='$pid'";
$iteminfo2=mysql_query($iteminfo) or die("could not get item stats!");
$iteminfo3=mysql_fetch_array($iteminfo2);
if (!$iteminfo3['name'])
{
}
else
{
$iname = $iteminfo3['name'];
$stats = $iteminfo3['stats'];
$statadd = $iteminfo3['statadd'];
$type = $iteminfo3['type'];
if ($type == "healing")
{
$newhp = $statadd + $playerhp;
if ($newhp > $playerinfo3['maxhp'])
{
$newhp = $playerinfo3['maxhp'];
}
$updateplayer="update players set hpoints='$newhp' where id='$pid'";
mysql_query($updateplayer) or die("Could not update player");
$updateitem="DELETE from inventory where id='$pid' AND randid='$randid' limit 1";
mysql_query($updateitem) or die("Could not delete item");
$playerhp = $newhp;
echo "Used " . $iname . " and recovered " . $statadd . ".<br>";
}
}}
$creature = $playerinfo3['creature'];
if ($creature != 0)
{
$creatureinfo="SELECT * from creatures where id='$creature'";
$creatureinfo2=mysql_query($creatureinfo) or die("could not get the creature you were fighting!");
$creatureinfo3=mysql_fetch_array($creatureinfo2);
}
else
{
////////////////////new for video 20
$areaninfo="SELECT * from locations where location='$pllocation' AND type='arena'";
$areaninfo2=mysql_query($areaninfo) or die("could not get arena");
$areaninfo3=mysql_fetch_array($areaninfo2);
$arenalevel = $areaninfo3['level'];
$creatureinfo="SELECT * from creatures where level <= '$arenalevel' order by rand() limit 1";
$creatureinfo2=mysql_query($creatureinfo) or die("could get a creature!");
$creatureinfo3=mysql_fetch_array($creatureinfo2);
$cid = $creatureinfo3['id'];
$updateplayer="update players set creature='$cid' where name='$name'";
mysql_query($updateplayer) or die("Could not update player");
}
$creature = $creatureinfo3['name'];
$creaturehp = $creatureinfo3['hpoints'];
$creatureattack = $creatureinfo3['attack'];
$creaturedefense = $creatureinfo3['defense'];
?>
</div>
<div id="player">
<?php
/////player info
echo "<u> " . $playerinfo3['name'] . "</u><br>";
echo "Hit points = " . $playerhp . "<br>";
echo "Attack = " . $playerattack . "<br>";
echo "Defense = " . $playerdefense . "<br><br><br>";
?>
</div>
<div id="creature">
<?php
///////creature info
echo "<u> " . $creatureinfo3['name'] . "</u><br>";
echo "Hit points = " . $creaturehp . "<br>";
echo "Attack = " . $creatureattack . "<br>";
echo "Defense = " . $creaturedefense . "<br><br><br>";
echo "<a href='attack.php'>Attack</a>";
echo "<br><a href='usemagic.php'>Use Magic</a>";
echo "<br><a href='useitem.php'>Use Item</a>";
echo "<br><a href='index.php'>Exit Arena</a>";
?>
</div>
<div id="logout">
<?php
echo "<br><a href='logout.php'><img src='images/logout.gif'>";
?>
</div>
-
- Posts: 12
- Joined: Thu Nov 18, 2010 3:12 am
Re: Video #20
i know that it has been a long time since someone has posted in here, but i was wondering if you were still going to make video # 21. I would greatly appreciate if you would make more of THESE tutorials, they have helped me alot, thanks
- hallsofvallhalla
- Site Admin
- Posts: 12026
- Joined: Wed Apr 22, 2009 11:29 pm
Re: Video #20
yes i am, I have quite a few more planned. Will have some up within a few days.
I am first going to go back through them and get the code to get everyone on the right track again and place video 2 and 3 back on youtube.
I am first going to go back through them and get the code to get everyone on the right track again and place video 2 and 3 back on youtube.