Jump to content
MakeWebGames

Sim

Members
  • Posts

    2,392
  • Joined

  • Last visited

  • Days Won

    62

Everything posted by Sim

  1. Most professional bots if can't break captcha's WILL display the "AREA" where you need to perform whatever the captcha or action to break it wihin a few seconds =)
  2. I just lost a huge PM ;\
  3. am in need of a few web designs. pm me your portfolio and price per 1 page. I need a few. Some with 1 column sites, some 2 column and 3 column. ;]
  4. I would consider an active member someone that logins x ammount of times during a certain period AND performs x ammount of actions each session.
  5. Sim

    WIP: RPG Battler

    The he is "Blue" Demo: RPG Battler Download: http://phpengines.info/forums/downloads/?sa=view;down=11 Support: PHP Engines
  6. RPG Character is released. people will be able to add there characters which has to be approved then will work with RPG Battler
  7. whats spelled wrong? ;\
  8. Is there any type of program that will emulate cell phone browsers through your pc to view your websites in? I am wanting to make my site compatable with all major cell phone's. ;]
  9. Problem resolved. ;]
  10. on http://www.rpgbattler.info I am using no database. all sessions. Line 175. <? /*************************************************************************** * battle_action.php * ------------------- * begin : 2/24/2011 * copyright : (C) 2011 William Hughes aka Sim * email : [email][email protected][/email] * * * * ***************************************************************************/ session_start(); if($_GET['action'] == "attack") { player_attack(); } if($_GET['action'] == "fight") { reset_stats(); fight(); } function reset_stats() { //player start up stats $_SESSION['player_hp'] = 100; $_SESSION['player_str'] = 100; $_SESSION['player_def'] = 100; $_SESSION['player_att'] = 100; $_SESSION['player_dodge'] = 100; $_SESSION['player_dmg'] = 100; //enemy start up stats $_SESSION['enemy_name'] = "First Oppoment"; $_SESSION['enemy_hp'] = 100; $_SESSION['enemy_str'] = rand(1,100); $_SESSION['enemy_def'] = rand(1,100); $_SESSION['enemy_att'] = rand(1,100); $_SESSION['enemy_dodge'] = rand(1,100); $_SESSION['enemy_dmg'] = rand(1,100); die($_SESSION['enemy_str'] . ":" . $_SESSION['enemy_def'] . ":" . $_SESSION['enemy_att'] . ":" . $_SESSION['enemy_dodge'] . ":" . $_SESSION['enemy_dmg']); } function fight() { //calculate players hit roll if($_SESSION['player_att'] > $_SESSION['player_dodge']) { $_SESSION['player_hit_roll'] = $_SESSION['player_att']; } else { $_SESSION['player_hit_roll'] = $_SESSION['player_dodge']; } //calculate enemy hit roll if($_SESSION['enemy_att'] > $_SESSION['enemy_dodge']) { $_SESSION['enemy_hit_roll'] = $_SESSION['enemy_att']; } else { $_SESSION['enemy_hit_roll'] = $_SESSION['enemy_dodge']; } //calculate the damagerolls //damage roll is calculated by the str of the striker - def of the strikee //if damage roll = less than or equal to 0 then damage roll is = 1 //this is the number that is randomized to see how much damage is inflicted //calculate player first $_SESSION['player_dmg_roll'] = $_SESSION['player_str'] - $_SESSION['enemy_def']; //if negative then = 1 if($_SESSION['player_dmg_roll'] <= 0) { $_SESSION['player_dmg_roll'] = 1; } //calculate the enemy's in the same fashion $_SESSION['enemy_dmg_roll'] = $_SESSION['enemy_str'] - $_SESSION['player_def']; //if negative then = 1 if($_SESSION['enemy_dmg_roll'] <= 0) { $_SESSION['enemy_dmg_roll'] = 1; } //calculate the damage bonus //this calculation subtracts the str from def, and if positve it is //added to the damage inflicted //calculat players damage $_SESSION['player_dmg_bonus'] = $_SESSION['player_str'] - $_SESSION['enemy_def']; //check if negative and convert to 0, if it is if($_SESSION['player_dmg_bonus'] < 0) { $_SESSION['player_dmg_bonus'] =0; } //calculate the enemys in the same fashion $_SESSION['enemy_dmg_bonus'] = $_SESSION['enemy_str'] - $_SESSION['player_def']; //check if negative if($_SESSION['enemy_dmg_bonus'] < 0) { $_SESSION['enemy_dmg_bonus'] = 0; } //Lastly there is the multiplyer //this is a damage multiplyey. the str is divided by the enemys defense //and this number is how much the damage is multiplyed //for example, pstr = 10 and estr = 5 then the damage multiplyer = 2 //calculate players $_SESSION['player_multiplyer'] = (int) ($_SESSION['player_str'] / $_SESSION['enemy_def']); if($_SESSION['player_multiplyer'] = 0) { $_SESSION['player_multiplyer'] = 1; } //calculate enemys $_SESSION['enemy_multiplyer'] = (int) ($_SESSION['enemy_str'] / $_SESSION['player_def']); if($_SESSION['enemy_multiplyer'] = 0) { $_SESSION['enemy_multiplyer'] = 1; } $roll = rand(1,$_SESSION['player_hit_roll']); //check to see if hit if($roll <= $_SESSION['player_att']) { }//oppoment gets first strike else { enemy_attack(); } } function player_attack() { //unset message unset($_SESSION['msg']); //the player attacks routine, basically three checks are perfomed here //hit or miss, damage if hit, and victory //calculate hit or miss $roll = rand(1, $_SESSION['player_hit_roll']); //player missed if($roll > $_SESSION['player_att']) { $_SESSION['msg'] = $_SESSION['enemy_hp'] . ":You missed!! :"; enemy_attack(); die($_SESSION['msg']); } //player made it this far. attack successfull //calculate random damage die($_SESSION['player_dmg_roll'] . '-' . $_SESSION['player_dmg_bonus']); $roll = rand(1, $_SESSION['player_dmg_roll']); $roll += $_SESSION['player_dmg_bonus']; //$roll = $roll * $_SESSION['player_multiplyer']; $_SESSION['enemy_hp'] -= $roll; if($_SESSION['enemy_hp'] < 0) { $_SESSION['enemy_hp'] = 0; } //check to see if enemy is dead if($_SESSION['enemy_hp'] == 0) { $_SESSION['msg'] = $_SESSION['enemy_hp'] . ":You have defeated the enemy!! Press Fight to begin another battle... ::"; die($_SESSION['msg']); } else { $_SESSION['msg'] = $_SESSION['enemy_hp'] . ":You hit the enemy and inflict $roll damage.... :"; } enemy_attack(); //display messages die($_SESSION['msg']); } function enemy_attack() { //the enemy attacks routine, basically three checks are perfomed here //hit or miss, damage if hit, and players death //calculate the hit or miss first //roll number $roll = rand(1, $_SESSION['enemy_hit_roll']); //check to see if hit, if miss, exit sub if($roll > $_SESSION['enemy_att']) {//this misses and exits sub, bringing up players turn $_SESSION['msg'] .= $_SESSION['player_hp'] . ":Enemy Misses... :"; die($_SESSION['msg']); } //if it is here, it means a hit, calculate damage //even if damage is 1 then the roll will always be 1 //calculate random damage $roll = rand(1, $_SESSION['enemy_dmg_roll']); //add damagebonus $roll += $_SESSION['enemy_dmg_bonus']; //now mutiply by multiplyer //$roll = $roll * $_SESSION['enemy_multiplyer']; //now subtract damage from player hp, check if negative $_SESSION['player_hp'] -= $roll; if($_SESSION['player_hp'] < 0) { $_SESSION['player_hp'] = 0; } //now print the hit and damage $_SESSION['msg'] .= $_SESSION['player_hp'] . ":You have taken $roll damage...."; //check to see if player is dead if($_SESSION['player_hp'] == 0) { $_SESSION['msg'] .= "$msg You have been defeated by the enemy!! Press Fight to begin another battle.."; } //with more studying one could put in a counterstrike, routine, but i think //one would have to have another stat, or calculate with the bonus or roll } ?>
  11. RPG Battler This is very simple and a WIP. Right now the game needs to update the HP's and then reset enemy stats after a battle is over, which sound be done by tomorrow.   This is my first colab project really. I did all the PHP and ajax calling. He did the GUI, design, and JS ;] Let me know what you would like to see or just tell me if its a dumb idea. ;] I will be releasing as open source once complete.
  12. I really dont' like game advertising online. They want to approve my channels. ;-=]
  13. Anyone know of any good ones? I am currently using adbrite, but I don't like them that much. :)
  14. Sim

    Infinite Loops

    They are bad but GOOD. Today I found out my hosting really does allow unlimited disk space when my program got stuck in an infinite loop and created over 1TB of image files in a few minutes. ;\ Over 100,000 image files... Bad news is. ITS TAKEN FOREVER TO DELETE.. and there damn support wouldn't delete them for me as I am not hte owner of the account.
  15. Is this possible? I am trying to send a request to my site from another site using jquery and i keep getting permission denied http://simstests.zxq.net/ after it says healing or attacking. it should say "test".
  16. I don't want them for the purpose of voting. :)
  17. Sim

    DG Uni

    Soon I will be creating an online university called Digital Gangsta University. I will be the DG Dean. I currently have three instructors and seeking more. If you know anything about being a DG, and would like to share your knowledge, then contact me via msn @ [email protected] After the university guidelines are set, I will then be allowing registration.
  18. It doesn't say it, but I can only view the first 250
  19. Theres only max 200 sites per topsite on those? I want a topsite with like 10,000 browser games listed... ;)
  20. Sim

    Selling game!!

    Now this is unique>
  21. Keep em keep em coming.
  22. Whats some real LARGE browser game top sites? ;)
  23. I found a good one that was like myspace's old chat system with user name's at the bottom and stuff and poped up along the status bar when you was chatting with someone, but I can't find it anymore. ;)
  24. I would also like more details. I hate modding for mc-codes but when the money is in 3 figures. I got no problem doing it. ;]
  25. My grandfather knows how to operate a computer better then my father. ;
×
×
  • Create New...