Page 1 of 5
Browser MMO Video#6a and 6b
Posted: Thu Jun 18, 2009 1:27 pm
by hallsofvallhalla
Re: Video#6a and 6b
Posted: Thu Jun 18, 2009 3:12 pm
by arkh
wow thanks now i know how to make those monsters give exp points. oh can i see the source code for the login because i keep getting error.
oh and i need help with this.
Code: Select all
<html>
<body>
<form method="post" action="skillform.php">
<center>
<p>Every Character can have up to 20 skills. but some are limited to low levels</p>
<br>
1st Skill:<input type="text" name="1st" size="20"><br>
1st Sword style skill [Offensive Form]<br><br><br>
<input type="submit" name="save">
</center>
</body>
</html>
above is the Skill page where players are allowed to name a skill. and here is the script that will post it in the database
Code: Select all
<?php
include 'connect.php';
?>
<?php
$skill=$_POST['1st'];
$isplayer="SELECT * from skills where skill='$skill'";
$isplayer2=mysql_query($isplayer) or die("Could not query players table");
$isplayer3=mysql_fetch_array($isplayer2);
$SQL = "INSERT into skills(skill, power, defense) VALUES ('$skill','5','0')";
mysql_query($SQL) or die("could not register");
print "Sword Style Skill/Form updated.";
?>
i know this code has some mistakes but here is what i have in mind that i need help with.
*If you can see in the skills page there is a text that explains that the users can have up to 20 skills then what i need to know is how i can save 20 different skill at different times separately. example:i learned 1st skill and named it Slash and then learned 2nd skill later and named it dodge. how can i make it that i can learn 2nd skill. because the register page allows the player to submit the complete data set of [name,pass and other]
while what i have in mind is submitting data at different time and either 1 by one or as a few set.
*every skill for the game is based the same as the other. both first skill is offensive form and then second is defensive. to make it unique i was thinking of allowing every player to name his or her skill. i was thinking that using the player database to record there the name but i won't be able to save the battle stats of the skill.
what i wanted to know is how to make it that when player 1 names his skill only he can used his named skill. and player 2 can use his named skill.
*lastly how to make it so that if player 1 uses his skill name slash and player 2 have a skill named swing [take note that both are the 1st skill, meaning same value]
how to make it that it would appear like this. Player 1 used Slash while Player 2 attacked with swing.
even on any side of player. your playing player 1 then that's what you see or player2 and will see it like above rather than seeing only the name of your skill.
im sorry for asking this too much
Re: Video#6a and 6b
Posted: Thu Jun 18, 2009 4:49 pm
by hallsofvallhalla
i dont have alot of time presently to look at this but are you wanting the player to be able to name the skill himself? IF so then why are you querying it, it doesnt exist yet. IF you want a list of skills for the player to choose from then you want a options box instead.
Code: Select all
<html>
<body>
<form action="skillform.php">
<select name="Offensive">
<option value="Slash">Slash</option>
<option value="Strike">Strike</option>
<option value="Pummel">Pummel</option>
</select>
</form>
</body>
</html>
then you transfer that name through a get method with the variable Offensive
Sorry about not posting the source, I will have both sources up tonight

Re: Video#6a and 6b
Posted: Fri Jun 19, 2009 12:18 pm
by arkh
Code: Select all
<html>
<body>
<form action="skillform.php">
<select name="Offensive">
<option value="Slash">Slash</option>
<option value="Strike">Strike</option>
<option value="Pummel">Pummel</option>
</select>
</form>
</body>
</html>
about this code above. so after picking a value. example:slash then i can make the next page show a name insertion page???. like what i have above
Re: Video#6a and 6b
Posted: Sat Jun 27, 2009 10:47 am
by mrmajic
hi,
when are you thinking the next lot (after 6a+6b) of videos will be released?? Also, are you going to be selling your tutorial on dvd .. id be interested in buying it..
Rob
Re: Video#6a and 6b
Posted: Sat Jun 27, 2009 11:55 am
by Cooper
keenly awaiting the 7 videos series

btw nice one dude!
Re: Video#6a and 6b
Posted: Sat Jun 27, 2009 3:38 pm
by hallsofvallhalla
thanks, no its all free, comes with your membership at Indie-Resource.com...and I believe you can get a plug-in for mozilla that will allow you to download them from youtube. I also am thinking of adding a upload section to the site, i could upload the mp4's and let people download them.
Should have 1 or 2 videos up this weekend.
Thanks
Re: Video#6a and 6b
Posted: Sun Jun 28, 2009 12:56 am
by mrmajic
can you please post the updated attack.php on here so we can keep track of where we are at, like you've done for the other videos.. and the other php scripts you edited in this video.
thanks
Re: Video#6a and 6b
Posted: Sun Jun 28, 2009 1:54 am
by hallsofvallhalla
video 7 will be up tonight and it will include all source thus far.
Re: Video#6a and 6b
Posted: Sun Sep 06, 2009 9:33 pm
by noahqw
Help.... I need video 6 code.... for attack.php script.