My game is a few days from opening and it has just come to my attention (with all the new areas coming in) that if the hours that a shop is open isn't set so its open 24/7 then it crashes the mud. I'm not sure exactly why since I've never had problems with it before, and the code seems alright, but has anyone else had problems like this? Is there any way to fix it?
Now, my second problem is with open/close passage. Normally this would be an easy fix, just throw in an if check, but I'm not sure exactly what it should be. The problem is if mpclose passage is called and there isn't a passage there it crashes (no code tells it to return if there isn't a passage there). Then I realized with mpopenpassage that it may not override exits that are already that, but I really don't want two norths, one being a passage. So, whats the check to see if there is an exit in a direction and whats the check to see if there is an exit there at all?
Thanks, as always. You guys help me the most of anyone.
Now, my second problem is with open/close passage. Normally this would be an easy fix, just throw in an if check, but I'm not sure exactly what it should be. The problem is if mpclose passage is called and there isn't a passage there it crashes (no code tells it to return if there isn't a passage there). Then I realized with mpopenpassage that it may not override exits that are already that, but I really don't want two norths, one being a passage. So, whats the check to see if there is an exit in a direction and whats the check to see if there is an exit there at all?
Thanks, as always. You guys help me the most of anyone.