
Maniak
Members-
Posts
202 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by Maniak
-
EXP stays / sticks at 17 ??,. PLEASE HELP !!
Maniak replied to snaketooth22's topic in Engine Support
Yes, decrease the amount of EXP the users gain from Attacking and/or Successful Crimes. Pretty simple really. -
EXP stays / sticks at 17 ??,. PLEASE HELP !!
Maniak replied to snaketooth22's topic in Engine Support
Try what's there now :). -
EXP stays / sticks at 17 ??,. PLEASE HELP !!
Maniak replied to snaketooth22's topic in Engine Support
Yeah that would be it, is that the whole of the function.. The standard one is something like: function check_level() { global $db, $ir, $userid; $ir['exp_needed']=(int) (($ir['level']+1)*($ir['level']+1)*($ir['level']+1)*2.2); if($ir['exp'] >= $ir['exp_needed']) { $expu = ($ir['exp']-$ir['exp_needed']); $ir['level']+=1; $ir['exp'] = $expu; $ir['energy']+=2; $ir['brave']+=2; $ir['maxenergy']+=2; $ir['maxbrave']+=2; $ir['hp']+=50; $ir['maxhp']+=50; $ir['exp_needed']=(int) (($ir['level']+1)*($ir['level']+1)*($ir['level']+1)*2.2); $db->query('UPDATE `users` SET `level`=level+1, `exp`='.abs(intval($expu)).', `energy`=energy+2, `brave`=brave+2, `maxenergy`=maxenergy+2, `maxbrave`=maxbrave+2, `hp`=hp+50, `maxhp`=maxhp+50 WHERE (`userid`='.$userid.')'); } } -
EXP stays / sticks at 17 ??,. PLEASE HELP !!
Maniak replied to snaketooth22's topic in Engine Support
In global_func.php the "check_level()" function is what we'll need. -
UK, Chrome, Windows 7.
-
Peter does some AWESOME work. I had a template off him a while ago, had to wait a week or 2 for it; but it was worth the money + wait!
-
Not to put a downer; but there isn't 100 people pre-registered.. I coded that section + did the DB for it when I was working on it (not that I did much, haha).. And some of them are tests. Although from what I have seen; the game looks AMAZING ;P
-
Try contacting Peter Leaman from http://www.w3theory.com
-
Item Picture (Shop) Need Super Help
Maniak replied to dbeckerton's topic in Requests & In Production
If you want anything, please use the correct sub-forum! -
A better market for you to try and sell it on would be: http://forums.digitalpoint.com/.
-
You could but you'd still have to have a Query there.. That being: $db->query('INSERT INTO `usersats` (`userid`) VALUES('.$i.')'); p.s. I haven't coded in a few months + I am tired so this may not work. (I haven't tested it either)
-
Make sure the function(s) have the line "global: $db........;" as Dominion said earlier.
-
I would also say to use proper Grammar when offering your Services/selling 'goods' as it may appeal to a wider audience.
-
Just spent 5-10 minutes going through this, not changed a lot; but I cleaned up the code a little bit.. I HAVEN'T tested this as I am currently working with Lite, but any errors throw them up and i'll fix :D <?php include(DIRNAME(__FILE__).'/globals.php'); ######################### # Name : Crystal Temple # # Recoded : Yes # # Made By : Casey # ######################### switch($_GET['action']) { case 'refill': ctemple_refill(); break; case 'iq': ctemple_iq(); break; case 'money': ctemple_money(); break; default : ctemple_index(); break; } function ctemple_index() { global $h, $ir, $set; echo '<h3>Crystal Temple</h3> Welcome to the Crystal Temple. You have '.number_format($ir['crystals']).' Crystals. What would you like to spend your Crystals on? <table width="50%" border="1" cellspacing="1" cellpadding="5" class="table" align="center"><tr> <th width="10%">Name</th> <th width="10%">Cost</th> <th width="10%">Go There</th> </tr><tr> <td>Energy Refill</td> <td>'.number_format($set['ct_refillprice']).' Crystals</td> <td id="energy"><a href="crystaltemple.php?action=refill"><center>Do</center></td> </tr><tr> <td>IQ</td> <td>'.number_format($set['ct_iqpercrys']).' IQ per Crystal</td> <td id="iq"><a href="crystaltemple.php?action=iq"><center>Do</center></span></td> </tr><tr> <td>Money</td> <td>$'.number_format($set['ct_moneypercrys']).' per Crystal</td> <td id="money"><a href="crystaltemple.php?action=money"><center>Do</center></span></td> </tr></table>'; } function ctemple_refill() { global $db, $h, $ir, $set, $userid; if($ir['crystals'] <$set['ct_refillprice']) { echo 'You dont have enough crystals!'; } else if($ir['energy'] == $ir['maxenergy']) { echo 'You already have full energy.'; } else { $db->query('UPDATE `users` SET `energy`=maxenergy, `crystals`=crystals-'.$set['ct_refillprice'].' WHERE (`userid`='.$userid.')'); echo 'You have paid '.$set['ct_refillprice'].' Crystals to refill your Energy bar.'; } } function ctemple_iq() { global $db, $h, $ir, $set, $userid; if(isset($_POST['exc_btn'])) { $_POST['exc_amt'] = abs(intval($_POST['exc_amt'])); if($_POST['exc_amt'] <= 0 || $_POST['exc_amt'] > $ir['crystals']) { echo '<div align="center"><strong>Either you do not have enough Crystals, or you did not fill out the form.</strong></div>'; } else { $iq = ($_POST['exc_amt']*$set['ct_iqpercrys']); $db->query('UPDATE `users` SET `crystals`=crystals-'.$_POST['exc_amt'].' WHERE (`userid`='.$userid.')'); $db->query('UPDATE `userstats` SET `IQ`=IQ+'.abs(intval($iq)).' WHERE (`userid`='.$userid.')'); echo 'You traded '.$_POST['exc_amt'].' Crystals for '.number_format($iq).' IQ.'; } } echo '<div align="center">Type in the amount of Crystals you want to exchange for IQ.<br /> <small>You have '.number_format($ir['crystals']).' Crystals available. 1 Crystal = '.number_format($set['ct_iqpercrys']).'.</small><br /> <form action="?action=iq" method="post"><input type="text" name="exc_amt" /> <input type="submit" name="exc_btn" value="Exchange!" /></form> </div>'; } function ctemple_money() { global $db, $h, $ir, $set, $userid; if(isset($_POST['exc_btn'])) { $_POST['exc_amt'] = abs(intval($_POST['exc_amt'])); if($_POST['exc_amt'] <= 0 || $_POST['exc_amt'] > $ir['crystals']) { echo '<div align="center"><strong>Either you do not have enough Crystals, or you did not fill out the form.</strong></div>'; } else { $money = abs(intval($_POST['exc_amt']*$set['ct_moneypercrys'])); $db->query('UPDATE `users` SET `crystals`=crystals-'.$_POST['exc_amt'].', `money`=money+'.$money.' WHERE (`userid`='.$userid.')'); echo 'You traded '.$_POST['exc_amt'].' Crystals for '.money_formatter($money).'.'; } } echo '<div align="center">Type in the amount of Crystals you want to exchange for Money.<br /> <small>You have '.number_format($ir['crystals']).' Crystals available. 1 Crystal = '.money_formatter($set['ct_moneypercrys']).'.</small><br /> <form action="?action=money" method="post"><input type="text" name="exc_amt" /> <input type="submit" name="exc_btn" value="Exchange!" /></form> </div>'; } $h->endpage(); ?>
-
Are we looking at the Login? If so, I can't see that much CSS to comment on....
-
I suspect it's either the old owner(s) of VitalEnd, or that they have managed to get a hold of some of their Scripts. After you have logged in, if you go to: http://www.cmafia.com/hour.php you are taken to a "404 Error Page" which has a few options and all of the links are directing you to vitalend.com/.........
-
I am not thinking about buying it myself. This kind of mod wouldn't fit my Game in Creation (although if it did I would probably code something myself).
-
Glasses, although you have the Mod, are you allowed to re-sell it?
-
Need part-time on demand coder for site
Maniak replied to realmoflegends's topic in General Discussion
I am interested. I have added you on MSN. (my MSN: [email protected]). -
1st post has been updated to include "Support Desk.rar". All code should be working (as I haven't changed any), however if there are any Errors/Bugs then post them here and i'll gladly fix :D
-
@a_bertrand: I will do that, thanks for the info :). @zu: Yep, just the support.php is over 15,000 characters. @a_bertrand: Some people like to see what the code is like rather than download a file to find out what the code is like..
-
Okay, since the switch of the Forum, my code has messed up big time. Due to this silly forum only allowing 10,000 characters, I cannot re-post the Mod on here so I will update the 1st post with a Download link sometime tomorrow. I am sorry for the inconvenience this has caused anyone. Many thanks. - Maniak.
-
None :P (i'd rather drink Water :P) Ice or Snow?
-
If you wanted a Button to go to a different page without a Form, you would use onclick="location.href=\"blahh.php\""
-
Maybe start your portfolio with this Template: http://makewebgames.io/showthread.php/37662-PrisonLords-Layout-Layered-PSD-!FREE!-DESIGN-TUTORIAL!