Jump to content
MakeWebGames

Dayo

Administrators
  • Posts

    2,491
  • Joined

  • Last visited

  • Days Won

    196

Everything posted by Dayo

  1. Have you tried putting back slashes for the quotes but the template engine uses {} so avoid using them inline
  2. Rather then putting JavaScript in .tpl.php files use .script.js files instead
  3. Yup last 30 days 32m request 9.2k unique visitors but a lot of my players use VPNs so it’s not accurate. I would say there is about 3-500 unique a day. but let’s get back on topic ... We can add more checks on install of who and where you are installing but it still doesn’t stop people viewing source code and sharing it. you can always see about contacting a lawyer about copyright infringement, you may have to pay them 50% of the settlement, but it acts as a deterrent. Ive personally had no issues selling mods here and to pull them from the market place because one idiot hasn’t grown up only hurts you and your income revenue going forward
  4. The problem with all of this is it’s all open source software. There is nothing stopping people removing checks etc ... you can’t really have calls to external servers as a game like mine with 1m hits a day would add too much overhead. Your also need that server to always be up forever
  5. The whole mechamics of the game is a bit complex to put into a forum post but the basic concept of the game is you do actions that reward you with EXP/cash, you buy bullets and shoot other people. Your aim is to survive.
  6. Ahh it seems i include the module class a t a later point, this is a bug and ill fix it in the next release
  7. I would more lean towards the way @ags_cs4 is doing it but i would go one step further and do it like this: module.class.php <?php class itemMod extends module { public function getItems() { $this->db->selectAll(" ... "); } } module.hooks.php <?php require "./module.class.php"; module.inc.php <?php class moduleName extends module { public function constructModule() { $mod = new itemMod(); $items = $mod->getItems(); } } The benifit of this way is when installing a mod the user does not need to touch code, if at any point the user needs to touch code it is either your mod that is at fault or the engine.
  8. There is no scam, This post is regarding McCodes V3 a engine that had been promised for about 10 years. Gangster Legends V2 is a completely separate project and is open source. I started GLv2 over 6 years ago. Gangster Legends V2 Premium used the open source Gangster Legends V2 source code but it includes several paid modules that would cost over $150 to buy separately so it is much much cheaper.
  9. I didn't create the inventory mod or new item system from memory i think it is @Sim? (correct me if im wrong) mods for GL v2 and GLv2 Premium are compatible with one-another.
  10. I’ll PM you with a new file to try
  11. So 21 with 2 cards trumps all, if the dealer and player has "Blackjack" it's a tie and money is returned. There is no 5 card trick as most casinos does not apply this rule. The dealer will continue to draw until they have a score of 17 or greater. The dealer will continue to draw to try and beat your score i.e. if you stand on 19 and they have 18 they will hit trying to get a 1, 2 or 3 After all of this closest to 21 wins (A can be 1 or 11)
  12. $tables = array( array( "name" => "table 1", "options" => array( array( "value" => 1, "text" => "option 1", "name" => "table1"), array( "value" => 2, "text" => "option 2", "name" => "table1"), array( "value" => 3, "text" => "option 3", "name" => "table1") ) ), array( "name" => "table 2", "options" => array( array( "value" => 1, "text" => "option 1", "name" => "table2" ), array( "value" => 2, "text" => "option 2", "name" => "table2" ), array( "value" => 3, "text" => "option 3", "name" => "table2" ) ) ), array( "name" => "table 3", "options" => array( array( "value" => 1, "text" => "option 1", "name" => "table3"), array( "value" => 2, "text" => "option 2", "name" => "table3"), array( "value" => 3, "text" => "option 3", "name" => "table3") ) ) ); $this->page->buildElement("tables", array( "tables" => $tables )); {#each tables} <h1>{name}</h1> {#each options} <input type="radio" value="{value}" name="{name}[]" /> {text} {/each} {/each} Try something like this
  13. Looks awesome, I really like what you have done with GL 😄
  14. There should be a hook within init that you can use to alter what module to go to I’ve made a module for GL like this before and this was the hook. new hook("moduleLoad", function ($page) { global $user; if ($user) { if (!$user->info->US_setup) { return "createCharacter"; } } return $page; });
  15. no it will be different to your paid mod
  16. GLv2 Premium will be 15% off for the next two weeks! Im also going to be working on editing some of the core features that are part of the GLv2 core so that things like crimes and theft are more unique! This will be released in 3-4 weeks time but anyone who purchases it before then (including people who have already purchased it) will get the upgrade for free!
  17. Looks good so far, one thing i would say is cut down on the number of fonts you use, this is a good read https://uxplanet.org/10-tips-on-typography-in-web-design-13a378f4aa0d
  18. looks good, you could improve the code by changing the dayX() functions to day(X) like so function day($day) { global $db,$ir,$c,$userid,$h; $day = $day; $daily = $day + 1; $token = $ir['dailytoken']; $reward = $db->query("SELECT * FROM dailyrewards WHERE day=$day ORDER BY day"); $dr = $db->fetch_row($reward); $prize = $dr['prize']; $amount = $dr['amount']; if($token <= 0) { die('You have no tokens to Trade.<br /> Come back Tomorrow.<br /><a href="dailyrewards.php">Back</a>'); $h->endpage(); } if($token >= 0) { echo '<br />Welcome to Day <span class="brightred">'.$dr['day'].'</span><br /> You have been rewared with <span class="'.$dr['textcolour'].'"><b>'.number_format($dr['amount']).'</b></span> '.$dr['prizedisplay'].'.<br /> <a href="dailyrewards.php">Back</a>'; $db->query("UPDATE users SET $prize=$prize+$amount, daily=$daily, dailytoken=dailytoken-1 WHERE userid=$userid"); } else { echo 'You cannot Claim this.<br /><a href="dailyrewards.php">Back</a>'; } $h->endpage(); } I would also check using $_POST variables directly into queries it opens you up to SQL injection, from the quick glance i see its only on the ACP but its better to be safe then sorry 😉
  19. Dayo

    I need help

    you can add class="img-responsive" to the image https://getbootstrap.com/docs/3.3/css/#images-responsive
  20. <{var}> enables you to pass HTML to the template so you could do something like <?php $data["extraHTMLVar"] = $itemType->getAdminHTML(); $this->html .= $this->page->buildElement("form", $data); //in .tpl.php you add this where you want to display html <{extraHTMLVar}> check this out https://github.com/ChristopherDay/Gangster-Legends-V2/wiki/Templating#variable-formatting
  21. Quick question why don’t you use <{extraHTML}> ?
  22. sorry the files were moved to this site a while back you can find it here
  23. Your just too slow @Dave 😛
  24. It is already on the market place here https://makewebgames.io/files/category/3-gangster-legends-v2/
  25. I've ran out of time to work on it, the base game is there it just needs some refinement and style tweaks here and there (i can help with that)
×
×
  • Create New...