-
Posts
146 -
Joined
-
Last visited
-
Days Won
1
Content Type
Profiles
Forums
Events
Everything posted by Galahad
-
This hook disables a banned players ability to play the game. Run this query first - ALTER TABLE players ADD ban int(2) NOT NULL DEFAULT 0 then make a hook called ban.php and add this in it -> /hooks/ban.php <?php defined('IN_EZRPG') or exit; //Made by 21lockdown //http://www.ezrpgproject.com/forum/ $hooks->add_hook('header', 'ban'); function hook_ban($db, $tpl, $player, $args = 0) { if ($player === 0 || LOGGED_IN == false) return $args; if ($player->ban == 1) { die ("You have been banned from the server!"); } return $args; } ?> Now to ban a player. Simply set the users "ban" field to 1.
-
- 1
-
-
Question on how secure this password reset is?
Galahad replied to Mystical's topic in General Discussion
If your going to have a password reset form, you will need a confirmation email as anyone will be able to change your password. You need to have a email saying something like "Please click HERE to reset your password. If you did not send out a password reset form, please ignore this email" -
Apocolyptical - Post Apocalyptic RPG
Galahad replied to tezzmosis's topic in Requests & In Production
What i like about your game besides the layout is how every new member gets a trial of VIP status and 50 free crystals on registeration. Also another note. I have to scroll down to get to the main part of the game, the cause of this is the ads at the top. I would remove the top ads and leave the bottom ones the way they are. -
NR3 Predator Black Ops Fifa 11 COD4 http://youtube.com/NR3Gaming
-
This module puts the users stats into a image which could be used on image boards, websites etc. This could be modified to your own liking. This is just the base code. Make a file called StatsImage in modules and within that folder make a index.php file /modules/StatsImage/index.php <?php //Made by 21lockdown //http://www.ezrpgproject.com/forum/ //http://unholy-kingdom.com defined('IN_EZRPG') or exit; class Module_StatsImage extends Base_Module { public function start() { $website = "http://unholy-kingdom.com"; //Change this to change the images dimensions. Default is 530 x 15 $img = imagecreate( 530, 15 ); $background = imagecolorallocate( $img, 0, 0, 255 ); $text_colour = imagecolorallocate( $img, 255, 255, 0 ); $line_colour = imagecolorallocate( $img, 128, 255, 0 ); //$fontsize = 30; //Selecting the user from the database $player = $this->db->fetchRow('SELECT * FROM `<ezrpg>players` WHERE `username`=?', array($_GET['member'])); //Displaying the text that has been retrieved from the database. $text = "$player->username[$player->id] | Level = $player->level | Gold = $player->money | Diamonds = $player->diamonds | $website"; //$font = imageloadfont('static/fonts/visitor2.ttf'); //Writes the string. Parameters are image,font,x,y,string,color imagestring( $img, 2, 20, 0, $text, $text_colour); //Creates the image header( "Content-type: image/png" ); imagepng( $img ); imagedestroy( $img ); } } ?> The url used to get a users picture would be - http://youwebsite.com/index.php?mod=StatsImage&member=*USERNAMEHERE* You could add a link to it by adding this - <a href="index.php?mod=StatsImage&member={$player->username}"> or iframing it <iframe src="index.php?mod=StatsImage&member={$player->username}" width="530" height="15"></iframe> Screenshot ->
-
Too many forms in register. Some people want to register up by only entering the simple things like username and password etc. I had to refill all forms 4 times because i kept missing something etc. Also there are 2 boxes near the captcha code, spread the top one away from the code as people may mistake that box for the one you put in the captcha code (which is what i done).
-
I used a timestamp system but it was very buggy so i thought it would be easier to make a cron.
-
This is a 5 minute cron i quickly made to allow the game to regenerate hp and energy. Add this to the root of your game and call it cron5min.php <?php define('IN_EZRPG', true); require_once('init.php'); $code = 45645382734; //CHANGE THIS TO YOUR OWN RANDOM SET OF NUMBERS if($_GET['code'] != $code) { die("Code is invalid!"); } // Updates the player HP +5 $db->execute('UPDATE `<ezrpg>players` SET `hp`=`hp`+5 WHERE `hp` < `max_hp` '); // Updates the player energy +1 $db->execute('UPDATE `<ezrpg>players` SET `energy`=`energy`+1 WHERE `energy` < `max_energy` '); ?> and add the cron by doing this */5 * * * * http://*YouwebsiteURL*/cron5min.php?code=*YOUR CODE HERE*
-
This is just a quick module that shows which players are online. EDIT - When i post code using the code tags, it automatically adds <BR/> to every line i make. Will post up shortly <?php defined('IN_EZRPG') or exit; //21lockdown //http://ezrpgproject.com class Module_OnlinePlayers extends Base_Module { public function start() { requireLogin(); $query = $this->db->execute('SELECT `username`, `id`, `level`,`last_active` FROM `<ezrpg>players` WHERE `last_active`>?', array(time() - (60*5))); $online = Array(); while ($m = $this->db->fetch($query)) { $online[] = $m; } $this->tpl->assign('members', $online); $this->tpl->display('online.tpl'); } } ?> Posted module on PasteBin.com Link - http://pastebin.com/raw.php?i=XvWZKC8k
-
Well i do agree. But like i said in my post. This is beta testing. This is the basic playable game. There will be more unique features that will be added on, one by one, but that will take time as i have a huge checklist i am going down. You must of been visiting at the exact point i was having trouble with speed etc. It's faster now (well for me it is)
-
If this turns out good. I might actually be interested into buying this
-
Thanks that helps greatly. I'm still testing some parts out so they will be bugs. Most of these bugs is because the URL are case sensitive. For example, the diamond exhange is linking to index.php?mod=diamondexchange&act=energy but i need to change it to index.php?mod=DiamondExchange&act=energy In bank you can change the message displayed when something is deposited. (Same on any page) - Thats the way the engine is built. I read somewhere that it was to stop multiple form submission as it directs you to another page and shows the message rather than a page where the form can be refreshed. EDIT: Fixed them all :)
-
Hit a guy in last stand then someone might of revived him. Theres no other way
-
I agree with you on both points. First point - Yes they is not really as much features as other games but it's still in beta testing. I've still got a few unique ideas that i will gradually add into my game. Second point - The layout is just a temporary one untill i can get my hands on some money to buy the template.
-
Unholy Kingdom is a Medieval RPG game that is currently in BETA mode. The game is built on EzRPG and its the first time i have used it so there may be bugs. It's in beta test so if they is any bugs please report them. The game gets updated daily and all updates will be posted on twitter. Features - Facebook style PM chat IRC Chat Lots of items with images Mining PvP Bots (Monsters) Better layout Titles for profile Hall of Fame Forum Quests Recieve RARE items when attacking monsters Signature Diamonds Diamond Exchange +3 EXP on every monster only during BETA +More For changes about the game visit - http://www.ezrpgproject.com/forum/thread-321.html The layout is free from FreeCSSTemplates.com http://unholy-kingdom.com/
-
I'm developing a game and i want to try and make the users to stay and play the game rather than have a quick look then leave. What do you look for in a game for it to be playable and enjoyable? I look for a balanced leveling system that makes leveling not hard but not easy.
-
Update - Add last login IP address /modules/login.index.php Find - $query = $this->db->execute('UPDATE `<ezrpg>players` SET `last_login`=? WHERE `id`=?', array(time(), $player->id)); Add underneath - $query = $this->db->execute('UPDATE `<ezrpg>players` SET `lastip`=? WHERE `id`=?', array($_SERVER['REMOTE_ADDR'], $player->id)); And run this query - ALTER TABLE players ADD lastip varchar(16) NOT NULL Next IP module will be logs for my send gold module.
-
This is a simple modification to the register that inputs the users ip in the database upon registration. This is very useful if you want to stop cheaters who try to multi ip. Put this query in phpmyadmin - ALTER TABLE players ADD regip varchar(16) NOT NULL Now open up the register module and find this - $insert['password'] = sha1($insert['secret_key'] . $_POST['password'] . SECRET_KEY); Add below - $insert['regip'] = $_SERVER['REMOTE_ADDR']; and your done! I may make a module soon to find out all the players with the same ip. You could also add to viewplayer.tpl (if you have the module) {if $player->rank == 10} [b]IP:[/b]: {$player->regip} {/if}
-
Here is a module where players can exchange diamonds for energy, stats & money. Put this into Phpmyadmin - ALTER TABLE players ADD diamonds int(11) NOT NULL DEFAULT 11 Download the attachment and upload it to your server in the correct files Add this link in your city - [url="index.php?mod=diamondexchange"]Diamond Exchange[/url] If you want to show your amount of diamonds, add this to header underneath the gold amount - [b]Diamonds[/b]: {$player->diamonds}
-
This isn't a module but more of a update. Replace City.tpl with this - {include file="header.tpl" TITLE="Town"} <center><h1>Town</h1></center> <center>You enter your town and you see a variaty of different places you can go. You must choose. <table width="75%" border="0" align="center" class="font"> <tr> <td width="245">[b]North West[/b]</td> <td width="246">[b]North[/b]</td> <td width="246">[b]North East[/b]</td> </tr> <tr> <td>[url="index.php?mod=mailbox"]Mailbox[/url]</td> <td>[url="index.php?mod=missions"]Missions[/url]</td> <td>[url="index.php?mod=members"]Memberlist[/url]</td> </tr> <tr> <td>[url="index.php?mod=sendgold2"]Send Gold[/url]</td> <td>[url="index.php?mod=bank"]Bank[/url]</td> <td>[url="index.php?mod=topplayers"]Top Players[/url]</td> </tr> <tr> <td>[url="index.php?mod=eventlog"]Event Log[/url]</td> <td>[url="index.php?mod=mining"]Mining[/url]</td> <td>[url="index.php?mod=stats"]Game Stats[/url]</td> </tr> <tr> <td>[url="index.php?mod=mailbox"]Inventory[/url]</td> <td>[url="#"]Woodcutting[/url]</td> <td>[url="#"]Forum[/url]</td> </tr> <tr> <td>[url="index.php?mod=mailbox"]Account Settings[/url]</td> <td>[url="#"]Blacksmith[/url]</td> <td></td> </tr> </table> <table width="75%" border="0" align="center" class="font"> <tr> <td width="245"></td> <td width="246">[b]Center[/b]</td> <td width="246">[b]East[/b]</td> </tr> <tr> <td></td> <td>[url="index.php?mod=BotBattle"]Training Ground[/url]</td> <td><a href="index.php?mod=5050">50/50 Gamble</td> </tr> <tr> <td></td> <td>[url="index.php?mod=hospital"]Hospital[/url]</td> <td><a href="index.php?mod=blackjack">Blackjack</td> </tr> <tr> <td></td> <td>[url="index.php?mod=shops"]Shop[/url]</td> <td><a href="index.php?mod=freeenergy">Daily Free Energy</td> </tr> </tr> <tr> <td></td> <td>[url="index.php?mod=Job"]Work For Money[/url]</td> <td></td> <tr> <td></td> <td>[url="#"]Market[/url]</td> <td></td> </tr> </table> {include file="footer.tpl"} It uses tables to make the look more cleaner. This is helpful if you changed your games layout as it messes it up.
-
This module is currently under construction and will not be released yet. It's a simple module allowing players to gain awards while playing the game. There awards will be shown on there profile. They will be 4 types of awards - Bronze, Silver, Gold, Platinum. You will be able to add awards to players via admin panel, etc. Example - There will be 2 versions Free - You have to manually enter the awards in phpMyAdmin or implement your own automated awards. Paid ($1)- Admin panel Free Updates Automated Awards Credited
-
Yes i know, but its quite hard to convert mccodes ->EzRPG engine (what im using) as they use a different setup. Instead of putting the text on that file, its uses a seperate file called templates (.tpl files). I maybe wrong and it could be easy to convert for some people, but personally i find it easier to make the module from scratch than to convert.
-
What an amazing mod O.o i would buy it but fortunately i don't use MCCodes lol
-
To integrate miniBB with EzRPG, just follow these steps. 1) Download the latest version of miniBB here - http://www.minibb.com/download.html 2) Make a folder called /forum/ in the root of your website. 3) FTP the miniBB to the /forum/ folder. 4) Edit setup_options.php and replace the following with your details $DBhost='localhost'; $DBname='DATABASENAMEHERE'; MUST BE THE SAME AS EZRPG DATABASE! $DBusr='USERHERE'; MUST BE THE SAME AS EZRPG DATABSE $DBpwd='PASSWORDHERE'; MUST BE THE SAME AS EZRPG DATABSE $admin_usr='USERHERE'; Make it the same username as your ezRPG account $admin_pwd='PASSHERE'; MUST BE THE SAME AS Your EZRPG account's password $admin_email='EMAILHERE'; Put your EMAIL HERE 5) Once you have filled them in. Go to http://yourwebsite.com/forum/_install.php to install it. 6) Go to your EzRPG folder then /modules/register/ and open up index.php Find - $insert['username'] = $_POST['username']; $insert['email'] = $_POST['email']; $insert['secret_key'] = createKey(16); $insert['password'] = sha1($insert['secret_key'] . $_POST['password'] . SECRET_KEY); $insert['registered'] = time(); global $hooks; //Run register hook $insert = $hooks->run_hooks('register', $insert); $new_player = $this->db->insert('<ezrpg>players', $insert); and replace with - $insert['username'] = strtolower($_POST['username']); $insert2['username'] = strtolower($_POST['username']); $insert['email'] = strtolower($_POST['email']); $insert2['user_email'] = strtolower($_POST['email']); $insert['secret_key'] = createKey(16); $insert['password'] = sha1($insert['secret_key'] . $_POST['password'] . SECRET_KEY); $insert2['user_password'] = md5($_POST['password']); $insert['registered'] = time(); $insert2['user_regdate'] = time(); global $hooks; //Run register hook $insert = $hooks->run_hooks('register', $insert); $new_player = $this->db->insert('<ezrpg>players', $insert); $new_player2 = $this->db->insert('minibbtable_users', $insert2); 7) Download the attached files and put them into the correct folders. 8 ) Now place in your main menu (header.tpl) or your city, [url="index.php?mod=Forum"]Forum[/url] or [url="/forum/"]Forum[/url] 9) And done! Just go to the forum and login with your details. This tutorial was rushed so I may of missed some parts out.