Jump to content
MakeWebGames

Sim

Members
  • Posts

    2,392
  • Joined

  • Last visited

  • Days Won

    62

Everything posted by Sim

  1. He does exist. 🙂
  2. That's a lot of labour gained. I think you can do without the me query. Gang should be stored in the user information?
  3. . I want the logs to be in one table. Thank you. Thanks.
  4. That table structure should work just fine. Maybe add one more field? sellPriceType varchar(6) Be coins or money And Maybe sellTypeID int(11) TypeID would reference item IDs or any other IDs needed. All other fields I mentioned stores data on what/where/who/when. You need to relook at the sellType and sellFeature I already mentioned. I know for a fact with those two additional tables, it will cover all. I would bet on it.
  5. Table named sell_log Following fields sellID auto increment, primary key int(7) sellUserID int(7) sellFeature varchar(10) think 10 enough sellType varchar(7) sellBuyerID int(7) not null default 0 I guess these 2 fields to. sellPrice int(9) sellDate int (12) Then add insert query after every add, remove, sell, ect. sellType would be 'add' 'removed' 'sold', ect sellFeature would be 'item' 'coin' 'steps' 'gem', ect
  6. I have 11 total paid Mods at market value of $78?. 1 $20 mod, 2 $10 mods and the rest listed as $6. With @Dayo releasing updates faster, I may not be able to update mods as fast with summer coming up and work picking up. Doing HVAC. There's been almost $400 in total sales since last May. Anyone interested shall contact me via PM. List of all my MODs released. https://makewebgames.io/profile/14499-sim/content/?type=downloads_file $300 BUY IT NOW. Offers lower will be considered.
  7. I haven't touched any code in about a month until the other night. Since I am getting tired of php, this is a good opportunity.
  8. This was one of my better creations for oRPG Creator and decided to apply the same concept to GL with an additional feature. It will go hand n hand with my item system released. The battle System will consist of the following main Modules for it all to come together. Heros Attacks Spells NPCs Battle Since it seems many games like the idea of multiple heros to collect or characters to collect, I decided to introduce this. All heros and NPCs will have the same stats. Name, image, Lvl, health, speed, defense, strength, hit points, magic. Heros & NPCs can be assigned attacks or spells while heros can purchase new attacks/spells. Maybe a new schooling system in the future for this as well. Simple attacks can be created such as bite, punch, kick, slam, anything ECT that does not require the magic stat or multiple turns for any crested NPC/creature/hero. Spells/magic attacks can be created that can last X amount of turns in battle that can heal, drain a stat, apply bonus damage or bonus reduction. Then there will the thing that puts it all together, the Battle. As of now, I am planning on locking any character/hero from doing anything until there battle is finished. This is for PvE NPC battles. Then off course there will be the PvP battles where challenges are issued. I don't like the idea of a GL PvP battles System as someone can avoid death by not finishing the battle unless time limits are set on a turn. To many options to add on this. Time limits, auto move. I am still undecided on if hero can be obtained threw battles or purchases only. I am also undecided on multiple characters in battle (maybe a V2 if enough support). I am also undecided on if and how to properly add any additional GL bonuses to hero's such as crime successes due to how the crimes/theft/police chases are set up. Not able to alter data b4 messages being displayed. Ex: A hero supposed to have extra %20 chance of successfully commiting crime. So he commits a crime but fails. Then hook is called, I can rerun the formula to add the %20 bonus. Hes successful. Error message is still going to be displayed and possibly jailed, but was successful. 🙂 Hence the reason I keep requesting changes in the hook data and placement. But now that I think about it, overwritten the modules at question would just be much simpler. So in found my solution. The creation of NPCs and Heros are already completed. But real Progress to be shown in the upcoming days.
      • 1
      • Like
  9. I bug Dave enough about cashing out from marketplace.
  10. You should be able to fix white errors with error_display(#); function..
  11. GL method data also comtains URL Params in it. Maybe additional info as well. It's been awhile since I dumped the data. Will redump later to recheck. Could always do fields = array(1,2,3); and loop threw that. I tend to use same field names as param :whatever, but not everyone follows this. Myself included at times.
  12. Tried that, the methodData values isn't always DB values, they reference other things besides form values as well. I like shortcuts. I tried, I failed that way. Without making an exclude array anyway. Then there's also the issue with file uploads, you would still have to manually bind these. Would be a nice update for @Dayo add a bindAllFormData somewhere somehow.
  13. As an outstanding member of MWG and CE with zero infractions I'd like to become a mod with over 10years of commitment to the community. 🙂
  14. public function bindParams(&$db) { $insert->bindParam(":name", $this->methodData->name); $insert->bindParam(":cost", $this->methodData->cost); $insert->bindParam(":lvl", $this->methodData->level); $insert->bindParam(":hp", $this->methodData->health); $insert->bindParam(":str", $this->methodData->strength); $insert->bindParam(":def", $this->methodData->defense); $insert->bindParam(":spd", $this->methodData->speed); $insert->bindParam(":hitpoints", $this->methodData->hitpoints); } public function method_new () { $crime = array(); if (isset($this->methodData->submit)) { $hero = (array) $this->methodData; $errors = $this->validateHero($hero); if (count($errors)) { foreach ($errors as $error) { $this->html .= $this->page->buildElement("error", array("text" => $error)); } } else { $insert = $this->db->prepare(" INSERT INTO heros (heroName, heroCost, heroLVL, heroHP, heroStr, heroDef, heroSpd, heroHitPoints) VALUES (:name, :cost, :lvl, :hp, :str, :def, :spd, :hitpoints); "); $this->bindParams($insert); $insert->execute(); $this->html .= $this->page->buildElement("success", array("text" => "This hero has been created")); } } $hero["editType"] = "new"; $this->html .= $this->page->buildElement("heroForm", $hero); } public function method_edit () { if (!isset($this->methodData->id)) { return $this->html = $this->page->buildElement("error", array("text" => "No hero ID specified")); } $hero = $this->getHero($this->methodData->id); if (isset($this->methodData->submit)) { $hero = (array) $this->methodData; $errors = $this->validateCrime($hero); if (count($errors)) { foreach ($errors as $error) { $this->html .= $this->page->buildElement("error", array("text" => $error)); } } else { $update = $this->db->prepare(" UPDATE heros SET heroName = :name, heroCost = :cost, heroLVL = :lvl, heroHP = :hp,heroStr = :str, heroSpd = :spd, heroDef = :def, heroHitPoints= :hitpoints WHERE heroID= :id "); $this->bindParams($update); $update->bindParam(":id", $this->methodData->id); $update->execute(); $this->html .= $this->page->buildElement("success", array("text" => "This crime has been updated")); } } $hero["editType"] = "edit"; $this->html .= $this->page->buildElement("heroForm", $hero); } So what I did was create a new bimdParams method which just saves from duplicate bindParam code in the new and edit methods. This solves duplicate code issue, and easier to manage for editing or adding new things to DB if need be. For those that don't know, the & symbol references the variable passed. So instead of $update = $update->bindParams($update) and returning $db from the bindParams method, the & automatically does this.
  15. Sim

    New Game Engine?

    What kind of modern game engine? This involves a lot more work then you may think especially if all graphical. Back around 2005 I did a multiplayer game like tanks but with Naruto Characters built upon a network like battle.net for finding/creating matches. The map editor alone was over 100,000 lines of code. Game engine itself was never fully completed. So if you are going all graphical, I'd recommend open source maybe as it will take at least a year to get a fully working 'concept'. It is a great learning experience. I learned a lot of great algorithms, technique's, concepts, and it expanded my mind on coding a lot. I recommend doing it. Do it for you. Not others. I'm willing to pitch in on certain things if your not wanting to go solo. Php been pretty boring lately. 🙂
  16. I use notepad++ myself.
  17. Looks like he's trying to '' instead of integer. First value should be # ?? '' should actually just be removed after looking at structure
  18. Plenty of good mods in the market place here.
  19. My RL job has been extremely slow so I have days filled with nothing to do. I'm willing to take on any work small or large. Any engine, or custom work.
  20. You don't release no slop, it's all in or nothing. Kinda like me. So I kind of foreseen an editor coming.
  21. Was waiting for @KyleMassacre to add file editor. I knew he was. Far better looking then what I seen coming though.
  22. I been slowly building one built upon my item system. It already has hospital, attack, mug and uses values of equipped items. I will release these 3 modules once I am released from hospital.
  23. This is a file editor to create modules via ACP?
  24. Sim

    Gang raids ...

    20 way to cheap
×
×
  • Create New...