Zone Repop script
Okay, another quest.
Once an npc is hailed, the entire zone will repop 45 minutes later. is that even possible? |
im not sure if there is any quest function that repops or depops the whole zone..
but it would go something like this.. Code:
sub EVENT_SAY |
Depoping & repoping of the zone was added in one of the more recent versions of the Emu. From the Wiki:
Quote:
On a side note, I went through and updated that Wiki entry about a week ago with all of the commands & descriptions from the 1108 source, so it should be fairly complete, especially compared to the somewhat outdated Lexicon (which I used to use). |
Actually, you don't need to worry about spawn timers with quest::repopzone(). That command doesn't touch timers at all, so any NPC that was up before the command was used will appear after. This is useful for stat changes, or to reset every NPC to their default positions. quest::depopzone(1) will reset all NPCs to an unspawned state, and in that case you'll have to wait for their timers to expire before they pop back up.
|
Quote:
Example 1 (what I was thinking): Zone into the sleeper. Kill a regular mob, which has a 4 hour (14400 second) respawn as defined in spawn2 -> respawntime. Repop the zone, that mob won't respawn until the 4 hours is up (which is stored in spawn2 -> timeleft). Example 2 (what you're describing): Zone into fearplane. Wait ~3.25 days (281232 seconds) +- ~9 hours for Cazic Thule to spawn. Repop the zone, he'll still be up. So, you are correct, it doesn't touch spawn timers, but it also doesn't touch respawn timers, which is the only problem I've had. I'm not sure if there's a way in-game to avoid example 1, so what I did as a workaround (while testing quests) is run this query against my database to clear the timers: Code:
UPDATE spawn2 SET timeleft = 0 WHERE spawngroupID IN (???, ???, ???) Hopefully that made more sense. |
thanks for the help guys, so how exactly would i write this to make it basically #repop the zone, after 45 mins of hailing the npc?
|
Code:
sub EVENT_SAY |
Thanks for all the help!
|
All times are GMT -4. The time now is 07:18 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.