CLANG Posted January 10, 2009 Posted January 10, 2009 I dont know if this was previously done but I was bored and just made it so I thought id share it. Its a VERY VERY simple mod I know so please dont comment on that! I am just giving it for free for people who might want to use it and cant be bothered making their own. Basically users type in a question and the magic 8 ball says a random answer. I have added 25 random answers but you can add more if you like. Any problems please let me know. But it works for me. magic8ball.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Magic 8 Ball Image (magic8ball.png) Screenshots: Took a few tries to get the comment on this :-D Enjoy :D 1 Quote
CLANG Posted January 10, 2009 Author Posted January 10, 2009 Re: [mccodes v2] Magic 8 Ball Please comment on it and give me a +1 if you use it. Thanks Quote
Karlos Posted January 10, 2009 Posted January 10, 2009 Re: [mccodes v2] Magic 8 Ball Aren't you even going to try and secure user input? Quote
CLANG Posted January 10, 2009 Author Posted January 10, 2009 Re: [mccodes v2] Magic 8 Ball Im not good at securing :oops: Maybe you could secure it?? Quote
MyGunWars Posted January 10, 2009 Posted January 10, 2009 Re: [mccodes v2] Magic 8 Ball :-D Nice Mod I Will Add It Later To My Game Quote
Saha Posted January 10, 2009 Posted January 10, 2009 Re: [mccodes v2] Magic 8 Ball Well Clang considering it is a very simple mod it wont be hard to secure just use the no.1 coding friend =??? And find out how to other then that i really dont see the point in this mod, its a waste of space people will click to see what it is use it once realise its a waste of time and leave it.... Quote
Uridium Posted January 10, 2009 Posted January 10, 2009 Re: [mccodes v2] Magic 8 Ball Well Clang considering it is a very simple mod it wont be hard to secure just use the no.1 coding friend =??? And find out how to other then that i really dont see the point in this mod, its a waste of space people will click to see what it is use it once realise its a waste of time and leave it.... Stupid comments like this are what stop Scripters from progressing. regardless of what you think of it keep it to yourself..... +1 for the script from me though.. He's shown he can use initiative and invent ideas of his own.. Weldone :) Quote
POG1 Posted January 10, 2009 Posted January 10, 2009 Re: [mccodes v2] Magic 8 Ball instead of all those ifs try something like this... You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
CLANG Posted January 10, 2009 Author Posted January 10, 2009 Re: [mccodes v2] Magic 8 Ball Well Clang considering it is a very simple mod it wont be hard to secure just use the no.1 coding friend =??? And find out how to other then that i really dont see the point in this mod, its a waste of space people will click to see what it is use it once realise its a waste of time and leave it.... Stupid comments like this are what stop Scripters from progressing. regardless of what you think of it keep it to yourself..... +1 for the script from me though.. He's shown he can use initiative and invent ideas of his own.. Weldone :) Thanks a lot mate and yes your comment is really true. While influencing comments are always great, comments like 'Terrorist' always take the most effect which is why some scripters dont progress. Im happy with what I did and im sorry some people will find it useless..But if you find it useless why cant you just NOT use it and NOT comment. It would help everyone :) Thanks illusions ;) Quote
Saha Posted January 10, 2009 Posted January 10, 2009 Re: [mccodes v2] Magic 8 Ball I comment how i did because i think this mod is pritty pointless i did not at any point criticize his script, style, skills etc... i just expressed my view of the mod. Yes you have coded it well, could look better (images) and as for the comment from illusion i think you should read my post and think about what i said first... Quote
CLANG Posted January 11, 2009 Author Posted January 11, 2009 Re: [mccodes v2] Magic 8 Ball I comment how i did because i think this mod is pritty pointless i did not at any point criticize his script, style, skills etc... i just expressed my view of the mod. Yes you have coded it well, could look better (images) and as for the comment from illusion i think you should read my post and think about what i said first... I understand what you mean. Quote
codestryke Posted January 12, 2009 Posted January 12, 2009 Re: [mccodes v2] Magic 8 Ball Aren't you even going to try and secure user input? Ummm, nothing is hitting the database, nor being displayed to other users. Could you please tell us all "Captain Security" what the hell is exploitable? Really I wanna know... Quote
Cronus Posted January 12, 2009 Posted January 12, 2009 Re: [mccodes v2] Magic 8 Ball Ummm, nothing is hitting the database, nor being displayed to other users. Could you please tell us all "Captain Security" what the hell is exploitable? Really I wanna know... I was just about to ask the same thing. The mod doesn't take any info from the database, nor does it insert any. What exactly is the hacker going to break into? The html on the page? Quote
blue Posted January 12, 2009 Posted January 12, 2009 Re: [mccodes v2] Magic 8 Ball Good mod. lol @ cronus and coderstryke..They so use to Nyna jumping in on the Security Flaws its become a habit i suppose. (Nothing personal Nyna, Just some Humor) Quote
Zero-Affect Posted January 12, 2009 Posted January 12, 2009 Re: [mccodes v2] Magic 8 Ball lmao early morning humour... i know this is obvious but saying it does no queries is rather incorrect globals is called therefore it selects all sorts lol just though i'd have a laugh when you all reply with it can't be exploited lol Quote
Eternal Posted January 12, 2009 Posted January 12, 2009 Re: [mccodes v2] Magic 8 Ball I may be wrong i just thought this would be a time to learn how to write it without looking up everything.. i am a noob at this still so i hope it works...! You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
POG1 Posted January 12, 2009 Posted January 12, 2009 Re: [mccodes v2] Magic 8 Ball The hacker you have a lot of un nessisary code. There are no querys to there is not much point of securing inputs You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Eternal Posted January 12, 2009 Posted January 12, 2009 Re: [mccodes v2] Magic 8 Ball The hacker you have a lot of un nessisary code. There are no querys to there is not much point of securing inputs You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. but having everything else brought to the table we can. You don't need a answer=4 or so to preform a sql injection. basicly anything is injectable and securing it against sql inputs was the go i have a chat script that used name inputs to get the user and it had no other sql only include globals now how did i manage to dump my database into the chat??? Quote
POG1 Posted January 12, 2009 Posted January 12, 2009 Re: [mccodes v2] Magic 8 Ball think about it; an SQL injection is done in a mySQL query, there are no queries on the page then no injections. Quote
Zero-Affect Posted January 12, 2009 Posted January 12, 2009 Re: [mccodes v2] Magic 8 Ball lol why edit it lol it's perfect the way it was :-D Quote
CLANG Posted January 12, 2009 Author Posted January 12, 2009 Re: [mccodes v2] Magic 8 Ball Thanks zero-affect lol. I was actually thinking that...no sql queries....so how can there be sql injections? However as I said before i know absoloutely NOTHING about security. I better read up about it in my free time lol. I dont usually make mods which is why im not so good. But there is no harm in trying and no harm in learning so I just want everyone to know that no matter what you make, some people will always critisize it even if they are wrong. Im afraid thats just life. But just think about the amount of people who actually like it...Most of the time the proportion is more. So whatever you make, just dont worry, and be happy! And by each step you take, you'll get better and better....until eventually you get to Nynas stage :-D Quote
Zero-Affect Posted January 12, 2009 Posted January 12, 2009 Re: [mccodes v2] Magic 8 Ball i don't actually think it's possible but im sure someone with more experience would confirm im wrong lol they do that alot Quote
The Bonded Game Posted June 2, 2011 Posted June 2, 2011 Ok so maybe its a simplistic mod with no real purpose. Who cares? Have you seen most gamers, they will play it until they are sure they have seen all the answers. And anything that keeps your gamers happy and on site longer is a good thing. I have added this one and made a few changes to the responses. Took out some strange that did not seem to be serving any purpose in the response section, and changed the name. Great work!! Plus One to you!! Quote
rulerofzu Posted June 3, 2011 Posted June 3, 2011 Really cant we have all posts 2010 or older locked. Is there any need to voice your opinion on a thread 3 yrs old. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.