DELETE-ME-NOW-
Members-
Posts
152 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by DELETE-ME-NOW-
-
I got a attack script here, but its got an error in it that i cannot reapair :( Tried quite a few different things Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home2/mafiakil/public_html/attack.php on line 124 <?php $atkpage=1; $menuhide=1; @include_once(DIRNAME(__FILE__) .'/globals.php'); $_GET['ID'] = (isset($_GET['ID']) && !empty($_GET['ID']) && is_numeric($_GET['ID'])) ? abs(@intval($_GET['ID'])) : id_error(); //i used a function for simplicity function id_error() { global $h; echo'You havent selected who to attack.'; exit($h->endpage()); } //Start some checks if($_GET['ID'] == $userid) { echo'Why attack yourself?'; exit($h->endpage()); } if($ir['maxhp'] < 10) { echo'You cant attack with no health.'; exit($h->endpage()); } $enperc = abs(@intval($ir['energy']/$ir['maxenergy']*100)); if($enperc < 25) { echo'You need atleast 25% of your energy to attack.'; exit($h->endpage()); } if($ir['jail']) { echo'You cannot attack someone while in jail.'; exit($h->endpage()); } if($ir['hospital']) { echo'You cannot attack someone while in the hospital.'; exit($h->endpage()); } $them = $db->fetch_row($db->query("SELECT u.*,us.* ". "FROM `users` AS u ". "LEFT JOIN `userstats` AS us ON (u.`userid` = us.`userid`) ". "WHERE (u.`userid` = ". $_GET['ID'] .");")); if(!$them['userid']) { echo'This user isnt real.'; exit($h->endpage()); } if($them['jail']) { echo'You cant attack someone whose in jail.'; exit($h->endpage()); } if($them['hospital']) { echo'You cant attack someone whose in the hospital.'; exit($h->endpage()); } if($ir['location'] != $them['location']) { echo'You can\'t attack someone whose in another location.'; exit($h->endpage()); } //Take away the energy if($ir['energy'] >= $ir['maxenergy']/4) { $ir['energy']-=floor($ir['maxenergy']/4); $myenergy = floor($ir['maxenergy']/4); $db->query("UPDATE `users` SET `energy` = `energy` - ". $myenergy ." WHERE (`userid` = ". $userid .");"); $_SESSION['attacklog']=''; $_SESSION['attackdmg']=0; } //Get weapons $pri = $db->query("SELECT * FROM `items` WHERE (`itmid` = ". $ir['equip_primary'] .");"); // $user_class1 & $q0 $sec = $db->query("SELECT * FROM `items` WHERE (`itmid` = ". $ir['equip_armor'] .");"); // $user_class2 & $q1 $sec = $db->fetch_row($sec); if(!$db->num_rows($pri)) { $pri = array(); $weapon = "Fists"; $pri['weapon'] = 10; } else { $pri = $db->fetch_row($pri); $weapon = $pri['itmname']; } $tpri = $db->query("SELECT * FROM `items` WHERE (`itmid` IN(". $them['equip_primary'] ."));"); if(!$db->num_rows($tpri)) { $wep = 'Fists'; } else { $cnt = 0; while($r = $db->fetch_row($tpri)) { $enweps[] = $r; $cnt++; } $weptouse = rand(0, $cnt-1); $wep = $enweps[$weptouse]['itmname']; } //HP stuff $my = $ir['hp']; $u = $them['hp']; $stre = number_format($ir['strength']); $weps = $pri['weapon']; $dam = $stre*($weps*100); echo'<center><big>Fighting '.$them['username'].'</big></center> You are in a fight with '.$them['username'].' You come in with your '.$weapon.'. With a strength of '.$dam.' (+'.$weps.'%) '; //Start the attacks $shalli = ($ir['agility'] > $them['agility']) ? 1 : 0; $pri2 = $db->fetch_row($db->query("SELECT * FROM `items` WHERE (`itmid` IN (". $them['equip_primary'] ."));")); while($my > 0 && $u > 0) { $damage = (($pri['weapon']*$ir['strength']/($them['guard']/1.5))*(rand(8000,12000)/10000)); $theirdamage = (($enweps[$weptouse]['weapon']*$them['strength']/($ir['guard']/1.5))*(rand(8000,12000)/10000)); $damage = ($damage < 1) ? 1 : $damage; $theirdamage = ($theirdamage < 1) ? 1 : $theirdamage; if($wait == 0) { $my = $my-$theirdamage; echo'<span style="color: red;">'.$them['username'].' Takes their turn to swing at you!</span> '; echo $them['username'].' hit you using thier '.$wep.'. It did '. number_format($theirdamage) .' damage. '; } else { $wait = 0; } if($my > 0) { $u = $u-$damage; echo '<span style="color: green;">You take a swing at them!</span> You hit '.$them['username'] .' using your '.$weapon.'. It did '. number_format($damage) .' damage. '; } } if($u <= 0) { $loser = $them['userid']; $u = 0; $_SESSION['attackwon'] = $loser; $db->query("UPDATE `users` SET `hp`=0 WHERE (`userid` = ". $loser .");"); echo'<hr /> <span style="font-weight: bold;">What shall you do with '. $them['username'] .' now?</span> <form action="attackwon.php?ID=['userid']'. $loser .' method="post"><input type="submit" value="Mug them"> <form action="attackbeat.php?ID=['userid']'. $loser .' method="post"><input type="submit" value="Hospitalize them"> <form action="attacktake.php?ID=['userid']'. $loser .' method="post"><input type="submit" value="Leave them"> '; } if($my <= 0) { $winner = $them['userid']; $my = 0; $_SESSION['attacklost'] = 1; $db->query("UPDATE `users` SET `hp`=0 WHERE (`userid` = ". $userid .");"); echo'<hr /><span style="font-weight: bold;">You lost the fight. In 3 seconds, you will be re-directed. Hold on! <meta http-equiv="refresh" content="3;url=attacklost.php?ID='. $winner .'" />'; } echo $ennd.$gangs.$bot; $h->endpage(); ?>
-
Not really a mod, but anyway XD What would the polling code be to make it that when users complete a poll, they get payed, points or money? ?(
-
OK that one looks pretty good. But how do i install that to macro1/2.php??? Ive never accualy looked at the coding of macro. So i have no idea how to install a new capatcha :(
-
No. I want to put it in my globals.php so it shows up on every page. So when you go to a new page, it logs u out
-
can someone help me? XD I want to make this a iFrame, and already have, but when peeps refresh, they have to re login to the chat :(
-
Whats the best PHP capatcha? Ive tried reCapatch, but i have no clue how to install it on my game XD. So whats the bets one, and how do i install a different capatcha?
-
I notices some people were asking for a turn off bit. Well i done it so that once they are over 4 days old, it turns off automaticly. Heres the globals code: if($ir['daysold'] <= 4) { $page = $_SERVER['PHP_SELF']; $page = explode("/",$page); $noti = mysql_query("SELECT * FROM notifications WHERE nPAGE='{$page[1]}'") or die(mysql_error()); if(mysql_num_rows($noti) != 0) { $nat = mysql_fetch_assoc($noti); echo '<table border="1" cellspacing="0" width="50%" height="30"> <tr> <td valign="top" bgcolor="#eeeee" style="color: black;"><h2><center>Page Tutorial:</center></h2>'.$nat['nTEXT'].'</td> </tr> </table>'; } }
-
Centering the text but not in the table
DELETE-ME-NOW- replied to HITMAN 17's topic in Engine Support
goto your header.php file, or your CSS file. You can change it from there -
yea it works. But the table at the right is fuked up :/
-
Those print bits arnt meant to be there... <td><div align='center'>[b] [url='shops.php']Game Shops[/url] [url='myshop.php']Your Shop[/url] [url='playershops.php']Player Shops[/url] [url='itemsearch.php']Search Player Shops[/url] '; if($ir['level'] > 20) { echo ('[url='Auction.php']Auction Market[/url] '); } [url='itemmarket.php']Item Market[/url] [url='cmarket.php']Points Market[/url] </td> [/b]</div></td> Thats the code section i need help with.
-
<?php include "globals.php"; $tresder=(int) rand(100,999); if($ir['jail'] > 0) { die("[b]<font color=red size=+1>You are in Jail for {$ir['jail']} more minute(s). Until you are out you can't view this page</font>[/b] [url='jail.php']Return to Jail[/url]"); } if($ir['hospital'] > 0) { die("[b]<font color=red size=+1>You are in the Hospital for {$ir['hospital']} more minute(s). Until you are out you can't view this page</font>[/b] [url='hospital.php']Return to Hospital[/url]"); } print " <center><table width='715' height='385' border='1' cellpadding='2' class='tablejf1'><center></font><font color=red></font>This is your referal link: http://game-name.com/register.php?REF=$userid Every signup from this link earns you 30 valuable Points! <tr background='header.gif'></font><font color=red></font> <td height='25'><div align='center'>[b] <font color=white><u></font><font color=red>Market</u></u>[/b]</div></td> <td><div align='center'>[b] <font color=white><u></font><font color=red>Living Quarters<u/>[/b]</u></div></td> <td><div align='center'>[b] <font color=white><u></font><font color=red>Cash Industry</u></font>[/b]</u></div> <td><div align='center'>[b] <font color=white><u></font><font color=red>Dark Side<u/>[/b]</u></div></td></td> </tr> <tr> !NEW! <td><div align='center'>[b] [url='shops.php']Game Shops[/url] [url='myshop.php']Your Shop[/url] [url='playershops.php']Player Shops[/url] print'[url='itemsearch.php']Search Player Shops[/url] '; if($ir['level'] > 20) { echo ('[url='Auction.php']Auction Market[/url] '); } print' [url='itemmarket.php']Item Market[/url] [url='cmarket.php']Points Market[/url] </td> [/b]</div></td> <td><div align='center'>[b] [url='monorail.php']Travel[/url] [url='houses.php']Houses[/url]<br [url='pointbank.php']Points Bank[/url] </td> [/b]</div></td> <td><div align='center'>[b] [url='bank.php']City Bank[/url] [url='creditcard.php']Credit Card[/url] [url='business_view.php']Business listings[/url] [url='business_create.php']Create a business[/url] [url='business_home.php']Your business[/url] [/b]</div></td> <td><div align='center'>[b] [url='crystaltemple.php']Points Temple[/url] [url='hitmanagency.php']Hitman Agency[/url] [url='marital.php']Marital Agency[/url] [url='donatorlist.php']View Donators[/url] [url='gymrecord.php']Gym Record[/url] [url='games.php']Arcade[/url] </div>[/b]</td> </tr> <tr background='header.gif'> <td height='25'><div align='center'>[b] <font color=white><u></font><font color=red>Statistics Dept</u>[/b]</u></div></td> <td><div align='center'>[b] <font color=white><u></font><font color=red>Mysterious[/b]</u></div></td> "./*<td><div align='center'>[b] <font color=white><u></font><font color=red>Drugs Makers</font>[/b]</u></div></td> */"<td><div align='center'>[b] <font color=white><u></font><font color=red>Gambling Central<u/>[/b]</u></div></td><td><div align='center'>[b] <font color=white><u></font><font color=red>Central<u/>[/b]</u></div></td> </tr> <tr> <td><div align='center'>[b] <a href='userlist.php'>Users list[b] <a href='stafflist.php'>Game Name Staff[b] [url='halloffame.php']Hall of Fame[/url] <a href='hos.php'>Hall of Shame[b] <a href='stats.php'>Game Stats[b] [url='usersonline.php']Users Online[/url] [/b]</div></td> <td><div align='center'>[b] [url='missions.php']Missions[/url] [url='raffle.php']Raffle House[/url] [url='polling.php']Polling Station[/url] [url='StaffApps.php']Appy For Staff[/url] [url='brothel.php']Brothel House[/url] [/b]</div></td> "./*<td><div align='center'>[b] [url='drugfarm.php']Drug Farm[/url] [url='drugsmarket.php']Drugs Market[/url] [url='drugfarm.php?action=premade']Buy Drugs[/url] [url='drugfarm.php?action=mydrugs']Your Drugs[/url] [/b]</div></td> */"<td><div align='center'>[b] [url='5050c.php']50/50 Money[/url] [url='5050p.php']50/50 Points[/url] [url='lottery.php']Lottery[/url] [url='crack.php']Crack The Safe[/url] [url='searchdowntown.php']Search Downtown[/url] [url='casino.php']Casino[/url] </div>[/b]</td> <td><div align='center'>[b] [url='mailbox.php']Mailbox[/url] [url='gym.php']Gym[/url] [url='events.php']Events[/url] [url='forums.php']Forums[/url] [url='gamerules.php']Rules[/url] [url='breport.php']Bug Report[/url] </div>[/b]</td> </tr> </table>"; $h->endpage(); ?>
-
Ahh right. But can someone give me the correct line that will work properly?
-
[url='itemsearch.php']Search Player Shops[/url] if($ir['level'] > 20) { echo ('[url='Auction.php']Auction Market[/url] '); } [url='itemmarket.php']Item Market[/url] Thats the part of the code...
-
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home2/mafiakil/public_html/explore.php on line 41 I changed the "Auction.php" to 'Auction.php', still same :/
-
Thanks alot. Ill try it
-
Your works good, but not good enough to start charging for it :)
-
Because the idea on torn doesnt mean no other games should use it. Think of crimes, gym ect. There all on RPG games... (Bad example)
-
Ive been trying to make it that you can unlock new areas in explore, main menu, and other places as you level up. As an exampe, ive been trying this: 42. if($ir['level'] > 20) 43. { 44. Auction Market But this results in : Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home2/mafiakil/public_html/explore.php on line 42 . I have tryed loads of different ways to fix it, but none have worked :(
-
Not really. Im level one. All of MCCodes is basicly torn anyway ;)
-
Nice. Thanks alot. Also: There should be the option when creating new sporting event bets to be more that one selection. That way you could make bets for golf, top goalscorers, winners of Spl, Epl, ect ect...
-
How about a bookies? A staff section so admins can post upcoming real life sporting events, and give them odds. (eg, 15-1). Users can place bets on these events. After the event is over, admins will update the event via staff panel, and all the winning players will be credited. What do you think?
-
isnt the first one just a C4D, a rendered out image, and a background?
-
I got dreamweaver and dont know were to start lol.
-
i douubt u made the first 2. It looks like you have just messed with the colors. But i really like the last one
-
Nice thanks alot. Ill probably buy it :D Not pre ordering though... :( My paypal is empty atm lol