-
Posts
2,392 -
Joined
-
Last visited
-
Days Won
62
Content Type
Profiles
Forums
Events
Everything posted by Sim
-
All the classes are preloaded now?
-
No updates in awhile. All i have left are the quests NPCs. I been working on it all night. Took 4 good to figure out my hidden field was outside the form. LoL.. Creating quests will be a 3 step process: Create NPC: name, location, and choose npc type quest Step 2: Choosing tite, description and type of quest. Step 3: filling in details for type of quest Here's a preview for Jail Breaking quests
-
I can't guarantee as much time as you are looking for, but if you have any questions you can always message me. The best plAce woukd be to just post on the forums. Get multiple ways to do something and learn why since members would be posting there way they prefer it.
-
Not everything must be done in code. I rather pay people to add them over time instead of spending time writing something to release them overtime. My time is money to.
-
I am in need of the above mentioned added to my game. Using the GL engine. Some modifications made. Again, i am in need of 30 New Crimes 30 Cars 30 Items 1 or more Shop(s) 1 or more Locations 1 or more Sidekick(s) Within 30 Days I want 1 crime, 1 car, and 1 item added every day for 30 days. If you miss a day, multiple crab be added that next day. One should not miss 4 days in a row. If you are interested in my MODS, I will give $40 worth of my MODS instead of $30. If choosen my MODS, I allow 2-4/entries a day instead of 1. I am looking between 3-5 people. Message me, we can begin immediately.
-
Reusable functions in mod admin.php hooks.php and inc.php files
Sim replied to Sim's topic in Gangster Legends
Anywhere as in any module? -
TPL form data public $crimeForm = ' <form method="post" action="?page=admin&module=crimes&action={editType}&id={id}"><div class="row"> <div class="col-md-3"> <div class="form-group"> <label class="pull-left">Crime Name</label> <input type="text" class="form-control" name="name" value="{name}"> </div> </div> <div class="form-group"> <label class="pull-left">Crime Locations: </label> <select class="form-control" name="locations[]" id="locations[]" size="10" multiple="multiple"> <option value="0">All</option> {#each loc} <option value="{id}" {selected}>{name}</option> {/each} </select> </div> <div class="col-md-3"> <div class="form-group"> <label class="pull-left">Message for successful crime</label> <input type="text" class="form-control" name="success" value="{success}"> </div> </div> <div class="col-md-3"> <div class="form-group"> <label class="pull-left">Message for failed crime</label> <input type="text" class="form-control" name="fail" value="{fail}"> </div> </div> <div class="col-md-3"> <div class="form-group"> <label class="pull-left">Chance crime is committed against another player. (ex: 50, would be %50 of time.)</label> <input type="number" class="form-control" name="playerPerc" value="{playerPerc}"> </div> </div> <div class="col-md-3"> <div class="form-group"> <label class="pull-left">Message sent to victim (ex: [convict] just mugged one of your family members for $[cash] or [bullets])</label> <input type="text" class="form-control" name="victimMsg" value="{victimMsg}"> </div> </div> <div class="col-md-3"> <div class="form-group"> <label class="pull-left">Message displayed to person committing crime against player. (Ex: You just mugged [victim]s family member for $[cash] or [bullets])</label> <input type="text" class="form-control" name="convictMsg" value="{convictMsg}"> </div> </div> <div class="col-md-3"> <div class="form-group"> <label class="pull-left">Chance Of Item?</label> <input type="number" class="form-control" name="itemChance" value="{itemChance}"> </div> </div> <div class="col-md-3"> <div class="form-group"> <label class="pull-left">Chance Item is Taken From Player?</label> <input type="number" class="form-control" name="itemPlayerChance" value="{itemPlayerChance}"> </div> </div> <div class="col-md-3"> <div class="form-group"> <label class="pull-left">Reward Random Item From Item Group?(ex: add item group # like blackmarket)</label> <input type="number" class="form-control" name="itemType" value="{itemType}"> </div> </div> <div class="col-md-3"> <div class="form-group"> <label class="pull-left">Reward Item?</label> <select class="form-control" name="itemID"> <option value="0">None</option> {#each items} <option value="{itemID}" {itemPicked}>{itemName}</option> {/each} </select> </div> </div> <div class="col-md-3"> <div class="form-group"> <label class="pull-left">Required equipped Item type?(ex: 1 is weapon, 2 is armor, ).</label> <input type="number" class="form-control" name="reqItemType" value="{reqItemType}"> </div> </div> <div class="col-md-3"> <div class="form-check"> <label class="form-check-label">Loose Item If Fail?</label> <input type="checkbox" class="form-check-input" name="itemLoose" value="y"> </div> </div> <div class="col-md-3"> <div class="form-group"> <label class="pull-left">Min. money for successful crime</label> <input type="number" class="form-control" name="money" value="{money}"> </div> </div> <div class="col-md-3"> <div class="form-group"> <label class="pull-left">Max. monney for successful crime</label> <input type="number" class="form-control" name="maxMoney" value="{maxMoney}"> </div> </div> <div class="col-md-3"> <div class="form-group"> <label class="pull-left">Min. bullets for successful crime</label> <input type="number" class="form-control" name="bullets" value="{bullets}"> </div> </div> <div class="col-md-3"> <div class="form-group"> <label class="pull-left">Max. bullets for successful crime</label> <input type="number" class="form-control" name="maxBullets" value="{maxBullets}"> </div> </div> </div> <div class="row"> <div class="col-md-4"> <div class="form-group"> <label class="pull-left">Cooldown (Seconds)</label> <input type="number" class="form-control" name="cooldown" value="{cooldown}"> </div> </div> <div class="col-md-4"> <div class="form-group"> <label class="pull-left">EXP Gained</label> <input type="number" class="form-control" name="exp" value="{exp}"> </div> </div> <div class="col-md-4"> <div class="form-group"> <label class="pull-left">Min user level to comit this crime</label> <input type="number" class="form-control" name="level" value="{level}"> </div> </div> </div> <div class="text-right"> <button class="btn btn-default" name="submit" type="submit" value="1">Save</button> </div> </form> '; } PHP insert code $insert = $this->db->prepare(" INSERT INTO crimes ( C_name, C_location, C_success, C_fail, C_convictMsg, C_victimMsg, C_cooldown, C_money, C_maxMoney, C_level, C_bullets, C_maxBullets, C_exp, C_playerPerc, C_itemType, C_itemID, C_itemChance, C_itemPlayerChance, C_itemLoose, C_reqItemType ) VALUES ( :name, :locIDs, :success, :fail, :convictMsg, :victimMsg, :cooldown, :money, :maxMoney, :level, :bullets, :maxBullets, :exp, :playerPerc :itemType, :itemID, :itemChance, :itemPlayerChance, :itemLoose, :reqItemType ); "); var_dump($this->methodData); if(empty ($this->methodData->itemLoose)){ $itemLoose = 'y'; } else { $itemLoose = 'n'; } if(empty ($this->methodData->reqItemType)){ $reqItemType = 'y'; } else { $reqItemType = 'n'; } $locIDs = ":-1:"; if(!empty($this->methodData->locations)){ //if item types selected greater then 0 if(count($this->methodData->locations) > 0){ //cycle threw item types selected foreach($this->methodData->locations as $loc) { //if type not "None" if($loc != 0) { $locIDs .= $loc . ":"; } } } } $insert->bindParam(":name", $this->methodData->name); $insert->bindParam(":locIDs", $locIDs); $insert->bindParam(":cooldown", $this->methodData->cooldown); $insert->bindParam(":money", $this->methodData->money); $insert->bindParam(":maxMoney", $this->methodData->maxMoney); $insert->bindParam(":level", $this->methodData->level); $insert->bindParam(":bullets", $this->methodData->bullets); $insert->bindParam(":maxBullets", $this->methodData->maxBullets); $insert->bindParam(":exp", $this->methodData->exp); $insert->bindParam(":success", $this->methodData->success); $insert->bindParam(":fail", $this->methodData->fail); $insert->bindParam(":convictMsg", $this->methodData->convictMsg); $insert->bindParam(":victimMsg", $this->methodData->victimMsg); $insert->bindParam(":playerPerc", $this->methodData->playerPerc); $insert->bindParam(":itemChance", $this->methodData->itemChance); $insert->bindParam(":itemPlayerChance", $this->methodData->itemPlayerChance); $insert->bindParam(":itemType", $this->methodData->itemType); $insert->bindParam(":itemID", $this->methodData->itemID); $insert->bindParam(":itemLoose", $itemLoose); $insert->bindParam(":reqItemType", $reqItemType); $insert->execute(); DATA & error screenshot I found it. Behind PlayerPerc like last time. @Magictallguy 🙂
-
Ill say this and im done unless it's regarding my mod. As of now i done put in over 100hrs on the item system. So with my 5 sales, i have made under $1/hr Now theres a few mods on the marketplace, Mass Gift, Mass Email where i could create in under a HR. List for $3 and first purchase would have turned out better for me. I think between the two mods Mass Gift and Email. It totals around $30 in sales. WHOEVER: Sorry if you was creator of those two MODS. I decided to choose the two easiest mods on the marketplace.
-
Forgot sit the holidays, thr price of my mods will be raised AFTER THE HOLIDAYS. This mod gad no errors, just an installation problem(typo). My support geta the job done. 99% of people so has ever messaged me has had the issue resolved within 24hrs. Back to working on next MOD [NPC'S]..
-
Price of MOD increased to $40. If $40 is out of your price range message me and we might be able to come to some agreement.. Heres what i think about the situation. Amm mod prices are about to go up. ALL my mods are underpriced in an attempt to give back to the community a little bit. When little things like this happen in the future, the price increase will help me say yes sir, yes ma'am before i get slandered more on these bulletin boards.
-
Two cusses and indoors my DAMN phone. And FYI, coding from 📞 is no more, UNLESS i am not home.
-
Nuce addition to being able to hAve its own timer for each crime. I like this addition. 🙂 I just made some edits to my crime file to produce the same thing. I might have it display the results after crime is committed? Can set some 1hr limits now.
-
i have been gettting this error randomly for months now. I am unable to reproduce it. It just happens when it wants to.
-
I am Batman to gotham, lol jk. ALL I know is, any issue that has been mentioned, has been resolved in a timely manner. And sometimes it's not even my fault that I still get blamed for. I tell someone to download the new version, then they message me days later saying there problem is not fixed. Come to find out, they never downloaded and installed the new version. This has happened countless times. I find it funny. Not bitching.
-
I do treat people woth respect. It works both ways. Of course there slandering was done VIA PM. So im the asshole again. And communication works both ways, i message him, he responds hours later, i message back usually within 15 minutes, wait hrs, i message back within 15, message me back hours later. I stayed up as long as i possibly could. Fell asleep bent over sitting up in my bed. Worked sick all week and worked 80+hrs. A mod that should be released at the minimum $50 for the time coding it. 10x more sophisticated and larger then any mod released. And AS OF NOW: No errors, but made a typo or two installing it for the guy(WHOSE GAME WAS UP AND RUNNING PERFECT) b4 i slept. Except ACP was down. I really dont understand your comment abiut heros and other coders on this form. MWG works perfect for me and support. Its all in one place. No one me(or someone else) dont need to download/register/get familiar with other software. All bugs,comments in one place instead of multiple places where i could overlook forget about one. Sorry for getting so nasty this morning, i feel like you making me seem like i am im thr wrong when ive done nothing wrong.
-
Those 999 ERRORS YOU MESSAGED ME WAS BECAUSE of THAT TYPO, Installing the mod which I went out of my way to do, which anyone on this forum is capable of doing ay any point and time. FIND THIS TEXT: BOO AFTER THAT TEXT ADD: YEAH So try to look how you treat a person. Cause i shouldn't have to deal with anyone cussing me out when i cant think of one person whose %100 accurate at typing or copying. It was something like this: $admin-9 ;'7/; $admin->helper = $this->helper;
-
Should start with writing a topic using text colors people can read
-
Here's the power of hooks. I decided to add the NPCs to the Travel page. It turned out pretty good. Here's a before and after BEFORE I CREATED THE NPC HOOK to change the travel page without altering any travel coffee (leaving typo for @Magictallguy
-
You Gangster Legends script pretty good.
-
I have started some new features for the Item System. And to think the item system couldn't get much better. The latest development of My Item System. Items have the option of requiring other items before they can be used. For example: I can create an Item Ammunition. Or specific ammunition and require guns to have ammunition before it can be used.
-
Still a pain as cider 🙂