Jump to content

proxximo

Members
  • Posts

    48
  • Joined

  • Last visited

Contact Methods

  • Website URL
    http://www.migaming.net

Profile Information

  • Gender
    Male
  • Location
    Ohio

proxximo's Achievements

Member

Member (2/5)

0

Reputation

  1. Thanks a ton. Setting a database variable to sold fixed it. Appreciated!
  2. This solution still allows the issue to persist. I tried in this form as well as creating a function and calling it onClick. Its driving me absolutely nuts! But thank you very much for a quick response _EmilsM!
  3. Hey Guys, I am creating a php text based game and during testing I have found a HUGE exploitable problem. During purchasing or selling items by clicking on a link (which then uses a MySQL query to updated the database), if you click the link multiple times before the next page loads you can sell one item multiple time, thus making quite a bit of in game currency really quickly. I have found a quick patch using javascript but it is not a solution I really want to stick with seeing as it uses an alert box... var clicked = false; function processClick() { if (clicked) return; clicked = true; alert("Your item has been sold"); } Basically I call the above function which stops them from clicking multiple times by popping an alert box. My question is... is there a better way to disable multiple clicks in this way, as I generally only like to use alert boxes for debugging and really slows down he pace of the game. Not to mention it looks terrible. Any help would be great. All of my google searches have left me with no clear alternative. Thanks! Proxximo
  4. Thanks for taking the time to respond Phailip. It is much appreiated!
  5. Hi there, I am the creator of a php, text based game. Recently we have gotten a composer to create some really great music for us, however with the game being set up as it currently is, that is to say click - page change, adding music is a little tricky. The advice I need is a solution for adding music that doesnt interrupt when the page changes. My first thought was to run the game in an iframe and have the music being played at html top level, but I am unsure if this is the best route to take, mostly because I would like to be able to change the music depending on what is happening in game (i.e. combat, visiting town, exploring, etc.) I was hoping to get some input before I move ahead with any solution. Does anyone know of a solution that would take cre of the following. -Does not interrupt the music when the page changes, as the scripts run constantly, changing the page to tell what your character is up to. -Can change the music from the php game -Keeps the interface clean Thanks a ton for your help guys and gals! If any more information is needed, I would be glad to give it. Proxximo
  6. I believe I may have found the problem. It is my testing environment that wont allow me to use this correctly. I think it will sort itself out once I put it on the live server.
  7. I am still having a little snag on the code. I have gotten everything to work pretty well. When the page loads, the div is invisible. When I hover over my element it becomes visible, the only problem is that the div just shows up on the page where it is rather than hovering with my pointer. Any ideas?
  8. Ok I got everything to display the way I want it to and all, the only thing I cant figure out is how to make the div display where my mouse is. Right now it displays where I have the Div set on the page. Any help there xtop?
  9. I forgot to mention that the information will be pulled from a MySQL database using php with the location index.php?do=itempopup:$code Thanks ahead of time
  10. Hello all. I am having a problem with an idea, and Im not quite sure how to make it work. I have spent the last three hours on google looking for a way, but to no avail. Here is the idea: I have a game inventory page with pictures of your equipment. What I want to happen is when you hover over the image it will display a hovering box with all of the items statistics. During my searching I was able to find something similar but it used a popup window. If anyone has the code needed to achieve this or a searchable phrase that would send me to the right place I would really appreciate the help. Thanks Proxx
  11. THanks, Ill try that, I tried Browser restriction and it didnt work, thanks a bunch
  12. I was wondering if there was a way to restrict certain browsers from viewing a webpage. If so does anyone know where to find some snippets of code for doing so, or can anyone help me do so for my page? Thanks ahead of time. Proxximo
  13. I figured it out! Needed to have the global variables added into each function like: <?php function fight() { global $userrow; if ($userrow["currentfight"] == 1){ $monsterdb = ""; $monsterdb = getDatabase(monsterdb); } } function getDatabase(&$monsterdb) { global $userrow; process ....... return monsterdb; } ?> Works great now, thanks to all that helped me along
  14. $userrow is a global variable, should I set it outside the functions like <?php global $userrow fight(){ } monsterDatabase() { } ?>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.