View Single Post
  #14  
Old 05-02-2009, 05:53 PM
Randymarsh9
Dragon
 
Join Date: Dec 2007
Posts: 658
Default

I am making a quest where killing monsters will give you a global credit, and then you can hail someone in PoK for your epic. Here are their two quests:

Code:
sub EVENT_DEATH{
 quest::setglobal("epic",$epic+1, H1);
 $epic = undef;
}
and

Code:
sub EVENT_SAY{
 if ($text=~/hail/i){
  if ($class eq "Cleric"){
   if ($qglobals{epic} <5){
   quest::say("The world is in dire need of healers such as you. Are you looking to further your power with an [epic]?");
  }
  elsif(qgbobals{epic} >4){
  quest::say("Congratulations. You're help has earned you this weapon.");
  quest::summonitem(5532);
  $epic = undef;
 }
 }
}
 if ($text=~/epic/i){
  if ($class eq "Cleric"){
  quest::say("I will gladly assist you in gaining your epic weapon;however, you will need to do something for me in the Plane of War first. Tell me if you are [ready].");
  }
 }
 
 if ($text=~/ready/i){
  if ($class eq "Cleric"){
   if ($ulevel >45){
   quest::movepc(213, 0,0,0);
  }
  elsif ($ulevel <46){
  quest::say("You aren't good enough.");
  }
  }
 }
}
After I kill the five monsters, I will return to PoK, hail the person, and receive the same dialogue as if I didn't have the global.
Reply With Quote