expedition task system
So i ran into a bug with the system or maybe im doing something wrong as im new to using this system.....
I have 2 NPC's
Freewind and Wyndam
Freewind has solo missions while wyndam has raids
I found that if i go and complete a raid from wyndam then go straight over to freewind and do a solo mission i can then go back to wyndam and i can get the task i previously completed and it was on lockdown for hours.....
Here are their scripts
Freewind -
Code:
sub EVENT_SAY {
my $scout = quest::saylink("scout",1);
my $assassinate = quest::saylink("assassinate",1);
my $defend = quest::saylink("defend",1);
my $invasion = quest::saylink("invasion",1);
my $Invasionforce = quest::saylink("Invasionforce",1,"Small Armed Force");
my $Rivervale = quest::saylink("Rivervale",1,"Rivervale Royals");
if ($text=~/hail/i && $ulevel > 84) {
@AdvInfo = plugin::LoadExpeditionInfo2(); plugin::CheckForStaleInstances();
if($AdvInfo[0] > 0){ plugin::DisplayInstanceQueue($AdvInfo[0]); }
else {
plugin::Whisper("So $name your looking for an adventure, Well tell me what kind of eventure are you looking for today $scout, $assassinate, $defend, or maybe try to stop the $invasion.");
}
}
if ($text=~/hail/i && $ulevel < 85) {
plugin::Whisper("Sorry you must gain a few more seasons of knowledge before I can even trust that you'll survive my adventures I may be a halfling but I have seen countless battles.");
}
if ($text=~/assassinate/i && $ulevel > 84) {
plugin::Whisper("So you would like to do an Assassination mission, well here are the missions opened to you at this point in time.");
plugin::Whisper("$Rivervale");
}
if ($text=~/Rivervale/i && $ulevel > 84) {
plugin::InitInstanceQueue("Rivervale Royals Easymode", #Instance Identifier
"solo", #Description of Adventure (Ex: Group)
1, #Number of Players
289, #Task ID Association
"Rivervale Royals Easymode", #Description of Adventure
7200, #Duration Timer (Seconds)
1, #Version
"rivervale", #ZoneSN
0, #Instance Destination X
0, #Instance Destination Y
5, #Instance Destination Z
203, #Instance Destination H
85, #Required Average Level
1, #Minimum # of Players
1, #Is Shared Task (0/1)
1800, #Lockout Duration
0, ### Boot on completion
114, # X Compass Loc
-256, # Y Compass Loc
3, # Z Compass Loc
);
}
if ($text=~/invasion/i && $ulevel > 84) {
plugin::Whisper("So you would like to Stop the enemy before they get to us Eh? Well here are all the armies I know of that are coming this way!");
plugin::Whisper("$Invasionforce");
}
if ($text=~/invasionforce/i && $ulevel > 84) {
plugin::InitInstanceQueue("Maze Defense Easymode", #Instance Identifier
"solo", #Description of Adventure (Ex: Group)
1, #Number of Players
288, #Task ID Association
"Maze Defense Easymode", #Description of Adventure
7200, #Duration Timer (Seconds)
1, #Version
"arttest", #ZoneSN
242, #Instance Destination X
161, #Instance Destination Y
3, #Instance Destination Z
63, #Instance Destination H
85, #Required Average Level
1, #Minimum # of Players
1, #Is Shared Task (0/1)
1800, #Lockout Duration
0, ### Boot on completion
114, # X Compass Loc
-256, # Y Compass Loc
3, # Z Compass Loc
);
}
}
wyndam
Code:
sub EVENT_SAY{
my $Warlordatruzarthak = quest::saylink("Warlord Atruzarthak",1);
my $Warlordykesha = quest::saylink("Warlord Ykesha",1);
my $Warlordlazziar = quest::saylink("Warlord Lazziar",1);
if($text=~/hail/i && $ulevel > 84){
@AdvInfo = plugin::LoadExpeditionInfo2(); plugin::CheckForStaleInstances();
if($AdvInfo[0] > 0){ plugin::DisplayInstanceQueue($AdvInfo[0]); }
else {
plugin::Whisper("Here is a list of Raids That you can do.");
plugin::Whisper("$Warlordatruzarthak");
plugin::Whisper("$Warlordykesha");
plugin::Whisper("$Warlordlazziar");
}
}
if($text=~/Warlord Atruzarthak/i){
@AdvInfo = plugin::LoadExpeditionInfo2(); plugin::CheckForStaleInstances();
if($AdvInfo[0] > 0){ plugin::DisplayInstanceQueue($AdvInfo[0]); }
else{
plugin::InitInstanceQueue("Precipice of War", #Instance Identifier
"Raid", #Description of Adventure (Ex: Group)
6, #Number of Players
290, #Task ID Association
"Precipice of War", #Description of Adventure
21600, #Duration Timer (Seconds)
0, #Version
"precipiceofwar", #ZoneSN
679, #Instance Destination X
-1777, #Instance Destination Y
245, #Instance Destination Z
255, #Instance Destination H
60, #Required Average Level
1, #Minimum # of Players
1, #Is Shared Task (0/1)
21600, #Lockout Duration
0, ### Boot on completion
114, # X Compass Loc
-256, # Y Compass Loc
3, # Z Compass Loc
);
}
}
if($text=~/Warlord Ykesha/i){
@AdvInfo = plugin::LoadExpeditionInfo2(); plugin::CheckForStaleInstances();
if($AdvInfo[0] > 0){ plugin::DisplayInstanceQueue($AdvInfo[0]); }
else{
plugin::InitInstanceQueue("The Open Sea", #Instance Identifier
"Raid", #Description of Adventure (Ex: Group)
6, #Number of Players
293, #Task ID Association
"The Open Sea", #Description of Adventure
21600, #Duration Timer (Seconds)
0, #Version
"shipmvp", #ZoneSN
-133, #Instance Destination X
-87, #Instance Destination Y
46, #Instance Destination Z
253, #Instance Destination H
60, #Required Average Level
1, #Minimum # of Players
1, #Is Shared Task (0/1)
21600, #Lockout Duration
0, ### Boot on completion
114, # X Compass Loc
-256, # Y Compass Loc
3, # Z Compass Loc
);
}
}
if($text=~/Warlord Lazziar/i){
@AdvInfo = plugin::LoadExpeditionInfo2(); plugin::CheckForStaleInstances();
if($AdvInfo[0] > 0){ plugin::DisplayInstanceQueue($AdvInfo[0]); }
else{
plugin::InitInstanceQueue("Shadowrest", #Instance Identifier
"Raid", #Description of Adventure (Ex: Group)
6, #Number of Players
294, #Task ID Association
"Shadowrest", #Description of Adventure
21600, #Duration Timer (Seconds)
0, #Version
"shadowrest", #ZoneSN
-133, #Instance Destination X
-87, #Instance Destination Y
46, #Instance Destination Z
253, #Instance Destination H
60, #Required Average Level
1, #Minimum # of Players
1, #Is Shared Task (0/1)
21600, #Lockout Duration
0, ### Boot on completion
114, # X Compass Loc
-256, # Y Compass Loc
3, # Z Compass Loc
);
}
}
}
sub EVENT_SPAWN{
plugin::PersistentNimbus(447);
}
Both of these scripts seem to work flawlessly until you start completing missions....
|