Jump to content
MakeWebGames

Sim

Members
  • Posts

    2,392
  • Joined

  • Last visited

  • Days Won

    62

Everything posted by Sim

  1. $actionHook = new hook("userAction"); $action = array( "user" => $this->user->id, "module" => "chase", "id" => 0, "success" => true, "reward" => $winnings ); $actionHook->run($action) I just found this in police chase files. After I made a very similar hook. I can't seem to find the userHook anywhere in any files. But, if it did exists, how would I call it from any file in GL. I made my own little hook. <?php new hook("userAction", function ( $mod, $user, $action, $outcome, $extraData = null) { global $db; $insert = $db->prepare("INSERT INTO actionLog (AL_userID, AL_name, AL_action, AL_outcome, AL_extraData, AL_time) VALUES (:userID, :name, :action, :outcome, :extraData, :timeStamp)"); $insert->bindParam(":userID", $user->info->US_id); $insert->bindParam(":action", $action); $insert->bindParam(":outcome", $outcome); $insert->bindParam(":extraData", $extraData); $insert->bindParam(":timeStamp", time()); $insert->bindParam(":name", $mod); $insert->execute (); }); ?> I can't seem to call my hook and have it insert the data. Once I can call the hook, I am certain it will insert the data, but in the meantime, it won't. 🙂 If iI cann call this from any file in GL, there isn't many to edit. @Dayo @KyleMassacre @Dave
  2. This will have to work: I need to finalize a little more testing then I will release. Expecting tomorrow. Took 5hrs to get that damn page to work. Mobile coding was invented by someone not nice at all. Screenshot not final release message.
  3. I'd like to help with putting the final pieces together for more fun game play and running the game. Maybe @SwiftGameR could help with user design. His work is good. Your also need to make sure your game is very mobile friendly so you can release game on mobile using webview. This will easily track more users then threw word of mouth online threw browser only.
  4. I need to gather some $ for new refurbished laptop. Then real coding begins. 🙂
  5. Coding on a cellphone is the hardest thing one can do. I done spent over 10hrs on HTML and 1-2 on php. 😞
  6. Once this design issue gets fixed, people will be able to add new stats/skills. This module will be released for free and I hope all developers use it regarding new stats and skills so other developers can tap into the stats or skill themselves to advance the game mechanics. All my future mods will use this module in one way or another. After you create a skill/stat. You can access it on the code by: $this->user->info->US_skill{SafeName}. I created a safe name function which allows only characters, no spaces, every new word is capitalized. So if stat "jumping hoops" is your name. The safe name is "JumpingHoops". And to get the value, you would $user->info->US_skillJumpimgHoops Here's the previews of now. If I can't get anyone to fix design issue, then I'll release as it as is. I'm sure you can where the design issue is. @SwiftGameR
  7. Is this actually implemented in GL or is the hooks not that advance? I know the code you posted isn't real code but in theory if the code would work, would it work in GL?
  8. The hooks don't so nothing but provide where the menu goes and acts basically unless I overlooked something? I believe a simple action log would be sufficient enough. A class every action of the game runs threw, commit crime, fight, steal car. It doesn't need to save to the database but it would be best. Since @Dayo is already working on it. Hire him. :).
  9. I am wondering how you or anyone has created any type of mod that needs to use any module or feature data without modifying the mod itself.
  10. @Mark Topper you said bought all GL modules you didn't already own. Did you mean GL or gRPG cause this is posted in the gRPG section. I will be releasing several mods over the next few weeks for GL. If you did mean GL and not gRPG, message me if you are looking to hire a coder. I am definitely looking to put some work in.
  11. In the admin section under pages, forgot password link says don't exist. The login and register pages have a BBCode Editor. Forum Edit link has caption of "Delete Forum" instead of Edit.
  12. I already planned on creating an achievement module. I'll take this job on. PM me.
  13. Since I already posted and some people may have an idea of what my first plugin is. I decided to post about it. If you haven't heard of me, I was the founder and sole creator of a PHP oRPG Creator, which I no longer have the files on. At least I can recreate a lot of the features for GL. This is going to b a stat plugin. It' will add new stats or skills to a players character. After going threw some code, I decided the way I went about it would be the best way. With the way I have written it. People can access the stat/skill threw the $user->info from any file. I believed this would be more beneficial instead of having to include or alter any other files for many reasons. In case of updates, and people messing there active game up changing or adding code. So in the Admin Panel, people can create the name of the Skill or Stat, it's default value(starting value), it's Max value. People can also choose weather the Skill or Stat can be updated by the user threw skill points. And there's also the option of keeping a Stat or Skill hidden from the user. This is good in situations where hidden factors play a part in the game. Say the skill "GTA" it's hidden, but after every attempted car theft it increases by 1 point. The more points they have the more experienced they are. It might be a bad example but you get the idea. I still need to code the Edit & Delete features. As well as creating a page for a user to see all there stats/skills which this will be more of a coding example then anything else. I also believe with the stats and skills being easily available without any further code modifications, people will more able to use other people's plugins to work with there's and build off each other's. Making more of the game all working together instead of every feature only by itself if that part makes sense. $strength = $user->info->strength + $user->info->kickboxing + (0.10 * $user->info->woodworking);
  14. Seems like I forgot this in the json file. And it fixed everything. 😉
  15. I am currently developing on my Android, it seems I can't view source code on these damn browsers. Due to the poor error handling on GL, I can't seem to figure out why I can't get nothing to display or of it is even rendered and I can't see it. I uploaded my folder I'm installed basing the code format off various other modules. Mine is list d and active, so it should render the appropriate template Area. [email protected] Pass: testing123 http://sim.makeweb.games/GL/?page=admin&module=skills Before I break my last electronic (this phone, I'm going nap)
  16. That editor is great. EXCEPT for.the fact you get a pop up every 2-5minutes. So with that, it must go. Auto-complete and auto-close brackets ain't good either.
  17. On another note it would also be hard to create a stable economy for any game besides your own if they are adding new features all the time.
  18. Why is this module even there? SMH... Property management module does nothing to.
  19. @urbanmafia what files? The ones @Glock1533 mentioned? While looking at the bank module, I didn't see anything stopping someone from entering a negative# unless I overlooked it.
  20. I'm to lazy to do that from a cellphone. This will have to work. As long as people don't post a thousand dumb replies, all would be well.
  21. Thank you, thank you, thank you very much.
  22. I didn't realize you offered $1/month hosting. Wow. That's the best deal I have ever seen. I do plan on putting a couple things on the marketplace, so let's make a deal. 🙂
  23. That's the starting point I had in mind, a game can only have so much money in circulation. I also believe the majority of actions(ex: committing a crime) would use a formula against a person instead of giving money from 'the game currently'. It would keep the money going between players. One could always create a buff or debuff if character levels/skills are not the same just for that action. Since I don't have an actual game up and running, I'm going to actually try to work on some kind of economical fix.
  24. Yes. I ment to say FREE Hosting. :).. im doing very bad financially ATM. I'm coding from my cell phone for Christ sake. Lol
  25. Since I am just starting to use GL, I will be tearing this code apart line by line at one point or another so when I encounter anything that seems out of the ordinary, I will post here. Since the majority of them will be dumb things like the one below. Forgotpassword_admin says "Theme options updated". I'm sure it ment username options updated or something of the likes.
×
×
  • Create New...