rathena / FluxCP

A web-based Control Panel for rAthena servers written in PHP. Manage player accounts, databases, support tickets, etc via your browser.
GNU Lesser General Public License v3.0
175 stars 207 forks source link

Web Commands NPC Only Runs Once #362

Closed Akkarinage closed 1 year ago

Akkarinage commented 1 year ago

Environment

- PHP: 8.2
- MySQL: MariaDB 10.11

Current Behavior

The NPC script for Web commands only runs once and doesn't run again until the server is restarted due to the variables it uses, the bad scripting practices, and because 7 years ago my scripting abilities were pretty naff.

Expected Behavior

To run every 2 seconds, like the timer states.

Steps To Reproduce

Load the NPC, insert several commands via FluxCP's Web Command page, then watch only the first run.

Anything else?

No response