Page 3 of 7
Re: Video 14
Posted: Sun Oct 11, 2009 1:30 am
by darspire
cant wait for vid 15. what video do you think map is gonna be introduced?
Re: Video 14
Posted: Sun Oct 11, 2009 6:31 am
by darspire
hey how do i make it so that even after you kill a monster, it doesnt get deleted from the php my admin creatures database?
Re: Video 14
Posted: Sun Oct 11, 2009 9:31 am
by neronix17
darspire wrote:hey how do i make it so that even after you kill a monster, it doesnt get deleted from the php my admin creatures database?
Really if youve followed each video properly and learned something about php you should be able to figure out how to do that

I changed the part where it deletes the creature so that it spawns a new one from a new table in the database which holds all the information the creature had before you attacked it.
Re: Video 14
Posted: Sun Oct 11, 2009 5:28 pm
by hallsofvallhalla
just comment out where it deletes the creature in attack.php Put // in fron t of the lines to comment them out. Should be two lines.
Re: Video 14
Posted: Sun Oct 11, 2009 6:35 pm
by Ravinos
neronix17 wrote:I changed the part where it deletes the creature so that it spawns a new one from a new table in the database which holds all the information the creature had before you attacked it.
I did the same thing. My my development install where I have been adding my own features, I use this same method. I have a master monster DB that it calls from and replaces the creatures as needed. I haven't tested it against multiple people being logged in though.
Re: Video 14
Posted: Sun Oct 11, 2009 7:49 pm
by darspire
YES I FIGED SOETHING OT Y MYSELF!!
i made a cooler looking login page! : )
the parth that says
username=_________
password=_________
submit
i changed it into table by doing this
<table background="images/login.jpg">
<tr>
<td>(login.php info)</td>
</tr>
</table>
and presto : ) cooler looking login page!! im so proud
Re: Video 14
Posted: Mon Oct 12, 2009 12:00 am
by hallsofvallhalla
nice work!
Re: Video 14
Posted: Mon Oct 12, 2009 2:13 am
by darspire
thank you : )
also i followed your instructions about how to not delete monster..it worked but now, after i kill it, it still has like 3 hp
Re: Video 14
Posted: Mon Oct 12, 2009 8:48 am
by neronix17
darspire wrote:thank you : )
also i followed your instructions about how to not delete monster..it worked but now, after i kill it, it still has like 3 hp
The same reason I delete it and re-create it lol
Re: Video 14
Posted: Mon Oct 12, 2009 12:43 pm
by hallsofvallhalla
yes, make another line
if creature hp < 1
then creature hp = reset
i will make a video on this. A few people have asked about it.