item member like item.RegisteredForSpeechEvent

Archive of the older Feature Request Forum Posts

Moderator: POL Developer

Locked
User avatar
zandor70
Master Poster
Posts: 93
Joined: Fri Feb 10, 2006 10:06 am
Location: Italy

item member like item.RegisteredForSpeechEvent

Post 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.
FreeSoul
Master Poster
Posts: 90
Joined: Sat Feb 04, 2006 9:14 am
Location: Aman

Post by FreeSoul »

i would like to have itemem registered for other than speech event...
entered and left area will be very nice
User avatar
CWO
POL Expert
Posts: 1159
Joined: Sat Feb 04, 2006 5:49 pm
Location: Chicago, IL USA

Post by CWO »

I campaigned for entered/left events on items but MuadDib said it would take a lot of CPU/Memory to do.
FreeSoul
Master Poster
Posts: 90
Joined: Sat Feb 04, 2006 9:14 am
Location: Aman

Post 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
MuadDib
Former Developer
Posts: 1091
Joined: Sun Feb 12, 2006 9:50 pm
Location: Cross Lanes, WV

Post 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.
User avatar
zandor70
Master Poster
Posts: 93
Joined: Fri Feb 10, 2006 10:06 am
Location: Italy

Post 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.
Locked