EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Support::General Support (https://www.eqemulator.org/forums/forumdisplay.php?f=598)
-   -   GM One-time Events (https://www.eqemulator.org/forums/showthread.php?t=25593)

Joyrock 06-29-2008 02:56 AM

GM One-time Events
 
Greetings all.

I have recently begun hosting my own EverQuest server and my next goal (as a GM) is to be able to create custom quests on the fly for a group of friends.

When I #zone to a particular area and find an npc/mob I want to plant a rare item on, I use #npcloot which works fine. If the NPC is killed he will be holding the item. However, if every player leaves the zone the item vanishes. The NPC is no longer holding it when the zone is loaded again.

I'd like to be able to setup a special quest/scavenger hunt like this in advance by have the game/zone remember that an npc had a particular item until it is taken. I would like to avoid adding the item to the loot table permanently.

Any ideas how I can achieve this?

trevius 06-29-2008 04:14 AM

The only real option for this is to set whichever zones you plan to have hunts in as Static zones instead of Dynamic. This way, they zone never goes down when people leave it, so whatever items you put on it will still be there.

Joyrock 06-29-2008 05:34 AM

Quote:

Originally Posted by trevius (Post 151724)
The only real option for this is to set whichever zones you plan to have hunts in as Static zones instead of Dynamic. This way, they zone never goes down when people leave it, so whatever items you put on it will still be there.

You know, the easiest solution is likely the best. Thank you. This will accomplish what I need as long as my server machine doesn't fail me during the event. :)


To those following my trail, here are the requirements:

1. Enable World HTTP
http://www.eqemulator.net/wiki/wikka...rverWorldLogin

2. Configuring A Launcher
http://www.eqemulator.net/wiki/wikka...ServerLauncher

steve 07-02-2008 11:39 PM

I know LiveEQ had the command, and I thought the emu had it, but I've been MIA forever so maybe I'm just senile.

LiveEQ had alternate datasets that could be loaded for special events, such as the Halloween quests, etc. They could be loaded on the fly by a GM by using the /repop <dataset#>. For a persistent state, the server had to be patched so it knew to always load that dataset until xxxx date.

This functionality may or may not already exist in the emu. Would different spawngroups accomplish what you were looking for?

AndMetal 07-03-2008 01:05 AM

You could use a quest to add loot to the loot table, which is only temporary, then on the NPC's death, define a Quest Global to prevent it from dropping again. Since quests can be reloaded without having to reboot the server, it allows you to do it pretty much on the fly.

Here would be an example:

Code:

sub EVENT_SPAWN {
        if (!$scavenger_hunt_item_1) {
                # Adds 1 of item # 12345 to the loot table temporarily unless someone already killed this mob
                quest::addloot(12345, 1);
        }
}

sub EVENT_DEATH {
        if (!$scavenger_hunt_item_1) {
                # Sets a global so the mob knows he's already been killed. Will clear after 1 day.
                quest::setglobal("scavenger_hunt_item_1", 1, 0, D1);
        }
}

Hope this helps.


All times are GMT -4. The time now is 06:35 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.