Jump to content
MakeWebGames

Lithium

Members
  • Posts

    1,099
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Lithium

  1. Query was INSERT INTO here VALUES('3',,'hello','hello train',0,,0, 0, 10,'demo/heyman.png') second and sixth parameters empty cause the error, so check your vars, cause they are either not passing or they are incorrect...
  2. filter input on server side generated vars? as i said... useless :)
  3. Quite useless... as there is no need to filter user input!
  4. Password: <input type="password" name="username"/><br /><br /> Should be Password: <input type="password" name="password"/><br /><br />
  5. If you do want a few serious quotes... just say what you need, plus any timeline you have / think is enough for what you need, wait for the quotes and discuss with potential "programmers" upon seeing their quotes. If you are waiting for a few programmers to contact you without the minimum knowledge on what is what... you will have a bad deal, no matter how good you think it comes. Also, some people around here tend to ask how much you can reach for something... that is also a no deal (means you can get cheaper and most likely better/similar quality work) :) this is my personal opinion, not trying to reach anyone just in case! :)
  6. CLEAR does not necessarily means DELETE. :)
  7. Add a simple query (to daily cron) to clear up lists if donator days are zero and lists (both friends and enemies) contain entries
  8. nobody wrote linux on js actually... that is simply an interface in JS to handle it. Quoting the author itself... "Javascript terminal Although I could have reused the excellent termlib, I decided to write my own because I was curious to see how it could be done. ... Linux distribution I compiled a 2.6.20 Linux kernel" And no it is nothing new as well! ;)
  9. quite not... the script will only run if whatever award is 0 otherwise condition is false... so the multi awards to each merit would not apply there...
  10. Nice, simple and clean! Good work. And the progress bars are indeed nice as well ;)
  11. Same thing less code $enperc = ($ir['energy'] > $ir['maxenergy']) ? $ir['maxenergy'] : ($ir['energy']/$ir['maxenergy']*100); $wiperc = ($ir['will'] > $ir['maxwill']) ? $ir['maxwill'] : ($ir['will']/$ir['maxwill']*100); $experc = ($ir['exp'] > $ir['exp_needed']) ? $ir['exp_needed'] : ($ir['exp']/$ir['exp_needed']*100); $brperc = ($ir['brave'] > $ir['maxbrave']) ? $ir['maxbrave'] : ($ir['brave']/$ir['maxbrave']*100); $hpperc = ($ir['hp'] > $ir['maxhp']) ? $ir['maxhp'] : ($ir['hp']/$ir['maxhp']*100);   or... you can try this one... fixed size progress bar
  12. @DJK funny... i had something similar made on the same site
  13. at a glance, the first function will only be true if it matches the specified quantity, a small fix will return true if the user has the item no matter the quantity. and a small redraw to use less code! untested but should work!   function item_have($user, $item) //checks if the user has the item in their inventory { global $db; $item = ($db->num_rows($db->query("SELECT inv_itemid FROM inventory WHERE inv_userid=$user AND inv_itemid=$item AND inv_qty>1"))) ? 'true' : 'false'; }
  14. Cron goes either to cron_day file if you have it, or weekly cron file, depending if you want to give daily or weekly interest to players!
  15. hmmm on selling multiply the value for .66 and you're done, no need for all that :|
  16. Quite right. Item market doesn't exist on Lite, though you have another mod from nicholas where you have the full tables to use on item market. Nicholas Mod So choose your best option, and decide. My version is plain replacement, Curt's mod has a few things added, Nichola's one has logs added to it. Nichola's one might be the best choice has you don't have the tables (sorry Curt :P)
  17. If you already have the Sell option on your inventory, what is the point to have the same option on the market where you go to buy not to sell?
  18. It is not supposed to have it...
  19. Check your items names for ' in the middle of the names or some odd character, if you have them you need to escape it \ ... or simply paste the code to see where the issue resides
  20. I think halfbaked means making item market and crystal market the same, which as it is now... it would need a big rewrite of the code. @Curt: Nice job :)
  21. People, tend to come back occasionally, i speak about myself, being apart 6+ month in a row, from time to time. Also, as Jordan pointed, old topics are pushed, for the obvious reasons, new comers. It annoys me, and i bet most of the people who is around for a couple years, to see the same questions over and over again in new threads. So if a new user picks up an old thread, which in some cases as already some explanation on their doubts... i don't see the issue there!
  22. @ Curt, improvements are always welcome, and why should i mind if someone uses my work to make it better? ;)
  23. @ Nicholas: thanks for your ideas, and sadly, i won't be doing any public changes to this script, and even less placing anything on the marketplace!
  24. $aa=mysql_query("SELECT * FROM missions WHERE id=".$ir['mission']." AND attack_value=".$_SESSION['mission_attack'])."",$c);
  25. i was replying to Equinox misfortune on not finding is_pos() (which is a perl function to check if the number is positive. ;) @Dominion: well... the sky is the limit... and my ideas are just that... mine! i would like to see where people could drive with the base ;)
×
×
  • Create New...