Jump to content
MakeWebGames

dnenb

Members
  • Posts

    325
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by dnenb

  1. Posting in "MCCode Development & Support" I assume those who answer will have used mccode enough to know it :P Will is integer, level is integer and n is a decimal starting at 1.00. So that the first and easiest crime has this formula: and the next one (a bit more difficult): I'd like the chance of success to be non-linear, but be like a second degree polynomial - it should take a lot longer to master crime number 8 than to master crime number 2.
  2. Most phones do support javascript, I guess, but it has proven more hassle than it's worth. There's a lot of different browsers that deal with stuff in their own way, and the different screensizes doesn't do much to help.
  3. That's what I've done with the few missions I have. A function like mission(userid,missionid) is called at various pages that checks if the mission is done and can be rewarded. Achievements/milestones like the first link will be the easy way to do it, I guess..
  4. Thanks. I've bought yours but all the javascript didn't work well for a lot of my mobile players. I've toyed around with one similar to your last link, but don't think I want to deal with text files. I'm gonna look at your second link and maybe create something out of that without javascript.
  5. Thanks man, I haven't seen that forum before. Gonna register now.
  6. Thanks, I'll take a look at that. Right now the formula I'm using is similar to that of mccode v1: where n is a number starting at 1 and decreasing a bit per crime.. It works ok, but I'm thinking it should also include IQ and maybe other stats as well.
  7. Well.. I'm hoping someone will share:) BTW sim: the second link in your signature doesn't work.
  8. Loving this. Thanks man!
  9. No one? IQ for example is pretty much useless in my game, as it's not used for anything.. I'm gonna add it to the crimesuccess-fomula, but I'm not sure how.
  10. I've had this working without errors for a while. I didn't keep a changelog of everything I've done, but if you're having specific issues with this mod feel free to send me a PM and I'll help you.
  11. I was a little confused about this, but got it now: If you own a particular item, you're not able to borrow that item from your gang. If you borrow a particular item, you're not able to buy that item from the shops unless you return the borrowed item to your gang first. I edited the error messages a bit to make this clearer. I still don't understand this in imadd.php: if(!$db->num_rows($selectItem)) cleanKill("You don't own that item"); This is keeping me from adding an item to the market that I own. What's the point of that line?
  12. Thanks, I'm gonna check it again. Another thing I had to do that I didn't mention was adding a row to gang_settings when a new gang is created (creategang.php). Otherwise you get errors if you try to go to the gang armory before updating the settings.
  13. I'd like a simple shoutbox type of thing that's secure and uses as little javascript as possible. Do you have any suggestions? Or have you got one you'd like to sell? Please send me a pm.
  14. Ok so I'm a few steps further. What I've done since last post: - You should keep this line as is in equip_weapon.php if(!in_array($_GET['type'], array("equip_primary","equip_secondary"))) and not change is as you've said in the first post. - The $_GET['type'] you use in equip_weapon and equip_armor should be $_POST['type']. - This line must not be removed from unequip.php as you've suggested: $db->query("UPDATE users SET {$_GET['type']}=0 WHERE userid={$ir['userid']}");   But now I got a little stuck on itemsell.php, as I'm not able to sell any items at all. You've said this: $selectItem = $db->query("SELECT `inv_borrowed` FROM `inventory` WHERE `inv_itemid` = ".$_GET['ID']." AND `inv_userid` = ".$ir['userid']); if(!$db->num_rows($selectItem)) cleanKill("You don't own that item"); but is that right?
  15. Thanks, that got it working:) A few things I've done: - added `inv_borrowed` to the query in inventory that lists your items so that the test if($i['inv_borrowed'] == 'Yes') works. - added a link in inventory so that you can return a borrowed item (also added `inv_itemid` to the same query as above): if($i['inv_borrowed'] == 'Yes') { echo " [<a href='inventory.php?return=".$i['inv_itemid']."'>Return item to gang</a>]"; }
  16. Thanks, that took care of the formatting! Looks like I'm way too tired to do this right now, but: any idea why I'm getting the same error in gang_borrow_item()?
  17. Alright, got that settings part right after renaming the field in gang_settings from "armoury_is_closed" to "armoury_is_open". But the other issue still stands. I get this: when trying to view yourgang.php?action=viewarmoury after donating an item. If I delete the item from the db then the page loads as normal and shows "There are no items available in the Armoury".
  18. Then that's the problem: gang_staff_edit_armoury_settings() just sends me back to "yourgang.php?action=staff&act2=editarm%20%20oury" without putting anything into the table. When I manually inserted settings for a gang, and then donated an item, I got that "unable to jump to row"-error on viewarmoury.
  19. A simple one would be like this: http://makewebgames.io/showthread.php/37183-A-very-simple-milestones A more advanced one could have complicated missions, like "bring an [item] for big joe in [cityname]" or "there's this guy in [cityname] who needs to learn a lesson. go there and put him in the hospital, then get back to me". The ones I have in Mobile Mafia now are: do your first crime, get help (view the tutorial), read the rules, go to the gym, first travel, 10 crimes/ day (daily mission).
  20. I have a mission-system in my game that I coded myself, working but kinda messy. Can anyone point me to a mod with missions/achievements/milestones that works alright? That you've tested? Could be a paid mod or a free mod, doesn't matter.
  21. Thanks! A couple of other things: - When gangs are created, data needs to be put into gang_settings, right? I entered it manually for a gang to try it now. Do I need data anywhere else? - I'm getting a error when going to yourgang.php?action=viewarmoury after donating an item. Not sure what's causing it yet, but I'm looking at it.
  22. Gonna buy you some beers once I get this installed as well :) A question: Is there something missing from yourgang.php that should fill $gangdata with info from the table gang_settings?
  23. Anyone? I'm interested in knowing what you base success on: Level? XP? IQ? Will? etc
  24. I've realized that my current crime success rate-formula kinda sucks, so I'm wondering: What do you use?
×
×
  • Create New...