Jump to content
MakeWebGames

SwiftGameR

Members
  • Posts

    263
  • Joined

  • Last visited

  • Days Won

    21

Everything posted by SwiftGameR

  1. Working on a v1.04 of Advanced drugs module new update includes SO FAR Fixed issues with syntax errors in the class file for drugs. Added option in drug buildings to show your current buildings. Added option in drug buildings to collect drugs from buildings or sell buildings (selling buildings with upkeep due needs paid and lose drugs if not collected). Changed cron code to display proper info when its run daily. Edited Cron code to check upkeep and apply it daily (this will decrease your production if you don't pay upkeep) Drug Buildings now show upkeep due. Drug Buildings now allow you to pay upkeep to max production More updates and features are coming when i release v1.0.4 but mod is working 100% as of now. ** NEW FEATURES COMING ** Add cron code to change prices of drug dealers stock. Crash drug prices sometimes. NEW UPDATE OF BUILDING PRODUCTION WITH FEES ** UPKEEP INFO ** If amount due == upkeep lose 3% if amount due > upkeep x 2 lose 8% if amount due > upkeep x 5 lose 17% if amount due > upkeep x 8 lose 25% if amount due > upkeep x8+ lose 65%
  2. New Screenshots of modules which have been requested by others via discord. Daily Missions (Currently missing some info due to a new pc and my backup being broken and cant get my files from marketplace here @Magictallguy @Dave or anyone else with permissions to give me access to marketplace again so i can get my files back would be great?) I have fixed the missing data for this mod and working on a v1.0.1 which will be released shortly. Advanced Drugs Module v1.0.3 (currently no bugs as far as i have tested files for module listed below) SQL FILE WITH (Drug Buildings, Drugs, Drug Dealer, Drug Logs, Drug Specials) PHP FILES (Drug Buildings buy, Drug Dealer Buy/Sell, Daily Cron, Class file for functions ($drugs->CDB($variable, $cost, $fee, $baseproduction, etc)), special imports, Staff file) Mod info With this module installed on your game you are bringing a brand new drugs system that i have never seen anyone create such a module to this extent expect me lol when i released my grow weed mod for free on makegames many many many years ago lol 😛 but even that is nothing to this module this is far more advanced than anything i have created module wise. here are some of the features listed below. Owners can Create Drugs (These drugs must be produced or purchased by players from drug dealer) Owners can Create Drug Buildings (These Drug Buildings will produce your drugs you created above users buy these buildings) Owners can Check all Logs for purchases sales etc Owners can Set cost for drug specials Players can buy or sell drugs from drug dealer (Limited to 30 purchases / sales a day to prevent inflation but you can adjust as you please) Players can buy or sell drug buildings (These buildings have a base production of which they produce a drug + other key factors that increase your production more info below on this) Players can pay 75 crystals to find out next delivery (You can edit this to use credits, points or whatever but mccodes i used crystals, Doing this will tell you if there are any drug specials Boat, Truck, Plane) and when it comes and if they sell to him he will give extra $ based on a %) Some key factors which contribute to increasing your drugs production Buildings Base Production Level IQ, LABOUR, AGILITY, HOW ACTIVE YOU ARE, SPECIAL PRODUCTION BUYING (50 CRYSTALS = 30 DAYS + % BOOST TO PRODUCTION), DRUG BUILDING UPKEEP (THE MORE UPKEEP THE LESS YOU WILL PRODUCE), amount of that building you own (base production of brewery is say 50 and you own 10 your base production is straight away 500) remember and pay upkeep or your production will slower production more Still testing the module but there has been no issues so far via my testing. I created this module with the intent to keep players coming back so why i added there inactivity production penalty which increases the more you are less active. If you have any module requests which you would like to see currently i still only have mccodes up but can convert them to mccodes as someone wanted to see my npc system for some script i never heard of before NGMAfia script? but i am going to convert it to mccodes for showing purposes if someone needed it converted then it will be no problem as long as i know some info like how you call queries number rows fetch rows fetch single discord is in my sig if you want to make purchases or requests or if you own a copy of any of these mods being uploaded or need to check if there module version is same as pictures from my mods folder to get a more updated version. Until @Dayo accepts my developer on his site i only have this post and if you can even see my work on his marketplace i have mods there with screenshots. I will be continuing my work on my own site which i can show and sell my work and others if they wish but i wont be able to continue this until the 25th of this month (Internet Provider bill is overdue) and i can not afford it until i get paid on that date but this will be a custom coded website (Even tho i would be much quicker with some sort of ecommerce digital work marketplace as i have used one before and it was actually quick easy to manage all my mods and keep track of sales etc but this limited it to me only just tested the cron file and all is working perfectly.
  3. SwiftGameR

    SQL Injections?

    there are few money sql injections that i know of but as of mccodes v2 the pull anything was patched and if you are using a old version of grpg engine there is a money glitch (yes i said glitch instead of sql injection as its cause it due to no security and proper validation.) it lies in the very old stock market due to not secured variable using $_POST variable as u can buy 1 stock and sell unlimited stocks but as far as i know GL is secured never seen any sql injections in the code.
  4. Yeah i will organize them for which engines i have a copy of the current mccodes engine up and running i will get a test site for GL engine up too but until i install composer i can not get until i can install composer. As @newttster says the casino system but users can buy the casino and user earns winnings but can be bankrupt this module is for grpgv2 but here is the features for it > Game owners can create casinos for their users to buy > Once a casino is purchased from the Player in the game they can get a max bet in there casino > All money won in the Casino is stored there. > It has a casino logs database file with a function for logging all wins / losses > Page shows all users casinos and user has option to enter into anyone's casino. > Games each casino has is (1. 50/50, 2. Slot Machine, 3. Cups Game) and Npc system is just a bunch of npc bots that have their own stats which can be beat for exp or cash or missions + story GL MODS GRPGV2 MODS MCCODES MODS I can convert modules to any of the engines and can make custom modules if you are interested. i have applied to be a developer on https://openpbbg.glscript.net/ as some of my modules are on there with screenshots. but yet to be accepted yet. I have a mccodes test site up i am still in the process of making it easier for users to fully test out modules i have added a button which will Give you user level 2 gives 1000 energy gives 1000 brave hp = maxhp hospital = 0 Boss module for mccodes Link to my mccodes test site (let me know which mods u want to see and i can put em here until i get gl verification or get a copy up) https://mccodes.mobstersonline.pcriot.com/ ========================================== New module been added (Nothing that is special) Search Yard v1.0.0 Owners can set a min and max cash in a settings db table for random function to generate. 12 Searches +1 search every 5 minutes (Unless not used 1 or more) Users can use All there searches at once or use them single time until searches reaches 0 Logs all users searches (Single & Full Searches) V1.0.1 Features to come Option to pick which time you want to run there + searches (1 minute, 5 minute, 1 hour, 1 day) Option to set the maximum searches a users can have at once Add in chances to find items if lucky based on % (20%) will give them a 20% chance of finding a item per singe search or all searches at once will give u 12 chances $10.00 Paypal: [email protected] Once payment has been received contact me here so i can verify it and send you the zipped folder. DEMO CAN BE SHOWN BEFORE PURCHASE. https://mccodes.mobstersonline.pcriot.com/searchyard.php
  5. I have modules for sale for Mccodes, GRPG, GL engines. I have just released version v1.0.5 of my boss module which addressed errors, updated security on it fixed issue which none had reported, and i have added some new stuff for the boss staff file. all issues are reported below. v1.0.5 (05/07/2024) * Fixed error with staff panel staff boss file * Corrected some spelling mistakes staff boss file / instructions.txt * Cleaned up some of the code staff boss file * Updated Security and improved it against attacks staff boss file * Fixed issues with query staff boss file * Optimized the code in staff boss file * Added required fields to form staff boss file * Fixed all code and it works 100% staff boss file * Added option to delete the boss. (100% done) staff boss file * Fixed issue with it updating the database table when done more damage * Fixed jQuery issue with tabs * Fixed issue where users were not being awarded kill exp and cash * Updated config query code to grab the cash exp kill based on monsters id * Code will now kill with error message if no config is set * Multiple bosses can be spawned now in different locations * Added a primary key in config file sql for manual editing quickly * Added in Kill Cash and Kill Exp Bonus for killing and fixed Query Error Features finished for v1.0.6 * Added base code to edit module (10% done) staff boss file * Added base code for editing the config code (10% done) staff boss file * Added base code for spawning bosses (10% done) staff boss file List of my modules will be attached in the attachments contact me here or discord if interested @ em2pro4u Module Costs.txt
  6. Okay so i have downloaded the source code and can see its been updated some more since last time i have looked at it and its throwing some errors on install. Composer Required - There seems to be code in place for checking for a composer but no actual composer installed in the code. Above error stops installation on step 3 once checking database connection. Fatal error: Uncaught Error: Class 'Dotenv\Dotenv' not found in /home/ulrvvdan/domains/utap.x10.mx/public_html/mobstersonline/inc/dbcon.php:17 Above error is thrown due to not having Composer as vendor/autoload.php is meant to run before this which is not found. For anyone who is stuck on installing grpg and don't have a clue what a composer is or where to start, Follow the link below to a doc about Composer which will show u diff ways to install it (local, global) once you download the composer as a zip file upload it to your host where your main game files are so it lands in its own folder like (vendor/etc.php) I will be installing composer tomorrow and see how far i get before anymore issues pop up and will request a push to grpg unless someone else wanna do it for me 😛 https://getcomposer.org/doc/00-intro.md
  7. Nice i was needing a copy of the grpg engine for a module for a client i am glad to see grpg open source along with mccodes will be cool to see what everyone will do.
  8. joined your discord so im sure i will 😉
  9. Love the work you guys have put into this project
  10. I emailed him will wait for a response and will let anyone here know what he says if he does not update it first. But buy the title he is looking to buy a game or join a game lol 😉
  11. Sorry I was not clearly thinking when i wrote that either a new rule / announcement / (timer / cookie) would make them force a change. Sounds like you have a idea of what to do if you get stuck of need help i will be glad to try help the best i can 🙂 also i removed this from the original code if you wish to hide / show <div id='formContainer'></div> $(document).ready(function() { // Hide the original contents of formContainer $('#formContainer').hide(); // Once the checkbox is clicked using the .click(function()) $('#finalcheck').click(function() { // If the checkbox is not ticked we disabled the button and hide the formContainer if (!$(this).is(':checked')) { // Sets the accept button disabled $('#accept').attr('disabled', 'disabled'); // Hide form container if unticked $('#formContainer').hide(); } else { // Remove the disabled button unless unticked again $('#accept').removeAttr('disabled'); } }); $('#accept').click(function() { // User has accepted tos and clicked the button so show the formContainer $('#formContainer').show(); // Function to handle a page redirect if required. function pageRedirect() { window.location.replace("/login.php"); } // this is meant to redirect the user after 10 seconds i dunno if its because i never tested it live and on js fiddle but was instant. setTimeout(pageRedirect(), 10000); }); });
  12. I did a hidden div container which could accept multiple rules / tos etc. or with a little ajax and php you make it update database (As i am sure your holding it like `tos` int(1) NOT NULL DEFAULT 0; Ajax would handle the request upon clicking accept tos button with a little editing.
  13. If this module does ever get released i have the same system in torn.com but that pulls live ods etc but if you want a quick way to calculate the % of the match. this function will only give you an example of what the % of the match outcomes based on the odds. function calcOds($numone, $numtwo) { if (!$numone || !$numtwo) { return false; } if (!ctype_digit($numone) && !ctype_digit($numtwo)) { return false; } $math = MAX(($numtwo / ($numone + $numtwo)), 0); return '<p>'.number_format($math, 2).' % of winning the match</p>'; } Example Usage: echo calcOds(11, 100).'<br />'; // 11/100 odds echo calcOds(100, 3).'<br />'; // 100/3 odds echo calOds(1, 10).'<br />'; // 1/19 odds
  14. Woah i must of missed this post haha thanks for the information and thank you i hope this does you well if you need any help 🙂 Its nothing special i have been putting my javascript some and have not seen a Jquery one. Yeah i got the last of my credit and my access removed from marketplace, I will still be selling my paid / free modules for Mccodes v2.05b GL Engine Grpg & Grpg v2 Other custom scripts / Extensions / (ViolentMonkey / TamperMonkey) JS scripts.
  15. Sad to see this forum going so i have created this one last module its nothing special i have been playing around with Javascript and used this for a personal project but figured some might get some use out of it while the forums are still active. JsFiddle: https://jsfiddle.net/MrDeveloperR/g7worLvu/33/ add this html code where you want it to display. <div id='container'> <h2>Jquery TOS</h2> <p>You must accept the tos before you can continue.</p> <div class='rules'> <h3>Rules</h3> <p style='color: red; font-weight: bold;'> <small> If you refuse to accept these tos then we are sorry to inform you that you can not continue. </small> </p> <ol> <li>We (game name) have the right to change the tos when and as we please without informing you</li> <li>You are only allowed 1 account per user</li> <li>Selling your items / account for real money is against the rules and will provide in banning</li> </ol> <h4><p>Some Final Text....</p></h4> <input type='checkbox' id='finalcheck' class='checkedbox' /> <input type='submit' id='accept' classs='bttn' value='Accept Tos' disabled/> </div> <div id='formContainer'> </div> </div> add this to your css file body { background: #20262e; color: #fff; font-family: sans-serif, Helvetica; } #container { width: auto; height: auto; padding: 5px; margin: 0; } #container > h2 { font-size: 28px; color: red; text-align: center; } #container > p { font-size: 15px; text-align: center; } #container .rules > h3 { font-size: 22px; color: red; text-align: center; } #container.rules > .bttn { width: auto; height: auto; padding: 5px; background: blue; border: 1px solid black; } add the Jquery code $(document).ready(function() { $('#finalcheck').click(function() { if (!$(this).is(':checked')) { $('#accept').attr('disabled', 'disabled'); $('#formContainer').hide(); } else { $('#accept').removeAttr('disabled'); } }); $('#accept').click(function() { //$('#formContainer').show(); function pageRedirect() { window.location.replace("/login.php"); } setTimeout(pageRedirect(), 10000); }); }); I am currently working on a site to upload my modules too but if anyone needs me i am available via discord. DISCORD: em2pro4u
  16. To anyone who still uses this site i am back and providing support for my modules with issues in them. But please do buy the module here at mccodes
  17. I know you code @Sim 😛 I remember you're and old member on these forums when I was a noob 🙂
  18. I have been wanting to convert my Rc engine (Torn engine) very simliar to PDO remove all the shit (Sorry for my bad lanuage lol) and secure the engine properly as here is some major issues i spotted from a few files i looked at. Session Hijacking Xss and Sql Attacks It has minor security with not the proper checks. wraps mres around every $_SESSION['id'] (dunno why) Needs serious recode and arrays removed before the querys as not really needed. Like above all code and structure needs fixed. Crons don't run properly for companys some issues. And thats not all of it so unless you wish to hire me i would re
  19. If you need mccodes modules hit me up i have a bunch of them on the market but can code custom ones if you have idea in mind. Skills > HTML > CSS > PHP > PDO / MYSQL > JAVASCRIPT / JQUERY Game Engines worked on > Mccodes v1 - v2.05b > GRPG v1 & GRPG V2 > GANGSTERS LEGENDENDS ENGINE > RC ENGINE (Ruthless city)
  20. Used this hosting for multiple domains and never felt any lagg at all but i have not run any games with members on it but good fast reliable and good support.
  21. Weird i must have wrote my if function wrong thanks so much gamble exactly works how i needed 🙂 @gamble Hey sorry to bother you after you already fixed my issue i was hoping to apply simliar logic to the code so the days would update by 1 but stupid me got the maths wrong quicker posting code lol <label id="days">Day: 1</label> <label id="hours">00</label>:<label id="minutes">00</label><br /> <script> let daysLabel = document.getElementById("days"); let minutesLabel = document.getElementById("minutes"); let hoursLabel = document.getElementById("hours"); let totalSeconds = 0; let dayUpdate = 1; setInterval(setTime, 10); function setTime() { ++totalSeconds; if (totalSeconds / 60 == 24) { ++dayUpdate; totalSeconds = 0; } minutesLabel.innerHTML = pad(parseInt(totalSeconds % 60)); hoursLabel.innerHTML = pad(parseInt(totalSeconds / 60)); // {issue is here}daysLabel.innerHTML = pad(parseInt(totalSeconds * 3600 * 24)); } function pad(val) { let valString = val + ""; if (valString.length < 2) { return "0" + valString } return valString }
  22. I did try add a if statement but with no luck im in no rush to get it working from what i read and learning i know it can be done being honest i would proberly be easier using the date H:HH which formats the day into 24 hour format but can i manipulate it to do what i need i dunno. i will do more testing with some if statements like you said i know im close lol thanks for replyin due to the pad function its counting the length of the string and only reseting when its greater than 2 characters long but i need it to stop at 23:59 but yeah ill keep at it trial and error
  23. Hey all been a while since i have posted anything on here but have been working on a personal project for my game on GL Engine, I am going to be using it as a turn based game please see below for more info. Day 01 - 00:00 Every day the clock advances 1 minute every 14-15 seconds the timer will move up 1 minute to look like 00:01 until it hits 24:59 once it resets back at 00:00 Day 1 changes to Day 2 I have this working increasing the 00:00 by 01 but problem is i cant get it to stop and reset at 23:59 back to day 2 00:00 code below. <script> var minutesLabel = document.getElementById("minutes"); var hoursLabel = document.getElementById("hours"); var totalSeconds = 0; setInterval(setTime, 10); // set to 10 to make it into a timer to test if stop at 24:59 and reset to 00:00 function setTime() { ++totalSeconds; minutesLabel.innerHTML = pad(parseInt(totalSeconds % 60)); hoursLabel.innerHTML = pad(parseInt(totalSeconds / 60)); } function pad(val) { var valString = val + ""; if (valString.length < 2) { return "0" + valString; } else { return valString; } } </script> and the html is just to labels with 00 <label id="minutes">00</label>:<label id="seconds">00</label> Am i safe to assume that if i change the setintval function to 14000 which if my coding aint to rusty then that should increase the labels :01 every 14 seconds (confirmed by testing) any help would be appreciated thanks Steven (SmartWeb Productions)
  24. Nice point out there did not even know Dayo converted it to work with GL Engine pretty neat thanks 🙂
  25. If its anything like Dave's Ajax chat the file is usually included in the bottom of your template file. I don't actually own the module so i can't really say for sure but you will need to add a check in there for hospital and prob create a new chat field for hospital (could be wrong) If you are willing to post some snippets or since its paid module private message it and ill have a look for you but without any code or that i can't really answer it anymore.
×
×
  • Create New...