View Single Post
  #2  
Old 08-11-2008, 02:06 PM
AndMetal
Developer
 
Join Date: Mar 2007
Location: Ohio
Posts: 648
Default

The way the quest currently works is it will teleport up to 6 people to the trial area.
quests/pojustice/201078.pl (Execution Tribunal):
Code:
   30       if($text=~/trial of execution/i && $pop_poj_mavuin == 1 && $execution == 5)
   31         {
   32         quest::movepc(201,192,-1055,75);
   33 	quest::say("Then begin.");
   34         $execution=6;
   35         }
   36       if($text=~/trial of execution/i && $pop_poj_mavuin == 1 && $execution == 4)
   37         {
   38         quest::movepc(201,192,-1055,75);
   39 	quest::say("Then begin.");
   40         $execution=5;
   41         }
   42 
   43       if($text=~/trial of execution/i && $pop_poj_mavuin == 1 && $execution == 3)
   44         {
   45         quest::movepc(201,192,-1055,75);
   46 	quest::say("Then begin.");
   47         $execution=4;
   48         }
   49 
   50       if($text=~/trial of execution/i && $pop_poj_mavuin == 1 && $execution == 2)
   51         {
   52         quest::movepc(201,192,-1055,75);
   53 	quest::say("Then begin.");
   54         $execution=3;
   55         }
   56       if($text=~/trial of execution/i && $pop_poj_mavuin == 1 && $execution == 1)
   57         {
   58         quest::movepc(201,192,-1055,75);
   59 	quest::say("Then begin.");
   60         $execution=2;
   61         }
   62       if($text=~/trial of execution/i && $pop_poj_mavuin == 1 && $execution == undef)
   63 	{
   64 	quest::say("Then begin.");
   65         quest::movepc(201,192,-1055,75);
   66         $execution=1;
   67 	quest::settimer(47,30);
   68         quest::signal(201076,15000);
   69         }
   70 
   71 
   72       if(($text=~/Hail/i or $text=~/prepared/) && ($execution > 5) && $pop_poj_mavuin == 1) #prevent access if timer started
   73         {
   74         quest::say("I'm sorry, the Trial of Execution is currently underway.");
   75         }
There is a quest function to teleport a group to a location, but I'm not sure if it works properly. If so, I think it would be better to use it instead.

From the Wiki:
Quote:
quest::movegrp(zoneid,x,y,z) - Moves the user's Group that triggered the Event to the provided zone and loc.
I do know that movegrp was added in after the quest was created, so this is why it is probably still the same. But that's also why we have cavedude
__________________
GM-Impossible of 'A work in progress'
A non-legit PEQ DB server
How to create your own non-legit server

My Contributions to the Wiki
Reply With Quote