Search Results

Search results 1-7 of 7.

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • Bug in Player Count

    Palatinus - - Discussion

    Post

    Also, if you change the 'SELECT *' to 'SELECT id', performance will be better. A SELECT COUNT(*) would even be more efficient.

  • Bug in Player Count

    Palatinus - - Discussion

    Post

    Danter: I think there is a bug in the "Online Player Count" in the overview of 2moons 2.0. The online count is performed before the update, when the current player was online. So it will sometimes count the active player and sometimes not. To resolve this, count online player execpt the current user and add 1 to the result: PHP Source Code (6 lines)

  • expedition

    Palatinus - - Administration and usage

    Post

    In your code, there are 3 Events: 1. Ressources 2. DM 3. Ships This defines creates a random event. If it is 1-3, there will be an event. If it is 4 to 9, there will be no event. (33% Chance at the moment) PHP Source Code (1 line) This code will have event every second time (50% Chance): Source Code (1 line) This code will have event every time (100% Chance): PHP Source Code (1 line) The code is in line 58. Have fun!

  • I am sad that your youtube videos are french. I can't understand them. But keep up the good work!

  • expedition

    Palatinus - - Administration and usage

    Post

    Of course, it depends on what codebase you are using.

  • expedition

    Palatinus - - Administration and usage

    Post

    File: MissionCaseExpedition.class.php Function: EndStayEvent There you can change the event chance. This is the dice: $GetEvent = mt_rand(0, 1000); If you change this to mt_rand(0, 812); you will always have an event, if the location is not mined out. If you also dont want a location to depleet, change this code: PHP Source Code (3 lines)Lines 2 and 3 are commented out by inserting // at the beginning

  • I did sent you a private Message, please respond.