Browser MMO Video#6a and 6b

Location of the Videos
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

Browser MMO Video#6a and 6b

Post by hallsofvallhalla »

http://www.youtube.com/watch?v=_DBVC2CZXBg

video 6 ended up being longer than I thought, had to split in to 2 videos :)

http://www.youtube.com/watch?v=8acMs9mkUCM
arkh
Posts: 14
Joined: Sun Jun 14, 2009 6:15 am

Re: Video#6a and 6b

Post 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
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

Re: Video#6a and 6b

Post 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 :)
arkh
Posts: 14
Joined: Sun Jun 14, 2009 6:15 am

Re: Video#6a and 6b

Post 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
mrmajic
Posts: 117
Joined: Sat Jun 27, 2009 9:37 am

Re: Video#6a and 6b

Post 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
Mr Majic...

Current Project: http://www.deltarealm.net
feedback welcome.
Cooper
Posts: 8
Joined: Mon Jun 22, 2009 5:38 pm

Re: Video#6a and 6b

Post by Cooper »

keenly awaiting the 7 videos series :D
btw nice one dude!
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

Re: Video#6a and 6b

Post 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
mrmajic
Posts: 117
Joined: Sat Jun 27, 2009 9:37 am

Re: Video#6a and 6b

Post 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
Mr Majic...

Current Project: http://www.deltarealm.net
feedback welcome.
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

Re: Video#6a and 6b

Post by hallsofvallhalla »

video 7 will be up tonight and it will include all source thus far.
noahqw
Posts: 8
Joined: Fri Sep 04, 2009 9:48 pm

Re: Video#6a and 6b

Post by noahqw »

Help.... I need video 6 code.... for attack.php script.
Post Reply

Return to “Older Browser MMO Videos”