PDA

View Full Version : Summon item upon key word?


zarcath
05-10-2004, 02:13 PM
Is this right? I want them to get the item when they say the key phrase deliver.

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 :
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