Jump to content
MakeWebGames

mdshare

Members
  • Posts

    2,018
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by mdshare

  1. Re: Kiddy Cartel note: This game engine is very clean written and will be much easier to understand the code and to create mods than with mccode Templating this game will be even easier.
  2. Basic game engine created by www.dragonflygamedesign.com This is a very Basic multiplayer game engine to start building your own game. Game concept: Get as many resources and as much money as possible. To do this you have to build lemonde stands, bake cookies, mow lawns, spy an take over oncurents. Engine can be downloaded here Requirements: PHP & mySQL
  3. Re: Register Page that stops multies I jailed also Myanmar (former burma) :s
  4. Re: [tribalwars.net] Fetch World Data It is as it fetches the date from a game external and is a base to create other mods this works only for www.tribalwars.net
  5. Re: [tribalwars.net] Abondened/Tribeless village coordinater example http://stw.cemedia.biz/tools/targets.php note no template is around it, this is basic enter eg a continent from world 2 english and it will give all abondened villages and tribeless player villages
  6. Re: [tribalwars.net] Fetch World Data no with this data you can create mods for it, example is the abondened/tribeless village mod and the Attack simulator mod created with the use of the above you can add a cron if you write tribalwars tools to get the data updated auto every x hours
  7. Re: [tribalwars.net] Attack Simulator This is very basic doesn't has a template around it here is a example http://stw.cemedia.biz/tools/attack.php
  8. Re: [tribalwars.net] Fetch World Data This just fetches the data from the game tribalwars.net and creates a database to help you further to create or use mods/add-ons
  9. Script to fetch data of abondened/tribeless villages note: you need to have data fetched as in the Fetch World Data mod   Please enter the Continent: Output with BB-codes <?php $cont=$_POST['cont']; if($cont){ echo "$cont"; include 'db_connect.php'; $query=mysql_query("SELECT * FROM world2 WHERE player_name='' AND continent=$cont AND points>116 ORDER BY x,y;"); echo "[b]Abandoned Villages on K$cont with points > 116[/b]"; while($result=mysql_fetch_array($query)){ if($_POST['bbcode']){ echo "[village]$result[x]|$result[y][/village]: $result[points] points"; }else{ echo "$result[name]($result[x]|$result[y]): $result[points] points"; } } $query=mysql_query("SELECT * FROM world2 WHERE player_name='' AND continent=$cont AND points<=116 ORDER BY x,y;"); echo "[b]Abandoned Villages on K$cont with points <= 116[/b]"; while($result=mysql_fetch_array($query)){ if($_POST['bbcode']){ echo "[village]$result[x]|$result[y][/village]: $result[points] points"; }else{ echo "$result[name]($result[x]|$result[y]): $result[points] points"; } } $query=mysql_query("SELECT * FROM world2 WHERE player_name!='' and tag='' and continent=$cont ORDER BY player_name,points;"); echo "[b]Tribless Players and Villages in K$cont[/b]"; while($result=mysql_fetch_array($query)){ if($_POST['bbcode']){ echo "[player]$result[player_name][/player]: [village]$result[x]|$result[y][/village]: $result[points] points"; }else{ echo "$result[player_name]: $result[name]($result[x]|$result[y]): $result[points] points"; } } } ?>
  10. Create your own attack simulator note: you need a db installed as in the Fetch world data mod db_connect.php   <?php $hostname="localhost"; $username="*****"; $passwd="*****"; $db_name="tw"; mysql_connect($hostname,$username,$passwd)or die("cannot connect to db:".mysql_error()); mysql_select_db($db_name) or die (mysql_error()); ?>   attack.php   <?php /* Script for coordinating attacks on a single target Method: Checks for village/player flag presence: NO: requests them (default) Yes: Prints out form for entering required data */ include 'db_connect.php'; echo "Attack Coordinator\n"; $village=$_POST['village']; $player=$_POST['player']; if($village){ print_header($village); $query="SELECT count(x) FROM world2 WHERE player_name='$player'"; if(($player!='')&&(mysql_result(mysql_query($query),0))){ print_player_villages($village,$player); }else{ echo "[b]Attacking villages:[/b]\n"; echo "Either No player name was entered, or the name was invalid.\n"; echo "You will have to manually enter the x|y coordinates of attacking villages.\n"; print_villages($village); } print_footer(); }else{ echo "\n"; echo " Please indicate how many villages will be in the attack, as well as the name of the player the attacks originate from.\n"; echo "\t # of villages (required)\n"; echo "\t Player Name (optional)\n"; echo "\t\n"; echo "\n"; } function print_header($num_villages){ echo "\n"; echo "Target Village Coordinates(X|Y): \n"; echo "When would you like the attacks to arrive at the target: [use Server time please]"; echo "Date:\n"; select(1,31,day); echo "-"; select(1,12,mon); echo "-"; select(2007,2008,year); echo "\n"; echo "Time:\n"; select(0,23,hr); echo ":"; select(0,59,min); echo ":"; select(0,59,sec); echo "\n"; } function print_footer(){ echo "\t\n"; echo "\n"; } function select($min,$max,$name){ echo "\t\n"; for($i=$min; $i<=$max; $i+=1){ if($i<10){$j="0$i";}else{$j="$i";} echo "\t\t$j\n"; } echo "\n\n"; } function print_villages($num_villages){ echo "</pre> <table>AttackVillageSlowest Unit$i"; print_unit($i); echo "</table>\n";<br>}<br><br>function print_player_villages($num_villages,$name){<br><br>echo "<font size="+1">[b]Attacking villages:[/b]</font>\n";<br>echo "<table>AttackVillageSlowest Unit$i\n"; echo "\t\tSelect Village\n"; $query="SELECT x,y,name FROM world2 WHERE player_name='$name' ORDER BY name"; $result=mysql_query($query); while($data=mysql_fetch_array($result)){ echo "\t\t$data[name]($data[x]|$data[y])\n"; } echo "\t"; print_unit($i); echo "\t\t</table>\n"; <br>mysql_close();<br>}<br><br>function print_unit($i){<br>echo "\t\n";<br>echo "\t\tSelect Troop Type\n";<br>echo "\t\tSpear fighter (18 min/field)\n";<br>echo "\t\tSwordsman (22 min/field)\n";<br>echo "\t\tAxemen (18 min/field)\n";<br>echo "\t\tScout (9 min/field)\n";<br>echo "\t\tLight cavalry (10 min/field)\n";<br>echo "\t\tHeavy cavalry (11 min/field)\n";<br>echo "\t\tRam (30 min/field)\n";<br>echo "\t\tCatapult (30 min/field)\n";<br>echo "\t\tNobleman (35 min/field)\n";<br>echo "\t\n";<br>}<br><br>?&gt   attack2.php   <?php include 'db_connect.php'; $target=$_GET['target']; $day=$_GET['day']; $mon=$_GET['mon']; $year=$_GET['year']; $hr=$_GET['hr']; $min=$_GET['min']; $sec=$_GET['sec']; list($target_x,$target_y)=split('\|',$target); $arrival_time=mktime($hr,$min,$sec,$mon,$day,$year); echo "[b]Rum Attack Calculator[/b]\n"; $query="SELECT id,name,player_name FROM world2 WHERE x=$target_x and y=$target_y"; $result=mysql_query($query); if($info=mysql_fetch_array($result)){ echo "</pre> <table>Target Village: $info[name] ($target_x|$target_y)Target Player: $info[player_name]</table>";<br>}else{<br>echo "Coordinates are not a valid village\n";<br>}<br><br>echo "<font size="+1">Arrival time:".date('M d \a\t H:i:s',$arrival_time)."</font>\n"; <br>echo "<table>AttackStarting VillageAttack DurationLaunch Time$i$result ($village_x|$village_y)$iInvalid Village ($village_x|$village_y)$length".date('M d \a\t H:i:s',$launch_time)."</table>\n";<br><br>function distance($x1,$x2,$y1,$y2){<br>$distance=sqrt(pow(($x1-$x2),2)+pow(($y1-$y2),2));<br>return($distance);<br>}<br><br>function calc_time($time){<br>$time=round($time);<br>$sec=$time%60;<br>$time=($time-$sec)/60;<br>$min=$time%60;<br>$hour=($time-$min)/60;<br>$duration="$hour:";<br>if($min<10){$duration.="0$min:";}else{$duration.="$min:";}<br>if($sec<10){$duration.="0$sec";}else{$duration.="$sec";}<br>return($duration);<br>}<br><br><br>?&g
  11. How to fetch tribalwars.net world data to create your own mods example with world 2 english server Create db and table   <?php $hostname="localhost"; $username="*****"; $passwd="*****"; $db_name="*****"; mysql_connect($hostname,$username,$passwd)or die("cannot connect to db:".mysql_error()); mysql_select_db($db_name) or die (mysql_error()); mysql_query("drop table village"); mysql_query(" create table village( id int primary key, name varchar(75), x int, y int, player int, points int, rank int, continent int)"); mysql_query("drop table player"); mysql_query(" create table player( id int primary key, name varchar(75), tribe int, village int, points int, rank int)"); mysql_query("drop table tribe"); mysql_query(" create table tribe( id int primary key, name varchar(75), tag varchar(75), members int, villages int, points int, all_points int, rank int)"); mysql_query("drop table world2"); mysql_query(" create table world2( id int auto_increment primary key, name varchar(75), x int, y int, continent int, player_name varchar(75), tag varchar(75), points int)"); mysql_query("drop table twdb"); mysql_query(" create table twdb( player_name varchar(40), tribe varchar(30), continent int, villages int, points int, percent_cont int, primary_cont int)"); ?>   Fetch data from tribalwars.net   <?php $hostname="localhost"; $username="*****"; $passwd="*****"; $db_name="*****"; mysql_connect($hostname,$username,$passwd)or die("cannot connect to db:".mysql_error()); mysql_select_db($db_name) or die (mysql_error()); $lines = gzfile('http://tw2.tribalwars.net/map/village.txt.gz', 'r'); if(!is_array($lines)) die("File could not be opened"); echo "Clearing village database"; mysql_query("truncate village"); foreach($lines as $line) { list($id, $name,$x, $y, $player, $points, $rank) = explode(',', $line); $name = urldecode($name); $name = addslashes($name); $y2=$y-($y%100); $x2=$x-($x%100); $continent=$y2/10+$x2/100; if( mysql_query("INSERT INTO village SET id='$id', name='$name', x='$x', y='$y', player='$player', points='$points', rank='$rank', continent='$continent'")){ // echo "Record: $id: $x: $y: $name continent:K$continent y2:$y2 x2=$x2 "; } else { echo "db not updated"; } } $lines = gzfile('http://tw2.tribalwars.net/map/tribe.txt.gz', 'r'); if(!is_array($lines)) die("File could not be opened"); echo "Clearning Player Database"; mysql_query("truncate player"); foreach($lines as $line) { list($id, $name, $tribe, $villages, $points, $rank) = explode(',', $line); $name = urldecode($name); $name = addslashes($name); if( mysql_query("INSERT INTO player SET id='$id', name='$name', tribe='$tribe', village='$villages', points='$points', rank='$rank'")){ // echo "Record: $id: $name "; }else{echo "db not updated";} } $lines = gzfile('http://tw2.tribalwars.net/map/ally.txt.gz', 'r'); if(!is_array($lines)) die("File could not be opened"); echo "Clearing tribe database"; mysql_query("truncate tribe"); foreach($lines as $line) { list($id, $name, $tag, $members, $villages, $points, $all_points,$rank) = explode(',', $line); $rawtag=$tag; $name = urldecode($name); $tag = urldecode($tag); $name = addslashes($name); $tag = addslashes($tag); if( mysql_query("INSERT INTO tribe SET id='$id', name='$name', tag='$tag', members='$members', villages='$villages', points='$points', all_points='$all_points', rank='$rank'")){ // echo "Record: $id: TAG: $rawtag >> $tag >> $name "; }else{echo "db not updated";} } ?>   Create world date   <?php $hostname="localhost"; $username="******"; $passwd="*****"; $db_name="*****"; mysql_connect($hostname,$username,$passwd)or die("cannot connect to db:".mysql_error()); mysql_select_db($db_name) or die (mysql_error()); echo "Clearing Present world2 database"; mysql_query("TRUNCATE world2;"); echo "Creating village database: world2Working"; $query="SELECT * FROM village ORDER BY continent"; $villages=mysql_query($query); while( $village_data = mysql_fetch_array( $villages ) ) { if($village_data['player']){ $query="SELECT name,tribe FROM player WHERE id=$village_data[player]"; $player_data = mysql_fetch_array( mysql_query($query)); $player_name=addslashes($player_data['name']); $player_tribe=$player_data['tribe']; $query="SELECT tag FROM tribe WHERE id=$player_data[tribe]"; $tribe_tag = mysql_fetch_array(mysql_query($query)); echo " ENTRY: $village_data[x]|$village_data[y]:$player_data[tribe]:$tribe_tag[tag]"; $tag=$tribe_tag['tag']; $village_name=addslashes($village_data['name']); }else{$player_name='';$tag='';} mysql_query("INSERT INTO world2 (id,name,x,y,continent,player_name,tag,points) VALUES ($village_data[id],'$village_name',$village_data[x],$village_data[y],$village_data[continent],'$player_name','$tag',$village_data[points]);"); } ?>
  12. Re: Register Page that stops multies   low ? on TornCity I jailed like 2000 users on a AOL dns :s
  13. Re: 3 Word Game goes to the
  14. Re: Counting (nr game) 922
  15. </pre> <table border="0" cellpadding="0" cellspacing="0" width="468">[url="http://www.criminalexistence.com"][img=http://www.criminalexistence.com/CC/title.jpg][/url] [b]Additional Currency! [installation Instructions][/b] Additional Currency! allows you to add a extra curency to your game. [b]This requires MCCode/DBSCode installed on your server. [/b] [b]Additional Currency! [Files to edit][/b] The list of files and modifications to do: [i]header.php[/i] Find: [b]Money:[/b] {$fm} After Add: [b]Gems:[/b] {$ir['gems']} SQL Query to run ALTER users ADD gems int(11) NOT NULL default '0', This modification adds a extra currency called gems, you can now have crimes, shops or whatever that pay out in this new currency. [size="1"][b]Script information[/b] type: mod / Additional Currency! license: All code and documentation are property of their posters at Criminal Existence Copyright © 2006-2007 The Plug Network Inc script: addcurv1 coder: Spellbyte release: 1.0.0[/size] </
  16. </pre> <table border="0" cellpadding="0" cellspacing="0" width="468">[url="http://www.criminalexistence.com"][img=http://www.criminalexistence.com/CC/title.jpg][/url] [b]Choose Gender! [installation Instructions][/b] Choose Gender! allows you to add gender to your game. [b]This requires MCCode/DBSCode installed on your server. [/b] [b]Choose gender! [Files to edit][/b] The list of files and modifications to do: [i]register.php[/i] Find: mysql_query("INSERT INTO users (username, login_name, userpass, level, money, user_level, energy, maxenergy, will, maxwill, brave, maxbrave, hp, maxhp, location, gender, signedup, email, lastip) VALUES( '{$username}', '{$username}', md5('{$_POST['password']}'), 1, $sm, 1, 12, 12, 100, 100, 5, 5, 100, 100, 1, 'Male', unix_timestamp(), '{$_POST['email']}', '$ip')", $c); Replace With: mysql_query("INSERT INTO users (username, login_name, userpass, level, money, user_level, energy, maxenergy, will, maxwill, brave, maxbrave, hp, maxhp, location, gender, signedup, email, lastip) VALUES( '{$username}', '{$username}', md5('{$_POST['password']}'), 1, $sm, 1, 12, 12, 100, 100, 5, 5, 100, 100, 1, '{$_POST['gender']}', unix_timestamp(), '{$_POST['email']}', '$ip')", $c); Find: Confirm Password: Add After: Gender: MaleFemale [size="1"][b]Script information[/b] type: mod / Choose Gender! license: All code and documentation are property of their posters at Criminal Existence Copyright © 2006-2007 The Plug Network Inc script: chgendv1 coder: Seanybob release: 1.0.0[/size] </
  17. </pre> <table border="0" cellpadding="0" cellspacing="0" width="468">[url="http://www.criminalexistence.com"][img=http://www.criminalexistence.com/CC/title.jpg][/url] [b]Jail Key! [installation Instructions][/b] Jail Key! allows you to add a jail key to your game. [b]This requires MCCode/DBSCode installed on your server. [/b] [b]Jail Key! [Files to edit][/b] The list of files and modifications to do: [i]inventory.php[/i] Find: </   print " [[url='itemuse.php?ID={$i[']Use[/url]]"; Insert:   if($i['itmtypename'] == 'Jail Key') { print " [[url='itemuse.php?ID={$i[']Use[/url]]"; }   [i]itemuse.php[/i] Find:     Add Before:   } if($r['itmname'] == 'your item name') { mysql_query("UPDATE inventory SET inv_qty=inv_qty-1 WHERE inv_id={$_GET['ID']}",$c); mysql_query("DELETE FROM inventory WHERE inv_qty=0",$c); mysql_query("UPDATE users SET jailtime=0 WHERE userid=$userid",$c); } print "You use {$r['itmname']}. to get out.";   Create at your MySQL Database the item type in the itemtype table and the item in the item table. [size="1"][b]Script information[/b] type: mod / Jail Key! license: All code and documentation are property of their posters at Criminal Existence Copyright © 2006-2007 The Plug Network Inc script: modjailkeyv1 coder: TheRipper release: 1.0.0[/size]
  18. Re: 3 Word Game and makes peace
  19. mdshare

    Movies

    Re: Movies Just watched Mercy Mission; The rescue of flight 771 wow, old 1993 movie that got me hooked even as 3/4 of the movie is in a aircraft seat based on a true story christmas 1978
  20. Re: Mercs For Sale pay someone for a temporary period to manage your game, would be pitty to loose a dedicated game owner
  21. Re: 3 Word Game weilding a rusty
  22. mdshare

    Movies

    Re: Movies every movie where Sean Connery plays in, great actor
  23. Re: Counting (nr game) 913
  24. Re: 3 Word Game The cruelty of
  25. Most people eventually want to start making some money from their site. Either to pay for their hosting or for just to generate some spare cash on the side. We have seen some major sites that generate thousands of dollars a month by just using some advertisements on their pages. On this page you can find some sources to generate some income for your website. AdSense is an excellent way to make money from your website. Pays well for United States traffic. Most of the major sites use AdSense in order to make money from their site. Their tips play with positions, sizes and colors for the advertisements and see what works best. Use channels to track specific pages on your site and see how they perform.       Advertising your site with Adwords is easy. You pick either the keywords or sites that you want to target. Then choose how much you want to spend and then your ads are placed and you will then gain visitors to your website.     Can't wait for the $100 minimum payout by Google then you can choose for Bidvertiser, get paid for every click and have the payments sent directly to your PayPal account ($10 minimum payout).   [url="http://www.bidvertiser.com"]internet advertising[/url]   Bidvertiser is also a easy and cheap way to advertise your site, currently there is a promotion ongoing that gives you $20 free advertising. With BidVertiser, you decide where your ad will be displayed. Simply browse through their search and categorized directory of sites and choose the appropriate ones for your ad.   [url="http://www.bidvertiser.com"]internet advertising[/url]   Reachads is an an advertising agency exclusively for gaming-related sites called ReachAds. ReachAds can pay you to display gaming advertisements on your website, and you can advertise your game on the ReachAds network for as little as $0.03 per click. The ReachAds network consists of many popular and reputable games such as Imperia Online and Bulfleet.   Advertise with ReachAds
×
×
  • Create New...