EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Completed (https://www.eqemulator.org/forums/forumdisplay.php?f=633)
-   -   Fixed: Hole, Kejar_the_Mighty (https://www.eqemulator.org/forums/showthread.php?t=36740)

Irreverent 04-09-2013 09:07 AM

Fixed: Hole, Kejar_the_Mighty
 
chooserandom to ChooseRandom (didn't work) and put the plugin to return items.

Code:

sub EVENT_SAY {#need correct text for all parts
  if ($text=~/hail/i) {
    quest::say("I do not have time to talk to you, I am looking for something that I [lost]");
  }
  if ($text=~/lost/i) {
    quest::say("Yes, lost.  I am missing my robes if you could bring them to me I would reward you.");
  }
}

sub EVENT_ITEM {
  if (plugin::check_handin(\%itemcount,  1360=> 1))
  {
    quest::say("You found it, I am so pleased! Here is your reward");
    quest::summonitem(quest::ChooseRandom(8960, 8961));
    quest::exp(5000);
  }
  plugin::return_items(\%itemcount);
}


Robregen 04-09-2013 09:27 AM

okay this is fixed for PEQ. Thanks.


All times are GMT -4. The time now is 04:52 PM.

Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.