
Savager
Members-
Posts
112 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by Savager
-
Re: [mccode v2] Battle Arena [$35.00] 8 copies left time is running out better hurry up and grab a copy.
-
Re: [mccodes v2] Jail Bust Offer $10 LMAO thats funny right der!
-
Re: Need Help With Items And Create Or Error :-( QUERY ERROR: You have an error in your SQL syntax; c heck the manual that corresponds to your MySQL server version for the right syntax to use near '= '0' WHERE userid=1' at line 1 Query was UPDATE `users` SET ?????????= '0' WHERE userid=1 what are you setting to 0 lol
-
Re: [mccode v2] Battle Arena [$25 in paid modifications] Put it in a envelope and mail it. easy as that
-
Re: [mccode v2] Battle Arena [$25 in paid modifications] I only shake twice then im done.
-
Re: [mccode v2] Battle Arena [$25 in paid modifications] how about $20 and a lollipop?
-
Re: Some Advise its called sql_injection... and the only way to stop it is using secure coding on every page. which will take a very long time. all of your pages are unsecure.
-
Re: Writing an attack script. ill offer it for $10
-
Re: Would it be possible well actually i would add if($_session['ns']==100) {$attacktie=1;} $_session['ns'] being next step.
-
Re: [mccode v2] Battle Arena [$25 in paid modifications] lol thanks willhunt dont forget my good support. :)
-
Re: Would it be possible at the end if neither of them has less than 0 health include "attackscript.php"; or whatever name you wanna call it to run the script again and again till one of them have less than 0 health yes it is possible would look kinda like this ATTACK SEQUENCE HERE if($odata['hp']<0 OR $ir['hp']<0) { SET HOSPITAL SET ATTACKWON ETC.... } else { include "thisfile.php"; } my battlearena mod that i created in the paid mod section. loops till everyone but 1 person dies.
-
I use this alot on many mods and think it would be usefull for others building mods. //first open up a string $string="Hello"; //Add to string $string.=" World"; //Inputs Hello World Pretty cool eh? heres another example that might be useful //Open Up a string $string=""; //Add to it $string.="Savager"; //Add more to it $string.=" Is"; //And more again, and again. etc... $string.=" The Bomb"; //Finally Outputs Savager Is The Bomb Think of the dot as a + sign
-
Re: [mccode v2] Battle Arena [$25 in paid modifications] lol where do you get $140 its 25 times 4 equals $100
-
Re: [mccode v2] Battle Arena [$25 in paid modifications] Added instructions to make it a 9, 8, 7, 6, 5 person freeforall if you dont have a game with many active members that will do the trick, plus you can widen the range of the brackets just letting you guys know :)
-
Re: [mccode v2] Battle Arena [$25 in paid modifications] i just wanted to fit in. i wasnt refering to you. zero. i respect for you. you can be nice. sometimes
-
Re: [mccode v2] Battle Arena [$25 in paid modifications] *Shakes his head violently* YESSS!!\ I want to make everyone sthilky and sthmoooth. 11 copies left
-
Needed... v2 forums sql queries for the db
Savager replied to ajgraves's topic in General Discussion
Re: Needed... v2 forums sql queries for the db -- -- Table structure for table `forum_forums` -- CREATE TABLE IF NOT EXISTS `forum_forums` ( `ff_id` int(11) NOT NULL auto_increment, `ff_name` varchar(255) NOT NULL default '', `ff_desc` varchar(255) NOT NULL default '', `ff_posts` int(11) NOT NULL default '0', `ff_topics` int(11) NOT NULL default '0', `ff_lp_time` int(11) NOT NULL default '0', `ff_lp_poster_id` int(11) NOT NULL default '0', `ff_lp_poster_name` text NOT NULL, `ff_lp_t_id` int(11) NOT NULL default '0', `ff_lp_t_name` varchar(255) NOT NULL default '', `ff_auth` enum('public','gang','staff') NOT NULL default 'public', `ff_owner` int(11) NOT NULL default '0', PRIMARY KEY (`ff_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ; -- -- Dumping data for table `forum_forums` -- -- -- Table structure for table `forum_posts` -- CREATE TABLE IF NOT EXISTS `forum_posts` ( `fp_id` int(11) NOT NULL auto_increment, `fp_topic_id` int(11) NOT NULL default '0', `fp_forum_id` int(11) NOT NULL default '0', `fp_poster_id` int(11) NOT NULL default '0', `fp_poster_name` text NOT NULL, `fp_time` int(11) NOT NULL default '0', `fp_subject` varchar(255) NOT NULL default '', `fp_text` text NOT NULL, `fp_editor_id` int(11) NOT NULL default '0', `fp_editor_name` text NOT NULL, `fp_editor_time` int(11) NOT NULL default '0', `fp_edit_count` int(11) NOT NULL default '0', PRIMARY KEY (`fp_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -- Dumping data for table `forum_posts` -- -- -- Table structure for table `forum_topics` -- CREATE TABLE IF NOT EXISTS `forum_topics` ( `ft_id` int(11) NOT NULL auto_increment, `ft_forum_id` int(11) NOT NULL default '0', `ft_name` varchar(255) NOT NULL default '', `ft_desc` varchar(255) NOT NULL default '', `ft_posts` int(11) NOT NULL default '0', `ft_owner_id` int(11) NOT NULL default '0', `ft_owner_name` text NOT NULL, `ft_start_time` int(11) NOT NULL default '0', `ft_last_id` int(11) NOT NULL default '0', `ft_last_name` text NOT NULL, `ft_last_time` int(11) NOT NULL default '0', `ft_pinned` tinyint(4) NOT NULL default '0', `ft_locked` tinyint(4) NOT NULL default '0', PRIMARY KEY (`ft_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -- Dumping data for table `forum_topics` -- -
Re: [mccode v2] Battle Arena [$25 in paid modifications] now that i think of it yeah i should of been more informative of the description, well thanks for the clear post of questions that was confusing to you and i bet to most other people to.
-
Re: [mccode v2] Battle Arena [$25 in paid modifications] +1 for being generous to tell me whats confusing about this mod. Stats do not count therefor what does? Stats do count, but if your attack is lower then 1/10 of the persons max hp for example $attack=rand($player['maxhp']/10, $player['maxhp']/8) so that would help out the weaker players to have a bit of a chance. then if the big guys stats are huge and they can 1 hit the person i simply made it so they atlease have to attack them twice to lay em out i tested it out many times and quite a few times the best in stats was not successful in getting first place you want the people who started to have a chance, the big person with the stats kindof have a little handicap. How does one become the winner, by chance? last man standing out of the 10 people. does the stuff sold in the shops help against attacks in the battlearea? well you can as a buyer could add any items you want into the shop i gave an example of health pot which does help you out youll have more maxhp and depending what the buyer puts the weapon power of the weapon items yes that would help also. Can honors be used for anything else? no, but you as a buyer could try to think of something good to add for exchange of honor. Are honors in anyway related to "Honor Awards"? no. In a freeforall players attack randomly everytime the attack script is looped a player will randomly choose a different target to attack. lol.
-
Re: [mccode v2] Battle Arena [$25 in paid modifications] just curious how would you feel if i posted something similar to this on one of your paid mods, something that is not true, maybe i didnt explain it well enough in the description. or your the only one that doesnt understand. thats why im asking if you think its that easy to tart up the attack ladder to do every thing my battlearena does. go right ahead. and if you make it right. i really dont see you coming back here and saying wow that was easy.
-
Re: [mccode v2] Battle Arena [$25 in paid modifications] +1 radio :-) . end of argument its not my style. i really want to see you make the exact same thing as this though.
-
Re: [mccode v2] Battle Arena [$25 in paid modifications] yeah i give you permission to make the exact replica of this mod. and i was just giving an estimate of posts. over exagerating but still alot of your posts is making people angry thats why you have -43 for rate. thats sad.
-
Re: [mccodes v2]Movie Theatre(basic) its never too late to learn the better way.
-
Re: [mccode v2] Battle Arena [$25 in paid modifications] let me explain. users do not win a prize at the end of the day. but they do get honor if they win 1st, 2nd, or 3rd. users do not get to choose who to attack on the list. its a freeforall. at the end of everyday it runs a script if there is 10 users signed up. you can watch the battle, and see everything that happend. even the weapon name they use. users sign up yes wow your right, thats the only think the attack ladder and the battlearena have in common. I challenge you to make a 10 person freeforall. and lets see how far you get. your a confused little boy. your posting privaledges need to be taken away. oh and whats the point of the battle ladder. only the person with the best stats is going to win. now that doesnt sound that fun. does it? you should really get a life besides sitting on CE all day flaming people. 90% of your posts are flaming people
-
Re: [mccodes v2]Movie Theatre(basic) Example With for loop and arrays <?php //Created by Illes Ignath (Ishmell) //Movie Theater mod //A IIIStudios Production require "globals.php"; $user = $ir['userid']; $puramount = $_POST['buying'] * 1000000; $btickets = $_POST['buying']; $ticketnum = $ir['ticketnum']; $money = $ir['money']; $movie=array('The Baker', 'Naked Gun', 'Im Your Boss', 'The God Father', 'Black Sheep Mafia'); $tickets=array('5', '10', '20', '40', '80'); $reward=array('5', '10', '15', '20', '25'); if ($_POST['purchase']) { print " Since this theater is more private then public it wont be cheap. You can purchase tickets for $1000000 each. How many tickets would you like? <form action='theater.php' method='post'> <input type='text' size='8' name='buying'/><input name='psubmit' value='Purchase' type='submit' />"; } else if ($_POST['enter']) { if ($ir['ticketnum'] >= '1') { print " Which movie would you like to watch? Note: Some movies require more tickets but give more hapiness. <form action='theater.php' method='post'> <table width='300' border='1'> <tr> <td>Movie</td> <td>Required</td> <td>Reward</td> <td>Watch?</td> </tr>"; for($i=0; $i<5; $i++) { echo "<tr> <td>$movie[$i]</td> <td>$tickets[$i] tickets</td> <td>$reward[$i] hapiness</td> <td><input name='watch{$i}' value='Watch' type='submit' /></td> </tr>"; } echo "</table>"; } else { print "Sorry but you dont have any tickets. [url='movies.php']Go Back[/url]"; } } //using tickets for($i=0; $i<5; $i++) { else if ($_POST['watch{$i}']) { if ($ticketnum < $tickets[$i]) { print "Sorry, you dont have enough tickets. [url='movies.php']Go Back[/url]"; $h->endpage(); exit; } $db->query("UPDATE users SET ticketnum=ticketnum-{$tickets[$i]} WHERE userid=$user"); $db->query("UPDATE users SET hapiness=hapiness+{$reward[$i]} WHERE userid=$user"); print " The movie, {$movie[$i]} began to play. Excitement echoed through the crowd in the theater. A little while later the movie finished. You came out of the theater with a smile on your face. [url='movies.php']Go Back[/url]"; } } //purchases else if ($_POST['buying'] <= '0') { print " Sorry, you cant purchase zero or less tickets."; $h->endpage(); exit; } if ($money < $puramount) { print " Sorry, you dont have enough money."; $h->endpage(); exit; } if ($_POST['buying'] >= '1') { $db->query("UPDATE users SET money=money-$puramount WHERE userid=$user"); $db->query("UPDATE users SET ticketnum=ticketnum+$btickets WHERE userid=$user"); print " You have spent $\{$puramount} on $btickets movie tickets. [url='movies.php']Go Back[/url] "; } ?> the for loop runs through the code in the brackets $i<5 times everytime it runs through the code in the brackets it adds +1 to the string $i.... $i++