Jump to content
MakeWebGames

KyleMassacre

Members
  • Posts

    2,846
  • Joined

  • Last visited

  • Days Won

    48

KyleMassacre last won the day on September 6

KyleMassacre had the most liked content!

5 Followers

About KyleMassacre

  • Birthday 09/15/1983

Personal Information

  • Location
    Southern Cali

Recent Profile Visitors

25,747 profile views

KyleMassacre's Achievements

Explorer

Explorer (4/14)

  • Reacting Well Rare
  • Conversation Starter Rare
  • Very Popular Rare
  • Dedicated Rare
  • Posting Machine Rare

Recent Badges

171

Reputation

  1. No worries at all. This weekend I will add your fix and push the module onto the market along with the known bug that I found and finally fixed
  2. I already fixed it. I meant to say push the fix. No need to do 15 updates lol
  3. I can add this in a patch push. I want to fix the bug that stops you from clicking any other link if you wanted to navigate away
  4. Hmm interesting. I can't tell what could be wrong other than the javascript not loading properly since the editor isnt even styling up. Without any logs its tough to figure out
  5. This module has been updated Updated to work seamlessly with GL v2.4 Added some visual updates Removed the need to edit at least 1 module Added a helper class.
  6. Player Referrals Grow your game by allowing players to refer other players to your game while also giving them an incentive to do so. Disclaimer: This only works on GLv2.4 since it uses the Handlebars library. What can this do? When a player refers another player to the game and that player plays the game, the referring player will receive a reward each time the referred player ranks up. The rewards are determined by the game owner. The same rank can have multiple rewards or a single reward, it's all up to you. When the player ranks up, a notification is sent to the referring player stating they received rewards for they player they referred ranking up. Players can see who they referred, what rewards they will receive, who referred who (on the player profile), and how many referrals they have in total. Other module creators can create new rewards if they happen to create a user stat in their module. The user stat has to exist. In order to add a stat to be available as a reward, you just have to run the hook "addPerkToList": new hook("addPerkToList", function() { return [ "name" => "US_someStat", // must exist in userStats table "value" => "Some Stat" ]; }); The "name" value must exist in the user stat table and the "value" value can be whatever you wish since this will show in the dropdown menu and in the reward list for players to see. I am only including this so that module creators can add this hook in their module if they have created a stat in the game.
  7. Version 1.0.0

    Player Referrals Grow your game by allowing players to refer other players to your game while also giving them an incentive to do so. Disclaimer: This only works on GLv2.4 since it uses the Handlebars library. What can this do? When a player refers another player to the game and that player plays the game, the referring player will receive a reward each time the referred player ranks up. The rewards are determined by the game owner. The same rank can have multiple rewards or a single reward, it's all up to you. When the player ranks up, a notification is sent to the referring player stating they received rewards for they player they referred ranking up. Players can see who they referred, what rewards they will receive, who referred who (on the player profile), and how many referrals they have in total. Other module creators can create new rewards if they happen to create a user stat in their module. The user stat has to exist. In order to add a stat to be available as a reward, you just have to run the hook "addPerkToList": new hook("addPerkToList", function() { return [ "name" => "US_someStat", // must exist in userStats table "value" => "Some Stat" ]; }); The "name" value must exist in the user stat table and the "value" value can be whatever you wish since this will show in the dropdown menu and in the reward list for players to see. I am only including this so that module creators can add this hook in their module if they have created a stat in the game.
    $15
  8. I happened to like MCC crimes formula albeit, it could’ve been a little more dynamic in regards to the user stats used. Also you have to remember that the formula used wasn’t just a formula; if you really wanted to, you could’ve put in a static number like 88 or 12 since the code just turned it into a number 1 to 100 and if your chance was greater that what the “formula” spit out, you succeeded. Or you could’ve just completely rewrote the formula in the input box 🤷‍♂️. Bottom line, the formula is up to you
  9. KyleMassacre

    Jobs

    Good to know. I’m slowly but surely working on some of these now
  10. I happened to fix this. Since it was posting via ajax there the editor acts a little funky. I used this [SO] answer to fix it
  11. You should always have a check to make sure that it in fact exists and to keep control so I wouldn't remove it
  12. I know you mentioned that you are not too familiar with isset but isset returns a bool, so everything you posted is either setting it to true or false. You could do (on phone can’t do code tags): $this->sex = isset($row['gender']) ? $row['gender'] : null;
  13. My bad, I never got notified of this message I guess 🤷‍♂️. The answer is no. I deliberately left that out because no one should be editing core files in my honest opinion.
  14. I made this a little bit ago and named it cron.php. I didnt put too much thought into it so it could be so much better. Just add include_once "cron.php" in your globals and dont forget to add some settings values if (!defined('jdsf45tji')) { echo 'This file cannot be accessed directly.'; die; } $minute = 60; $five = $minute * 5; $hour = $minute * 60; $day = $hour * 24; $minute_last_run = $set['cron_min_last_run']; $five_last_run = $set['cron_five_last_run']; $hour_last_run = $set['cron_hour_last_run']; $day_last_run = $set['cron_day_last_run']; $time = time(); if(time() >= $minute_last_run) { $ran = false; $turns = floor((time() - $minute_last_run) / $minute); for ($i = 0; $i < $turns; $i++) { include "cron_minute.php"; $ran = true; } if($ran) { $newTime = time() - ($time % $minute); $db->query("update settings set conf_value = $newTime where conf_name = 'cron_min_last_run'"); } } if(time() >= $five_last_run) { $ran = false; $turns = floor((time() - $five_last_run) / $five); for ($i = 0; $i < $turns; $i++) { include "cron_fivemins.php"; $ran = true; } if($ran) { $newTime = time() - ($time % $five); $db->query("update settings set conf_value = ". $newTime ." where conf_name = 'cron_five_last_run'"); } } if(time() >= $hour_last_run) { $ran = false; $turns = floor((time() - $hour_last_run) / $hour); for ($i = 0; $i < $turns; $i++) { include "cron_hour.php"; $ran = true; } if($ran) { $newTime = time() - ($time % $hour); $db->query("update settings set conf_value = ". $newTime ." where conf_name = 'cron_hour_last_run'"); } } if(time() >= $day_last_run) { $ran = false; $turns = floor((time() - $day_last_run) / $day); for ($i = 0; $i < $turns; $i++) { include "cron_day.php"; $ran = true; } if($ran) { $newTime = time() - ($time % $day); $db->query("update settings set conf_value = ". $newTime ." where conf_name = 'cron_day_last_run'"); } }
  15. What PHP version are you using? I think @Dayo mentioned there is a problem with that and PHP 8
×
×
  • Create New...