Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #15  
Old 02-01-2012, 01:08 AM
sorvani
Dragon
 
Join Date: May 2010
Posts: 965
Default

Since you came up with something, I added some info for you.
Code:
sub EVENT_SAY {
  if($text=~/Hail/i) {
    quest::say("Hello Dear Friend, I am the elder here. I can Improve the stats on your Epic weapons.");
  }
}

sub EVENT_ITEM {
  #this if statement means whether they turn in 1 or 4 they only get credit once.
  if(plugin::check_handin(\%itemcount, 132508 => 1)) { #Rift Shards
    #just a note that depending on the "math" a single hand in may or may not affect the item.
    quest::say("Thank you, Your weapon should be a bit stronger now.");
    #define a variable to hold the qglobal value for calculation
    my $newvalue = 0;
    #check if the variable is defined.
    if(defined($qglobals{epic_scale})) {
      #since it exists, get the current value
      $newvalue = $qglobals{epic_scale};
    }
    #increment the value (from 0 to 1 or what ever it was +1)
    $newvalue++;
    #set the new value for the qglobal
    quest::setglobal("epic_scale",$newvalue,5,"F");
  } else {
    quest::say("I have no use for this, $name.");
  }
  #return item can always be the last thing outside any sub routine. this will ensure items are returned.
  plugin::return_items(\%itemcount);
}
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 08:49 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3