Jump to content
MakeWebGames

SRB

Members
  • Posts

    785
  • Joined

  • Last visited

  • Days Won

    79

Everything posted by SRB

  1. I want 4 billion whores. Can we unsign this sh1t?
  2. SRB

    Laptops

    I always check gumtree for a rough estimation and it appears that London as a whole is averaging 350-450 for that year. That said, the ads are still listed so potentially unsold and that could be one of 3 reasons. 1. People aren't quite liking the higher end of that scale. 2. Owners too lazy to remove it. 3. Distance is an issue as London is quite big With regards to windows laptops, avoid pcworld - expensive for what you get. Personally, I've always bought windows laptops second hand - get fairly decent spec for a fair chunk off the new cost. I use gumtree and local newspapers etc for that too. That said, with 500, you could just get one new and it'll still be decent spec. Be sure to base your initial purchase mostly on processor and motherboard max memory. That way, if you need more memory you can always expand. Throwing an SSD in is always a good call too. These days, I don't fux with Microsoft - Id go for a new Mac. 2014 models are fairly decent (I own the 13 inch, 2014)
  3. Work connection - http://www.speedtest.net/result/4063421953.png Feels slow as hell in comparison to my home connection. And I work as a PHP Developer - so an IT job... I expect better! :D
  4. if ($_GET['wepid'] == $ir['equip_primary'] || $_GET['wepid'] == $ir['equip_secondary']) { $qo = $db->query("SELECT i.* FROM items i WHERE i.itmid={$_GET['wepid']}"); // selecting all from items $r1 = $db->fetch_row($qo); $mydamage = (int) (($r1['weapon']*$youdata['strength']/($odata['defense']/1.5))*(rand(8000,12000)/10000)); $hitratio = max(10,min(60*$ir['agility']/$odata['speed'],95)); if (rand(1,100) <= $hitratio) { $q3=$db->query("SELECT i.armor FROM items i WHERE itmid={$odata['equip_armor']} ORDER BY rand()"); if ($db->num_rows($q3)) { $mydamage-=$db->fetch_single($q3); } if ($mydamage < -100000) { $mydamage=abs($mydamage); } /* Since $mydamage is last defined here (At a level that's not simply to calculate criticals or <0's) We insert the part we need here. Conditions; 1. Check the weapon being used is in the secondary slot. 2. You have called the item into $r1 return, so match type id there ** Check the field name for itmtype, it may not be correct [may be itmtypeid] */ if (($_GET['wepid'] == $ir['equip_secondary']) && $r1['itmtype'] == $item_type_number) { $mydamage = $mydamage / 3; } /* End of the **** you need */ if ($mydamage < 1) { $mydamage=1; } $crit=rand(1,40); if ($crit==17) { $mydamage*=rand(20,40)/10; } else if ($crit==25 or $crit == 8) { $mydamage/=(rand(20,40)/10); } $mydamage=round($mydamage); $odata['hp']-=$mydamage; if ($odata['hp']==1) { $odata['hp']=0;$mydamage+=1; } $db->query("UPDATE users SET hp=hp-$mydamage WHERE userid={$_GET['ID']}"); print "<font color=red>{$_GET['nextstep']}. Using your {$r1['itmname']} you hit {$odata['username']} doing $mydamage damage ({$odata['hp']})</font>\n"; $_SESSION['attackdmg']+=$mydamage; $_SESSION['attacklog'].="<font color=red>{$_GET['nextstep']}. Using {$myabbr} {$r1['itmname']} {$ir['username']} hit {$odata['username']} doing $mydamage damage ({$odata['hp']})</font>\n"; if ($_GET['wepid'] == $ir['equip_secondary'] and $ir['breath_use']>0) { $db->query("UPDATE users SET breath_use=breath_use-1 WHERE userid=$userid"); } }   Think this is what you need;
  5. So if you asked me to build a website - I can give you one that works for "most" people but not all? Hit me up when you need one :D
  6. Would appear that facebook is a rule to itself! Love how their logic is (Alot like the likes of Apple) do it our way, or just don't do it! Personally, I've never seen a UX Benefit as a "downgrade". Cover all bases and you won't be called back to the job, but if a few users with js disabled turn up, guess who's getting a message about correcting the issue? Potentially giving yourself corrective work in the future is never a good move, in my opinion Edit The client hired you to build them a fully functional set up, didn't they? They shouldn't have things to worry about. No offence, but it's that attitude that kills "return custom"
  7. Is that actually required, in your opinion? As long as there is a check the point at which you use the item, there should be no issue. In essence, allowing them to add it when they currently do not own any, is only the same result as them adding it when they have 1 and they use it once. The end result is that you have a link to an item they do not have. Now, if you check it at the end point, it doesn't matter -- the link just doesn't work if they don't have one. Furthermore- this could be slightly added to, in the following way; [1] On the page where you select the item, also have a checkbox (Buy item if you have ran out [x]) [2] The check code checks if you have one. [3] If you have one, use it. [4] If not, pull the values from the database, deduct the money and give the gains it would have gave. I, for one, would prefer a system with both options left open.
  8. So no graceful degrading then? So if a user disables javascript, the site is unusable for them? It's better to keep the links AND pages, for people who refuse to enable it (You'd be surprised at the number that amounts to). For example; jsFiddle This loads divs on click IF javascript is enabled. If it's not, it would load index.php and page.php respectively. Of course, if you are using mod rewrite (Which hasn't been stated), your code may work around it. That's a big if though.
  9. Damond, inbox me your Skype ID
  10. "Clever technique of mine" Very much sounds like you're just isn't ajax as intended, as a return action. Care to elaborate on your definition of that part?
  11. :D:D:D:D
  12. Try this; http://pastebin.com/nRGpyjfp
  13. _omg_I_haz_sup3r_l0ng_namez_ Yeah, I'm an *******.
  14. SRB

    User authentication

    Use code tags or post on pastebin and just put a link here
  15. Sent Alan a text message pointing him here -- I'm sure he'll be in contact if he's interested :)
  16. Started to build one of these games - just as a test to see how long it will take... paid work came up - on the back burner it went.
  17. http://www.htaccesstools.com/articles/redirection/
  18. SRB

    Learning PHP

    I'd advise against that Kyle. There's not enough "hands on" there to push them in the right direction. I believe the manual is best read once you have a very basic grasp of some functions. I'm all go playing with a foundation to build a house though :)
  19. Who told you I used to make myself a staff member and drop databases for a laugh? :o As someone stated, a "Man in the middle" would be the most likely, but for the scope of affect, it wouldn't be worth it on a game of this size. Pretty sure if you get to staff, you can run enough stuff through the eval() in the crime system to be able to create a file, or at least something to hijack something of use.
  20. Oh, there's no butt hurt on my point. Ironically, you're now agreeing with people for exactly what I was directing my comments towards. Someone just wanted to argue a case, I guess.
  21. Oh look, we have a smart cookie here who thinks he is 1337. ASSUME... Making as ASS out and U and ME. Until you have proof that he doesn't, I'll pretend you didn't speak. Change passwords - couldn't possibly be encrypted passwords, but database wasn compromised by a rogue developer and rainbow tables used on passwords? Yeah, course not. That is all.
  22. No, it tells you that when you sign up, a variable holds the password you set, until it's emailed. During which time, it's probably ran through MD5 and encrypted. That said, sending passwords out is a dumb move.
  23. If only I'd ever got mine to completion - lost interest
  24. SRB

    Dear Hybridd

    May want to brush up on your understanding of what "spam" is
×
×
  • Create New...