
HauntedDawg
Members-
Posts
476 -
Joined
-
Last visited
-
Days Won
7
Content Type
Profiles
Forums
Events
Everything posted by HauntedDawg
-
Thanks for giving us the opportunity to develop modules as a contest. Also, how many module's allowed per user? Another note is that, I personally would prefer to be the runner-up, more in it for the developer. A good point in this would be to take all the potential modules, and allow the developer to sell them without the dev license. I mean, as far as i understand, your trying to build publicity. So a good point would be to allow the potential modifications to be sold, and only allow those one's to be sold. Then if they want to sell more, they would require the dev license.
-
Do you have prate and mrate in your DB? Run this query, ALTER TABLE `users` ADD `mrate` INT(5) UNSIGNED DEFAULT '0'; ALTER TABLE `users` ADD `prate` INT(5) UNSIGNED DEFAULT '0'; Then try, or post your error's
-
Not everyone has a smart phone. I for one, deny having a smart phone due to certain thing's, Cispa!
-
People can own a cellphone you know.. and no im not agreeing to him.
-
Thats all? A one liner? Must be something unique, solid about your game idea?
-
Happy birthday old fart!
-
Thread opened in 2011, resurected on 04-27-2012, 03:24 AM. Doubt that redsnake420 is active still. Altho, im sure he will remember me as much as i do him. He did spend his hard earned cash on paid mod's as he purchased a couple of mine too.
-
You don't invest into waste space. On another note, if he had a bit of thought, and if it was me, i would pump in $150 into all these out of the box games to give them a design xD
-
I need help on my menu. Its to do with css aswell.
HauntedDawg replied to LearningCoder's topic in Web Developement
http://www.lmgtfy.com/?q=zebra+striped+tables -
I read the story, cronus has said multiple time's he is busy with exam's & that he is sorry. I've seen hosting providers only respond 28 hour's later, paypal themselves 42hr - 4days, but ruining a collaboration thread for 3 day's which if im correct, was over a weekend, and i would not even bother to reply over a weekend! In my point of view, 3 day's is nothing compare to 3 year's (MCCodes), you still got your support and that's what matter's. If it was urgently needed, then you apply some where in your ticket URGENT!
-
Because when you have a game that its not capable of reaching his mind set, he does not have to invest in it? It's like saying, Hey invest in me, im on this forum, you know me, dont invest in that huge company thats going to bring you triple your profit. @rulerofzu: I do not see him saying "Please let me invest in rulerofzu.com". So stop trying to bring down some one Else's opportunities
-
You are all bitching because on Cronus website is say's 24 hour response time? Go bitch together.. some where else. Back on topic, Skooda's host has now received a DMCA take down notice :), since look's like no one else want's to.
-
$player->formattedname Means its trying to find a public $formattedname = ''; var. But your formattedname is a function, so make it look for a function by adding () to the end like $player->formattedname()
-
Yes. Lithium is correct, To solve this: require "class/class_db_{$_CONFIG['driver']}.php"; must become require "../class/class_db_{$_CONFIG['driver']}.php";
-
Bot detect mod request (Will pay)
HauntedDawg replied to Hendrickson's topic in Requests & In Production
Lets do some actual math first before you put this idea forth. Lets say, i have 100 brave, each crime takes 10 brave, each crime gives 100$ and every 5 minute's i get 10 brave. So, the user can quickly hit their bookmark or a script, which would result in the user being only able to make 10 crimes (8/10 successful). Would result in $800 given to the user, 5 minute's later and he can do it again only making it 1 crime. Theoretically it's impossible for a user to do 90 crime's in a minute, as they would require to have 900 brave. And if im correct, that would lead the player to having somewhat a level in the 400's? -
function check_rank_level() { global $c, $db, $ir; $data_array = array( 2 => array('exp_needed' => 1000, 'money_gained' => 500, 'points_gained' => 20, 'items_id' => array(20 => 1), 'event' => 'Rank 2 Recieved!'), 3 => array('exp_needed' => 2000, 'money_gained' => 500, 'points_gained' => 20, 'items_id' => array(20 => 1), 'event' => 'Rank 3 Recieved!'), 4 => array('exp_needed' => 3000, 'money_gained' => 500, 'points_gained' => 20, 'items_id' => array(20 => 1), 'event' => 'Rank 4 Recieved!') ); $next_level = ($ir['rank_level'] + 1); if(!in_array($next_level, $data_array)) {return false;} if($ir['rank_exp'] >= $data_array[$next_level]['exp_needed']) { mysql_query('UPDATE `users` SET `rank_level` = (`rank_level` + 1), `money` = (`money` + '.$data_array[$next_level]['money_gained'].'), `crystals` = (`money` + '.$data_array[$next_level]['points_gained'].'), `rank_exp` = 0 WHERE `userid` = '.$ir['userid']); foreach($data_array[$next_level]['items_id'] as $arg => $qty) { mysql_query('INSERT INTO `inventory` VALUES(NULL, '.$arg.', '.$ir['userid'].', '.$qty.')'); } event_add($ir['userid'], $data_array[$next_level]['event']); } } check_rank_level(); function display_rank($user, $request = 'rankName') { global $db, $c; $user = mysql_query('SELECT `rank_level` FROM `users` WHERE `userid` = '.$user); if(!mysql_num_rows($user)) {return false;} $user = mysql_fetch_assoc($user); $rank_array = array( 1 => array('rankName' => 'elite', 'rankImage' => ''), 2 => array('rankName' => 'super elite', 'rankImage' => ''), 3 => array('rankName' => 'super kindle', 'rankImage' => '') ); return ($request == 'rankName') ? $rank_array[$user['rank_level']]['rankName'] : '<img src="'.$rank_array[$user['rank_level']]['rankImage'].'" />'; } Updated to work off your inventory table. And added the ability to add the quantity of an item EG: 'items_id' => array(itemid1 => qty1, itemid2 => qty2) Let's say itemid1 is itemID 40 and qty1 is 3, itemid2 is itemID 23 and qty is 50. 'items_id' => array(40 => 3, 23 => 50); If you need anything else then just ask.
-
On a certain PHP version it does break i don't remember which tho.
-
function check_rank_level() { global $c, $db, $ir; $data_array = array( 2 => array('exp_needed' => 1000, 'money_gained' => 500, 'points_gained' => 20, 'items_id' => array(20), 'event' => 'Rank 2 Recieved!'), 3 => array('exp_needed' => 2000, 'money_gained' => 500, 'points_gained' => 20, 'items_id' => array(20), 'event' => 'Rank 3 Recieved!'), 4 => array('exp_needed' => 3000, 'money_gained' => 500, 'points_gained' => 20, 'items_id' => array(20), 'event' => 'Rank 4 Recieved!') ); $next_level = ($ir['rank_level'] + 1); if(!in_array($next_level, $data_array)) {return false;} if($ir['rank_exp'] >= $data_array[$next_level]['exp_needed']) { mysql_query('UPDATE `users` SET `rank_level` = (`rank_level` + 1), `money` = (`money` + '.$data_array[$next_level]['money_gained'].'), `crystals` = (`money` + '.$data_array[$next_level]['points_gained'].'), `rank_exp` = 0 WHERE `userid` = '.$ir['userid']); foreach($data[$next_level]['items_id'] as $arg) { mysql_query('INSERT INTO `inventory` (`user_id`,`item_id`)VALUES('.$ir['userid'].', '.$arg.')'); } event_add($ir['userid'], $data_array[$next_level]['event']); } } check_rank_level(); function display_rank($user, $request = 'rankName') { global $db, $c; $user = mysql_query('SELECT `rank_level` FROM `users` WHERE `userid` = '.$user); if(!mysql_num_rows($user)) {return false;} $user = mysql_fetch_assoc($user); $rank_array = array( 1 => array('rankName' => 'elite', 'rankImage' => ''), 2 => array('rankName' => 'super elite', 'rankImage' => ''), 3 => array('rankName' => 'super kindle', 'rankImage' => '') ); return ($request == 'rankName') ? $rank_array[$user['rank_level']]['rankName'] : '<img src="'.$rank_array[$user['rank_level']]['rankImage'].'" />'; } Untested. Usage: display_rank($their['userid'], 'rankName'); for the rank name display_rank($their['userid'], 'rankImage'); for the rank image Reason i made it 2 seperate call's is because i do not know where you want your image to your text. This is untested, and please note that this will break your script as i do not know the inventory table, so it will not add item's. mysql_query('INSERT INTO `inventory` (`user_id`,`item_id`)VALUES('.$ir['userid'].', '.$arg.')'); Anyone care to give me the fields to the users inventory? Also, It's very easy to add on to this. at the moment it's got 2,3,4 ranks to check. To add another just copy a line from the $data_array as so: 4 => array('exp_needed' => 3000, 'money_gained' => 500, 'points_gained' => 20, 'items_id' => array(20), 'event' => 'Rank 4 Recieved!') Becomes 4 => array('exp_needed' => 3000, 'money_gained' => 500, 'points_gained' => 20, 'items_id' => array(20), 'event' => 'Rank 4 Recieved!'), 5 => array('exp_needed' => 4000, 'money_gained' => 500, 'points_gained' => 20, 'items_id' => array(20), 'event' => 'Rank 5 Recieved!') NB: If adding more ranks, remember that each line has to have an ended comma (,) EXCEPT for the last, or it will break. EG: $data_array = array( 2 => array('exp_needed' => 1000, 'money_gained' => 500, 'points_gained' => 20, 'items_id' => array(20), 'event' => 'Rank 2 Recieved!'), 3 => array('exp_needed' => 2000, 'money_gained' => 500, 'points_gained' => 20, 'items_id' => array(20), 'event' => 'Rank 3 Recieved!'), 4 => array('exp_needed' => 3000, 'money_gained' => 500, 'points_gained' => 20, 'items_id' => array(20), 'event' => 'Rank 4 Recieved!'), ); Will break $data_array = array( 2 => array('exp_needed' => 1000, 'money_gained' => 500, 'points_gained' => 20, 'items_id' => array(20), 'event' => 'Rank 2 Recieved!'), 3 => array('exp_needed' => 2000, 'money_gained' => 500, 'points_gained' => 20, 'items_id' => array(20), 'event' => 'Rank 3 Recieved!'), 4 => array('exp_needed' => 3000, 'money_gained' => 500, 'points_gained' => 20, 'items_id' => array(20), 'event' => 'Rank 4 Recieved!') ); will not break. You can have more than 1 item and you can customize the event for each rank along with the money and crystals/points gained. If you do not want to give any money, simply make it 0, same for points gained, and if you do not want to give items then make the items_id => array(20) to items_id => array(). This is untested, so any error's post up, either SRB or myself will fix.
-
If your using V2, make sure on your crontab (on your host control panel), you should have something like http://game.com/cronfile.php?code=somerandomcodehere If you do not have the ?code=somerandomcodehere, you can get the ?code= from your config.php file
-
Admins, close this thread :P you can clearly see his a kid.. Loved his "Are you talkin to me nig..!!" comment :P