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
  #1  
Old 05-15-2010, 04:10 AM
blackdragonsdg
Dragon
 
Join Date: Dec 2008
Location: Tennessee
Posts: 654
Default What is wrong with this script?

It seems like the easier the script should be the more of a headache it is for me.....EVENT_SAY works just fine but EVENT_ITEM just eats the handin and nothing else happens. What did I do wrong?


Code:
sub EVENT_SAY {
    if($text=~/Hail/i) {
    quest::say("Hi there young one. I require some assistance, would you be willing to [help] me.");
    }
    if($text=~/help/i) {
    quest::say("I am a collector of sorts and over the years I have managed to collect items or bones from the various monsters around Norrarth. Right now I am looking for something from the king of Kael. Seek out the one named Tormax and bring me his head. Do this for me and I shall bestow a great reward upon you.");
    }
}

sub EVENT_ITEM {
  if(plugin::check_handin(\%itemcount, 30516 => 1)) {
    quest::say("Oh, you actually found him! That is great news now I can add his head to my collection. Thank you very much for your help. Here is your reward! If you wish to return to Relic at some point in the future simply hand me the Relic Stone of Return and I will send you back.");
    quest::summonitem(119590);
    quest::movepc(370,99,1177,-273);
    }
elsif (plugin::check_handin(\%itemcount, 119590 => 1)) {
    quest::say("So you want to return to Relic, very well then, off you go!");
    quest::summonitem(119590);
    quest::movepc(370,99,1177,-273);
    }
else {
    quest::say("I don't need this.");
    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 02:56 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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3