-
Posts
182 -
Joined
-
Last visited
-
Days Won
2
Content Type
Profiles
Forums
Events
Everything posted by TheMasterGeneral
-
From the preview screenshot it does look nice. The only real "gripe" I would have about it is the purple. Seems too bright for how dark everything else is ,if that makes sense? I don't know of a good color replacement, though. If I was bothered by the bright theme, I'd switch to what you made in a heart beat. :D
-
Does your error log show anything?
-
What have you attempted to diagnose this?
-
I haven't personally attempted this, but I would assume you'd port-forward port 80. I wouldn't really recommend it, however. Slower connection speeds, and if (for whatever reason) you piss someone off, they can just turn on a bot network and down your home line. The DDOS'ing could be fixed by having a dynamic IP, however, at least in my case, my ISP wants to charge $5 for each additional IP -_- I suppose if you're just going to be hosting a dev environment to your devs, I'd use a VPN (Hamachi) and allow them to connect using the VPN IP.
-
cronus gang armoury crital error
TheMasterGeneral replied to boionfire81's topic in Modification Support
Check the item_remove(); function and replace whatever variable should be itmid with whatever itemid variable is being removed from the player. That might not make much sense. lol. -
Is setting the POST to GET out of the question? I'd figure it'd make navigation between pages easier.
-
cronus gang armoury crital error
TheMasterGeneral replied to boionfire81's topic in Modification Support
You're missing a value at itmid... -
This might be useful information. If I'm understanding it correctly, it uses jQuery like so: <script> $(document).ready(function(){ $('[data-toggle="tooltip"]').tooltip({html: true}); }); </script> And in your PHP... //Not tested, should work though. <a data-toggle='tooltip' title='$lolwhatever'>$i['itmname']</a>
-
Yeah. I'd assume it would be running a "while" loop while fetching rows from your database, limiting to 10 per attempt. Do I have the code for it, nope. lol. :D
-
Use the error handler? By the seems of it, either the parser has an error in it, or you're not requiring the correct file. (Incorrect/typoed name)
-
Mentioning [uSER=53425]Magictallguy[/uSER].
-
You wish for a player to get tired in a fight? How does this get calculated? By how much damage done, or is the effectiveness of the fight decreased as each turn is taken?
-
I've personally made a different page for my own custom item use. Here's how I did it with multiple consumer donator packs. if (!isset($_GET['redeem'])) { $_GET['redeem'] = ''; } switch ($_GET['redeem']) { case 'pack1': pack_1(); break; case 'pack2': pack_2(); break; default: dollar_pack_home(); break; } function dollar_pack_home() { die("404"); } function pack_1() { $packid=136; //Item ID $packmoney=50000; //How much money does the user receive? $packddays=30; //Donator days received $packcrystals=50; //Crystals received. $packiq=50; //IQ received global $db, $userid; $query=$db->query("SELECT `inv_itemid` FROM `inventory` where `inv_itemid` = $packid && `inv_userid` = $userid"); $i=$db->fetch_row($query); if(!$i['inv_itemid'] == $packid) { //No pack } else { //etc } } function pack_2() { //Same code above, just tweaked differently. } And on inventory.php; if ($i['itmid'] == $Item) { echo " [<a href='#'>Link</a>]"; } I'm sure there's cleaner ways to do it. Meh.
-
Yeah! Its quite easy actually. I'm assuming MCCV2, correct? //Assuming MCCV2 $gid = 12; //Item ID to test for. $amounttogive = 6; //Amount of item to give $itemtogive = 1; //Item to give //Check for item id. Make sure to set it in the config area above. $query=$db->query("SELECT `inv_itemid` FROM `inventory` where `inv_itemid` = {$gid} && `inv_userid` = {$userid}"); $i=$db->fetch_row($query); if(!$i['inv_itemid'] == $gid) { print "Item required not found in your inventory. If you think this is incorrect, message an admin."; $h->endpage(); } else { //item_add(user,item,amount); //All parameters are int. item_add($userid,$itemtogive,$amounttogive); //item_remove(user,item,amount); //All parameters are int. item_remove($userid,$gid,1); }
-
Would probably be useful to include your budget and what you need done.
-
Worked very nicely, Pigeon. Had to add "CURLOPT_SSL_VERIFYPEER => false" to the options array to have it work, but I knew that'd happen. Thanks dude!
-
Greetings MWG! Recently, [uSER=65371]sniko[/uSER] made mention of FraudGuard.IO in this thread. Personally, I'm not the greatest at PHP, so my knowledge on the subject itself is quite limited. I'm trying to implement the API of Fraudguard into a project I'm working on. Did a few hours of reading PHP manual and random googling, and came up with an almost completed CURL query. $params=['username'=>'minenotyours', 'password'=>'suoytonenim']; $defaults = array( CURLOPT_URL => "https://api.fraudguard.io/ip/1.1.1.1", CURLOPT_POST => false, CURLOPT_POSTFIELDS => $params, CURLOPT_SSL_VERIFYPEER => false, ); $ch = curl_init(); curl_setopt_array($ch, $defaults); if(!curl_exec($ch)){ die('Error: "' . curl_error($ch) . '" - Code: ' . curl_errno($ch)); } Anyway, this results in a "Whoops, looks like something went wrong" error, which tells me the request was sent successfully. (As its a result straight from the API itself.) I don't think it has an issue to do with the $parmas being invalid, as the API itself says it'd return a Bad Authentification error if that was the case. Has anyone used this API before, or am I treading alone here? :D Any help would be appreciated. Edit: I'm open to the idea of not having to use curl if needed.
-
I don't wish to stir the pot, but, wouldn't you posting about it possibility get the reaction he wanted? Anyway, I believe I talked with the dude before, he seemed pretty decent, if I'm honest. Doesn't most respectable hosts have a form of DDoS mitigation anyway? I'm not aware of how big this guy's botnet is, but, I would assume that if your site was taken down, you'd be able to make a ticket with your host and they could null route traffic for a couple hours. Anyway, kinda sad to see this though. Edit: Unrelated, does anyone occasionally run into where your reply posts, but the page is stuck in "Working"? I think its just my net, but its only on occasions for me.
-
And according to Stat Counter, Chrome is the most widely used browser too, (at nearly 60%). If there's anything stopping you from picking up HTML5 for your little games there, figure it out. Come year's end, the mobile market isn't the only people who won't be able to use your site. I understand that these aren't your games and you can't just "port" them. I completely understand. That still doesn't mean you can't start adding HTML5 games to replace them, right?
-
This is flash correct? Are you planning on porting to HTML5? I'm not sure of the difficulty of switching, but, it might be worthwhile since Google Chrome is ending Flash support. Also, some nitpicking. I hope you don't mind. -You inconsistently switch between custom CSS'd inputs and buttons and Bootstrap's buttons. -Not entirely your fault, but at the length between 1200px and 768px causes a menu glitch. -Logging into the demo account causes an error (I assume its a login failed error) -Viewing a user's profile at a lower resolution causes a menu bug. Also, I don't have reason to think other, but you have sufficient rights to re-upload these games, right?
-
Not the greatest at JS, so can't really help there. However, as a dirty trick with the HP, you could just multiply added health by negative one. If its just an arithmetic error, it should end up going positive. Just my quick two-cents. :D
-
1) If you're just fetching/displaying a single cell from the database, use $db->fetch_single(); 2) Are you even using MCCodes built-in error handler? No offense, but I believe some of these issues could be avoided if you did some debugging. (9 out of 10 times, it'll tell you where it failed, which will allow you to revise your code) 3) Also, I'd reassign the date variable to something other than $d, you've already got it assigned to the query to select the defender's name. If after trying some debugging of your own, and using the error handler, you cannot figure it out, shoot me an IM and I'll do it for you personally. Free of charge.
-
I know there's some depreciation notices in the BB Code engine as of 5.5.12. Best bet would be to load up on a local environment with php 7.0 and test. Also, download 2.0.5b, and that's the most latest official patch.
-
lost mod details need help with 1 line
TheMasterGeneral replied to boionfire81's topic in Modification Support
I'm not sure of the mod you're using, so I do not know the setup of it. However, what I'd do is, query the database at the end of the fight. Select from the bounty table, the user you're attacking. If result is more than zero, return true, else, return false. $bq=$db->query("SELECT `user` FROM `bounty` WHERE `user` = {$_GET['user']}"); if ($db->num_rows($bq) > 0) { //Bounty attack link } else { //Other normal links } -
lost mod details need help with 1 line
TheMasterGeneral replied to boionfire81's topic in Modification Support
Check the conditional like Kyle said. You might have a derp in the logic there. :P