
SlanderDesign
Members-
Posts
106 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by SlanderDesign
-
Nice but they really need more instructions on how to install them. Cant seem to get them working XD I'll try fixing them later Great work tho
-
grpg-v1 [Mod] Updated 24hour.php, citizens.php, online.php [Mod]
SlanderDesign replied to Veasey's topic in Free Plugins
Don't work....Re code mate? -
grpg-v1 [Mod] Newspaper With Admin Function [Mod]
SlanderDesign replied to Veasey's topic in Free Plugins
Nice but I cant get it to work...Explain more on how to install... -
grpg-v1 [Mod] GRPG profile signatures [My First]
SlanderDesign replied to SlanderDesign's topic in Free Plugins
Magic helps me alot! Puuda does if it isn't GRPG. This is the first mod I made so I'm like kinda proud :D -
grpg-v1 [Mod] GRPG profile signatures [My First]
SlanderDesign replied to SlanderDesign's topic in Free Plugins
Thank you people :P -
grpg-v1 [Mod] GRPG profile signatures [My First]
SlanderDesign replied to SlanderDesign's topic in Free Plugins
Ah I understand what your saying but...The best way for me is classes. All in one file ect Easy to find and fix For now I'm leaving it as it is :) -
grpg-v1 [Mod] GRPG profile signatures [My First]
SlanderDesign replied to SlanderDesign's topic in Free Plugins
I have tried putting the class in but it only works that way. And yeah some criticism is good but not when it works perfectly! Also some files are protected from injections and I edited header if I can remember right. -
grpg-v1 [Mod] GRPG profile signatures [My First]
SlanderDesign replied to SlanderDesign's topic in Free Plugins
Please don't post if your just going to criticize! Reasonable criticism is acceptable. Thank you! -
grpg-v1 [Mod] GRPG profile signatures [My First]
SlanderDesign replied to SlanderDesign's topic in Free Plugins
What is it with criticizing others work? If you didn't know I've only been coding about 3 weeks...Sorry if I make 1 mistake and for you information if it wasn't in a class you cant see other people's sig. So before been a smart Alik please check what file it is been coded for and where it is suppose to add to added. -
grpg-v1 [Mod] GRPG profile signatures [My First]
SlanderDesign replied to SlanderDesign's topic in Free Plugins
Thank you! That's what I wanted to see! :D Yeah I plan on trying to convert V2 mods to GRPG :) -
grpg-v1 [Mod] GRPG profile signatures [My First]
SlanderDesign replied to SlanderDesign's topic in Free Plugins
What is the point in posting that? Really? -
Profile signature mod for Generic RPG! With help from MTG. :) First open Profiles.php and find : <?php include 'header.php'; add under: include 'bbcode_engine.php'; Then find: include "footer.php"; ?> Add Above!: <table width='100%' height='100%' cellpadding='5' cellspacing='2'> <tr> <td align='center'>[img=<?= $profile_class->profileSIG ?>]</td> <? } print"<tr><td class='contenthead'>Profile</td></tr> <tr><td class='contentcontent'> <table width='100%'> <td align='center'>".$bbc->bbcode_parse($profile_class->profileSIG)."</td>"; Save and close profiles.php. Next create a file called bbcode_engine.php Add this to it: <?php /* BBCode Engine created by Magictallguy Copyright (c) 2010 - 2012, Magictallguy Any queries concerning this engine, consult me - [email][email protected][/email] */ if($_SERVER['PHP_SELF'] == __FILE__) { header("Location:index.php"); exit; } class bbcode { function bbcode_parse($text) { $text = htmlspecialchars($text); $text = preg_replace("/\[b\]/", "[b]", $text); $text = preg_replace("/\[\/b\]/", "[/b]", $text); $text = preg_replace("/\[i\]/", "[i]", $text); $text = preg_replace("/\[\/i\]/", "[/i]", $text); $text = preg_replace("/\[u\]/", "<span style='text-decoration:underline;'>", $text); $text = preg_replace("/\[\/u\]/", "</span>", $text); $text = preg_replace("/\[s\]/", "<s>", $text); $text = preg_replace("/\[\/s\]/", "</s>", $text); $text = preg_replace("/\[sub\](.+?)\[\/sub\]/", "<sub>$1</sub>", $text); $text = preg_replace("/\[sup\](.+?)\[\/sup\]/", "<sup>$1</sup>", $text); $text = preg_replace("/\[big\](.+?)\[\/big\]/", "<big>$1</big>", $text); $text = preg_replace("/\[small\](.+?)\[\/small\]/", "[size="1"]$1[/size]", $text); $text = preg_replace("/\[list\](.+?)\[\/list\]/", "<ul>$1[/list]", $text); $text = preg_replace("/\[olist\](.+?)\[\/olist\]/", "[list=1]$1[/list]", $text); $text = preg_replace("/\[li\](.+?)\[\/li\]/", "[*]$1", $text); $text = preg_replace("/\[font=(.+?)\](.+?)\[\/font\]/", "<span style='font-family:$1'>$2</span>", $text); $text = preg_replace("/\[size=(.+?)\](.+?)\[\/size\]/", "<font size='$1'>$2</font>", $text); $text = preg_replace("/\[url=(.+?)\](.+?)\[\/url\]/", "[url='$1']$2[/url]", $text); $text = preg_replace("/\[img=(.+?)\]/", "[img=$1]", $text); $text = preg_replace("/\[img\](.+?)\[\/img\]/", "[img=$1]", $text); $text = preg_replace("/\n/", "&nbrlb;", $text); $text = preg_replace("/\[email=(.+?)\](.+?)\[\/email\]/", "[email='$1']$2[/email]", $text); $text = preg_replace("/\[email\](.+?)\[\/email\]/", "[email='$1']$1[/email]", $text); $text = preg_replace("/\[left\](.+?)\[\/left\]/", "<div style='text-align: left;'>$1</div>", $text); $text = preg_replace("/\[center\](.+?)\[\/center\]/", "<div style='text-align: center;'>$1</div>", $text); $text = preg_replace("/\[right\](.+?)\[\/right\]/", "<div style='text-align: right;'>$1</div>", $text); $text = preg_replace("/\[edit\](.+?)\[\/edit\]/", "<div class='edit'>Edit: $1</div>", $text); $text = preg_replace("/\[quote name='(.+?)\'](.+?)\[\/quote\]/", "<div class='quotetop'>Quote($1)</div><div class='quotemain'>$2</div>", $text); $text = preg_replace("/\[quote\](.+?)\[\/quote\]/", "<div class='quotetop'>Quote</div><div class='quotemain'>$1</div>", $text); $text = preg_replace("/\[style=(.+?)\](.+?)\[\/style\]/", "<div style='$1'>$2</div>", $text); $text = preg_replace("/\[quote\](.+?)\[\/quote\]/","<div class='quotetop'>Quote</div><div class='quotemain'>$1</div>", $text); $text = preg_replace("/\[code\](.+?)\[\/code\]/","<div class='codetop'>Code</div><div class='codemain'><code>$1</code></div>", $text); $text = preg_replace("/\[codebox\](.+?)\[\/codebox\]/","<div class='codetop'>Code</div><div class='codemain'><code>$1</code></div>", $text); $text = preg_replace("/&nbrlb;/", " \n", $text); $text = preg_replace("/\[colour=(.+?)\]/", "<span style='color:$1;'>", $text); $text = preg_replace("/\[\/colour\]/", "</span>", $text); $text = preg_replace("/\[color=(.+?)\]/", "<span style='color:$1;'>", $text); $text = preg_replace("/\[\/color\]/", "</span>", $text); $text = preg_replace("/\[br \/]/", " ", $text); $text = preg_replace("/\[br]/", " ", $text); $text = preg_replace("/\[hr \/]/", "<hr />", $text); $text = preg_replace("/\[hr]/", "<hr />", $text); $text = preg_replace("/\[list\]/", "<ul>", $text); $text = preg_replace("/\[\/list\]/", "[/list]", $text); $text = preg_replace("/\[olist\]/", "[list=1]", $text); $text = preg_replace("/\[\/olist\]/", "[/list]", $text); $text = preg_replace("/\[li\]/", "[*]", $text); $text = preg_replace("/\[\/li\]/", "", $text); return $text; } } $bbc = new BBCode; ?> Save and close. Now open classes.php and find: $this->avatar = $worked['avatar']; Add below this: $this->profileSIG = $worked['profileSIG']; Save and close. Open preferences.php and replace with: <? include 'header.php'; if (isset($_POST['submit'])) { $avatar = $_POST["avatar"]; $quote = $_POST["quote"]; $profileSIG = $_POST["profileSIG"]; if (!isset($message)){ $result= mysql_query("UPDATE `grpgusers` SET `profileSIG`='".$profileSIG."',`avatar`='".$avatar."', `quote`='".$quote."' WHERE `id`='".$user_class->id."'"); echo Message('Your preferences have been saved.'); die(); } } ?> <? if (isset($message)) { echo Message($message); } ?> <tr><td class="contenthead"> Account Preferences </td></tr> <tr><td class="contentcontent"> <form name='login' method='post'> <table width='50%' border='0' align='center' cellpadding='0' cellspacing='0'> <tr> <td height='28'><font size='2' face='verdana'>Avatar Image Location</font></td> <td><font size='2' face='verdana'> <input type='text' name='avatar' value='<?= $user_class->avatar ?>'> </font></td> </tr> <tr> <tr> <td height='28' align="right"><font size='2' face='verdana'>Quote</font></td> <td><font size='2' face='verdana'> <input type='text' name='quote' value='<?= $user_class->quote ?>'> </font></td> </tr> <td></td> <td><font size='2' face='verdana'> <input type='submit' name='submit' value='Save Preferences'> </font></td> </tr> <tr> <tr> <td height='28' align="right"><font size='2' face='verdana'>Profile sig</font></td> <td><font size='2' face='verdana'> <input type='text' name='profileSIG' value='<?= $user_class->profileSIG ?>'> </font></td> </tr> <td></td> <td><font size='2' face='verdana'> <input type='submit' name='submit' value='Save Preferences'> </font></td> </tr> </table> </form> <? include 'footer.php'; ?> Save and close. Now run this SQL ALTER TABLE `grpgusers` ADD `profileSIG` text NOT NULL All done! BBcode Engine supplied by Magictallguy :rolleyes: Hope this helps! :D
-
Why criticize? Why don't you help him so he don't make the mistake again? It really isn't fun for him to be laughed at... You guys are "Epic" But for new people it's hard...Teach them the way! :P
-
Ah Well Magictallguy fixed it for me! Here it is if anyone needs it <?php include 'header.php'; $error = ($user_class->energypercent < 25) ? "You need to have at least 25% of your energy if you want to attack someone." : $error; $error = ($user_class->jail > 0) ? "You can't attack someone if you are in jail." : $error; $error = ($user_class->hospital > 0) ? "You can't attack someone if you are in the hospital." : $error; $error = ($_GET['attack'] == "") ? "You didn't choose someone to attack." : $error; $error = ($_GET['attack'] == $user_class->id) ? "You can't attack yourself." : $error; $attack_person = new User($_GET['attack']); $error = ($attack_person->city != $user_class->city) ? "You must be in the same city as the person you are attacking. Duh." : $error; $error = ($attack_person->username == "") ? "That person doesn't exist." : $error; $error = ($attack_person->hospital > 0) ? "You can't attack someone that is in the hospital." : $error; $error = ($attack_person->jail > 0) ? "You can't attack someone that is in jail." : $error; $error = ($user_class->level > 5 && $attack_person->level < 6) ? "You can't attack someone that is level 5 or below because you are higher than level 5." : $error; if (isset($error)){ echo Message($error); include 'footer.php'; die(); } $yourhp = $user_class->hp; $theirhp = $attack_person->hp; ?> <tr><td class="contenthead">Fight House</td></tr> <tr><td class="contentcontent">You are in a fight with <? echo $attack_person->formattedname ?>.</td></tr> <tr><td class="contentcontent"> <? $wait = ($user_class->speed > $attack_person->speed) ? 1 : 0; while($yourhp > 0 && $theirhp > 0){ $damage = $attack_person->moddedstrength - $user_class->moddeddefense; $damage = ($damage < 1) ? 1 : $damage; if($wait == 0){ $yourhp = $yourhp - $damage; echo $attack_person->formattedname . " hit you for " . $damage . " damage using their ".$attack_person->weaponname.". "; } else { $wait = 0; } if($yourhp > 0) { $damage = $user_class->moddedstrength - $attack_person->moddeddefense; $damage = ($damage < 1) ? 1 : $damage; $theirhp = $theirhp - $damage; echo "You hit " . $attack_person->formattedname . " for " . $damage . " damage using your ".$user_class->weaponname.". "; } if($theirhp <= 0){ // attacker won $winner = $user_class->id; $theirhp = 0; $moneywon = floor($attack_person->money /10); $battlewon = 1 + $user_class->battlewon; $battlemoney = $moneywon + $user_class->battlemoney; $expwon = 150 - (25 * ($user_class-> level - $attack_person->level)); $expwon = ($expwon < 0) ? 0 : $expwon; $newexp = $expwon + $user_class->exp; $newmoney = $user_class->money + $moneywon; $result = mysql_query("UPDATE `grpgusers` SET `exp` = '".$newexp."', money = '".$newmoney."', `battlewon` = '".$battlewon."', `battlemoney` = '".$battlemoney."' WHERE `id`='".$user_class->id."'") or die(mysql_error()); $newmoney = $attack_person->money - $moneywon; $battlelost = $user_class->battlelost + 1; $battlemoney = $user_class->battlemoney - $moneywon; $result = mysql_query("UPDATE `grpgusers` SET `money` = '".$newmoney."', `hwho` = '".$user_class->username."', `hhow` = 'wasattacked', `hwhen` = '".date(g.":".i.":".sa,time())."', `hospital` = '1200', `battlelost` = '".$battlelost."', `battlemoney` = '".$battlemoney."' WHERE `id`='".$attack_person->id."'") or die(mysql_error()); Send_Event($attack_person->id, "You were hospitalized by ".$user_class->username." for 20 minutes."); echo Message("You hospitalized " . $attack_person->formattedname . ". You gain $expwon exp and stole $".$moneywon." from " . $attack_person->formattedname . "."); //give gang exp if ($user_class->gang != 0) { $gang = New Gang($user_class->gang); $newgangexp = $gang->exp + $expwon; $result = mysql_query("UPDATE `gangs` SET `exp` = '".$newgangexp."' WHERE `id`='".$gang->id."'"); } } if($yourhp <= 0){ // defender won $winner = $attack_person->id; $yourhp = 0; $battlewon = 1 + $attack_person->battlewon; $moneywon = floor($user_class->money /10); $battlemoney = $moneywon + $attack_person->battlemoney; $expwon = 100 - (25 * ($attack_person-> level - $user_class->level)); $expwon = ($expwon < 0) ? 0 : $expwon; $newexp = $expwon + $attack_person->exp; $newmoney = $attack_person->money + $moneywon; $result = mysql_query("UPDATE `grpgusers` SET `exp` = '".$newexp."', money = '".$newmoney."', `battlewon` = '".$battlewon."', `battlemoney` = '".$battlemoney."' WHERE `id`='".$attack_person->id."'") or die(mysql_error()); $newmoney = $user_class->money - $moneywon; $battlelost = $user_class->battlelost + 1; $battlemoney = $user_class->battlemoney - $moneywon; $result = mysql_query("UPDATE `grpgusers` SET `money` = '".$newmoney."', `hwho` = '".$attack_person->username."', `hhow` = 'attacked', `hwhen` = '".date(g.":".i.":".sa,time())."', `hospital` = '1200', `battlelost` = '".$battlelost."', `battlemoney` = '".$battlemoney."' WHERE `id`='".$user_class->id."'") or die(mysql_error()); Send_Event($user_class->id, "You were hospitalized by ".$attack_person->username." for 20 minutes."); echo Message($attack_person->formattedname . " Hospitalized you and stole $".$moneywon." from you."); //give gang exp if ($attack_user->gang != 0) { $gang = New Gang($attack_user->gang); $newgangexp = $gang->exp + $expwon; $result = mysql_query("UPDATE `gangs` SET `exp` = '".$newgangexp."' WHERE `id`='".$gang->id."'") or die(mysql_error()); } } } //put defense log into gang if ($attack_person->gang != 0) { $time = time(); $result= mysql_query("INSERT INTO `ganglog` (`timestamp`, gangid, attacker, defender, winner)"."VALUES ('".$time."', '".$attack_person->gang."', '".$user_class->id."', '".$attack_person->id."', '".$winner."')") or die(mysql_error()); } //update users $newenergy = $user_class->energy - floor($user_class->energy * .10); $result = mysql_query("UPDATE `grpgusers` SET `hp` = '".$theirhp."' WHERE `id`='".$attack_person->id."'") or die(mysql_error()); $result = mysql_query("UPDATE `grpgusers` SET `hp` = '".$yourhp."', `energy` = '".$newenergy."' WHERE `id`='".$user_class->id."'") or die(mysql_error()); echo "</td></tr>"; include 'footer.php'; ?> All works! If you use this please say thanks to MTG :)
-
Thanks a_bertrand!! Found a nice chat and also my host are not very good with me using some chat scripts. :)
-
Queries are there but don't seem to be working =[
-
I cant submit any type of ticket to him as the mod isn't on my game.
-
Hello I have a copy of GRPG and when I attack someone or they attack me, it says you gain "BLAH EXP & Money". But you don't gain it. Here is the code <? include 'header.php'; $error = ($user_class->energypercent < 25) ? "You need to have at least 25% of your energy if you want to attack someone." : $error; $error = ($user_class->jail > 0) ? "You can't attack someone if you are in jail." : $error; $error = ($user_class->hospital > 0) ? "You can't attack someone if you are in the hospital." : $error; $error = ($_GET['attack'] == "") ? "You didn't choose someone to attack." : $error; $error = ($_GET['attack'] == $user_class->id) ? "You can't attack yourself." : $error; $attack_person = new User($_GET['attack']); $error = ($attack_person->city != $user_class->city) ? "You must be in the same city as the person you are attacking. Duh." : $error; $error = ($attack_person->username == "") ? "That person doesn't exist." : $error; $error = ($attack_person->hospital > 0) ? "You can't attack someone that is in the hospital." : $error; $error = ($attack_person->jail > 0) ? "You can't attack someone that is in jail." : $error; $error = ($user_class->level > 5 && $attack_person->level < 6) ? "You can't attack someone that is level 5 or below because you are higher than level 5." : $error; if (isset($error)){ echo Message($error); include 'footer.php'; die(); } $yourhp = $user_class->hp; $theirhp = $attack_person->hp; ?> <tr><td class="contenthead">Fight House</td></tr> <tr><td class="contentcontent">You are in a fight with <? echo $attack_person->formattedname ?>.</td></tr> <tr><td class="contentcontent"> <? $wait = ($user_class->speed > $attack_person->speed) ? 1 : 0; while($yourhp > 0 && $theirhp > 0){ $damage = $attack_person->moddedstrength - $user_class->moddeddefense; $damage = ($damage < 1) ? 1 : $damage; if($wait == 0){ $yourhp = $yourhp - $damage; echo $attack_person->formattedname . " hit you for " . $damage . " damage using their ".$attack_person->weaponname.". "; } else { $wait = 0; } if($yourhp > 0) { $damage = $user_class->moddedstrength - $attack_person->moddeddefense; $damage = ($damage < 1) ? 1 : $damage; $theirhp = $theirhp - $damage; echo "You hit " . $attack_person->formattedname . " for " . $damage . " damage using your ".$user_class->weaponname.". "; } if($theirhp <= 0){ $winner = $user_class->id; $theirhp = 0; $moneywon = floor($attack_person->money /10); $battlewon = 1 + $user_class->battlewon; $battlemoney = $moneywon + $user_class->battlemoney; $expwon = 150 - (25 * ($user_class-> level - $attack_person->level)); $expwon = ($expwon < 0) ? 0 : $expwon; $newexp = $expwon + $user_class->exp; $newmoney = $user_class->money + $moneywon; $result = mysql_query("UPDATE `grpgusers` SET `exp` = '".$newexp."', money = '".$newmoney."', `battlewon` = '".$battlewon."', `battlemoney` = '".$battlemoney."' WHERE `id`='".$_SESSION[' ']."'"); $newmoney = $attack_person->money - $moneywon; $battlelost = $user_class->battlelost + 1; $battlemoney = $user_class->battlemoney - $moneywon; $result = mysql_query("UPDATE `grpgusers` SET `money` = '".$newmoney."', `hwho` = '".$user_class->username."', `hhow` = 'wasattacked', `hwhen` = '".date(g.":".i.":".sa,time())."', `hospital` = '1200', `battlelost` = '".$battlelost."', `battlemoney` = '".$battlemoney."' WHERE `id`='".$attack_person->id."'"); Send_Event($attack_person->id, "You were hospitalized by ".$user_class->username." for 20 minutes."); echo Message("You hospitalized " . $attack_person->formattedname . ". You gain $expwon exp and stole $".$moneywon." from " . $attack_person->formattedname . "."); if ($user_class->gang != 0) { $gang = New Gang($user_class->gang); $newgangexp = $gang->exp + $expwon; $result = mysql_query("UPDATE `gangs` SET `exp` = '".$newgangexp."' WHERE `id`='".$gang->id."'"); } } if($yourhp <= 0){ $winner = $attack_person->id; $yourhp = 0; $battlewon = 1 + $attack_person->battlewon; $moneywon = floor($user_class->money /10); $battlemoney = $moneywon + $attack_person->battlemoney; $expwon = 100 - (25 * ($attack_person-> level - $user_class->level)); $expwon = ($expwon < 0) ? 0 : $expwon; $newexp = $expwon + $attack_person->exp; $newmoney = $attack_person->money + $moneywon; $result = mysql_query("UPDATE `grpgusers` SET `exp` = '".$newexp."', money = '".$newmoney."', `battlewon` = '".$battlewon."', `battlemoney` = '".$battlemoney."' WHERE `id`='".$attack_person->id."'"); $newmoney = $user_class->money - $moneywon; $battlelost = $user_class->battlelost + 1; $battlemoney = $user_class->battlemoney - $moneywon; $result = mysql_query("UPDATE `grpgusers` SET `money` = '".$newmoney."', `hwho` = '".$attack_person->username."', `hhow` = 'attacked', `hwhen` = '".date(g.":".i.":".sa,time())."', `hospital` = '1200', `battlelost` = '".$battlelost."', `battlemoney` = '".$battlemoney."' WHERE `id`='".$user_class->id."'"); Send_Event($user_class->id, "You were hospitalized by ".$attack_person->username." for 20 minutes."); echo Message($attack_person->formattedname . " Hospitalized you and stole $".$moneywon." from you."); if ($attack_user->gang != 0) { $gang = New Gang($attack_user->gang); $newgangexp = $gang->exp + $expwon; $result = mysql_query("UPDATE `gangs` SET `exp` = '".$newgangexp."' WHERE `id`='".$gang->id."'"); } } } if ($attack_person->gang != 0) { $time = time(); $result= mysql_query("INSERT INTO `ganglog` (`timestamp`, gangid, attacker, defender, winner)"."VALUES ('".$time."', '".$attack_person->gang."', '".$user_class->id."', '".$attack_person->id."', '".$winner."')"); } $newenergy = $user_class->energy - floor($user_class->energy * .10); $result = mysql_query("UPDATE `grpgusers` SET `hp` = '".$theirhp."' WHERE `id`='".$attack_person->id."'"); $result = mysql_query("UPDATE `grpgusers` SET `hp` = '".$yourhp."', `energy` = '".$newenergy."' WHERE `id`='".$user_class->id."'"); echo "</td></tr>"; include 'footer.php'; ?> Any help would be appreciated! SlanderDesign
-
It must be ajax because that is what i want it to be. not that java isn't nice but it's racking up the bandwidth and on my current host it has a limit :(
-
It isn't secured...You can give items you don't have to members and even yourself. After 2 hours of installing it and finding you need to create another sql it works.
-
... Although I was asking for a mod, I get a spammed topic? It is kinda funny, Cronus I found your gang armory mod along with all your other ones. Non Of Them Work. <---Full Stop! If anyone can make this mod let me know thank.
-
Why though? It's just not right in my eyes :S Errrr is what I think But great gym! haha
-
Yeah I checked that link to his/ her site...But now I don't think I want to talk to her/ him after I have been told he was acting like a girl XD
-
I have seen this gym on 3 games I play...I have adopted it myself! Anyone know where I can get in touch with him/her/them?
-
I'm looking for an ajax chat that allows my users to login with in game name and password. Yes I know they is an ajax chat I could use but that only lets pre set user's login. If anyone could code a login page for the normal ajax chat that can login with user names and passwords ill but it. No questions asked! It needs to be working and seen working! Thank you. PM me if you think you can do this.