
Aderik
Members-
Posts
48 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by Aderik
-
Curses, it's been so long since I made the Demo account I forgot the pass. Thank you Peter ^_^
-
I thought since I received a lot of help from the staff and other members here that I would introduce my game. Trial account: Demo Trial password: Demo
-
Stock bonus in attacks seems a little unbalancing. A lot of players rate how good they are based on how good their character's abilities are, giving them more in crucial areas simply for having a donator status almost spits in the face of nondonators. Same goes for a percent off any item. I like the idea Dayo and look forward to seeing it in action.
-
Thank you very much ^_^
-
Sorry for the late reply. Any hints or tips I could get to do so? I see that n the img src you can define a class which matches to the slot, what would I use to go about wrapping the text? Example given in tutorial <div id="weapon_spot"></div> <div id="helmet_spot"></div> <div id="inventory"> <--- need this in text not image. </div>
-
Quick question, can this be adapted to allow the user to click and drag text words and not pictures?
-
Added, I like, very professional looking!
-
Congrats to ya both :D
-
I've been working on my game for a while nwo and every now and then I'd update the graphics. Since I started half a year ago things have improved alot! And so I'd like some critism from people who's owned and run games, or have designed games before. http://img823.imageshack.us/i/kingdomwarsonline.png/ http://img219.imageshack.us/i/kingdomwarsonline2.png/ Think I posted this in the wrong area... XD sorry...
-
Thank you Dom... sorry for the waste of space and thank you everyone for helping ^_^
-
The code Kieran posted got me the same error result. And it's weird? I dunno... >_< I can't figure it out for the life of me. Actually, using that code and trying to accept got me the error, but I don't have the surrender in the database anymore... I'll run some more tests.
-
Hello again! I'm running into another problem, when ever someone goes to accept a surrender they are met with a query error. function gang_staff_viewsurrenders() { global $db,$ir,$c,$userid,$gangdata; if(!isset($_POST['subm'])) { print "<form action='yourcoalition.php?action=staff&act2=viewsurrenders' method='post'> Choose who to accept the surrender from. <input type='hidden' name='subm' value='submit' /> Gang: <select name='sur' type='dropdown'>"; $wq=$db->query("SELECT s.*,w.* FROM surrenders s LEFT JOIN gangwars w ON s.surWAR=w.warID WHERE surTO={$ir['gang']}"); while($r=$db->fetch_row($wq)) { if($gangdata['gangID'] == $r['warDECLARER']) { $w="You";$f="warDECLARED"; } else { $w="Them";$f="warDECLARER"; } $ggq=$db->query("SELECT * FROM gangs WHERE gangID=".$r[$f]); $them=$db->fetch_row($ggq); print "<option value='{$r['surID']}'>War vs. {$them['gangNAME']} (Msg: {$r['surMSG']})</option>"; } print "</select> <input type='submit' value='Accept Surrender' /></form>"; } else { $_POST['sur'] = abs((int) $_POST['sur']); $q=$db->query("SELECT surWAR FROM surrenders WHERE surID={$_POST['sur']}"); $xx = $db->fetch_row($q); $_POST['war'] = abs((int) $xx); $wq=$db->query("SELECT * FROM gangwars WHERE warID={$_POST['war']}"); //*This is the code with the error*// $r=$db->fetch_row($wq); if($gangdata['gangID'] == $r['warDECLARER']) { $f="warDECLARED"; } else { $f="warDECLARER"; } $db->query("DELETE FROM surrenders WHERE surID={$_POST['sur']}"); $db->query("DELETE FROM gangwars WHERE warID={$_POST['war']}"); $ggq=$db->query("SELECT * FROM gangs WHERE gangID=".$r[$f]); $them=$db->fetch_row($ggq); $event=str_replace("'","''","[url='coalition.php?action=view&ID={$ir[']{$gangdata['gangNAME']}[/url] have accepted the surrender from [url='coalition.php?action=view&ID={$them[']{$them['gangNAME']}[/url], the war is over!"); $db->query("INSERT INTO gangevents VALUES('',{$ir['gang']},unix_timestamp(),'$event') , ('',".$r[$f].",unix_timestamp(),'$event')"); print "You have accepted surrender, the war is over."; } } This is the function and below is the error. Quote (My Game)
-
3D vs Hand Drawn NPC/Advertisement vs 'Real' images. I have dabbled with DAZ, and I'm a decent artist when it comes to altered tracing. The problem with DAZ is I am finding it hard to find a variety of facial/hair designs and armor styles that suit the time frame and area I'm using (Ancient China). I'm highly tempted to give a week over to my drawing abilities, but I'm not so good with buildings or landscapes, which I would really prefer as 'real' images. So is it worth to put a lot of time and effort into getting images? Can there be a happy medium between these three styles? I have seen successful games for both 3D/real and HandDrawn. Does either one tend to be 'better' for the players who join?
-
A quick thought to the referal system. Some games have achievements for certain milestones. (ie, you reach lvl x you get a point or you completed such and such a mission you get a point, spend it wisely) Would tying the referal reward system the milestone/achievement system that be effective for that? So lets say if player a invites player b, and player b reaches lvl 10 they get '50 crystals' then at lvl 50 they get '500 crystals' then at 100 '1500 crystals' etc and so forth. I considered that/bonus to donator days/maybe a unique item only obtained through a referal's achievement. *was hoping his 400$ for advertising would be enough, can see that he'll need to save a few more paychecks*
-
Mkays! Budget: 80$ What I require is a chat system. It needs to... 1) Log messages with timestamps and username to a database then regurgatate them back, newest being on the bottom. 2) When users access the page it uses their ingame username as their chat username. 3) Display a list of users currently in the room on the right hand side. These are fonted based on the user's 'user_level'. ___a) A log out option that removes them from the 'Currently in chat' area. 4) BBCode enabled. 5) An option that allows the text entered to be wrapped in a chosen, preset color. Red Green and Yellow with White being default. 6) Secure against logging into a different login session than the one they are currently one. Ex 'Aderik' cannot log into chat as 'JaneDoe' while he is logged in as 'Aderik' ingame. 7) Secured text input field. 8) Secured in general <-- very loose I know, I'm sorry. 9) Ability to ban and kick (forced logout) users from the chat depending on 'user_level'. A Reason is required. This is to be logged on the staff.php panel. 10) IUses the Header's CSS Hope that's enough details.
-
Currently in standby until I get other, more important mods situated into my game. It will include... 1) Fortifications and Auxillary Defenses based on player's location. 2) A Fortification page complete with... ___a) Attack link, hidden unless ajacent Auxillary Defenses are occupied. ___b) Amount of troops (equivalent to health) in the fortification. ___c) Who currently occupies the fortification. ___d) List if Auxillary Defenses required to be occupied before a Fortification can be attacked. 3) An Auxillary Defense page similar to the Fortification page. 4) A Your Kingdom page listing the Fortifications and Defenses you own and the daily benefits of owning them. 5) An 'upgrade' system to improve defenses. 5) An attack page for Fortifications and Defenses, based on 'Strategy' 'Aptitude' and 'Leadership' abilities. Other affecting factors include 'Ploys' 'Tactics' and 'Formations' (abilities with effects similar to weapons and armor). 6) Losing a certain number of Fortifications could cause other Fortifications owned by a player to revolt. 7) There is a small chance of Fortifications/Defenses 'revolting' per hour. 8) Daily income based on what type of Fortification you occupy. 9) Recruitment of more troops to replenish troops lost during battle. 10) Increase of troops every 10 minutes. That's all I got about now.
-
print " "; Friends: {$r['friend_count']} Enemies: {$r['enemy_count']} </td> <td>"; replace with print " Friends: {$r['friend_count']} Enemies: {$r['enemy_count']} </td> <td>";
-
:D I appreciate the offer Lilith, however I absolutely loath ending a project I started in midflight. I'll get this mod perfected one way or another XD
-
XD thank you both, Equinox helped me last night and told me that fetch_assoc was what I needed. I was going to update this but my net spazzed soon after v_v
-
if($_GET['nextstep'] && $odata['hp'] <= 33) { if($ir['attacking'] == 0) { print "<center>The enemy is too wary to attack. Try again at a more opportune time. [[url='index.php'] Go Back [/url]]"; $h->endpage(); exit; } } What I currently have for the health. *** Fixed, thank you again Equinox
-
Hello all. While working on upgrading the fishing mod I found on here, I ran into a slight problem. It's showing all data I'm trying to draw from the table as 0, which is not the case. For example on the Shop page to buy bait, it is showing up that I can buy 0 more bait, where on the table it says I have 30 more. It also is not showing the upgrade link on the index page despite the boat's level being under 5. If someone could assist me in locating the problem I would very much appreciate. <?php include "globals.php"; global $c,$ir,$h,$userid,$db; $fishy=$db->query("SELECT * FROM fishing WHERE fsUSERID=$userid"); $fish=mysql_fetch_array($fishy); switch($_GET['action']) { case 'upper': fish_1(); break; case 'lower': fish_2(); break; case 'buy': fish_3(); break; case 'upgrade': fish_4(); break; case 'shop': fish_5(); break; default: fish_index(); break; } if ($ir['jailtime'] > 0){ print "<center>The docks are closed to jail birds come back when thay release you</center>"; exit; } if ($ir['hospital'] > 0){ print "<center>You cant go fishing while in hospital</center>"; exit; } if($fish['fsDAMAGE'] > 0) { print "Your boat has been damaged. It will take {$fish['fsDAMAGE']} more minutes until it is repaired."; exit; } function fish_index() { global $c,$ir,$h,$userid,$db; if($ir['boat'] < 0) { print "Would you like to purchase a boat? [[url='fish.php?action=buy']Purchase for \$50,000[/url]]"; } else { $costy=$fish['fsLEVEL']*$fish['fsLEVEL']*100000; print "<table><tr><th> Welcome to the fishing docks. </th></tr> <tr><td>[img=images/river.jpg] </td></tr> <tr><td><center><u>Upper Fishing Docks</u> [[url='fish.php?action=upper']Go Fishing[/url]]</center> </td></tr> <tr><td><center><u>Lower Fishing Docks</u> [[url='fish.php?action=lower']Go Fishing[/url]]</center> </td></tr> <tr><td><center>[[url='fish.php?action=shop']Purchase Fish Bait[/url]]</center> </td></tr>"; if($fish['fsLEVEL'] > 5) { print "<tr><td><center>[[url='fish.php?action=upgrade']Upgrade your Boat[/url]] Costs \$costy</center> </td></tr>"; } print "</table>"; } } function fish_1() { global $c,$ir,$h,$userid,$db; if($fish['fsFEED'] <= 0){ print "You have run out of bait. Please purchase more soon."; $h->endpage(); } $rand = rand(1,6); if($rand=='1') { $rand_fish = rand(1,32); $rand_money = $rand_fish*125; print "<center>You begin fishing and found $rand_fish small fish. Taking them to the docks you find a merchant willing to buy them for \$rand_money.</center> You Currently can fish {$fish['fsFEED']} more times"; $db->query("UPDATE fishing SET fsMONEY=fsMONEY+'$rand_money',fsFEED=fsFEED-1 WHERE fsUSERID=$userid",$c); } else if($rand=='2') { $rand_fish = rand(1,22); $rand_money = $rand_fish*300; print "<center>You begin fishing and found $rand_fish medium fish. Taking them to the docks you find a merchant willing to buy them for $$rand_money.</center> You have {$fish['fsFEED']} bait left."; $db->query("UPDATE fishing SET fsMONEY=fsMONEY+'$rand_money',fsFEED=fsFEED-1 WHERE fsUSERID=$userid",$c); } else if($rand=='3') { print "Taking your craft out to the middle of the Yellow River, you try to catch some fish. However you do not seem to have much luck today as you end up falling out of your boat! A friendly fisherman comes along to assist you in time, before you lose today's catch!"; } else if($rand=='4') { $time = rand(12,31); print "You are just about to cast your line when you feel a sudden surge of water around your ankles. Water is entering your boat from somewhere and you know enough about boats to know you do not have long to get to shore. Using everything you can you quickly get your boat back to the docks to get repaired. It will take $time minutes."; $db->query("UPDATE fishing SET fsDAMAGE=$time WHERE fsUSERID=$userid",$c); } else { print "You cast your line and wait for a while. Soon though you begin to realize that there may not be any fish! When you bring up your hook, however, you find out that the bait you used is no longer there... You have {$fish['fsFEED']} bait left."; $db->query("UPDATE fishing SET fsFEED=fsFEED-1 WHERE fsUSERID=$userid",$c); } print "<center> [[url='fish.php?action=fish']Fish in this spot again[/url]]</center> "; print "<center>[[url='fish.php']Back[/url]]</center> "; } function fish_2() { global $c,$ir,$h,$userid,$db; if($fish['fsFEED'] <= 0){ print "You have run out of bait. Please purchase more soon."; $h->endpage(); } $rand = rand(1,7); if($rand=='3') { $rand_fish = rand(1,12); $rand_money = $rand_fish*700; print "<center>You begin fishing and found $rand_fish large fish. Taking them to the docks you find a merchant willing to buy them for $$rand_money.</center> You have {$fish['fsFEED']} bait left."; $db->query("UPDATE fishing SET fsMONEY=fsMONEY+'$rand_money',fsFEED=fsFEED-1 WHERE fsUSERID=$userid",$c); } else if($rand=='4') { $rand_fish = rand(1,5); $rand_money = $rand_fish*1500; print "<center>You begin fishing and found $rand_fish rare fish. Taking them to the docks you find a merchant willing to buy them for $$rand_money.</center> You have {$fish['fsFEED']} bait left."; $db->query("UPDATE fishing SET fsMONEY=fsMONEY+'$rand_money',fsFEED=fsFEED-1 WHERE fsUSERID=$userid",$c); } else if($rand=='2') { print "You cast your line and wait for a while. Soon though you begin to realize that there may not be any fish! When you bring up your hook, however, you find out that the bait you used is no longer there... You have {$fish['fsFEED']} bait left."; $db->query("UPDATE fishing SET fsFEED=fsFEED-1 WHERE fsUSERID=$userid",$c); } else if($rand=='1') { $time = rand(12,31); print "You are just about to cast your line when you feel a sudden surge of water around your ankles. Water is entering your boat from somewhere and you know enough about boats to know you do not have long to get to shore. Using everything you can you quickly get your boat back to the docks to get repaired. It will take $time minutes."; $db->query("UPDATE fishing SET fsDAMAGE=$time WHERE fsUSERID=$userid",$c); } else { print "Taking your craft out to the middle of the Yellow River, you try to catch some fish. However you do not seem to have much luck today as you end up falling out of your boat! A friendly fisherman comes along to assist you in time, before you lose today's catch!"; } print "<center> [[url='fish.php?action=lower']Fish in this spot again[/url]]</center> "; print "<center>[[url='fish.php']Back[/url]]</center> "; } function fish_3() { global $c,$ir,$h,$userid,$db; if($ir['boat'] < 0) { print "Congradulations, you have now purchased a boat for \$50,000! Be sure to keep good care of her and she will earn you lots of cash! [[url='fish.php']Back[/url]]"; $db->query("INSERT INTO fishing VALUES ('', '$userid', '0', '0', '30', '1', '0')"); $db->query("UPDATE users SET boat=1,money=money-50000 WHERE userid=$userid"); $h->endpage(); } else { print "You already have a boat. [[url='fish.php']Back[/url]]"; $h->endpage(); } } function fish_4() { global $c,$ir,$h,$userid,$db; $costy=$fish['fsLEVEL']*$fish['fsLEVEL']*100000; $expense=$ir['money']-$costy; if($ir['boat'] < 0) { print "You do not have a boat to upgrade! [[url='fish.php']Back[/url]]"; $h->endpage(); } else if($fish['fsLEVEL'] >= 5) { print "There is no way to upgrade your boat any further. [[url='fish.php']Back[/url]]"; $h->endpage(); } else if($expense < 0) { print "You do not have enough money to purchase this upgrade. [[url='fish.php']Back[/url]]"; $h->endpage(); } else { print "Congradulations, you have now upgraded your boat for \$costy! "; $db->query("UPDATE fishing SET fsLEVEL=fsLEVEL+1 WHERE fsUSERID=$userid"); $db->query("UPDATE users SET money=money-$costy WHERE userid=$userid"); } } function fish_5() { global $c,$ir,$h,$userid,$db; $_POST['feed']=abs($_POST['feed']); if($ir['boat'] < 0) { print "You need a boat to buy bait! [[url='fish.php']Back[/url]]"; $h->endpage(); } else if($_POST['feed'] > $fish['fsSHOP']) { print "You are trying to purchase too much bait, the shop only has {$fish['fsSHOP']} left. Check again later for more."; } else if(!$_POST['feed']) { $feed=abs($fish['fsFEED']); $max=abs($fish['fsSHOP']); print "<form action='fish.php?action=feed' method='post'> Every unit of bait costs 500$. You have $feed out of $max. <input type='text' name='feed' value='{$_POST['feed']}' maxlength='10' length='10' size='10' width='10' /> <input type='submit' value='Buy Bait' /> </form>"; $h->endpage(); } else { $cost=$_POST['feed']*500; print "You have bought {$_POST['feed']} for \$cost. [[url='fish.php?action=shop']Back[/url]]"; $db->query("UPDATE fishing SET fsFEED=fsFEED+{$_POST['feed']},fsSHOP=fsSHOP-{$_POST['feed']} WHERE fsUSERID=$userid"); $db->query("UPDATE users SET money=money-$cost WHERE userid=$userid"); } } $h->endpage(); ?>
-
Fixed, thanks to Blade Maker for some very helpful tuning.
-
Well, idk about scammer but he is sending out unwanted mails offering something I already have. If he had come to my door I would of slammed it in his face. To the OP. It seems really really unethical to offer to sell something BEFORE you get permission to sell it. Wether or not you intend to get permission, if puts you in the same class as your so called 'scammer'. What your saying is that it's not ok for him to do it but it's ok for you to do it. Which isn't right ya know?
-
Very big bug found recently. If player a is siblings with player b, and player c sends an offer to player a and d, player a and d accepts, it would negate the sibling status between a and b for player a but not for b replacing it with sibling status between a c and d. I'll be working to fix this asap.
-
Sorry, shouldn't of put such an exact quote XD The problem is that they (player a) are attacking player b, dropping the player b's health to 0 health, 'leave' the fight with health (player a), then player a can come back and defeat player b while player b still has 0 health. Considering the experience drop they recieve when they 'leave' I don't think this should happen.