For those who run PWs, we all know how laggy it can get when you have monsters left over from players running around in areas.
So - clean them up!
mai_clean_areaex:
This script removes creatures from areas that have been spawned. Simply place the script in the OnExit property of your area, and then place a variable on the area as well:
mai_clean_delay = int
The int should be the respawn time for your encounters on the area. Make it the same, and the script will wipe away critters just before the encounters reset.
You can also set a flag in the script so it cleans up placeables as well, this is nice for PWs that run alot of events.
Scripted by the magical Maiyin.
BONUS SCRIPT!
mai_clean_npc:
A 2nd script - have tons of stores? Think about the lag from 50 stores (Tal2 had over 60). Each has an NPC . . so! Place the script in the OnExit, and place a variable on the -encounter-:
NPCACT = 1
This script cleans the critters, and -resets- the encounters with the variable so the NPC will spawn right away again. This way, stores only have their NPCs out when needed. Make sure to set the encounter to "Spawn Once" true and "Auto-reset" to false.
Scripted by the magical Maiyin.
Got RP?
Check out World of Talernon Age of Dragons Link
10 - A Masterpiece, Genuinely Groundbreaking 9 - Outstanding, a Must Have 8 - Excellent, Recommended to Anyone 7 - Very Good, Deserves a Look 6 - Good, Qualified Recommendation 5 - Fair, Solid yet Unremarkable 4 - Some Merit, Requires Improvements 3 - Poor Execution, Potential Unrealized 2 - Very Little Appeal 1 - Not Recommended to Anyone