I have a quest where I am using different versions of the arena. It let's you fight in different tiers of the arena, and each tier has its own version. Now, the quest seems to be working properly, as in, I can do #instance list Pelican and it will tell me that I am in the correct instance; however, the monsters that spawn are wrong.
There is a general monster called "The_Audience" with 9 versions of itself so nine different IDs. Each ID is set to spawn in each version. Like 1257 spawns in V1, 1258 spawns in V2, etc.. I have confirmed that they're correct in the database in spawns2 also.
What is happening though, is I will do a fight in version 1 of the zone and it will work fine. When I leave the arena, it is supposed to destroy the instance with
Code:
sub EVENT_ZONE{
quest::DestroyInstance($qglobals{"InstID"});
quest::delglobal("InstID");
}
and the global being set at
Code:
elsif(defined($qglobals{gladiator})){
if ($qglobals{levelonekills} >=0){
my $i_id = quest::CreateInstance("arena", 1, 600);
quest::AssignToInstance($i_id);
quest::MovePCInstance(77, $i_id, -41, 131, -0.5);
quest::setglobal("InstID", $i_id, 5, "F");
$Group->DisbandGroup();
}
When I do #instance list Pelican, it says I am not assigned to any instances. If I go into a different version the arena though, the Audience monster from version one is still there. Instead of 1258 being spawned, 1257 will still be there as will any monsters that were in version one when I left. If I do the instance list command though, it says I am in the correct version, it's just spawning the previous version's NPCS.