dnenb
Members-
Posts
325 -
Joined
-
Last visited
-
Days Won
2
Content Type
Profiles
Forums
Events
Everything posted by dnenb
-
Loving this. Thanks man!
-
deviant wars script aka KOS clone aka lords script NOW OPEN SOURCE
dnenb replied to advocaite's topic in Game Projects
I love the gameplay you get with this engine. Similar to that of kingsofchaos, which I spent countless hours on playing when I was younger ^^ This works as a medieval game (see my signature), as a space game, as a war game in general (any time era).. etc. But you gotta update the code to current standards. That takes a little work. -
What bertrand said.. But I like Java! I've created simple apps of my games, and it's worth knowing a little java so that you can do that.. Gets your game out there:)
-
deviant wars script aka KOS clone aka lords script NOW OPEN SOURCE
dnenb replied to advocaite's topic in Game Projects
You said the script had some insecurities? -
I just wanna make sure I can use the script, if the creator wasn't the person I bought it from :) Thanks!
-
Thanks. I recognize the folders with underscores in the names. Do you have contact info to the original creator?
-
Can you tell me where to find more info about the script, if it is indeed a copy of some other? I wouldn't say that I'm ripped off, as I think the script is well worth what I gave for it. If the seller didn't have permission to sell it, well then that's another thing altogether..
-
See how I've done it in Mobile Mafia (link in signature). Players can register with Facebook, but that just means that they can login (and register) easy as long as they are logged into Facebook. It's still not a "Facebook app". Send me a message if you wanna set it up that way.
-
I love this idea! What do you think about doing it like this? A check on login: if($ir['laston'] < time()-259200) //if more than three days ago { $db->query("UPDATE `users` SET `jobs`=0, `jobrank`=0"); event_add($ir['userid'],"You have been fired from your job as you have missed 3 days of work."); } (haven't tested this, just want an opinion)
-
Thanks! I'm adding this to my game. The code I used: <?php require_once('../globals.php'); echo "<h3>Random items</h3>"; if(isset($_GET["random"]) AND $_GET["random"]=="go") { $sql = "SELECT * FROM `random_items` WHERE `user` = '{$ir['userid']}'"; $q = $db->query($sql); if($db->num_rows($q) == 0) { if ($ir['crystals'] >= 50) { // Create list of valid items $items = array(); $sql = mysql_query("SELECT `itmid`,`itmname` FROM `items` WHERE `itmbuyprice` < 100000 AND `itmbuyable` = 1"); while ($item = mysql_fetch_assoc($sql)) { $items[] = array('id' => $item['itmid'], 'name' => "{$item['itmname']}"); } $amount = mt_rand(2,5); echo 'You have collected ' . $amount . ' random items for today. The items you have been given, are:<ul>'; for ($i = 1; $i <= $amount; $i++) { $give = $items[ mt_rand(0, (count($items) - 1)) ]; echo '<li>1x ' . htmlentities($give['name'], ENT_QUOTES, "UTF-8") . '</li>'; item_add($ir['userid'], $give['id'], 1); } echo '</ul>'; $sql = "UPDATE `users` SET `crystals` = `crystals` - 50 WHERE `userid` = '{$ir['userid']}'"; $db->query($sql); $sql = "INSERT INTO `random_items` (`user`) VALUES ('{$ir['userid']}')"; $db->query($sql); } else { echo "You don't have enough crystals."; } } else { echo "You have already done this today."; } $db->free_result($q); } else { echo "Here you can once a day claim a random amount of random items at the cost of 50 crystals. <a href='?random=go'>Click here to claim.</a>"; } $h->endpage();
-
Working on fixing everything atm. Some examples are: - it does not work well with the old house system, causes errors - the logic for moving into/out of houses if really weird and does not work as intented - staff function for adding upgrades to all houses at once doesn't work as intended
-
I feel I gotta say this here: Sniko has asked ColdBlooded to refund me as Sniko can't suport this mod anymore. This mod adds functionality to the game that my players love, but there are several bugs in this mod that can mess up your game.
-
Thanks! Gonna use this in my game :)
-
Thanks:) I was expecting a few buys at once but no one has bought this service yet. Oh well:)
-
I study maths and informatics, but a couple of the informatics-programs at my uni doesn't require calculus. I think you could do just fine as a programmer without, but you will have to have subjects on logic and algorithms during your bachelor.
-
I've seen some forums have a "Thank You"-button you can click to show your appreciation of a post without giving reputation or replying "thanks". Can that be added to this forum? It will encourage people to post guides and helpful comments, and it will be easier to show appreciation.
-
Starting over with a script from the bottom - what do I need to learn?
dnenb replied to dnenb's topic in Web Developement
Thanks man! -
Escaping user input and losing newlines in forum posts
dnenb replied to dnenb's topic in Engine Support
I will look at a wysiwyg-editor, but I have a feeling that will come with problems for some of my mobile players. As for my original question: Do any of you know why I'm not getting the newlines into the db? Is it the magic-quotes in globals.php? Where do you mean? I think whatever the user inputs goes through some function that removes newlines before it gets in my db. -
Escaping user input and losing newlines in forum posts
dnenb replied to dnenb's topic in Engine Support
Nah I haven't. Suggestions? -
Starting over with a script from the bottom - what do I need to learn?
dnenb replied to dnenb's topic in Web Developement
Thanks! I'm gonna try it :) -
Hey guys! I'm using mccode with MM and another script I bought with ME (see my signature), but I'm noticing more and more that I need to move to new coding standards. Many issues I'm facing while improving my games has to do with the fact that they're using old and deprecated functions, and this has me thinking that it might be worth starting from scratch. If I do so: What do I need to learn before I start? I want to do it object oriented, and I want a template engine so that players can pick between layouts. I'd be very glad if you guys could add to the list below and share your experiences if you've been in the same situation. PDO jQuery some templateengine
-
Escaping user input and losing newlines in forum posts
dnenb replied to dnenb's topic in Engine Support
Doesn't work as there doesn't seem to be any \n's (or similar) in what's inputted into the db. -
Hey guys, I have a quesiton about the formatting of posts in the mccode v2 forum. It looks like the posts are stored without any newlines in the database, and I'm not sure they're being removed. Is it the magic-quotes codeblock in globals.php? My problem is this: A player writes a post like this But when reading the post in the forum it looks like
-
Wow, that's impressive. Can you give a hint of his prices?
-
Ran into the old problem again today. I think the problem was caused by the fact that players were able to sell their houses even though they were moved into them. So when selling their houseid_row-value didn't change back to 0.