Jump to content
xisto Community

Feelay

Members
  • Content Count

    275
  • Joined

  • Last visited

Everything posted by Feelay

  1. Ok.Atm, I am using my hotmail account as pyost said.And when 500mb is not enough, I will see what i can do.Thanks for your help.//Feelay
  2. Hamachi is the best "LAN over the internet" software i know. Very good ;)I used to play diablo 2, and Call of Duty 2 with my friends. And it is very simple to use
  3. Still.. Magic is not tricks Tricks are something else I don't call them magicans so please stopp calling them magicans xDMagic is something else.. Something special. I am still trying to figure out what
  4. Why is everyone intressted in videos xDI try to use magic myself :PI don't like to watch people watch magic.. I want to learn how to use it..Maybe you think I am mad, but the magicans that uses "tricks" ain't magicans.Magicans are people that uses real magic
  5. acctually, he did it in front of people.. He was outside doing it.. and he had three minutes to remove some ropes, or else a 5 Ton block would fall on him.. and then, 3 minutess later, he was in a house that took atleast 10 mins to run to.. and remeber that he had ropes, and that the ropes was so hard tied, so they needed atleast 5 mins to take off, and then he would need 10 more minutess to run to the house..
  6. Maybe i should be more cleare ^_^I ment, can i make my own email.If my site is named fantasieworld: Can I make an email like Admin@Fantasieworld.com or something oike that, or do I have to use my hotmail?
  7. kqd2006. you said you wanted to see teleporting persons or something like that.. I've seen it, on Tv, but I don't think they fake that stuff..
  8. Hi!How does the email function work?Does it work if I write "email-name@fantasieworld.com" or do i have to write my Hotmail account info =?
  9. Very Good Tutorial ^_^Very Easy to understand. But I only have one question.. How long time did it take to wirte this ;)I am sure, it took atleast 24 Hours Am I right =? And I think you are going to make more steps, or =?But as I said, very good tutorial.There is only one "leech".. You have 2 "Design part one".
  10. Some time ago, i made a login-script. But how do you use a login-script, if you can't register. So this morning, I decided to make a register-script.. What you should already know: The php basics and a little more. How to use php and mysql together. The HTML basics (to make the forms). The first thing we should do, is creating the database tables. Here is the code: CREATE TABLE `user` ( `id` int(4) unsigned NOT NULL auto_increment, `username` varchar(32) NOT NULL, `password` varchar(32) NOT NULL, `level` int(4) default '1', PRIMARY KEY (`id`)) ENGINE=InnoDB AUTO_INCREMENT=27 DEFAULT CHARSET=latin1; The first thing we do, is adding the "id" column. Nothing important with that one.Then we add the "username" and "password" columns. Nothing important here either. But then, we add the "level" column. In my login script, i have an admin system. This is why i made the "level" column. The default value is 1.. but if you change it to 9, the user will become an admin. Now Lets Move On to "reg.php" <?phprequire_once 'database.php';?><h1><strong>Register</strong></h1><form name="register" method="post" action="regcheck.php"> <label> <input type="text" name="user" id="user"> </label> Username <br><br> <label> <input type="password" name="pass" id="pass"> Password<br /> </label><label> <input type="submit" name="reg" id="reg" value="Register"> </label></form><label></label><form name="Back" method="post" action="Login.php"> <input type="submit" name="back" id="back" value="Back to Home"><p>Â </p> The first thing I do, is requiring the "database.php".It will open a connection to the database. Then, we add the forms and buttons It isn't harder than that. Now we have the Register Page Now, we need the regcheck.php page. <?phpif( isset( $_POST['user'] ) && isset( $_POST['pass'] ) ){ if( strlen( $_POST['user'] ) < 4 ) { echo "Username Must Be More Than 4 Characters."; } elseif( strlen( $_POST['pass'] ) < 4 ) { echo "Passwrod Must Be More Than 4 Characters."; } elseif( $_POST['pass'] == $_POST['user'] ) { echo"Username And Password Can Not Be The Same."; } else { include( 'database.php' ); $username = mysql_real_escape_string( $_POST['user'] ); $password = md5( $_POST['pass'] ); $sqlCheckForDuplicate = "SELECT username FROM user WHERE username = '". $username ."'"; if( mysql_num_rows( mysql_query( $sqlCheckForDuplicate ) ) == 0 ) { $sqlRegUser = "INSERT INTO user( username, password ) VALUES( '". $username ."', '". $password ."' )"; if( !mysql_query( $sqlRegUser ) ) { echo "You Could Not Register Because Of An Unexpected Error."; } else { echo "You Are Registered And Can Now Login"; $formUsername = $username; header ('location: Login.php'); } } else { echo "The Username You Have Chosen Is Already Being Used By Another User. Please Try Another One."; $formUsername = $username; } }}else{ echo "You Could Not Be Registered Because Of Missing Data.";}?> Now the first thing we do here, is to check if the password and user field is checked. If they are, we check if the fields are more than 4 characters. And then, we check if the password is the same as the username. If no errors occurred, we include the database.php Then make 2 variables. The $username variable, and the $password variable. As you can see, the password is md5 protected. Then we check if the username exists. if it doesn't, the account will be registered, and the user will be redirected to the index.php page. But.. If it is being used, the code will write that the username is being used. As you can see, i do include the database.php in both files. Here it is: <?$con = mysql_connect('localhost','mysql_username','mysql_password');if (!$con) { die('Could not connect: ' . mysql_error()); }mysql_select_db('mysql_database');?> The first thing we do here, is:Start the connection to the database server. If it couldn't connect, an error will occur. Then, we select the database we want to use. This is my third tutorial. Tell me if you liked it, and if you found any errors. tell me, and I will change them.
  11. Hey! I am going to share an attack script that i made for some time ago. I made it, as a test for my game.. And ofc, you can use it for your game to. It is still version 1.0. But I want you to learn something from it This is my second tutorial here, and I will try to make it better than my first one Here is the SQL File. CREATE TABLE `characterss` ( `health` int(200) NOT NULL default '100', `id` int(10) NOT NULL auto_increment, PRIMARY KEY (`id`), UNIQUE KEY `id` (`id`)) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;insert into `characterss`(`health`,`id`) values (100,2); The second thing we should do, is creating a new php file, and call it "attack.php" In the beginning of the file, we will add this code: <html><head><body><form action="Attack.php" method="post"><input type="submit" value="Attack"><br><br><br> This is just a simple html form, that shows the attack button.It will send the form to the attack.php file (to itself). Now lets beginn with the php code The first thing we should do, is: Create a connection to the database server, and chose a database. $db = mysql_connect(localhost, mysql_username, mysql_password); mysql_select_db('database_name',$db)or die("Couldn't find the database"); If the database was not found, the code will write an error. Now lets create the Attack Function. As always, a function start like this: function attack(){ Then, we should create some important variables. $dbQuery = mysql_query("SELECT health FROM characterss WHERE id = 2 LIMIT 1"); $currentHealth = mysql_result($dbQuery, 0); The first thing we do, is: Create a Query, that selects the health colum from the characterss table.Then we give $currenthealth a value. $maxHealth = 100; $healthAward = mt_rand (1, 30); $winner= mt_rand (0, 1); This is very clear, isn't it =?We give $maxHealth a value. We give $healthAward a value (the health the player wins/loses). the mt_rand function will randomize the health the player will get. And we will also give the $winner chance a value.. it is 50% chance that the player wins, and 50% chance that the playe will lose. if($winner) {if(($currentHealth + $healthAward) <= $maxHealth) { $currentHealth += $healthAward; echo "You won! You've gained {$healthAward} HP. You now have {$currentHealth} HP."; } else { echo "You won! Your health is at the maximum, {$maxHealth} HP."; $currentHealth = $maxHealth; If the player wins: Check if the player got full hp. If he don't have full hp, give him the healthAward, else, the code will write that he won, but the hp will not change. } else { if(($currentHealth - $healthAward) <= 0) { echo "You died. Your HP is 100 again."; $currentHealth = 100; } else { $currentHealth -= $healthAward; echo "You lost! You've lost {$healthAward} HP. You now have {$currentHealth} HP."; } } Else if the players hp is less than 0, the code will write that the player died, and reset the hp to 100.if the player lost, but didn't die, the code will remove the hp that the player lost, and write that he lost, and show his remaining hp. mysql_query ("UPDATE characterss SET health = \"{$currentHealth}\" WHERE id = 2"); } And ofc, we must update the value in the database.. Else, it won't be fun echo attack();mysql_close($db); ?> Then we echo the function, and close the mysql_connection. Tell me if you find any errors, or if u want me to change something. And I also want to know if you liked this tutorial //Feelay You are not allowed to copy anything from this tutorial, and paste it outside of this topic, without my permission. But you are allowed to copy/paste parts of it, inside this topic.
  12. Hmm =/ Before i edited my .htaccess it looked like this: # This folder does not require access over HTTP# (the following directive denies access by default)Order allow,denyShould it look like that =? (be empty) Now this is how it looks: # This folder does not require access over HTTP# (the following directive denies access by default)Order allow,denyAddType application/x-httpd-php .incAddType application/x-httpd-php .include I am using Wamp By the way: Very Very good tutorial =)
  13. I don't say that magic explains everything.. I just said "I think".. I admit that i don't know lots of stuff.. I never said that magic explains everything.. But to me, it explains alot..And, when we talk about magicans on Tv.. Thats junk..
  14. As I said, Magic don't have to be fire balls.. When i said brain control, I ment controlling somone else.. not your brain ^_^And about the bermuda traingle.. I think magic is the reason for everyting that happened.
  15. Hey!I just wanted to know, how many of you belive in magic =?I have seen many strange stuff.. And even if it isn't i call it magic.. Many think I'm crazy, but I don't acctaully care so much..I don't belive in luck.. Every good thing that happenes to me, is magic, i think..I also think, that everyone have magic deep inside.. but that they have to learn how to control it..and that they have to belive in it.. Magic don't have to be fire balls and theese kind of stuff.. Magic can be, brain control, or something like that..This is what i think =) What do you think =? Write here =)
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.