
Zuben45
Members-
Posts
21 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by Zuben45
-
Re: [mccode v2] Battletent Fix ok , but any writited :(
-
Re: [mccode v2] Battletent Fix Hello , I know that I have problem with it in database , please write me database for it , thanks
-
Re: [mccode v2] Battletent Fix my staff_battletent.php : <?php include "sglobals.php"; if($ir['user_level'] > 2) { die("403"); } //This contains battletent stuffs switch($_GET['action']) { case "addbot": addbot(); break; case "editbot": editbot(); break; case "delbot": delbot(); break; default: print "Error: This script requires an action."; break; } function addbot() { global $db,$ir,$c,$h,$userid; $_POST['userid']=abs((int) $_POST['userid']); $_POST['money']=abs((int) $_POST['money']); if($_POST['userid'] && $_POST['money']) { $q=$db->query("SELECT * FROM users WHERE userid={$_POST['userid']}"); if($db->num_rows($q)==0) { print "Non-existant user."; $h->endpage(); exit; } $r=$db->fetch_row($q); if($r['user_level'] != 0) { print "Challenge bots must be NPCs."; $h->endpage(); exit; } $q2=$db->query("SELECT * FROM challengebots WHERE cb_npcid={$r['userid']}"); if($db->num_rows($q2)) { print "This user is already a Challenge Bot. If you wish to change the payout, edit the Challenge Bot."; $h->endpage(); exit; } $db->query("INSERT INTO challengebots VALUES('{$r['userid']}', '{$_POST['money']}')"); print "Challenge Bot {$r['username']} added."; stafflog_add("Added Challenge Bot {$r['username']}."); } else { print "<h3>Adding a Battle Tent Challenge Bot</h3><hr /> <form action='staff_battletent.php?action=addbot' method='post'> Bot: ".user_dropdown($c, 'userid')." Bounty for Beating: <input type='text' name='money' /> <input type='submit' value='Add Challenge Bot' /></form>"; } } function editbot() { global $db,$ir,$c,$h,$userid; switch($_GET['step']) { case "2": $_POST['userid']=abs((int) $_POST['userid']); $_POST['money']=abs((int) $_POST['money']); $q=$db->query("SELECT * FROM users WHERE userid={$_POST['userid']}"); if($db->num_rows($q)==0) { print "Non-existant user."; $h->endpage(); exit; } $r=$db->fetch_row($q); $q2=$db->query("SELECT * FROM challengebots WHERE cb_npcid={$r['userid']}"); if(!$db->num_rows($q2)) { print "This user is not a Challenge Bot."; $h->endpage(); exit; } $db->query("UPDATE challengebots SET cb_money={$_POST['money']} WHERE cb_npcid={$r['userid']}"); print "Challenge Bot {$r['username']} was updated."; stafflog_add("Edited Challenge Bot {$r['username']}."); break; case "1": $_POST['userid']=abs((int) $_POST['userid']); $q=$db->query("SELECT * FROM users WHERE userid={$_POST['userid']}"); if($db->num_rows($q)==0) { print "Non-existant user."; $h->endpage(); exit; } $r=$db->fetch_row($q); $q2=$db->query("SELECT * FROM challengebots WHERE cb_npcid={$r['userid']}"); if(!$db->num_rows($q2)) { print "This user is not a Challenge Bot."; $h->endpage(); exit; } $r2=$db->fetch_row($q2); print "<h3>Edit Challenge Bot</h3><hr /> You are editing the challenge bot: [b]{$r['username']}[/b]<form action='staff_battletent.php?action=editbot&step=2' method='post'> Bounty for Beating: <input type='text' name='money' value='{$r2['cb_money']}' /> <input type='hidden' name='userid' value='{$r['userid']}' /> <input type='submit' value='Edit Challenge Bot' /></form>"; break; default: print "<h3>Edit Challenge Bot</h3><hr /> <form action='staff_battletent.php?action=editbot&step=1' method='post'> Bot: ".challengebot_dropdown($c, 'userid')." <input type='submit' value='Edit Challenge Bot' /></form>"; break; } } function delbot() { global $db,$ir,$c,$h,$userid; $_POST['userid']=abs((int) $_POST['userid']); $_POST['delcb']=abs((int) $_POST['delcb']); if($_POST['userid']) { $q=$db->query("SELECT * FROM users WHERE userid={$_POST['userid']}"); if($db->num_rows($q)==0) { print "Non-existant user."; $h->endpage(); exit; } $r=$db->fetch_row($q); $q2=$db->query("SELECT * FROM challengebots WHERE cb_npcid={$r['userid']}"); if(!$db->num_rows($q2)) { print "This user is not a Challenge Bot."; $h->endpage(); exit; } $r2=$db->fetch_row($q2); $db->query("DELETE FROM challengebots WHERE cb_npcid={$r['userid']}"); if($_POST['delcb']) { $db->query("DELETE FROM challengesbeaten WHERE npcid={$r['userid']}"); } print "Challenge Bot {$r['username']} removed."; stafflog_add("Removed Challenge Bot {$r['username']}"); } else { print "<h3>Remove Challenge Bot</h3><hr /> [b]NB:[/b] This will not delete the user from the game, only remove their entry as a Battle Tent Challenge Bot.<form action='staff_battletent.php?action=delbot' method='post'> Bot: ".challengebot_dropdown($c, "userid")." Delete challengesbeaten entries for this bot? <input type='radio' name='delcb' value='1' checked='checked' /> Yes <input type='radio' name='delcb' value='0' /> No <input type='submit' value='Remove Bot' /></form>"; } } $h->endpage(); ?>
-
Re: House Picture i insert it to index , and it write me this : if your doing it that way just do something like this.. echo '[img=images/houses/'.$ir['hID'].']'; If you were to have different file extensions and names the best idea would be an array Thanks its good , but I change it for echo '[img=/houses/'.$ir['hID'].'.jpg]'; and now is it function :) , thanks
-
Re: House Picture This ? i insert it to index , and it write me this :
-
Re: House Picture but How it will upgrate self ? , in index.php I have where I live and when i change house how it change it ?
-
Re: House Picture My index : <div align="center"><table width="496" border="0" cellspacing="0" cellpadding="0"><tr><td>[url="http://www.webzdarma.cz/"][img=http://i.wz.cz/banner/nudle03.gif][/url]</td><td> <script type="text/javascript"> <!-- /* (c) 2001 AdCycle.com All Rights Reserved.*/ var id=866; var jar=new Date();var s=jar.getSeconds();var m=jar.getMinutes(); var flash=s*m+id;var cgi='http://ad.wz.cz'; var p='<iframe src="'+cgi+'/ad.cgi?gid=9&t=_top&id='+flash+'&type=iframe" '; p+='height="60" width="468" border="0" marginwidth="0" marginheight="0" hspace="0" '; p+='vspace="0" frameborder="0" scrolling="no">'; p+='<a href="'+cgi+'/click.cgi?gid=9&id='+flash+'" target="_top">'; p+='[img='+cgi+'/ad.cgi?gid=9&id='+flash+']</'+'a></'+'ifra'+'me>'; document.write(p); // --> </script><noscript><div>[url="http://ad.wz.cz/click.cgi?gid=9&id=866"][img=http://ad.wz.cz/ad.cgi?gid=9&id=866][/url]</div></noscript> </td></tr></table></div> <?php $housequery=1; include "globals.php"; print "<h3>General Info:</h2>"; $exp=(int)($ir['exp']/$ir['exp_needed']*100); print "<table><tr><td>[b]Name:[/b] {$ir['username']} </td> [img=/{$ir[] <td>[b]Crystals:[/b] {$cm}</td></tr><tr> <td>[b]Level:[/b] {$ir['level']}</td> <td>[b]Exp:[/b] {$exp}%</td></tr><tr> <td>[b]Money:[/b] $fm</td> <td>[b]HP:[/b] {$ir['hp']}/{$ir['maxhp']}</td></tr> <tr><td>[b]Property:[/b] {$ir['hNAME']}</td></tr></table>"; print "<hr><h3>Stats Info:</h3>"; $ts=$ir['strength']+$ir['agility']+$ir['guard']+$ir['labour']+$ir['IQ']; $ir['strank']=get_rank($ir['strength'],'strength'); $ir['agirank']=get_rank($ir['agility'],'agility'); $ir['guarank']=get_rank($ir['guard'],'guard'); $ir['labrank']=get_rank($ir['labour'],'labour'); $ir['IQrank']=get_rank($ir['IQ'],'IQ'); $tsrank=get_rank($ts,'strength+agility+guard+labour+IQ'); $ir['strength']=number_format($ir['strength']); $ir['agility']=number_format($ir['agility']); $ir['guard']=number_format($ir['guard']); $ir['labour']=number_format($ir['labour']); $ir['IQ']=number_format($ir['IQ']); $ts=number_format($ts); $pics = array(1=>"houses/default.png",2=>"houses/mansion.jpg"); print "<table><tr><td>[b]Strength:[/b] {$ir['strength']} [Ranked: {$ir['strank']}]</td><td>[b]Agility:[/b] {$ir['agility']} [Ranked: {$ir['agirank']}]</td></tr> <tr><td>[b]Guard:[/b] {$ir['guard']} [Ranked: {$ir['guarank']}]</td><td>[b]Labour:[/b] {$ir['labour']} [Ranked: {$ir['labrank']}]</td></tr> <tr><td>[b]IQ: [/b] {$ir['IQ']} [Ranked: {$ir['IQrank']}]</td><td>[b]Total stats:[/b] {$ts} [Ranked: $tsrank]</td></tr></table> <center><font color=red>Your House Is:{$ir['hNAME']}</font></center> <center> </center>"; echo $pics[$ir['hID']]; if(isset($_POST['pn_update'])) { $db->query("UPDATE users SET user_notepad='{$_POST['pn_update']}' WHERE userid=$userid"); $ir['user_notepad']=stripslashes($_POST['pn_update']); print "<hr>[b]Personal Notepad Updated![/b]"; } print "<hr>Your Personal Notepad:<form action='index.php' method='post'> <textarea rows='10' cols='50' name='pn_update'>".htmlspecialchars($ir['user_notepad'])."</textarea> <input type='submit' value='Update Notes' /></form>"; echo " Toto je tv?j okr?dac? link {odkaz]: [url='http://{$domain}/register.php?REF=$userid']http://{$domain}/register.php?REF=$userid[/url] </p> za ka?d?ho nov? zaregistrovan?ho u?ivatele dostane? 2 Crystal!"; $h->endpage(); ?> I have house "Gomez?v hrad" in database is 5 hID , but i not see picture , why ? please
-
Re: House Picture but , I have problems with add house when i add hPIC to database houses :(
-
Re: [mccode v2] Battletent Fix Is fix for staff battletent ? please , When I can add bot , that any bot add :(
-
Re: House Picture how file i must edit ?
-
Re: House Picture I found it , but when i isert sql to database , that not function add house :(
-
Hello , How I can do it ? thanks :)
-
Re: [mccode] House Pictures Hello , When I insert script from firt page on this topic , that rhen i can do new house , that nothing do it , why please ? thanks
-
Hello , I can doing for my game Arena or Ring , On left table will 5 best and on left table will posicion user with 4 user better thant he , thanks :)
-
Hello , How I can get EXP , please , thanks :)
-
Re: I need help with estate.php I edit first house in database on hWILL on 1 , but any change , can you send me your databse houses ? thanks EDIT : I delete database houses , and I insert new table houses , and now is it funstion :) , thbnkas
-
Re: I need help with estate.php Yes , I have it in database , and here is screen :
-
Re: I need help with estate.php yes , I do . when i click on Sell your house , that it write : You already live in the lowest property! :( EDIT :
-
Hello , I have estate.php : <?php include "globals.php"; $mpq=$db->query("SELECT * FROM houses WHERE hWILL={$ir['maxwill']}"); $mp=$db->fetch_row($mpq); $_GET['property']=abs((int) $_GET['property']); if($_GET['property']) { $npq=$db->query("SELECT * FROM houses WHERE hID={$_GET['property']}"); $np=$db->fetch_row($npq); if($np['hWILL'] < $mp['hWILL']) { print "You cannot go backwards in houses!"; } else if ($np['hPRICE'] > $ir['money']) { print "You do not have enough money to buy the {$np['hrNAME']}."; } else { $db->query("UPDATE users SET money=money-{$np['hPRICE']},will=0,maxwill={$np['hWILL']} WHERE userid=$userid"); print "Congrats, you bought the {$np['hNAME']} for \${$np['hPRICE']}!"; } } else if (isset($_GET['sellhouse'])) { $npq=$db->query("SELECT * FROM houses WHERE hWILL={$ir['maxwill']}"); $np=$db->fetch_row($npq); if($ir['maxwill'] == 100) { print "You already live in the lowest property!"; } else { $db->query("UPDATE users SET money=money+{$np['hPRICE']},will=0,maxwill=100 WHERE userid=$userid"); print "You sold your {$np['hNAME']} and went back to your shed."; } } else { print "Your current property: [b]{$mp['hNAME']}[/b] The houses you can buy are listed below. Click a house to buy it. "; if($ir['maxwill'] > 100) { print "[url='estate.php?sellhouse']Sell Your House[/url] "; } $hq=$db->query("SELECT * FROM houses WHERE hWILL>{$ir['maxwill']} ORDER BY hWILL ASC"); while($r=$db->fetch_row($hq)) { print "[url='estate.php?property={$r[']{$r['hNAME']}[/url]   - Cost: \${$r['hPRICE']}   - Will Bar: {$r['hWILL']} "; } } $h->endpage(); ?> And , I only see : but , I not see houses for buy :( , help me please , Thanks