Jump to content
MakeWebGames

Zero-Affect

Members
  • Posts

    3,713
  • Joined

  • Last visited

    Never

Everything posted by Zero-Affect

  1. Re: [mccode V2] Search Islands   my Turns is more advanced but thats normal... Nice mod mate + 1
  2. Re: exp in negative??? i had this issue not long back a solution is to open global_func.php: FIND- function check_level() { global $db; global $ir,$c,$userid; $ir['exp_needed']=(int) (($ir['level']+1)*($ir['level']+1)*($ir['level']+1)*2.2); if($ir['exp'] >= $ir['exp_needed']) { $expu=$ir['exp']-$ir['exp_needed']; $ir['level']+=1; $ir['exp']=$expu; $ir['energy']+=2; $ir['brave']+=2; $ir['maxenergy']+=2; $ir['maxbrave']+=2; $ir['hp']+=50; $ir['maxhp']+=50; $ir['exp_needed']=(int) (($ir['level']+1)*($ir['level']+1)*($ir['level']+1)*2.2); $db->query("UPDATE users SET level=level+1,exp=$expu,energy=energy+2,brave=brave+2,maxenergy=maxenergy+2,maxbrave=maxbrave+2, hp=hp+50,maxhp=maxhp+50 where userid=$userid"); } }   Replace with - function check_level() { global $db; global $ir,$c,$userid; $ir['exp_needed']=(float) (($ir['level']+1)*($ir['level']+1)*($ir['level']+1)*2.2); if($ir['exp'] >= $ir['exp_needed']) { $expu=$ir['exp']-$ir['exp_needed']; $ir['level']+=1; $ir['exp']=$expu; $ir['energy']+=2; $ir['brave']+=2; $ir['maxenergy']+=2; $ir['maxbrave']+=2; $ir['hp']+=50; $ir['maxhp']+=50; $ir['exp_needed']=(float) (($ir['level']+1)*($ir['level']+1)*($ir['level']+1)*2.2); $checlv = sprintf('UPDATE `users` SET level = level + %d, exp = %u, energy = energy + %d, brave = brave + %d, maxenergy = maxenergy + %d, maxbrave = maxbrave + %d, hp = hp + %d, maxhp = maxhp + %d where userid = %u', 1, $expu, 2, 2, 2, 2, 50, 50, $userid); $db->query($checlv); } }   i edited my full globals and global func but that should work perfectly i thought i would give a more detailed reply
  3. Re: [Please Read] Requesting Help it is annoying when people quote full mods instead of the lines near the error i must admit
  4. Re: [REVIEW] Dowtown Toronto RPG ~ review looks better with fixed background, where are you advertising? 28 online in last 24 hours, much more than others
  5. Re: [mccode v2] User Search   You're welcome, good job + 1
  6. Re: Cron's not working   i suggest doing that it maybe a serverside issue
  7. Re: [mccodes V2] Drag n Drop User Menu + Staff Menus [WORKING COPY] Sweet + 1
  8. Re: [mccodes V2] Drag n Drop User Menu + Staff Mens wow you know i never thought you was this good but wow good job mate.
  9. Re: [mccode v2] Banner image selector Looks like a interesting code +1
  10. Zero-Affect

    Movies

    Re: Movies Zack and Miri make a porno is great..
  11. Re: [mccode] another sql protection to help   Was only pointing out you're mistake to help you in the future :lol:
  12. Re: [mccode] another sql protection to help i don't think mysql_real_escape_string(strip_tags($content)); will work mate im sure it would need mysql_real_escape_string(strip_tags($content, ""));
  13. Re: Cron's not working do you see a red message when u click cron jobs in your cpanel?
  14. Re: what an 11Y old created with microNEAB in about 2 weeks   Yep very good for 2 weeks
  15. Re: [mccode] another sql protection to help i always assumed it worked like $_POST['blah'] = mysql_real_escape_string(htmlentities($_POST['blah']));
  16. Re: [V2] crystal Temple   replce 10, with 50, simple
  17. Re: [mccodes V2] Advanced Credit Card Mod [$20.00] Looks good mate +1
  18. Re: [V2] crystal Temple   else if($_GET['spend'] == level) { if($ir['crystals'] < 50) { echo ' Error, you dont have enough crystals (You need 50) '; } else { echo ' You trade in 50 crystal for a level enhancement! '; $query = sprint('UPDATE `users` SET `level` = `level` + %d, `crystals` = `crystals` - %d, `maxenergy` = `maxenergy` + %d, `maxbrave` = `maxbrave` + %d, `maxhp` = `maxhp` + %d WHERE `userid` = %u', 1, 50, 2, 2, 10, $userid ); $db->query($query); }
  19. Re: Internet Explorer Strip_Tags that should help mate
  20. Re: Internet Explorer   can i get some advice on how to secure it? the obvious are cmark and forum but people forget profile signature using a simple html injection i could make you make me staff therefor you gave me permission and cannot prove i did anything if the code is removed then if your host look at the logs of you actually making me staff it's your own issue im sure strip tags would help with this issue google it mate
  21. Re: [MOD UPDATE} V2 Themecreator 100% Completed Working Copy   nice idea mate.. +1
  22. Re: {REQUEST}Mccode Duping... Thank you, Vortex that was very informative
  23. Re: {REQUEST}Mccode Duping... Ok... Thank you for your time.
  24. Re: {REQUEST}Mccode Duping... oh don't get me wrong i research almost everything i've posted on google is a powerful tool is it not lol but she and many others consider that they are better because they did this and did that but really all the newb is doing is asking for a little help on a subject he is stuck on. lol google "sql duping" tell me if you see anything worth looking at because i've tried all kinds of things referring to this topic. i even tried you're script Luke. just not getting anywhere with it, i only ever ask a question if i am really stuck and sadly the only person i know who is available enough is Nyna but even then she does persist on making me figure it out (i know that probably a way or making me learn harder) but it is semi annoying.
  25. Re: {REQUEST}Mccode Duping...   I merely pointed out that I had already answered the question fully. If you can't be bothered to go and read up on these, discover which is the best suited to your environment, and then perhaps ask questions on implementing them - I see no point in furthering this. Why you are so closed off to doing your own research is beyond me. I have spent years reading up, experimenting, <censored>yzing queries, and testing environments to see what method works best in what scenario. Your little games with a few users have to be handled totally differently to tables with +1,000,000 rows of data a day, or tables with in excess of 100,000,000 rows. Exactly how do you expect an answer to suit *you* when you cannot comprehend the basics, or supply information which *may* make it a little easier to decide on a course of action and suggestions? When you have actually done so of your *own* research, seen the problem ideally first hand, and have made some tentative steps at providing a solutions that works in all cases, *then* feel free to come back and ask. I'm sorry but is this or is this not a help forum? your staff therefor you help... and referring to all the members has idiots doesn't go down well. You're stuck up, just because you run several servers (but have time to comment on posts on a forum) you think you're like gods gift maybe when you learn how to interact with people rather than just dispespect people who are trying to better themselves. You will be appreciated but frankly at this point i find you a annoying disturbance. Everyone says "oh goto CE you'll learn" but all i have seen is obnoxious staff and the members who try to learn just get shit on...
×
×
  • Create New...