EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Archive::Quests (https://www.eqemulator.org/forums/forumdisplay.php?f=624)
-   -   Summon item upon key word? (https://www.eqemulator.org/forums/showthread.php?t=13694)

zarcath 05-10-2004 02:13 PM

Summon item upon key word?
 
Is this right? I want them to get the item when they say the key phrase deliver.

Quote:

EVENT_ITEM {
if ($1- =~ "deliver")
say(Well this must be my lucky day, you are turning out to be very helpful. Here's the supplies. You should be able to find Anval fishing near the old pier. Now, if you'll excuse me, I need to check with my runners. The nobleman's daughter is days overdue now. I hope nothing serious has happened.');
summonitem(20014,0);
or should I have it in Event_Say? can I have summonitem in event_say?

-Z

sandy 05-10-2004 02:39 PM

think at what is the event that occurs

in what you want to do the event is this :
"when they say 'deliver'"
so the event is not an event item but an event say

code would be this then :
Code:

sub EVENT_SAY
{
    if ( $text =~ /deliver/i)
    {
        quest::say("Well this must be my lucky day, you are turning out to be very helpful. Here's the supplies. You should be able to find Anval fishing near the old pier. Now, if you'll excuse me, I need to check with my runners. The nobleman's daughter is days overdue now. I hope nothing serious has happened.");
        summonitem(20014,0);
    }

}


animepimp 05-10-2004 02:51 PM

The different types of events define when the event happens. All events can use all the methods. You can even summon items on people on an event attack, then next time they try to target the mob they trade instead :)

zarcath 05-10-2004 03:18 PM

Okay, thanks :)

-Z


All times are GMT -4. The time now is 07:11 PM.

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