-
Posts
912 -
Joined
-
Last visited
-
Days Won
7
Content Type
Profiles
Forums
Events
Everything posted by Coly010
-
Military RPG Story MEGA is a militant group based in the Middle East. Their aim is to merge all people and all countries under the control of one extreme Leader. They have destructive weapons at their disposal and are not afraid to use them to achieve their ideals. Anything or anyone that stands in their way becomes a casualty of war. They have created a World War unlike any other. Powers around the world are joining forces to combat the threat, but many fear that they are too late. MEGA has already gained control over most of the Middle East, now they’re looking elsewhere. As a soldier in the army, you’ve been tasked to fight against MEGA. You are in charge of your own troops, and ultimately you will lead the fight against MEGA. Are you up to the challenge? General Objective Build a brigade with the best troops to overcome enemies and to halt the progress of MEGA. Travel across the world finding the best troops to add to your brigade to increase its strength then use your brigade to complete missions, war against players and battle MEGA. Level up your player by proving your worth as a leader by completing missions and going to war against other players. Features - Map System - Three levels of travel are involved: World, Continental, Regional. From the world map you choose a continent to travel to. Then you choose a region you want to explore. See Screenshots for better description. - 2D Map System - Explore different regions around the world, enlisting troops, buying items and battling enemies! - War System - Go to war against bots and players to increase your Rank in the Army! - Missions - Complete missions with your brigade to increase your Rank in the Army and gain much needed money! - Forums and Chat - Socialise with other players and discuss anything from game related topics to what you ate for dinner! - Map Ownership - Buy positions of the map to increase your own power and territory. Build buildings on these positions to generate some money for yourself. You can build either a bank, a market or a mess hall. - In-Game Mail - Communicate privately with other players using Letters. - Storyline Quests - Currently a work-in-progress, soon to be released. Missions will take you through the storyline of the game in a general campaign style. Campaign Mode It is finally completed! The campaign mode has now been added to the game and there is now a playable storyline! Currently it only has two missions but more will be added over time and the story will develop! It has been planned out completely. My excitement is building! Upcoming Features - Casino - Rework of Alliances - Side Quests Screenshots [ATTACH=CONFIG]1872[/ATTACH] [ATTACH=CONFIG]1873[/ATTACH] [ATTACH=CONFIG]1875[/ATTACH] [ATTACH=CONFIG]1876[/ATTACH] [ATTACH=CONFIG]1874[/ATTACH] Some Info I bought the core of this game from [MENTION=68511]gamble[/MENTION] and have been working on it ever since. It is using a custom game engine utilising CodeIgniter. It is designed for computers and laptops. On the map you can use arrow keys to move about but there are buttons there also. Design was by [MENTION=65100]W3Theory || Peter[/MENTION] My Personal Aims For This - Obtain an active and friendly user base - Have it regularly updated
-
Buying a service or product comes with certain purchasing protections. Donation is different its a voluntary payment with nothing expected in return. Therefore, despite donations giving users a currency that they can only use to use the casino, its still only simulated gambling.
-
Slot Graphics looks good mate, the abundance of features is interesting. There isn't a hop I could convert this to my own game engine without a lot of work, but I'm considering adding a casino into it at some point. Gambling is always a fun thing to do.....
-
Possibly so, but it would save me a lot of time in filezilla... :P
-
[MENTION=65622]Hedge[/MENTION] Just something else I have thought of. If you are creating your own Model/View/Controller System, I think it might be worth having it so that the view file, the model file and the controller file have their own directory, with some sort of file (maybe xml?) which gets a standard call and is used to load the MVC of that particular plugin or whatever you want to call it. I have an MVC set up at the minute using CodeIgniter I believe and I personally find it a pain in the ass in ftp to go from one folder, to another folder to another folder, when I'm trying to work on one particular feature
-
Well my game is military themed, so art of various troops, gun attachments such as extended mags, reflex sights, grenade launchers, grips, then things like different types of ammos, armour, bullet proof vest / helm, grenades, c4. Then like care packages. lol Don't expect any of these im just throwing out ideas.
-
Looking forward to seeing the final product !
-
lol when it comes to maths your testing the wrong person ;) currently studying maths and further maths for A-Level with a side of physics aha. My brain is practically maths lol
-
Dislikes: Buggy as hell, code has absolutely no structure to it. Code is messy and all over the place. All functions are in the one file, preferably I'd have collections of similar ones in different files. Like time functions in a time file, item functions in an item file. Time consuming to edit or make changes when creating certain styles Mixture of css in external file and css in the PHP files, meaning changing templates and design can be a pain in the ass. Overuse of echo in each php file. I'd preferably have it that all PHP is executed then the page is created and displayed. That way it separates the logic from the design making it easier to find and fix bugs as well as add new features.
-
You've 23 numbers there so it would actually be a 3 in 23 chance of winning and a 20 out 23 chance of losing.
-
[V2] Mod request! Achievements and country flag.
Coly010 replied to kingsaint's topic in General Discussion
Not true depending on the set up. Using a database you can have a table for achievements. State an achievement type, money, level, stats, kills etc, then have a column for the value needed. 100 kills, level 100, etc. then you just run code to check if a player had completed any of these, if they have credit them the achievement. Because of the setup then, the owner can add more achievements through the staff panel, as long as you have enough different achievement types covered. [MENTION=68472]kingsaint[/MENTION] I could do the achievement one, as for the country flag, with a bit of googling I might be able to do that. But as I'm almost at release of my own game I need to know if it'll be worth my time to put it plainly -
I wouldnt say I know a lot of jQuery but I ran across a similar problem in one of my other projects. Initially, for this to work I believe, you need to have a function that sets your timeout. Eg. $(document).ready(function() { var myTimeout; var ajaxSuccess = 0; myFunction(); //Inital call because it displays data function setMyTimeout() { myTimeout = setTimeout(myFunction(), 1000); } function myFunction() { $.ajax({ //non important }).done({ //makes the data display in the header }).success({ ajaxSuccess = 1; }); } if(ajaxSuccess == 1){ $(window).focus(function() { if (!myTimeout){ setMyTimeout(); } }); $(window).blur(function() { clearTimeout(myTimeout); }); } }); That is completely untested, it may work, but at the very least I hope it gives you something to think about
-
Yeah, or I think you may be able to use SQL Rand(): SELECT hint_text FROM hints ORDER BY RAND() LIMIT 1
-
Yeah I'll have to go with [MENTION=65100]W3Theory || Peter[/MENTION] also , he might cost a bit more (haven't worked with him directly so don't know his prices) but is work is beyond quality. It's unbelievable. However if [MENTION=69001]Zettieee[/MENTION] is still around, he's good and cheaper.
-
Build your own, then you have full power of it, you can code only what you need, you'll be more familiar with the code and you get the added bonus that your game code is 100% unique. It's worth doing, especially if your looking for responsiveness. That way you can create the pages with that in mind rather than going through each ready made file and trying to change it so that it fits the design, which I personally find tiresome
-
Again, this won't work because you haven't either specified the awardno in the SQL statement or looped through the multiple rows retrieved from the database
-
He needed the while loop because in his where clause he wasn't specifiying which award no he was looking for, I didn't realise your code was
-
Check my post, the code at the bottom will work
-
KEEP THE WHILE! Told you before, you need to look into If Else statements properly. The code you have is saying that if the user is below level 9 and have the award tell the they have the award. If not, if they are level 10 give them the award. You haven't told it to check again whether or not they have the award. Change your first if statement to this: if ( $a['awardno'] == 2) Now your code is saying, if they have the award, tell them they have it, if not, are they level 10 or higher? If yes then give them the award $i=$db->query("SELECT `awardno` FROM `uawards` WHERE userid={$userid}"); while($a = $db->fetch_row($i)) { if ($a['awardno'] == 2) { echo "You have the award already"; die($h->endpage()); } else if ($ir['level'] >= 10) { $db->query("INSERT INTO `uawards` (`id`, `userid`, `awardno`) VALUES ('',{$userid}, '2')"); echo " <div class='desc2'> <div class='citstat'> <table class='mytable'><tr><td><center> <font color='green'>Congratulations!</font> you have earned an award!<img src='https://cdn4.iconfinder.com/data/icons/pc_de_hamburg_icon_pack/32x32/bestseller.png'>You have reached level 10</center></td></tr></table></div></div> "; } }
-
[MENTION=70347]NonStopCoding[/MENTION] thanks, I was on my phone so couldn't give an example :D
-
Your problem is that your SELECT query is now retrieving two rows from the database. That means there are two values stored in $i['awardno']. The if statement doesn't know which to use so returns false. (That's in Lay man terms) You need to loop through each result you get from the database or add a second condition to your where clause
-
Over $100mill . Seems like the economy is inflated. I know you're looking for testers, but I hate your scroll bars. I also hate that the side bars are overflowing with links. Just my opinion
-
Yeah pretty sure space counts as a character
-
ok mate, your gonna have to look up SQL Statements. this will work: <?php require_once("globals.php"); $i=$db->query("SELECT * FROM uawards WHERE id={$userid}"); $a=$db->fetch_row($i); if ($a['awardno'] == 1 && $ir['level'] == 5) { echo "You are level 5 and you have this award"; } else if ($ir['level'] == 5) { $db->query("INSERT INTO uawards (id, reason, awardno) VALUES ($userid, 'You got this award for reaching level 5', 1)"); echo "Award Added"; } $h->endpage(); ?> When inserting data into a database through a query, a string must be surrounded in quotes. i.e apostrophe at the start and the end ' Next up, a tick is different to an apostrophe. Learn the difference: Tick: ` Apostrophe: ' On my keyboard the tick key is beside 1 key, and below my ESC. You use ticks when referencing which table and columns you want from your database. $db->query("SELECT `username` FROM `users` WHERE `userid`=$userid"); A few SQL References to look at: http://www.w3schools.com/sql/sql_select.asp - SELECT http://www.w3schools.com/sql/sql_insert.asp - INSERT INTO http://www.w3schools.com/sql/sql_update.asp - UPDATE http://www.w3schools.com/sql/sql_datatypes_general.asp - DATA TYPES Use the last one to check what data type is most appropriate for your needs. For example, if you have an int that is only ever 0 or 1 int(1) would do the job, rather than int(11). Now a few PHP things to look at: http://www.w3schools.com/php/php_operators.asp - PHP OPERATORS - Pay particular attention to the comparison ones. http://www.w3schools.com/php/php_if_else.asp - IF ~ ELSE ~ ELSEIF - Get very familiar with these, a lot of programming involves it. http://www.w3schools.com/php/php_switch.asp - SWITCH - Is sometimes a useful alternative to IF/ELSE
-
I would use the term "new" loosely. There are a lot of apps on the App Store, App World and Play Store that have a simulated gambling set up, where users can buy coins to give them the ability to play the casino games etc. The only difference is that it is a subscription instead of buying coins, where the subscription gives the the credits they need to play the games. The next thing you need to consider is Age Restriction, despite being Simulated Gambling, I'm pretty sure that at the very least there will be a 13+ Age Rating set, but I wouldn't be surprised if you were told to have an 18+ rating, thus you need to make sure users don't fake D.O.B. Some gambling websites have a look up which takes name and address and verifies that a person of the given name lives in that address, and is 18+. If the system cannot verify this then ID of some form must be provided.