Location of the Videos
Ravinos
Posts: 281 Joined: Tue Sep 15, 2009 4:14 pm
Post
by Ravinos » Sat Oct 03, 2009 9:10 pm
neronix17 wrote: Theres a link to a file under the video on the first page, it has all of the files to this point, including the mysql dump as far as i know.
Those are just the php files. No SQl dump.
hallsofvallhalla wrote: well i thought i uploaded the newest videos to you tube last night but they didnt stick. I am trying again this morning, with them I have the latest sql dump and files.
Can I have your babies?
mrmajic
Posts: 117 Joined: Sat Jun 27, 2009 9:37 am
Post
by mrmajic » Sun Oct 04, 2009 9:29 am
they wont stick :p
darspire
Posts: 194 Joined: Sat Jul 25, 2009 9:21 pm
Post
by darspire » Tue Oct 06, 2009 4:01 am
hey halls,
do you know how to download all the data to a disc so that hen it is finished i can use the disc to download the game onto another computer?
if you love something, let it go.
if it doesnt return.....hunt it down and kill it.
neronix17
Posts: 317 Joined: Sat Aug 01, 2009 5:01 am
Post
by neronix17 » Tue Oct 06, 2009 9:27 am
why not use a portable HDD or memory stick?
This isnt just a gimp mask...This is an S&M gimp mask...
hallsofvallhalla
Site Admin
Posts: 12026 Joined: Wed Apr 22, 2009 11:29 pm
Post
by hallsofvallhalla » Tue Oct 06, 2009 1:40 pm
you want to put the game on CD or the tuts? I am confused on what you are trying to accomplish.
darspire
Posts: 194 Joined: Sat Jul 25, 2009 9:21 pm
Post
by darspire » Tue Oct 06, 2009 9:39 pm
i want to put the game on a CD
if you love something, let it go.
if it doesnt return.....hunt it down and kill it.
neronix17
Posts: 317 Joined: Sat Aug 01, 2009 5:01 am
Post
by neronix17 » Wed Oct 07, 2009 7:52 am
darspire wrote: i want to put the game on a CD
I think he means how you want it on the disc? Like do you just want the files on a disc to transfer to another computer much like moving them to a different folder in the computer or do you mean you want it to be like a game disc where it installs the files into the program files directory? If its the last one then its not really going to work well but the first one you would just insert the disc, copy the files to the disc in My Computer and then the disc should have an option to write them to the disc.
This isnt just a gimp mask...This is an S&M gimp mask...
hallsofvallhalla
Site Admin
Posts: 12026 Joined: Wed Apr 22, 2009 11:29 pm
Post
by hallsofvallhalla » Wed Oct 07, 2009 1:33 pm
yes, i mean this is all web based so no need to install for players. If you wanted to be able to install on other peoples PCs then you would have to install wamp and set everything back up.
If you just want like back up then just copy the www directory and the sql dump.
neronix17
Posts: 317 Joined: Sat Aug 01, 2009 5:01 am
Post
by neronix17 » Wed Oct 07, 2009 2:20 pm
hallsofvallhalla wrote: yes, i mean this is all web based so no need to install for players. If you wanted to be able to install on other peoples PCs then you would have to install wamp and set everything back up.
If you just want like back up then just copy the www directory and the sql dump.
or for those using XAMPP you would copy the htdocs folder instead (same if you have a webhost most of the time.
This isnt just a gimp mask...This is an S&M gimp mask...
rangersko
Posts: 9 Joined: Wed Dec 30, 2009 8:52 pm
Post
by rangersko » Fri Jan 01, 2010 3:14 am
yer im kinda confused because i got this code for using magic
basicly the attack.php but aparently it has an error on line 33 when i attack using magic or normal attack
Notice: Undefined index: creature in C:\Downloads\wamp\www\tutorial\attack.php on line 33
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'];
?>
</div>
<div id="table">
<?php
$creature = $playerinfo3['creature']; <<<<------------------------ line 33
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
{
echo "<a href='battle.php'>No Creature selected. Go Back!";
exit;
}
$playerhp = $playerinfo3['hpoints'];
$playerattack = $playerinfo3['attack'];
$playerdefense = $playerinfo3['defense'];
$playerpass = 0;
$creature = $creatureinfo3['name'];
$creaturehp = $creatureinfo3['hpoints'];
$creatureattack = $creatureinfo3['attack'];
$creaturedefense = $creatureinfo3['defense'];
?>
</div>
<div id="player">
<?php
///////////////////////players turn////////////////////
echo "<center><u> " . $playerinfo3['name'] . "'s Attack</u><br>";
if (isset($_GET['sid']))
{
$sid=$_GET['sid'];
$spellinfo="SELECT * from playermagic where sid='$sid' AND pid='$pid'";
$spellinfo2=mysql_query( $spellinfo) or die("could not get spell!");
$spellinfo3=mysql_fetch_array( $spellinfo2);
$sname = $spellinfo3['name'];
if ($spellinfo3['type'] == "combat")
{
if ($spellinfo3['scost'] > $playerinfo3['spoints'])
{
echo "You do not have enough Spell Points for this spell.<br>";
echo "<a href='battle.php'>Go Back";
exit;
}
else
{
$spoints = $spellinfo3['scost'];
$moddamage = $spellinfo3['svalue'] / 10;
$moddamage = (int)$moddamage;
$sdamage = $spellinfo3['svalue'];
$randdamage = rand(0, $sdamage);
$sdamage = $randdamage + $moddamage;
echo " You Cast " . $sname . " and do " . $sdamage . " points of damage";
$playerpass = 1;
$updateplayer="update players set spoints=spoints-'$spoints' where name='$player'";
mysql_query($updateplayer) or die("Could not update player");
}}
}
if ($playerpass != 1)
{
$weaponinfo="SELECT * from playerweapons where equip=1 AND pid='$pid'";
$weaponinfo2=mysql_query( $weaponinfo) or die("could not get player weapon!");
$weaponinfo3=mysql_fetch_array( $weaponinfo2);
$playerattack = rand(1,20) + $playerattack + $weaponinfo3['rating'];
//////////////////////////////////////////////////////
$creaturedefense = rand(1,20) + $creaturedefense;
echo $playerinfo3['name'] . "'s Attack roll is " . $playerattack . "<br>";
echo $creature . "'s defense roll is " . $creaturedefense. "<br>";
if ($playerattack > $creaturedefense)
{
echo $playerinfo3['name'] . " " . $weaponinfo3['hittext'] . " and hits!<br>";
$weapdamage = $weaponinfo3['damage'];
$halfdamage = $weaponinfo3['damage'] / 2;
$playerdamage = rand($halfdamage,$weapdamage);
$newcreaturehp = $creaturehp - $playerdamage;
echo "For " . $playerdamage . " points of damage. <br>";
if ($newcreaturehp < 1)
{
echo "The " . $creature . " has been killed";
$crmaxhp=$creatureinfo3['maxhpoints'];
$updatecreature="update creatures set hpoints='$crmaxhp' where name='$creature' limit 1";
mysql_query($updatecreature) or die("Could not update creature");
if ($playerinfo3['level'] > $creatureinfo3['level'])
{
$firstmod = $playerinfo3['level'] - $creatureinfo3['level'];
$secondmod = $firstmod * 10 ;
if ($secondmod > 90){$secondmod = 90;}
$thirdmod = ($secondmod / 100) * $creatureinfo3['exper'];
$totalexper =$creatureinfo3['exper'] - $thirdmod;
}
else
{
$firstmod = $creatureinfo3['level'] - $playerinfo3['level'];
$secondmod = $firstmod * 10 ;
if ($secondmod > 90){$secondmod = 90;}
$thirdmod = ($secondmod / 100) * $creatureinfo3['exper'];
$totalexper =$creatureinfo3['exper'] + $thirdmod;
}
$totalexper = (int)$totalexper;
echo "<br><b><big>You gain " . $totalexper . " experience.</b></big><br>";
$updateplayer="update players set exper=exper+'$totalexper',creature=0 where name='$player'";
mysql_query($updateplayer) or die("Could not update player");
echo "<a href='battle.php'>Go Back";
exit;
}
$updatecreature="update creatures set hpoints='$newcreaturehp' where name='$creature' limit 1";
mysql_query($updatecreature) or die("Could not update creature");
}
else
{
echo $playerinfo3['name'] . " " . $weaponinfo3['hittext'] . " and misses!";
}}
?>
</div>
<div id="creature">
<?php
//////////////////////creatures turn //////////////////
echo "<center><u> " . $creature . "'s Attack</u><br>";
///////hit location//////////////////////////////////////
$randlocation = rand(0,100);
if ($randlocation <= 15)
{$location = "arms";}
elseif ($randlocation <= 70)
{$location = "chest";}
elseif ($randlocation <= 90)
{$location = "legs";}
elseif ($randlocation <= 100)
{$location = "head";}
$playerarmor="SELECT * from playerarmor where pid='$pid' AND location='$location' AND equip=1";
$playerarmor2=mysql_query($playerarmor) or die("Could not get player armmor");
$playerarmor3=mysql_fetch_array($playerarmor2);
$noarmor = 0;
if(is_null($playerarmor3['rating']))
{
$playerarmor3['rating'] = 0;
$noarmor = 1;
}
////////////////////////////////////
$creatureattack = rand(1,20) + $creatureattack;
$playerdefense = rand(1,20) + $playerdefense + $playerarmor3['rating'];
echo $creature . "'s Attack roll is " . $creatureattack . "<br>";
echo $playerinfo3['name'] . "'s defense roll is " . $playerdefense . "<br>";
if ($creatureattack > $playerdefense)
{
echo $creature . " hits for a strike to the " . $location . "<br>";
$creaturedamage = rand(1,6);
$newplayerhp = $playerhp - $creaturedamage;
echo "For " . $creaturedamage . " points of damage. <br>";
if ($noarmor == 1)
{
echo "You are not wearing armor on your " . $location . ".<br>";
$extradamage = rand(1,3);
echo "You take an additional " . $extradamage . " points of damage.<br>";
$newplayerhp = $newplayerhp - $extradamage;
}
if ($newplayerhp < 1)
{
echo $playerinfo3['name'] . " has been killed<br>";
echo "<a href='gameover.php>Continue'";
exit;
}
$updateplayer="update players set hpoints='$newplayerhp' where name='$player'";
mysql_query($updateplayer) or die("Could not update player");
}
else
{
echo $creature . " misses!";
}
echo "<br><br><a href='battle.php?creature=$creature'>Battle Again!";
?>
</div>