Page 1 of 1

item member like item.RegisteredForSpeechEvent

Posted: Fri Apr 27, 2007 10:44 pm
by zandor70
I have loop

Code: Select all

  var event := Struct { "type" := SYSEVENT_SPEECH, "source" := me, "text" := "ciao" };
    foreach mobile in (ListMobilesNearLocation(who.x, who.y, who.z, MAX_DIST_EVENT, who.realm))
      if (mobile.isA(POLCLASS_NPC))
        SendEvent(mobile, event)
      endif
    endforeach
I need something to know if I can send event also to item near instead only to NPCS becouse also item can process SPEECH EVENT with "RegisterForSpeechEvents()" command.

Posted: Sat Apr 28, 2007 12:12 am
by FreeSoul
i would like to have itemem registered for other than speech event...
entered and left area will be very nice

Posted: Sat Apr 28, 2007 12:13 pm
by CWO
I campaigned for entered/left events on items but MuadDib said it would take a lot of CPU/Memory to do.

Posted: Sun Apr 29, 2007 12:25 am
by FreeSoul
a lot?
i want to add that reference to house sign...
spawnet has much more npc'es who use entered and left location event

Posted: Sun Apr 29, 2007 12:44 am
by MuadDib
Items are a lot more taxing on a system, than mobiles, with events. Could spawn all the maps, and that would equal less than 1 map if it was items.

Posted: Sun Apr 29, 2007 6:37 am
by zandor70
Yes, but my request was only to know if an item has a register event active... not to add event or modify how pol works.