Spellcaster gloves effect
While wearing these gloves, each magic auto-attack or basic ability has a 5% chance of triggering the gloves' passive effect:
Deals 25% more damage (except on bleeds)
Binds the target for 3 seconds
Lowers the target's Magic, Attack, Strength, and Defence levels by 7 levels (does not stack) fixed
Snapshot Creation: When you enable Spawn Mode for the first time, each player’s current state is saved (skills, inventory, appearance, bank, moneypouch, ground loot and equipment) into a "preSpawnSnapshot" field.
This snapshot will be used later to revert the player back to their original state once Spawn Mode is disabled.
Free Spawning: While Spawn Mode is active, players can freely spawn items, change stats, or modify their character. None of these changes will be saved permanently.
The game will continue normally, but no permanent progress is made during this period.
You don’t need to log players out when enabling Spawn Mode. They remain logged in and continue playing with the ability to spawn items.
When Spawn Mode is Disabled:
Restoration of Snapshot: Once Spawn Mode is disabled, every player will have their preSpawnSnapshot restored automatically, meaning:
Their inventory, skills, appearance, bank, moneypouch, ground loot and equipment will return to how they were before Spawn Mode was turned on.
Any changes made during Spawn Mode (such as spawning items or leveling up) will be discarded.
Currently, automatic logout
Live Rollback: The rollback happens immediately without the need to log out the players. Here’s how: IN PROGRESS
The moment Spawn Mode is disabled, each player’s state is rolled back to their saved snapshot in memory while they are still in-game. This ensures that players don’t need to log out for the rollback to occur.
The restorePreSpawnSnapshot() will run for each player, ensuring their previous state is restored.