zone instancing
I want to create a zone instance using completely unique spawns that were not part of the non-instanced version of that zone. Now using the version field for the npc to control what version of the zone it spawns in doesn't seem like it would work in this case because the spawn chance for the unique spawns would have to be set to 0 otherwise they would show up in the normal version of the zone. Now if spawns in zone instances work like normal zones then the zone instance would be void of life. Assuming the version field can't be used is it possible to retrieve a zone instance id and then spawn npcs within that instance using quest::spawn2()? How much of a strain does zone instancing cause on a computer because I would be attempting to spawn between 170-308 npcs depending on the zone.
The reason I want to do this is that I have completely custom versions of Crystallos, Bloodmoon Keep and Loping Plains that I am currently using in place of the normal zone versions. The problem is I want to use the normal versions of the zone for exp and such then have the custom versions instanced for group/raid content. I have not started this script yet because I am not sure if it is possible to do....so any thoughts or suggestions would be greatly appreciated. |
If I am understanding you correctly you can and want to use the version field in the db to make a separate instance.
Set up your spawns as you desire for the instance and make sure the NPC has the correct version set in both the npc_types and spawn2 tables. Only thing you should need to use perl for is to create the instance. You can do this for multiple instances within the same zone if you want, ikkinz has seven different versions. |
Doh some how did i managed to over look the version field in spawn2. That should make a big difference. Thanks for the help.
|
Well I thought I had this working but still no npc's showing up inside the instance. So now I am not sure if the instance is working at all. The npc was working just fine prior to changing the version number in npc_types and spawn2 tables.
What am I doing wrong? Test Script Code:
sub EVENT_SAY { Code:
INSERT INTO `spawnentry` (`spawngroupID`, `npcID`, `chance`) VALUES (700110, 700011, 100); |
CreateInstance returns an instance ID.
That is what you should pass to AssignGroupToInstance and MovePCInstance instead of "crystallos". |
Quote:
http://eqemulator.org/forums/showthread.php?t=32609 Code:
if (($text =~/group/i) && $ulevel >= 80 && $hasitem{219532} && $group) { http://eqemulator.org/forums/showthread.php?t=32608 |
Quote:
|
Akkadius, that plugin worked flawlessly. Thank you for sharing that.
|
Well, you should take a look at what Akkadius posted. The plugins are very helpful and make things a lot easier to read.
If you take a look at the plugin code you'll see it uses the returned instance ID correctly. Good luck. |
All times are GMT -4. The time now is 03:11 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.